CS FundamentalsVery hardGATE CS (PYQ pattern)
A TCP sender starts with cwnd = 1 MSS and ssthresh = 16 MSS. Each round trip: if cwnd < ssthresh the window doubles (but never beyond ssthresh), otherwise it grows by 1 MSS. The cwnd values are counted per round (round 1 has cwnd = 1). In round 10 a timeout occurs: ssthresh becomes half the cwnd of that round (minimum 2) and cwnd resets to 1 for round 11. What is cwnd in round 20?
- A. 16
- B. 14
- C. 18
- D. 15
Correct answer: D. 15
Rounds 1-10: 1, 2, 4, 8, 16, 17, 18, 19, 20, 21 (the timeout happens in round 10 with cwnd = 21). ssthresh = 10; from round 11: [1, 2, 4, 8, 10, 11, 12, 13, 14, 15]. Round 20 has cwnd = 15.
More Computer Networks questions
- Two TCP flows (Tahoe and Reno) both start with cwnd = 1 MSS and ssthresh = 16 MSS and grow identically (doubling up to ssthresh, then +1…
- Using the Mathis approximation, throughput = 1.22 x MSS / (RTT x sqrt(p)), what is the steady-state throughput of a TCP flow with MSS =…
- A TCP sender sends a segment at t = 0 with RTO = 1 s, and no ACK ever arrives. After each timeout it retransmits and doubles the RTO, but…
- A sender transmits segments 1 to 10 (one MSS each); segments 4 and 7 are lost, all others arrive. The receiver sends one cumulative ACK…
- A server sends 40 segments to a client over a loss-free path. It starts with cwnd = 1 (slow start doubles it each round trip) and the…
- An application writes 1 byte every 10 ms (at t = 5, 15, 25, ... ms) for 25 bytes. TCP uses Nagle's algorithm: a small segment is sent only…