The GATE Grind

GATE 2024 CS (CS2) – Question 54

Computer Networks · TCP: Flow Control, Congestion Control, Socket API · 2 marks · Numerical answer

Consider a TCP connection operating with a congestion window of size 12 MSS when a timeout occurs due to packet loss. Assuming that all the segments transmitted in the next two RTTs are acknowledged correctly, the congestion window size (in MSS) during the third RTT will be _________

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 4

Explanation

**1. Apply the timeout response.** In the stated conventional TCP model, timeout sets the slow-start threshold to half the previous window: ssthresh = 12/2 = 6 MSS. The congestion window is reset to 1 MSS.

**2. Follow the successful rounds.** During the first post-timeout RTT, the sender uses cwnd = 1. Acknowledging that window grows cwnd to 2 for the second RTT. Successful acknowledgements in that round grow it to 4 for the third RTT.

**3. Check the slow-start threshold.** The third-round window 4 is still below 6, so congestion avoidance has not changed the doubling sequence. **Answer: 4 MSS.** The question asks for the window during the third RTT, not after its acknowledgements.

More TCP: Flow Control, Congestion Control, Socket API questions

All TCP: Flow Control, Congestion Control, Socket API questions →