Question
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 _________.
Official answer and solution
- Accepted answers
- 1100 to 1300
- From
- Official GATE 2014 answer key
Solution
Follow the TCP Tahoe/Reno congestion control cycle from timeout through slow start up to ssthresh, followed by linear congestion avoidance to 32 KB.
Given parameters:
- Congestion window when timeout occurs: (since ).
- RTT = .
Upon timeout:
- .
- is reset to .
Phase 1: Slow Start (exponential growth, doubling cwnd every RTT):
- Start (): .
- After 1 RTT (): .
- After 2 RTT (): .
- After 3 RTT (): .
Slow start ends at 3 RTTs.
Phase 2: Congestion Avoidance (linear growth, increasing by 1 MSS = 2 KB per RTT):
- After 4 RTT (): .
- After 5 RTT (): .
- After 6 RTT (): .
- After 7 RTT (): .
- After 8 RTT (): .
- After 9 RTT (): .
- After 10 RTT (): .
- After 11 RTT (): .
Total elapsed time = .
1100
Continuing exponential doubling past ssthresh (16 KB), rather than switching to linear additive increase.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 1
- Question
- 37 of 65, printed as CS Q.27
- 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.