Flow Control & Receive Window
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
A fast sender can overwhelm a slower receiver even when the network path is fine. TCP flow control advertises how much buffer the receiver has so the sender cannot run ahead of it.
On the wire
Every ACK carries the receiver window, the number of bytes beyond the acknowledgment number the receiver is willing to accept. The sender may have at most that much unacknowledged data in flight, and a zero-window advertisement forces small probe packets.
When it breaks
An application that stops reading lets its receive buffer fill, shrinking the advertised window to zero and stalling the connection. A lost window update can keep the sender waiting until a persist timer probes, even though the receiver has already freed space.
Sliding window lab
ACKs slide the window forward; a lost segment blocks cumulative acknowledgment.
Unacknowledged bytes allowed in flight
Throughput ≈ window / RTT
Each cumulative ACK frees buffer space and slides the window one segment to the right.