Question

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 _________

Official answer and solution
Official answer
4
From
Official GATE 2024 answer key

Solution

Apply TCP timeout recovery: set ssthresh to half of cwnd (6 MSS6\text{ MSS}), reset cwnd to 1 MSS1\text{ MSS}, and double cwnd each RTT during slow start.

  1. When a timeout occurs at cwnd=12 MSS\text{cwnd} = 12\text{ MSS}:
    • The slow-start threshold is updated to ssthresh=122=6 MSS\text{ssthresh} = \frac{12}{2} = 6\text{ MSS}.
    • The congestion window is reset to cwnd=1 MSS\text{cwnd} = 1\text{ MSS}, and TCP enters Slow Start.
  2. During the 1st RTT: cwnd=1 MSS\text{cwnd} = 1\text{ MSS}. Since the segment is acknowledged and cwnd<ssthresh\text{cwnd} < \text{ssthresh}, cwnd\text{cwnd} doubles to 2 MSS2\text{ MSS}.
  3. During the 2nd RTT: cwnd=2 MSS\text{cwnd} = 2\text{ MSS}. Since both segments are acknowledged and cwnd<ssthresh\text{cwnd} < \text{ssthresh}, cwnd\text{cwnd} doubles to 4 MSS4\text{ MSS}.
  4. During the 3rd RTT: The congestion window size is 4 MSS4\text{ MSS}.
Final answer

4

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2024 Computer Science and Information Technology - Set 2 (CS2)
Question
54 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.