GATE / CS ARCHIVE

GATE CSE 2011 / QUESTION 52

Distance-vector update after a reduced link cost

Computer Networks · Routing Algorithms · Full GATE CSE 2011 paper

GATE 2011, Q52 2 marks · MCQ
Report issue

Routing Algorithms

Question 52, GATE 2011: A symmetric distance-vector network has edges N1-N2:1, N2-N3:6, N3-N4:2, N4-N5:4, N5-N2:3. Stabilized vectors in destination order N1,...,N5 are N1=(0,1,7,8,4), N2=(1,0,6,7,3), N3=(7,6,0,2,6), N4=(8,7,2,0,4), N5=(4,3,6,4,0). Each round all nodes first exchange current vectors, then update. Between rounds a link-cost change modifies only the directly incident entry at each endpoint. If N2-N3 decreases to 2, what is N3's vector after the next round?

(A) 3,2,0,2,5
(B) 3,2,0,2,6
(C) 7,2,0,2,5
(D) 7,2,0,2,6
Question 52, GATE 2011: A symmetric distance-vector network has edges N1-N2:1, N2-N3:6, N3-N4:2, N4-N5:4, N5-N2:3. Stabilized vectors in destination order N1,...,N5 are N1=(0,1,7,8,4), N2=(1,0,6,7,3), N3=(7,6,0,2,6), N4=(8,7,2,0,4), N5=(4,3,6,4,0). Each round all nodes first exchange current vectors, then update. Between rounds a link-cost change modifies only the directly incident entry at each endpoint. If N2-N3 decreases to 2, what is N3's vector after the next round?

(A) 3,2,0,2,5
(B) 3,2,0,2,6
(C) 7,2,0,2,5
(D) 7,2,0,2,6
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Before the next exchange, only the incident entries change: N2 sets its distance to N3 to 2, and N3 sets its distance to N2 to 2. In particular N2 still advertises distances 1 to N1 and 3 to N5; N4 advertises 8 to N1 and 4 to N5. N3 recomputes through neighbors N2 (link cost 2) and N4 (link cost 2): to N1, min(2+1, 2+8)=3; to N2, min(2+0, 2+7)=2; to itself, 0; to N4, min(2+7, 2+0)=2; to N5, min(2+3, 2+4)=5. Its vector becomes (3, 2, 0, 2, 5), option A.

The distance-vector recurrence is D3(j)=min over neighbors k of [cost(3,k)+Dk(j)], with D3(3)=0. The exchange occurs before recomputation, so N3 cannot use routes N2 or N4 will discover later in this same round. In particular, destination N5 improves via N2 from 6 to 2+3=5, while N1 improves to 2+1=3. Mixing updated and old advertisements would model an asynchronous cascade rather than the specified one-round calculation.

Original paper, page 15 · Answer key