GATE / CS ARCHIVE

GATE CSE 2014 SET 1 / QUESTION 27

GATE CSE 2014 Set 1 Q27

Computer Networks · Transport, Congestion Control & Traffic Shaping · Full GATE CSE 2014 Set 1 paper

GATE 2014 Set 1, Q27 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