Skip to content

GATE CS 2011 Q52 — 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, what will be the new distance vector at node, N3N3?

Choose one option
View worked solution

Answer: A

To find the new distance vector at node N3N3 after the link cost of N2−N3N2-N3 reduces to 22, we follow the Distance Vector Routing update rules.

Step 1: Identify neighbors and immediate updates
Node N3N3 is connected to neighbors N2N2, N4N4, and N5N5. Before the update round, the change in the link cost of N2−N3N2-N3 to 22 is updated only at the incident nodes N2N2 and N3N3:

  • The direct link cost c(N3,N2)c(N3, N2) becomes 22.
  • The distance vector of N2N2 immediately becomes: D2=(1,0,2,7,3)D_2 = (1, 0, 2, 7, 3).
  • The distance vectors of N4N4 and N5N5 remain unchanged:
    • D4=(8,7,2,0,4)D_4 = (8, 7, 2, 0, 4)
    • D5=(4,3,6,4,0)D_5 = (4, 3, 6, 4, 0)

Step 2: Calculate the new distance vector at N3N3
In the next round, N3N3 updates its distance vector D3D_3 using the Bellman-Ford equation:
D3(X)=min⁡{c(N3,N2)+D2(X),  c(N3,N4)+D4(X),  c(N3,N5)+D5(X)}D_3(X) = \min \{ c(N3, N2) + D_2(X), \; c(N3, N4) + D_4(X), \; c(N3, N5) + D_5(X) \}

We compute this for each destination XX:

  • For N1N1: min⁡{2+1,  2+8,  6+4}=min⁡{3,10,10}=3\min \{ 2 + 1, \; 2 + 8, \; 6 + 4 \} = \min \{ 3, 10, 10 \} = 3
  • For N2N2: min⁡{2+0,  2+7,  6+3}=min⁡{2,9,9}=2\min \{ 2 + 0, \; 2 + 7, \; 6 + 3 \} = \min \{ 2, 9, 9 \} = 2
  • For N3N3: Distance to itself is 00.
  • For N4N4: min⁡{2+7,  2+0,  6+4}=min⁡{9,2,10}=2\min \{ 2 + 7, \; 2 + 0, \; 6 + 4 \} = \min \{ 9, 2, 10 \} = 2
  • For N5N5: min⁡{2+3,  2+4,  6+0}=min⁡{5,6,6}=5\min \{ 2 + 3, \; 2 + 4, \; 6 + 0 \} = \min \{ 5, 6, 6 \} = 5

Thus, the new distance vector at N3N3 is (3,2,0,2,5)(3, 2, 0, 2, 5).

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