Skip to content
WebsiteHosting.com

concept Delivery & performance

TCP slow start and congestion window growth

TCP slow start grows the sender’s congestion window as data is acknowledged. Follow three round trips to see why the amount in flight can be smaller than the window, even without loss.

Latest recorded source check · P0156

What it means

A TCP transfer can start below the link’s available bandwidth because the sender limits how much data it will send before hearing back. That limit is its congestion window (cwnd). During slow start, acknowledgments of new data let the window grow. A faster link does not, by itself, give the sender a larger starting window.

The window is an allowance. The flight is the data actually sent but not yet acknowledged. To see why the distinction matters, follow both through the same three round trips.

Try it

Simulation. Compare round 2 with and without a timeout. Start with Timeout round at 0 (none), then change only that setting to 2. Look first at how much data was in flight in round 2, then at the window available to start round 3. Use Reset to return to the no-timeout example.

TCP slow start and congestion window growth

Explain cwnd/RTT growth and why available bandwidth is not instant throughput

Simulation
Modeled outcome: Trace

The shown flight, ACK and congestion-window sequence follows the bounded ACK/timeout model, not measured throughput.

TCP slow start and congestion window growth: synthetic scenario inputs
Replaces all inputs with the documented starting example and the indicated change. Reset restores the starting example.
Congestion window, actual flight and acknowledgment

Round decisions

  1. Round 1slow start; ACK
  2. Round 2slow start; ACK
  3. Round 3avoidance; ACK

Stipulated limits

  1. Receiver allowance32 SMSS
  2. Pipe per round10 SMSS
  3. RTT-slot time300 ms
RTT roundWindow beforeSMSSFlightSMSSACKedSMSSWindow afterSMSSThreshold afterSMSS
1444816
28881616
31610101616

All columns use SMSS. A timeout row represents an RTO outcome, not the duration of a timer. The threshold is the value after the row; RTT-slot time is synthetic.

Evaluated inputs

Required scenario evidence
provided
Initial congestion window
4 SMSS
Initial slow-start threshold
16 SMSS
RTT rounds
3 count
Receiver allowance
32 SMSS
Synthetic per-round bottleneck capacity
10 SMSS
Timeout round (0 = none)
0 round
RTT
100 ms

Illustrative Reno-like aggregate model, all data in each flight ACKed once unless specified timeout; clamp growth at threshold, choose avoidance at equality, no fractional ACK state or fast recovery. Timeout event represents an RTO outcome without modeling timer duration; elapsedMs is RTT-slot time, not actual timeout elapsed. Pipe is an artificial per-slot cap, not actual loss/throughput. ssthresh uses flight/2 floored in whole SMSS; not universal TCP behavior.

About this model

The controls set only a local, bounded scenario. The computed branch is not a verdict about a live system. Inputs listed as not evaluated did not participate in this branch after validation.

Reset restores the original inputs. It does not change the open or closed state of help or FAQ answers.

The starting window is 4 SMSS. One SMSS is the sender’s maximum segment size; here, 4 SMSS means an amount of data equal to four full-sized segments. The slow-start threshold is 16 SMSS, the receiver allows 32 SMSS, and an artificial bottleneck caps each round’s flight at 10 SMSS. Each round represents one 100 ms round-trip time (RTT).

Here is the no-timeout result. All data amounts are in SMSS, and the threshold stays at 16.

Round and phaseWindow beforeFlightNewly acknowledgedWindow after
1: Slow start4448
2: Slow start88816
3: Congestion avoidance16101016

With a timeout in round 2, the flight is still 8 SMSS. What changes is the acknowledgment: the model credits 0 instead of 8. It sets the threshold to 4 SMSS, half the outstanding flight, and the window to 1 SMSS. Round 3 can therefore send only 1 SMSS. Acknowledging that data grows the window to 2. Both timelines span three 100 ms slots; neither calculates how long a real sender waits for a retransmission timer to expire.

What makes the window grow

Read each row from left to right. The smallest of the starting window, the receiver allowance, and the artificial bottleneck cap sets the flight. Unless there is a timeout, the model counts that whole flight as newly acknowledged. It adds this amount to the window in slow start, stopping at the threshold. The final value in one row becomes the starting window in the next.

That explains the first two doublings: each flight filled its window, and all of it was acknowledged. Doubling is not a rule that runs on a clock. For instance, with a receiver allowance of just 2 SMSS, only 2 of the initial 4 SMSS can be sent. Acknowledging them takes the window from 4 to 6, not 8.

The third row shows a different boundary. At the threshold, this model switches to congestion avoidance. It adds 1 SMSS only for a fully used, acknowledged window. The cap of 10 leaves part of the 16-SMSS window unused, so the window stays at 16 despite the acknowledgment. With room for a full flight of 16, the same avoidance rule would grow the window to 17.

A timeout round is an event selector, not a second duration limit. With three modeled rounds, selecting timeout round 4 is valid and leaves the three-round trace unchanged. Set it to round 2 instead: the second flight contains 8 SMSS, none is acknowledged in that row, and the next window is 1 SMSS with threshold 4. The third round starts from 1, not from the old window of 8. This is a modeled response to a timeout, not a calculation of the timeout interval.

In practice

When interpreting a transfer, line up the sender’s window and threshold with the outstanding and newly acknowledged data over the same interval. If the flight was smaller than the window, check the receiver’s allowance and whether the application had more data ready to send. A small flight alone does not establish a bottleneck or a timeout. Here the cap and the timeout are separate inputs, not conditions inferred from traffic.

The timeline is a simplified Reno-like example, not a prediction for every TCP sender. It groups acknowledgment progress by round and does not simulate fast recovery. CUBIC, for example, uses a time-based target and a Reno-friendly comparison in congestion avoidance; the one-SMSS growth rule here does not implement CUBIC.

Use the window to answer “How much outstanding data would the sender allow?” To answer “How much useful data got through, and how quickly?”, look for delivered data and elapsed time from the actual transfer. Neither the window size nor the link’s bandwidth answers that second question on its own.

Frequently asked questions

Editorial questions based on the listed sources and explicitly labeled local examples.

Does slow start always double each RTT?

Only with a simplified full-flight ACK scenario below the threshold. In the example, a 10-SMSS pipe cap can restrict flight even when cwnd is 16. The threshold and the stipulated ACK and timeout rules, not RTT alone, determine the next window.

What happens at the threshold?

RFC 5681 distinguishes slow start below ssthresh and congestion avoidance above it, permitting either at equality. This model chooses avoidance at equality.

Why does loss not always halve cwnd?

The loss signal and algorithm matter. In the modeled retransmission-timeout case the loss window is one SMSS and ssthresh derives from outstanding flight size; fast recovery is different.

Is the receiver window the congestion window?

No. The receiver’s advertised allowance and sender congestion window are separate constraints. The example also stipulates a per-round service bound.

Sources & model boundaries

Primary references used for this explanation. The interactive example is an educational model, not a live check.

  1. RFC 5681: TCP Congestion Control

    3.1. Slow start and congestion avoidance have different growth rules. For the applicable timeout response, FlightSize rather than cwnd bounds ssthresh.

    Checked .

  2. RFC 9438: CUBIC for Fast and Long-Distance Networks

    §§3.1,4.2. CUBIC congestion avoidance uses a time-based target and Reno-friendly comparison. The slow-start example is not a complete CUBIC implementation.

    Checked .

Report an issue. Include the article URL and ID, not passwords or access keys.