CS FundamentalsHardGATE CS (PYQ pattern)

An application writes 1 byte every 10 ms (at t = 5, 15, 25, ... ms) for 25 bytes. TCP uses Nagle's algorithm: a small segment is sent only if no data is unacknowledged; otherwise bytes are held until the ACK arrives (or a full MSS accumulates). The RTT is 98 ms and ACKs are immediate. How many segments are sent?

  1. A. 25
  2. B. 4
  3. C. 5
  4. D. 3

Correct answer: B. 4

The first byte goes out at once; then each ACK (98 ms later) releases all bytes buffered meanwhile: segment sizes [1, 9, 10, 5] bytes.

More Computer Networks questions

Exams that ask this topic