CS FundamentalsVery hardGATE CS (PYQ pattern)

Routers A and B are connected, and B is directly connected to network C (cost 1 each link; RIP, infinity = 16, no split horizon or poison reverse). A currently has cost 2 to C. The B-C link then fails and B marks C as 16. Updates now alternate: B accepts A's advertised route to C and recomputes, then A accepts B's, and so on (each time the receiver recomputes as neighbour's cost + 1, capped at 16). How many times does a router's cost to C change before both reach 16?

  1. A. 16
  2. B. 14
  3. C. 13
  4. D. 15

Correct answer: D. 15

B becomes 3, A 4, B 5, A 6 ... the values climb by one per update until 16 is reached: counting each change gives 15.

More Computer Networks questions

Exams that ask this topic