All mock tests are FREE till 31 December — register to save your progress
Unit 9 · Data Communication and Computer Networks Paper 2 CS · December 2022 Shift 1

A network uses distance-vector routing. Router R has neighbours X, Y and Z at distances 3, 2 and 5. Their vectors report distances to router P of 7, 6 and 5, and to router Q of 4, 6 and 8, respectively. Which statements are true for R's new routing table after this iteration?
A. The distance from R to P will be stored as 10.
B. The distance from R to Q will be stored as 7.
C. The next hop from R to P is Y.
D. The next hop from R to Q is Z.
Choose the correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. B and C only

Explanation

To P: via X 3 + 7 = 10, via Y 2 + 6 = 8, via Z 5 + 5 = 10, so the distance is 8 via Y. To Q: via X 3 + 4 = 7, via Y 8, via Z 13, so the distance is 7 via X. B and C are true.

More Data Communication and Computer Networks questions