CS FundamentalsHardGATE CS

Router X has neighbours A, B and C reached over links of cost 3, 5 and 2. They advertise their current distance vectors to destinations D1 to D5: A = (4, 9, 2, 8, 6), B = (7, 1, 3, 5, 9), C = (10, 6, 8, 2, 4). After X recomputes its table with the Bellman-Ford update, what is the sum of its five costs and the number of destinations reached through C?

  1. A. 33 and 2
  2. B. 28 and 2
  3. C. 13 and 2
  4. D. 28 and 3

Correct answer: B. 28 and 2

For each destination X takes min over neighbours of (link cost + advertised distance): the new costs are [7, 6, 5, 4, 6] (sum 28), reached through ['A', 'B', 'A', 'C', 'C'], so C serves 2 destinations. Ignoring the link costs would give a sum of only 13.

More Computer Networks questions

Exams that ask this topic