CS FundamentalsHardGATE CS

In a network of 5 routers where every pair is directly connected, a source floods a packet: each router that receives it forwards a copy on every line except the one it arrived on, and copies carry a hop counter initialised to 2 that is decremented per hop (a copy arriving with counter 0 is not forwarded). How many packet transmissions occur in total?

  1. A. 16
  2. B. 20
  3. C. 12
  4. D. 8

Correct answer: A. 16

Hop 1: the source sends on its 4 lines (4 transmissions, counter now 1). Each of the 4 receivers forwards on its 3 other lines: 12 transmissions, which arrive with counter 0 and stop. Total 4 + 12 = 16, even though only 4 routers needed the packet.

More Computer Networks questions

Exams that ask this topic