CS FundamentalsVery hardProduct company interview · GATE level

Host X sends 10 packets of 1000 bytes each to host Y through two store-and-forward routers. The three links on the path have rates 2 Mbps, 1 Mbps and 4 Mbps in that order. X transmits the packets back to back starting at t = 0; propagation and processing delays are negligible and queues never overflow. At what time has Y completely received the last packet?

  1. A. 50 ms
  2. B. 140 ms
  3. C. 86 ms
  4. D. 82 ms

Correct answer: C. 86 ms

Each packet is 8000 bits, so it takes 4 ms, 8 ms and 2 ms on the three links. The first packet finishes the second link at 4 + 8 = 12 ms. That link is the bottleneck: packets arrive every 4 ms but leave every 8 ms, so packet 10 finishes it at 12 + 9 x 8 = 84 ms and reaches Y after 2 ms more, at 86 ms. 140 ms wrongly sends packets one at a time end to end (10 x 14 ms); 50 ms assumes the first link sets the pace (10 x 4 + 8 + 2).

More Computer Networks questions

Exams that ask this topic