GATE Computer Science · Operating Systems and Computer Networks · easy

A TCP connection has a Maximum Segment Size (MSS) of 1 KB and an initial congestion window (cwnd) of 1 KB, with slow-start threshold ssthresh = 16 KB. If no segments are lost and every flight is acknowledged in one RTT, what is the size of cwnd after 3 successful RTTs?

Published · Last updated · checked before publication — how we verify questions

Options

  • A4 KB obtained by adding 1 MSS per RTT as in congestion avoidance
  • B6 KB obtained by multiplying the initial window by 2 * 3
  • C16 KB reaching the slow-start threshold one RTT too early
  • D8 KB because slow start doubles cwnd each RTT (1 -> 2 -> 4 -> 8)Correct answer

Answer: D. 8 KB because slow start doubles cwnd each RTT (1 -> 2 -> 4 -> 8)

During TCP slow start, which applies while cwnd is below ssthresh, the sender increases cwnd by one MSS for every ACK received. Because a whole flight is acknowledged each RTT, the window effectively doubles per RTT. Starting at 1 KB, cwnd is 2 KB after RTT 1, 4 KB after RTT 2 and 8 KB after RTT 3, which is the same as 1 x 2^3. Since 8 KB is still below ssthresh of 16 KB, the connection never leaves slow start in these three round trips, so no switch to linear growth occurs. The common trap is mixing up the two phases: congestion avoidance adds only one MSS per RTT and begins only once cwnd reaches ssthresh. Another trap is miscounting rounds, since the initial window of 1 KB counts as round zero and not as a doubling.

Why the other options are wrong

  • A. 4 KB obtained by adding 1 MSS per RTT as in congestion avoidance — Adding 1 MSS per RTT is the additive-increase rule of congestion avoidance, which starts only once cwnd reaches ssthresh. Here cwnd is far below 16 KB, so slow start applies and growth is exponential, giving 8 KB and not 4 KB.
  • B. 6 KB obtained by multiplying the initial window by 2 * 3 — The value 6 KB comes from treating growth as linear, 2 x 3, which is not how slow start works. Slow start doubles cwnd each RTT, so the result is 1 x 2^3 = 8 KB, and multiplying by the RTT count is the wrong operation.
  • C. 16 KB reaching the slow-start threshold one RTT too early — 16 KB is the window after four doublings (1, 2, 4, 8, 16), so it is reached at the end of RTT 4 and not RTT 3. After three RTTs cwnd is only 8 KB, still half of ssthresh.

All Operating Systems and Computer Networks questions and the topic overview →

GATE is a mark of the Indian Institute of Science and the Indian Institutes of Technology. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by the GATE Committee.