GateAI
TCP Flow and Congestion Control

GATE CSE 2024 Set 2 · Q54

NAT2 marksMedium

Time

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\textit{in MSS}) during the third RTT will be ________

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 4 (±0)

TCP Flow and Congestion Control

When a TCP timeout occurs due to packet loss:

  1. Threshold Update:

    ssthresh=max⁡(2,⌊cwnd2⌋)=122=6 MSS\text{ssthresh} = \max\left(2, \left\lfloor \frac{\text{cwnd}}{2} \right\rfloor\right) = \frac{12}{2} = 6\text{ MSS}
  2. Slow Start Initialization:

    cwnd=1 MSS\text{cwnd} = 1\text{ MSS}
  3. Window Growth across RTTs:

    • 1st RTT: cwnd=1 MSS\text{cwnd} = 1\text{ MSS} is transmitted. Upon receiving the ACK, cwnd\text{cwnd} doubles: cwnd=2 MSS\text{cwnd} = 2\text{ MSS}.

    • 2nd RTT: cwnd=2 MSS\text{cwnd} = 2\text{ MSS} are transmitted. Upon receiving both ACKs, cwnd\text{cwnd} doubles: cwnd=4 MSS\text{cwnd} = 4\text{ MSS}.

    • 3rd RTT: Since cwnd=4 MSS<ssthresh=6 MSS\text{cwnd} = 4\text{ MSS} < \text{ssthresh} = 6\text{ MSS}, the transmission during the 3rd RTT uses cwnd=4 MSS\text{cwnd} = 4\text{ MSS}.

Thus, the congestion window size during the 3rd RTT is 4 MSS.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This TCP Flow and Congestion Control previous year question is Q54 of the GATE CSE 2024 Set 2 paper. Find more GATE CSE PYQs on TCP Flow and Congestion Control in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related TCP Flow and Congestion Control PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

TCP Flow and Congestion Control in GATE CSE

TCP Flow and Congestion Control has 23 GATE CSE PYQs across 21 papers from 2012 to 2026. 6 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2024 Set 2.

How GATE tests TCP Flow and Congestion Control

More from GATE CSE 2024 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 2 · Q54 · NAT

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 …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.