CS FundamentalsHardProduct-company MCQ pattern

Under distance-vector routing, router A has direct links to B (cost 2) and C (cost 5). B advertises distances {D: 7, E: 1} and C advertises {D: 3, E: 4}. What does A's new table give for D and E?

  1. A. D = 9 via B, E = 3 via B
  2. B. D = 8 via C, E = 9 via C
  3. C. D = 3 via C, E = 1 via B
  4. D. D = 8 via C, E = 3 via B

Correct answer: D. D = 8 via C, E = 3 via B

Bellman–Ford: D = min(2 + 7, 5 + 3) = min(9, 8) = 8 via C; E = min(2 + 1, 5 + 4) = min(3, 9) = 3 via B. Copying the neighbour's advertised value without adding the link cost gives the third option.

More Computer Networks questions

Exams that ask this topic