GateAI
TCP Flow and Congestion Control

GATE CSE 2014 Set 1 · Q27

NAT2 marksMedium

Time

Let the size of congestion window of a TCP connection be 32 KB when a timeout occurs. The round trip time of the connection is 100 msec and the maximum segment size used is 2 KB. The time taken (in msec) by the TCP connection to get back to 32 KB congestion window is _________.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 1100 (±200) (±200)

TCP Flow and Congestion Control

Given:

  • Initial Congestion Window (extcwnd ext{cwnd}) before timeout = 32 KB=16 MSS32\text{ KB} = 16\text{ MSS} (since MSS=2 KB\text{MSS} = 2\text{ KB})

  • RTT=100 msec\text{RTT} = 100\text{ msec}

When a timeout occurs in TCP Tahoe/Reno:

  • The slow-start threshold is set to ssthresh=cwnd2=32 KB2=16 KB=8 MSS\text{ssthresh} = \frac{\text{cwnd}}{2} = \frac{32\text{ KB}}{2} = 16\text{ KB} = 8\text{ MSS}.

  • cwnd\text{cwnd} resets to 1 MSS=2 KB1\text{ MSS} = 2\text{ KB}.

Phase 1: Slow Start (exponential growth until cwnd=ssthresh\text{cwnd} = \text{ssthresh}):

  • At start (t=0 RTTt = 0\text{ RTT}): cwnd=1 MSS=2 KB\text{cwnd} = 1\text{ MSS} = 2\text{ KB}

  • After 1 RTT1\text{ RTT}: cwnd=2 MSS=4 KB\text{cwnd} = 2\text{ MSS} = 4\text{ KB}

  • After 2 RTT2\text{ RTT}: cwnd=4 MSS=8 KB\text{cwnd} = 4\text{ MSS} = 8\text{ KB}

  • After 3 RTT3\text{ RTT}: cwnd=8 MSS=16 KB\text{cwnd} = 8\text{ MSS} = 16\text{ KB} (reaches ssthresh\text{ssthresh})

Phase 2: Congestion Avoidance (linear growth by 1 MSS1\text{ MSS} per RTT):

  • After 4 RTT4\text{ RTT}: cwnd=9 MSS=18 KB\text{cwnd} = 9\text{ MSS} = 18\text{ KB}

  • After 5 RTT5\text{ RTT}: cwnd=10 MSS=20 KB\text{cwnd} = 10\text{ MSS} = 20\text{ KB}

  • After 6 RTT6\text{ RTT}: cwnd=11 MSS=22 KB\text{cwnd} = 11\text{ MSS} = 22\text{ KB}

  • After 7 RTT7\text{ RTT}: cwnd=12 MSS=24 KB\text{cwnd} = 12\text{ MSS} = 24\text{ KB}

  • After 8 RTT8\text{ RTT}: cwnd=13 MSS=26 KB\text{cwnd} = 13\text{ MSS} = 26\text{ KB}

  • After 9 RTT9\text{ RTT}: cwnd=14 MSS=28 KB\text{cwnd} = 14\text{ MSS} = 28\text{ KB}

  • After 10 RTT10\text{ RTT}: cwnd=15 MSS=30 KB\text{cwnd} = 15\text{ MSS} = 30\text{ KB}

  • After 11 RTT11\text{ RTT}: cwnd=16 MSS=32 KB\text{cwnd} = 16\text{ MSS} = 32\text{ KB}

Total time taken = 11×RTT=11×100 msec=1100 msec11 \times \text{RTT} = 11 \times 100\text{ msec} = 1100\text{ msec}.

(Depending on whether slow-start transition or timeout detection is counted, the official answer range is 1100 to 1300 msec).

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 Q27 of the GATE CSE 2014 Set 1 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 2014 Set 1.

How GATE tests TCP Flow and Congestion Control

More from GATE CSE 2014 Set 1

Share this solution

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

GateAI solution cardGATE CSE 2014 Set 1 · Q27 · NAT

Let the size of congestion window of a TCP connection be 32 KB when a timeout occurs. The round trip time of the connection is 100 msec and the maximum segment size used is 2 KB. The time taken (in msec) by the TCP connection to get back to 32 KB congestion window is …

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.