Linked answer questions
Statement for Linked Answer Questions 52 and 53:
Consider a network with five nodes, N1 to N5, as shown below.
The network uses a Distance Vector Routing protocol. Once the routes have stabilized, the distance vectors at different nodes are as following:
N1:
N2:
N3:
N4:
N5:
Each distance vector is the distance of the best known path at that instance to nodes, N1 to N5, where the distance to itself is 0. 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.
Shared with question 53.
Question
The cost of link N2-N3 reduces to 2 (in both directions). After the next round of updates, what will be the new distance vector at node, N3?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2011 answer key
Solution
Use the Bellman-Ford update rule at node N3 after the direct link cost c(N3, N2) reduces to 2.
- Identify the network neighbors of node N3 from the given network topology: the neighbors of N3 are N2 and N4.
- Before the update round, the cost of the link between N2 and N3 decreases from 6 to 2. Node N3 immediately updates its local link cost entry to . The link cost to N4 remains .
- In the update round, N3 receives distance vectors from its neighbors:
- From N2:
- From N4:
- Compute the updated distances at N3 using :
- To N1: .
- To N2: .
- To N3: Distance to itself is 0.
- To N4: .
- To N5: .
- The new distance vector at node N3 is , which corresponds to Option A.
A
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2011 Computer Science and Information Technology (CS)
- Question
- 52 of 65, printed as CS Q.52
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.