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?
- A. 16
- B. 14
- C. 13
- 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
- In link-state routing each router floods its LSA: the originator sends it on every link, and any router receiving it for the first time…
- A weighted undirected graph on nodes 0..5 has edges (u,v,w): (0,1,1), (1,2,2), (0,2,2), (2,3,3), (1,3,3), (3,4,1), (2,4,4), (4,5,2)…
- Routers form a 4 x 4 grid with coordinates (row, column), 0 to 3, and links between horizontal and vertical neighbours of equal cost. Two…
- A leaky bucket holds at most 5 packets and leaks (sends) 1 packet at the end of every tick. In ticks 1 to 8, packets arrive as 3, 4, 0, 5…
- A WFQ scheduler (bit-by-bit round robin approximation) serves three flows backlogged at time 0 with weights A = 2, B = 1, C = 1. Packet…
- Four flows share links: a uses L1; b uses L1 and L2; c uses L2 and L3; d uses L3. Link capacities (Mbps): L1 = 12, L2 = 6, L3 = 10. What…