Routing Algorithms


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.