TCP performance
Congestion window
The sender's own limit on data in flight, grown while all goes well and cut on loss.
TCP sends no more than the smaller of the receiver's window and its congestion window. It grows fast in
slow start, then more carefully, and is halved when a loss signals congestion. Halving takes more from a big
window than from a small one, which is how strangers come to share a link without coordinating, as long as the queue
drops packets rather than holding them all. ss -ti shows it.
Read next
- Window and bandwidth-delay product How much data may be unacknowledged at once; to fill a path it must reach bandwidth × round trip.
- Bufferbloat Delay added by an oversized queue that TCP fills before any packet is dropped.
- TCP Reliable, ordered byte streams between programs: handshake, acknowledgements, retransmission.
- AIMD TCP's rule for sharing a link: add a little each round trip, halve on loss.
- Packet loss Packets that never arrive: TCP resends them and halves its window, so a small loss rate caps its speed.
- Shaping and policing Two ways to hold traffic to a rate: a shaper queues the excess, a policer drops it.