Skip to content

GATE CS 2011 Q53 — Routing Protocols: Shortest Path, Flooding, Distance Vector, Link State

Explain with AI

Consider a network with five nodes, N1N1 to N5N5, as shown as below.

The network uses a Distance Vector Routing protocol. Once the routes have been stabilized, the distance vectors at different nodes are as follows.

  • N1: (0,1,7,8,4)(0, 1, 7, 8, 4)
  • N2: (1,0,6,7,3)(1, 0, 6, 7, 3)
  • N3: (7,6,0,2,6)(7, 6, 0, 2, 6)
  • N4: (8,7,2,0,4)(8, 7, 2, 0, 4)
  • N5: (4,3,6,4,0)(4, 3, 6, 4, 0)

Each distance vector is the distance of the best known path at that instance to nodes, N1N1 to N5N5, where the distance to itself is 00. Also, all links are symmetric and the cost is identical in both directions. In each round, all nodes exchange their distance vectors with their respective neighbors. Then all nodes update their distance vectors. In between two rounds, any change in cost of a link will cause the two incident nodes to change only that entry in their distance vectors.

The cost of link N2−N3N2-N3 reduces to 22 (in both directions). After the next round of updates, the link N1−N2N1-N2 goes down. N2N2 will reflect this change immediately in its distance vector as cost, ∞\infty. After the NEXT ROUND of update, what will be the cost to N1N1 in the distance vector of N3N3 ?

Choose one option
View worked solution

Answer: C

To find the updated cost to N1N1 in the distance vector of N3N3, we trace the events step-by-step:

1. Initial State & Link Cost Change:
Initially, the cost of link N2−N3N2-N3 is 66. When it reduces to 22, the incident nodes N2N2 and N3N3 immediately update their direct link cost to 22 in their distance vectors:

  • D2(3)=2D_2(3) = 2
  • D3(2)=2D_3(2) = 2

2. Round 1 of Updates:
All nodes exchange their distance vectors and update.

  • N3N3 updates its distance to N1N1 using the previous vectors of its neighbors N2N2 and N4N4: D3(1)=min⁡{c(N3,N2)+D2(1),  c(N3,N4)+D4(1)}=min⁡{2+1,  2+8}=3D_3(1) = \min \{ c(N3, N2) + D_2(1), \; c(N3, N4) + D_4(1) \} = \min \{ 2 + 1, \; 2 + 8 \} = 3
  • N4N4 updates its distance to N1N1 using the previous vectors of N3N3 and N5N5: D4(1)=min⁡{c(N4,N3)+D3(1),  c(N4,N5)+D5(1)}=min⁡{2+7,  4+4}=8D_4(1) = \min \{ c(N4, N3) + D_3(1), \; c(N4, N5) + D_5(1) \} = \min \{ 2 + 7, \; 4 + 4 \} = 8

3. Link N1−N2N1-N2 Goes Down:
Immediately after Round 1, the link N1−N2N1-N2 fails. N2N2 reflects this change immediately in its distance vector: D2(1)=∞D_2(1) = \infty

4. Round 2 of Updates (Next Round):
N3N3 updates its distance to N1N1 using the updated vectors of its neighbors N2N2 and N4N4: D3(1)=min⁡{c(N3,N2)+D2(1),  c(N3,N4)+D4(1)}D_3(1) = \min \{ c(N3, N2) + D_2(1), \; c(N3, N4) + D_4(1) \} D3(1)=min⁡{2+∞,  2+8}=10D_3(1) = \min \{ 2 + \infty, \; 2 + 8 \} = 10

Thus, the cost to N1N1 in the distance vector of N3N3 after the next round of updates is 1010.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Routing Protocols: Shortest Path, Flooding, Distance Vector, Link State questions