CS FundamentalsVery hardProduct company interview · GATE level

A 4800-byte message is sent over a path of 4 store-and-forward links of equal rate (3 routers), with negligible propagation delay. The message is cut into equal packets, each carrying p bytes of data plus a 20-byte header, and the packets are sent back to back. Which of these values of p delivers the whole message soonest?

  1. A. p = 120 bytes
  2. B. p = 1200 bytes
  3. C. p = 480 bytes
  4. D. p = 240 bytes

Correct answer: D. p = 240 bytes

With N packets over k links, the last packet arrives after (N + k - 1) packet transmission times, so the delay is proportional to (4800/p + 3) x (p + 20) byte-times. p = 1200: 7 x 1220 = 8540. p = 480: 13 x 500 = 6500. p = 240: 23 x 260 = 5980. p = 120: 43 x 140 = 6020. So 240 bytes is best: larger packets waste time being stored and forwarded whole at each hop, while at 120 bytes the header overhead starts to dominate.

More Computer Networks questions

Exams that ask this topic