GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER NETWORKS

Trace TCP window growth after a timeout

3 questions solved the same way, newest first. Back to Computer Networks

How these are solved

Trace congestion window and threshold after a timeout using each question’s stated or conventional restart and RTT-round convention. The 2012 question explicitly starts at 2 MSS and retains a source/key ambiguity and Marks-to-All caveat; do not impose a universal one-MSS restart.

2 marks · NAT
Report issue

Window size in the third RTT after a timeout

Transport, Congestion Control & Traffic Shaping

Question 54, GATE 2024: A TCP connection has congestion window 12 MSS when a timeout occurs. All segments in the next two RTTs are acknowledged successfully. Under textbook timeout slow start, what is the congestion window during the third RTT, in MSS?
Tap to enlarge
Answer & solution

Official answer: 4

Step through it (4 steps)

Approach: Distinguish the window used during an RTT from its value after that RTT’s acknowledgements.

1. Derivation. Under the standard timeout slow-start model, a timeout sets ssthresh to half the old congestion window, 6MSS, and resets cwnd to 1MSS. The first subsequent RTT uses 1 and its successful ACKs grow cwnd to 2; the second uses 2 and grows it to 4. Thus during the third RTT cwnd is 4MSS, still below the threshold. This assumes the textbook one-MSS post-timeout reset and per-round doubling.

2. Explanation and checks. The timeout halves the threshold, not the new sending window: ssthresh becomes 6 while cwnd restarts at 1. Thus the three rounds begin with windows 1,2,4 respectively. Doubling the third round’s window to 8 would describe a later update, and would also require handling the threshold transition. The requested third round begins below ssthresh, so that boundary detail does not affect the answer. This is the stipulated textbook congestion-control model, not a universal statement about every modern TCP implementation.

Original paper, page 37 · Answer key

2 marks · NAT
Report issue

Transport, Congestion Control & Traffic Shaping

Question 27, GATE 2014: A TCP connection has congestion window 32 KB when a timeout occurs. RTT is 100 ms and maximum segment size is 2 KB. Under the usual slow-start/congestion-avoidance model, how long in milliseconds until the window returns to 32 KB?
Tap to enlarge
Answer & solution

Official answer: 1100 to 1300

Our answer: 1100 ms in the standard round model

Step through it (13 steps)

1. Method and setup. A timeout does not simply halve the congestion window and continue linearly: classic TCP resets the window to one segment while setting the slow-start threshold to half the previous window. Count exponential-growth rounds up to that threshold, then linear-growth rounds of one segment each.

2. Work through the result and its assumptions. After timeout, take ssthresh=16KB and cwnd=1MSS=2KB. Slow start doubles 2→4→8→16 in 3 RTTs. Congestion avoidance then adds one 2KB MSS each RTT, taking 8 more RTTs to 32KB. Thus11×100=1100ms, accepted by 1100 to 1300. This uses classic loss recovery, fixed RTT, no further loss, and the usual window-per-round accounting; implementation-specific ACK growth can alter timing.

Original paper, page 13 · Answer key

2 marks · MCQ
Report issue

TCP congestion window after timeout

Transport, Congestion Control & Traffic Shaping

Question 45, GATE 2012: Consider an instance of TCP’s Additive Increase Multiplicative Decrease (AIMD) algorithm where
        the window size at the start of the slow start phase is 2 MSS and the threshold at the start of the first
        transmission is 8 MSS. Assume that a timeout occurs during the fifth transmission. Find the
        congestion window size at the end of the tenth transmission.
        (A) 8 MSS                 (B) 14 MSS                  (C) 7 MSS               (D) 12 MSS
Tap to enlarge
Your answer
Answer & solution

Official answer: Marks to All

Our answer: No unique numerical answer asserted; conditional round models yield 8 MSS (A) or 7 MSS (C).

The official Code A key awards Marks to All; it does not supply a numerical answer or an official explanation. To expose the conventions needed, take transmissions as RTT-sized rounds: the initial windows are 2, 4, 8, 9, 10 MSS, so a timeout in round 5 sets a halved threshold of 5 MSS under the usual round model. If the post-timeout window resets to the stated slow-start value 2 and slow-start growth is capped at the threshold, rounds 6–10 end with windows 4, 5, 6, 7, 8 MSS (A). With a one-MSS timeout restart and the same threshold-capping convention, they end with 2, 4, 5, 6, 7 MSS (C). Literal doubling across the threshold gives still other round traces. ACK-level growth and whether the quoted window belongs to the beginning or end of a transmission also need a convention. These conditional examples explain why one should not present a uniquely established numerical result from this wording; they are not claimed as the exam authority’s reason for the award.

Check: The timeout point matters because halving acts on the current window, not the original threshold. With the stated round trace the current window is 10 MSS, giving a threshold of 5, after which the restart convention determines which option can follow.

Original paper, page 11 · Answer key