GATE Computer Science · Operating Systems and Computer Networks · easy
A TCP connection has a Maximum Segment Size (MSS) of 1 KB and an initial congestion window (cwnd) of 1 KB, with slow-start threshold ssthresh = 16 KB. If no segments are lost and every flight is acknowledged in one RTT, what is the size of cwnd after 3 successful RTTs?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: D. 8 KB because slow start doubles cwnd each RTT (1 -> 2 -> 4 -> 8)
During TCP slow start, which applies while cwnd is below ssthresh, the sender increases cwnd by one MSS for every ACK received. Because a whole flight is acknowledged each RTT, the window effectively doubles per RTT. Starting at 1 KB, cwnd is 2 KB after RTT 1, 4 KB after RTT 2 and 8 KB after RTT 3, which is the same as 1 x 2^3. Since 8 KB is still below ssthresh of 16 KB, the connection never leaves slow start in these three round trips, so no switch to linear growth occurs. The common trap is mixing up the two phases: congestion avoidance adds only one MSS per RTT and begins only once cwnd reaches ssthresh. Another trap is miscounting rounds, since the initial window of 1 KB counts as round zero and not as a doubling.
Why the other options are wrong
- A. 4 KB obtained by adding 1 MSS per RTT as in congestion avoidance — Adding 1 MSS per RTT is the additive-increase rule of congestion avoidance, which starts only once cwnd reaches ssthresh. Here cwnd is far below 16 KB, so slow start applies and growth is exponential, giving 8 KB and not 4 KB.
- B. 6 KB obtained by multiplying the initial window by 2 * 3 — The value 6 KB comes from treating growth as linear, 2 x 3, which is not how slow start works. Slow start doubles cwnd each RTT, so the result is 1 x 2^3 = 8 KB, and multiplying by the RTT count is the wrong operation.
- C. 16 KB reaching the slow-start threshold one RTT too early — 16 KB is the window after four doublings (1, 2, 4, 8, 16), so it is reached at the end of RTT 4 and not RTT 3. After three RTTs cwnd is only 8 KB, still half of ssthresh.
More Operating Systems and Computer Networks questions
- Consider a counting semaphore S initialized to 7. If 12 wait(S) (P) operations and 8 signal(S) (V) operations are…
- A paged virtual memory system uses a single-level page table in main memory (access time 100 ns) and a Translation…
- An organization is allocated the CIDR block 192.168.16.0/22. How many usable host IPv4 addresses are available in this…
- A point-to-point link has a bandwidth of 1 Mbps, a one-way propagation delay of 20 ms, and uses 1,000-bit data frames…
- Three processes P1, P2, and P3 arrive at times 0 ms, 1 ms, and 2 ms with CPU burst times of 8 ms, 4 ms, and 2 ms…
- A system has 4 processes (P1..P4) and a single resource type. Each process has a maximum claim of 4 units (Max = [4…
- For the page reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 with 3 initially empty page frames, how many page…
All Operating Systems and Computer Networks questions and the topic overview →
GATE is a mark of the Indian Institute of Science and the Indian Institutes of Technology. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by the GATE Committee.