GATE / CS ARCHIVE

GATE CSE 2010 / QUESTION 55

Unused links after weight changes

Computer Networks · Routing Algorithms · Full GATE CSE 2010 paper

GATE 2010, Q55 2 marks · MCQ
Report issue

Routing Algorithms

Question 55, GATE 2010: An undirected router network has exactly these links and weights: R1–R2:6, R1–R3:3, R2–R3:2, R2–R4:7, R3–R5:9, R4–R5:1, R4–R6:8, R5–R6:4. Routers use distance-vector routing, starting with neighbor entries equal to direct-link weights. First determine the links never used after stabilization. Change every such link’s weight to 2 and rerun distance-vector routing until stable. How many links are now unused?
Options: (A) 0; (B) 1; (C) 2; (D) 3.
Question 55, GATE 2010: An undirected router network has exactly these links and weights: R1–R2:6, R1–R3:3, R2–R3:2, R2–R4:7, R3–R5:9, R4–R5:1, R4–R6:8, R5–R6:4. Routers use distance-vector routing, starting with neighbor entries equal to direct-link weights. First determine the links never used after stabilization. Change every such link’s weight to 2 and rerun distance-vector routing until stable. How many links are now unused?
Options: (A) 0; (B) 1; (C) 2; (D) 3.
Question 55, GATE 2010: An undirected router network has exactly these links and weights: R1–R2:6, R1–R3:3, R2–R3:2, R2–R4:7, R3–R5:9, R4–R5:1, R4–R6:8, R5–R6:4. Routers use distance-vector routing, starting with neighbor entries equal to direct-link weights. First determine the links never used after stabilization. Change every such link’s weight to 2 and rerun distance-vector routing until stable. How many links are now unused?
Options: (A) 0; (B) 1; (C) 2; (D) 3.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Change precisely the two previously unused links R1–R2 and R4–R6 to weight 2. Now R5–R6 has direct weight 4 but R5–R4–R6 costs 1+2=3, so it becomes unused. All other links remain shortest between their endpoints: the changed links have weight 2; R1–R3=3 beats R1–R2–R3=4; R2–R3=2; R2–R4=7 beats R2–R3–R5–R4=12; R3–R5=9 beats R3–R2–R4–R5=10; and R4–R5=1. Hence one link remains unused, B. Recompute routes after the weight changes rather than retaining the previous unused set.

Changing edge weights requires recomputing shortest paths globally. The former R4–R6 bypass is now the cheap direct edge of weight two; together with R4–R5 of weight one it undercuts R5–R6. The changed R1–R2 edge does not undercut R1–R3, since 2+2=4>3. These comparisons explain why the unused set changes rather than merely shrinking.

Original paper, page 14