Protocols
Saved & recent

Flow control

Also called: receive window, receiver flow control, credit-based flow control

Flow control prevents a sender from overwhelming the receiver’s available capacity. In TCP, the receiver advertises a receive window that limits how much additional stream data may be outstanding relative to the acknowledged position. Other protocols can express permission using credits or per-stream limits.

Imagine a receiver with room for four more equal-sized chunks. It can advertise that allowance, then increase it as the application consumes buffered data. The sender must also respect congestion control, which protects the network path. A large receive window therefore does not imply the network can sustain an equally large sending rate.

Read first
TCP
Related
Congestion control, Backpressure, TCP
Further reading
sender receiver credit for 4 chunks up to 4 additional chunks chunk 1 chunk 2 4 available slots 2 occupied slots simplified credit model
Simplified credit model: four free buffer slots permit four more chunks. Real TCP advertises a byte window, and congestion limits also apply.

View in the full Protocols collection