Consider a TCP connection operating at a point of time with the congestion window of size 12 MSS (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all the segments transmitted in the next two RTTs (Round Trip Time) are acknowledged correctly, the congestion window size (in MSS) during the third RTT will be ______
GATE 2024 CS2 Q.54: solution and answer
Answer and solution
ANSWER
The congestion window during the third RTT is 4 MSS.
Official answer: 4Source: Official answer key, GATE 2024 CS2 (IISc Bengaluru)
A timeout is a severe loss signal. TCP sets the slow-start threshold to half the window at the time of loss: MSS.
The congestion window is reset to MSS and TCP re-enters slow start.
First RTT after the timeout: the window is MSS. The single segment is acknowledged, so the window doubles to MSS for the next RTT.
Second RTT: the window is MSS. Both segments are acknowledged, so the window doubles to MSS for the next RTT.
Third RTT: the window is MSS. This is below , so TCP is still in slow start and there is no linear growth yet.
So the congestion window during the third RTT is MSS.
KEY IDEA
After a timeout, TCP sets ssthresh to half the old window and restarts slow start from cwnd = 1 MSS, doubling each RTT while below ssthresh: 1, 2, 4 in RTTs 1, 2, 3.
WATCH OUT FOR
Answering 6 (the new ssthresh) or 7 (counting a fast-recovery style halving plus 1), or starting from 12 and growing linearly. A timeout always resets cwnd to 1 MSS, and slow start doubles until ssthresh is reached.
From the GATE 2024 CS2 paper. Every question of this paper · Download the full paper · All 12 TCP questions, with notes
More TCP questions
- GATE 2022 CS Q.60 · NAT · 2 marksConsider the data transfer using TCP over a 1 Gbps link. Assuming that the maximum segment lifetime (MSL) is…
- GATE 2020 CS Q.55 · NAT · 2 marksConsider a TCP connection between a client and a server with the following specifications: the round trip…
- GATE 2018 CS Q.14 · MCQ · 1 markConsider the following statements regarding the slow start phase of the TCP congestion control algorithm.
- 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).
