TCP Slow Start and Congestion Window Growth
TCP slow start is the algorithm TCP uses to cautiously discover how much data a network path can carry. It controls a sender-side limit called the congestion window, or cwnd, which is the amount of sent-but-not-yet-acknowledged data TCP may have in transit.
The problem slow start solves
A new TCP connection does not initially know whether the path between sender and receiver is a fast local network or a slow, heavily loaded link. Sending a large amount immediately could fill a router's queue, cause packet loss, and make congestion worse.
Without a mechanism like slow start, every sender might transmit at its application's full rate. Queues would overflow, packets would be discarded, and senders would retransmit data into the same overloaded path. Slow start instead begins with a conservative amount and increases it while the network appears to cope.
The congestion window is separate from the receiver's advertised window. The receiver's window says how much data the receiver can buffer; cwnd estimates how much the network can carry. The sender is limited by the smaller of the two.
Starting with a small window
At the beginning of a connection, TCP sets cwnd to an initial window. Modern TCP implementations commonly start around 10 MSS, although the exact value depends on the implementation and negotiated path limits. MSS, or maximum segment size, is the largest TCP payload that normally fits in one network segment.
For example, if the MSS is 1,460 bytes and the initial window is 10 MSS, the sender can put roughly 14,600 bytes on the wire before it must wait for acknowledgements. It can send those segments back-to-back, but it cannot continue indefinitely without receiving ACKs.
An ACK, or acknowledgement, tells the sender which data the receiver has received in order. TCP acknowledgements are usually cumulative: an ACK for byte 10,001 means the receiver has all earlier bytes too.
How acknowledgements grow cwnd
During slow start, each acknowledgement increases cwnd by approximately the amount of newly acknowledged data, commonly capped at about one MSS per ACK. In a simplified segment-based example:
cwnd = 10 MSS: send 10 segments.- The 10 segments are acknowledged: increase to about
20 MSS. - Send 20 segments; their ACKs increase the window to about
40 MSS. - Continue while acknowledgements arrive and no loss is detected.
This is why slow start is often described as exponential growth. If acknowledgements arrive for an entire window during one round-trip time (RTT), the window roughly doubles once per RTT: 10, 20, 40, 80, and so on.
The growth is not caused by a timer that periodically grants permission to send more. ACKs drive it. Each ACK both confirms delivery and gives the sender room to transmit more data. This relationship is sometimes called the ACK clock: data leaves the sender in response to acknowledgements returning from the network.
Real traffic is less tidy than the example. Receivers may use delayed acknowledgements, packet sizes may differ, and an ACK can cover more or less data than expected. Consequently, the exact increase is byte-based and implementation-dependent rather than a perfect doubling every RTT. The important behavior is that successful delivery produces rapid growth while the window is small.
Reaching congestion avoidance
Slow start does not continue forever. TCP maintains a threshold called ssthresh, short for slow-start threshold. When cwnd reaches that threshold, TCP normally changes to congestion avoidance, a slower growth mode that increases the window approximately linearly rather than doubling it each RTT.
This lets TCP probe for additional capacity without quickly multiplying its sending rate. The transition can also happen after a loss: TCP reduces its estimate of available capacity, then uses slow start to climb back toward the new threshold.
The names may appear in packet-capture tools, operating-system TCP statistics, or incident reports. A connection described as being “in slow start” is not necessarily stalled; it is actively increasing its permitted in-flight data, often quickly.
What packet loss changes
TCP treats packet loss as evidence that the path may be congested. Loss can have other causes, such as a damaged wireless transmission, but the basic TCP response is conservative because congestion is the historically important case.
There are two common ways the sender learns about loss.
Retransmission timeout
If an expected ACK does not arrive before TCP's retransmission timer expires, TCP assumes that data was lost. It retransmits the missing data and sharply reduces cwnd. In the classic behavior, cwnd is reset to roughly one MSS, and ssthresh is set to around half of the previous in-flight amount, subject to minimums.
The sender then enters slow start again, growing from that small window until it reaches ssthresh. After that it uses congestion avoidance. A timeout is treated as a serious signal because the sender received no timely evidence that the path is delivering data.
Duplicate acknowledgements
Suppose one segment is lost but later segments arrive. The receiver cannot acknowledge past the missing segment, so it sends repeated ACKs for the last contiguous byte it received. These are duplicate ACKs. Several duplicate ACKs suggest a gap without requiring the sender to wait for a timeout.
TCP can respond with fast retransmit, immediately resending the likely missing segment. In classic TCP Reno behavior, it also reduces the congestion window roughly by half and enters fast recovery, avoiding a complete reset to one MSS. Once the missing data is recovered, the connection generally continues with congestion avoidance.
Modern TCP implementations may use mechanisms such as selective acknowledgements and different congestion-control algorithms, so the exact reduction and recovery path varies. The central rule remains: successful ACKs let the sender increase cwnd; detected loss stops that growth and causes a reduction.
This feedback loop is what makes TCP share a path with other traffic. It probes for capacity, watches acknowledgements as evidence of successful delivery, and backs off when the network signals that the current sending rate is too high.