edited by
588 views
5 votes
5 votes

Consider a network with five nodes, $N_1$ to $N_5$, 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.
$N_{1}: (0, 3, 11, 14, 8)$
$N_{2}: (3, 0, 8, 11, 5)$
$N_{3}: (11, 8, 0, 4, 10)$
$N_{4}: (14, 11, 4, 0, 6)$
$N_{5}: (8, 5, 10, 6, 0)$
Each distance vector is the distance of the best known path at that instance to nodes, $N_{1}$ to $N_{5}$, 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.
The cost of link $N_{5}-N_{2}$ reduces to $4$ (in both directions). After the next round of updates, the link $N_{1}-N_{2}$ goes down. $N_{2}$ will reflect this change immediately in its distance vector as cost, $\infty$. After the next round of update, the cost to $N_{1}$ in the distance vector of $N_{5}$ is _______

edited by

1 Answer

2 votes
2 votes
After the update since $N_2-N_5$ reduces to $4,$

$N_{1}: (0, 3, 11, 14, 8)$

$N_{2}: (3, 0, 8, 11, 4)$

$N_{3}: (11, 8, 0, 4, 10)$

$N_{4}: (14, 11, 4, 0, 6)$

$N_{5}: (7, 4, 10, 6, 0)$

Now, when $N_1-N_2$ goes down,

$N_{1}: (0, \infty, 11, 13, 8)$

$N_{2}: (\infty, 0, 8, 10, 4)$

$N_{3}: (17, 8, 0, 4, 10)$

$N_{4}: (13, 10, 4, 0, 6)$

$N_{5}: (20, 4, 10, 6, 0)$

So, the correct answer is $20.$
edited by
Answer:

Related questions