Explain TCP slow start. Congestion window starts at 1 MSS, grows exponentially with ACKs…
- User
Explain TCP slow start. Congestion window starts at 1 MSS, grows exponentially with ACKs to gauge network capacity. At ssthresh, switch to linear congestion avoidance.
- Assistant
Explaining TCP slow start and congestion control
TCP slow start begins with the congestion window (cwnd) set to 1 MSS and grows exponentially each RTT as ACKs arrive, doubling cwnd to probe network capacity safely. When cwnd reaches the slow start threshold (ssthresh), TCP switches to congestion avoidance where cwnd increases linearly to prevent congestion, and upon packet loss, cwnd resets to start slow start again. “Slow start” is the name of the phase TCP uses to open a connection up without dumping a full‑window of data into an unknown path and overwhelming it.
On a new flow the sender’s congestion window (cwnd) is set to a small number of maximum‑segment sizes (MSS) – historically 1 MSS, more recent implementations use a higher initial window – and the sender only transmits up to cwnd bytes before it waits for acknowledgements. Each ACK that comes back is treated as a signal that the network delivered a segment successfully, so cwnd is increased. In slow start that increase is multiplicative: over the course of a round‑trip time the window roughly doubles, because you add one MSS to cwnd for every ACK received.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.