CS FundamentalsVery hardProduct company interview · GATE level
Routers A, B and C run a basic distance-vector protocol with no split horizon or poisoned reverse. Link costs are A-B = 3, B-C = 2 and A-C = 40, and the tables are stable (B reaches C at cost 2, A reaches C at cost 5 via B). The cost of link B-C now rises to 30. B recomputes first and advertises to A; from then on A and B alternately recompute and advertise whenever their distance to C changes. Counting every change of the distance-to-C entry at A or B (including B's first), how many changes occur before the tables are stable, and what are the final distances to C?
- A. 8 changes; A = 29, B = 26
- B. 2 changes; A = 33, B = 30
- C. 10 changes; A = 40, B = 30
- D. 10 changes; A = 33, B = 30
Correct answer: D. 10 changes; A = 33, B = 30
B still believes A can reach C at cost 5, so it picks min(30, 3 + 5) = 8 - a route that actually loops back through B. Then A: min(40, 3 + 8) = 11; B: 14; A: 17; B: 20; A: 23; B: 26; A: 29; B: min(30, 3 + 29) = 30; A: min(40, 3 + 30) = 33; B: min(30, 36) = 30, unchanged. B's entry took the values 8, 14, 20, 26, 30 and A's 11, 17, 23, 29, 33: 10 changes in all. Only 2 changes would be needed if B knew A's route went through B itself, which is what poisoned reverse provides. A does not end at 40 because 3 + 30 = 33 through B is cheaper than the direct link.
More Computer Networks questions
- Five routers use distance-vector routing with link costs A-B = 1, B-C = 2, C-D = 1, D-E = 3, A-E = 12, A-D = 7 and B-D = 5. Initially each…
- Dijkstra's algorithm is run from S on an undirected network with link costs S-A 7, S-B 2, S-C 6, A-B 3, B-D 8, A-D 4, B-C 5, C-E 5, D-E 1…
- The block 10.20.64.0/20 is allocated with VLSM, always taking the lowest free addresses and handling requests in this order: LANs needing…
- A router uses longest-prefix matching with these entries: 10.4.0.0/14 -> interface A, 10.6.0.0/15 -> interface B, 10.6.128.0/17 ->…
- A site owns 172.18.72.0/22, 172.18.76.0/23 and 172.18.80.0/22 and wants to advertise them with one prefix. What is the smallest single…
- From the block 192.168.0.0/22, three subnets have already been assigned: 192.168.1.64/26, 192.168.2.0/25 and 192.168.3.240/28. How many…