TCP slow start

Also known as: slow start

On this page 7

TCP slow start is the phase of TCP congestion control in which a sender begins with a small congestion window and roughly doubles it every round-trip time until it detects loss or reaches a threshold. Among transport protocols in networking, it is the mechanism that lets a new connection probe an unknown path without flooding routers that are already busy.

Despite its name, slow start is not slow in the long run: the growth is exponential, so a connection can reach many megabits per second within a handful of round trips. The name refers to the cautious starting point, which replaced the original practice of sending a full receiver window at once and was introduced after the congestion collapses of the late 1980s.

How TCP slow start grows the congestion window

Slow start works by increasing the congestion window (cwnd) by about one maximum segment size (MSS) for every acknowledged segment. Because each segment sent in one round trip produces one acknowledgment, the window roughly doubles per round-trip time (RTT). The sender may have at most the smaller of cwnd and the receiver window (rwnd) in flight, so flow control and congestion control limit the same transmission from two directions.

The phase ends under one of three conditions. When cwnd reaches the slow start threshold (ssthresh), the sender switches to congestion avoidance, where growth becomes roughly linear. When a retransmission timeout occurs, ssthresh drops to half of the data in flight and cwnd returns to one segment, so slow start begins again. When three duplicate acknowledgments signal a single loss, fast retransmit and fast recovery halve the window without returning to slow start.

The following table traces an idealized connection with an initial window of 10 segments and an MSS of 1,460 bytes, ignoring losses and delayed acknowledgments.

Round tripCongestion windowApproximate data in flight
110 segments14.6 KB
220 segments29.2 KB
340 segments58.4 KB
480 segments116.8 KB
5160 segments233.6 KB
Idealized window growth during slow start

Key parameters that shape slow start

A handful of variables decide how quickly slow start reaches the available capacity and how gently it stops. The initial window matters most for short transfers, while ssthresh and the path bandwidth-delay product matter most for long ones.

ParameterTypical valueEffect
Initial window (IW)10 segments in modern stacksSets how much data the first round trip carries
Slow start thresholdVery large at start, then half of flight size after lossMarks the switch to congestion avoidance
MSS1,460 bytes on Ethernet pathsSets the size of each window increment
Round-trip time1 ms in a LAN to over 600 ms via geostationary satelliteSets the pace of every doubling
Receiver windowUp to 1 GB with window scalingCaps growth regardless of cwnd
Parameters of TCP slow start

The initial window has a documented history. The original specification allowed one segment, later updates raised it to two to four segments (about 4 KB), and RFC 6928 permitted ten segments, roughly 14.6 KB, which is now the common default on Linux, Windows and major content delivery networks. Appropriate Byte Counting (RFC 3465) increases cwnd by the number of bytes acknowledged instead of the number of acknowledgments, which prevents receivers that split acknowledgments from inflating the window.

Slow start is one stage within a larger algorithm, and it is often confused with neighboring mechanisms. The table separates the concepts that govern how much a TCP sender may transmit.

MechanismWhat it controlsGrowth pattern
Slow startProbing of unknown path capacityExponential per RTT
Congestion avoidanceSteady operation near capacityAbout one MSS per RTT in Reno
Fast recoveryResponse to a single detected lossWindow halved, no reset
Flow controlProtection of the receiver bufferFollows advertised rwnd
BBR startupBandwidth estimation from delivery ratePacing gain of about 2.89
Slow start and neighboring mechanisms

Algorithms such as CUBIC and Reno keep the classic slow start and change only the avoidance phase. BBR replaces loss-based slow start with a startup phase that estimates bottleneck bandwidth and minimum RTT, then drains the queue it built. HyStart, used with CUBIC on Linux, exits slow start early when it observes rising delay or tightly spaced acknowledgments, which reduces the burst of losses that pure doubling tends to cause.

Why slow start matters for latency

Slow start dominates the performance of short-lived connections, because most web objects finish before the window reaches the path capacity. A 100 KB response over a path with a 100 ms RTT needs roughly four round trips with an initial window of 10 segments, so total delivery time depends far more on latency than on link bandwidth.

Slow start also recurs after idle periods. RFC 5681 recommends that a sender restart slow start after an idle interval longer than the retransmission timeout, so a persistent connection that pauses between requests may lose its learned window. Linux exposes this behavior through the net.ipv4.tcp_slow_start_after_idle setting, which server operators sometimes disable for long-lived connections serving bursty traffic.

Several techniques reduce the cost of slow start in practice. The table lists common measures and their trade-offs.

TechniqueBenefitTrade-off
Connection reuseKeeps an established windowIdle restart may still apply
Larger initial windowFewer round trips for small objectsLarger bursts into shallow buffers
TCP Fast OpenSends data in the handshakeNeeds cookie support at both ends
Edge servers close to usersShorter RTT per doublingRequires distributed infrastructure
Disabling idle restartAvoids window collapse after pausesRisk of bursts onto changed paths
Techniques that reduce slow start delay

Limitations and common misconceptions

Classic slow start has well-known weaknesses. Doubling usually overshoots the bottleneck, filling buffers and causing several losses in one window, which on paths with deep queues contributes to bufferbloat. On high bandwidth-delay product paths, such as transcontinental fiber or satellite links, many round trips pass before the window fills the pipe.

  • Slow start is not a fixed transfer speed; it is a growth rule that depends on RTT and loss.
  • A larger initial window is not always better, because wireless and access links with small buffers drop the extra burst.
  • Slow start does not happen only once; it returns after timeouts and, by default, after idle periods.
  • Packet loss is not always congestion, yet loss-based slow start treats every drop as a congestion signal.

Put simply

TCP slow start is how a computer feels out a network connection before speeding up. It begins by sending a small amount of data and waits to hear back. Each time the data arrives safely, it sends twice as much next time.

This is like pouring water into a funnel of unknown size: you start with a trickle and pour faster while nothing spills. The moment something overflows, you ease off. The key idea is simple: start small, grow fast, back off at the first sign of trouble.

In practice

An operations team runs an online catalog whose servers sit in one European data center, while many customers browse from Australia with a round-trip time of about 280 ms. Product pages need about 120 KB of HTML and scripts on the first request, which takes four round trips under slow start with an initial window of 10 segments, more than a second before any rendering begins.

The team places cached copies on edge servers in Sydney, which cuts the RTT to about 20 ms, and keeps connections alive between page loads. The same four round trips now take under 100 ms. The outcome is that first page load time drops by roughly one second for Australian visitors without any change to server bandwidth, because the bottleneck was slow start round trips, not link capacity.