IAE Academy

GATE 2020 CS Q.55: solution and answer

GATE 2020 · CSQ.55 · 2 marks · NAT

Consider a TCP connection between a client and a server with the following specifications: the round trip time is 6 ms, the size of the receiver advertised window is 50 KB, slow-start threshold at the client is 32 KB, and the maximum segment size is 2 KB. The connection is established at time t = 0. Assume that there are no timeouts and errors during transmission. Then the size of the congestion window (in KB) at time t + 60 ms after all acknowledgements are processed is ______.

See the question in the paper

Answer and solution

ANSWER

The congestion window at t + 60 ms is 44 KB.

Official answer: 44Source: Official answer key, GATE 2020 CS (IIT Delhi)

  1. Elapsed time is and , so round trips have completed, with all acknowledgements processed.

  2. At the connection starts in slow start with .

  3. In slow start the window doubles every RTT until it reaches the threshold of 32 KB:

  4. After RTT 4, , so slow start ends and congestion avoidance begins (additive increase).

  5. In congestion avoidance the window grows by 1 MSS per RTT:

  6. The receiver advertised window is 50 KB and , so the sending window is not capped by the receiver. The congestion window after 10 RTTs is .

KEY IDEA

Count RTTs (60/6 = 10). Slow start doubles cwnd each RTT from 2 KB up to ssthresh = 32 KB (4 RTTs), then congestion avoidance adds 1 MSS = 2 KB per RTT for the remaining 6 RTTs: 32 + 12 = 44 KB, below the 50 KB receiver window.

WATCH OUT FOR

Starting slow start from 1 KB instead of 1 MSS = 2 KB, or continuing to double past the threshold, or forgetting that the window growth switches to +1 MSS per RTT at ssthresh.

From the GATE 2020 CS paper. Every question of this paper · Download the full paper · All 12 TCP questions, with notes

More TCP questions