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 ______.
GATE 2020 CS Q.55: solution and answer
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)
Elapsed time is and , so round trips have completed, with all acknowledgements processed.
At the connection starts in slow start with .
In slow start the window doubles every RTT until it reaches the threshold of 32 KB:
After RTT 4, , so slow start ends and congestion avoidance begins (additive increase).
In congestion avoidance the window grows by 1 MSS per RTT:
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
- GATE 2018 CS Q.25 · NAT · 1 markConsider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (= 10^9 bits-per-second).
- GATE 2026 CS1 Q.18 · MCQ · 1 markWith respect to a TCP connection between a client and a server, which one of the following statements is true?
- GATE 2026 CS1 Q.44 · MCQ · 2 marksA TCP sender successfully establishes a connection with a TCP receiver and starts the transmission of…
- GATE 2026 CS2 Q.58 · NAT · 2 marksConsider a new TCP connection between a sender and a receiver. The receiver advertised window is constant at…
