TCP Congestion Window
Cheat sheet · https://pcornel.dk/topic.php?topic=324
Answer
The congestion window is the limit a TCP sender places on itself: how much data may be in flight unacknowledged. It grows while acknowledgments arrive and is cut when loss is detected.
Remember
It is never in a packet — it lives in the sender. Throughput is roughly window ÷ round-trip time, and with loss-based algorithms it falls steeply with loss. Short transfers end in slow start before reaching full speed. BBR tolerates random loss far better than CUBIC.
First checks
ss -ti dst <ip>on the sender — algorithm,cwnd,ssthresh, round-trip time, delivery rate,retrans.sysctl net.ipv4.tcp_congestion_control— the default algorithm.nstat -az | grep -Ei 'retrans|TCPLoss'— system-wide loss counters.- Wireshark throughput and time/sequence graphs — the saw-tooth.
Commands
ss -ti
Verify in this order
connection starts in slow start → window doubles per round trip → congestion avoidance → loss cuts the window → throughput ≈ min(congestion window, receive window) ÷ round-trip time
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=324