GATE / CS ARCHIVE

GATE CSE 2010 / QUESTION 54

Unused links after distance-vector convergence

Computer Networks · Routing Algorithms · Full GATE CSE 2010 paper

GATE 2010, Q54 2 marks · MCQ
Report issue

Routing Algorithms

Question 54, 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. After routing tables stabilize, how many links are never used to carry data?
Options: (A) 4; (B) 3; (C) 2; (D) 1.
Question 54, 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. After routing tables stabilize, how many links are never used to carry data?
Options: (A) 4; (B) 3; (C) 2; (D) 1.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

With positive link weights, an edge is unusable by any shortest path exactly when another path between its endpoints is strictly shorter. Link R1–R2 has weight 6 but R1–R3–R2 costs 3+2=5, so it is unused. Link R4–R6 has weight 8 but R4–R5–R6 costs 1+4=5, so it is also unused. Every remaining edge is itself a shortest path between its endpoints: R1–R3=3, R2–R3=2, R2–R4=7, R3–R5=9 and R4–R5=1, R5–R6=4. In particular the alternative to R3–R5 through R2,R4 costs 2+7+1=10, greater than 9. Thus exactly two links will never be selected, C. This assumes stabilized shortest-path routing, with data available for any source/destination pair.

To prove that an edge is never needed, replace it in any purported shortest route by the cheaper endpoint-to-endpoint route; the result is a shorter walk and, with positive weights, can be reduced to a path. Conversely, an edge strictly shortest between its own endpoints is needed for that endpoint pair. This avoids enumerating every source–destination routing table.

Original paper, page 14