Skip to content

GATE CS 2024 Set 2 Q44 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI

Consider a TCP\text{TCP} connection operating at a point of time with the congestion window of size 1212 MSS\text{MSS} (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all the segments transmitted in the next two RTTs\text{RTTs} (Round Trip Time) are acknowledged correctly, the congestion window size (in MSSMSS) during the third RTT\text{RTT} will be __________.

View worked solution

Answer: 4

When a timeout occurs in a TCP connection, the congestion control state is updated as follows:

  1. Slow Start Threshold (ssthreshssthresh) is set to half of the current congestion window size (cwndcwnd): ssthresh=Current cwnd2=122=6 MSSssthresh = \frac{\text{Current } cwnd}{2} = \frac{12}{2} = 6 \text{ MSS}
  2. Congestion Window (cwndcwnd) is reset to 1 MSS1 \text{ MSS}: cwnd=1 MSScwnd = 1 \text{ MSS}

Now, we track the behavior over the subsequent Round Trip Times (RTTs) during the Slow Start phase (since cwnd<ssthreshcwnd < ssthresh):

  • During RTT 1:
    • The congestion window size is cwnd=1 MSScwnd = 1 \text{ MSS}.
    • 11 segment is transmitted and successfully acknowledged.
    • At the end of RTT 1, cwndcwnd doubles: cwnd=1×2=2 MSScwnd = 1 \times 2 = 2 \text{ MSS}.
  • During RTT 2:
    • The congestion window size is cwnd=2 MSScwnd = 2 \text{ MSS}.
    • 22 segments are transmitted and successfully acknowledged.
    • At the end of RTT 2, cwndcwnd doubles: cwnd=2×2=4 MSScwnd = 2 \times 2 = 4 \text{ MSS}.
  • During RTT 3:
    • The congestion window size is cwnd=4 MSScwnd = 4 \text{ MSS}.

Thus, the congestion window size during the third RTT is 4.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets questions