Interview Prep/Networking/Network Models, TCP, UDP & Ports

How does TCP flow control differ from congestion control?

IntermediateConceptNetwork Models, TCP, UDP & Ports
Answer

Flow control protects the receiver: it advertises a receive window (rwnd) telling the sender how much unacknowledged data it can have in flight. Congestion control protects the network: the sender keeps a congestion window (cwnd) and grows or shrinks it based on loss or delay signals.

The sender's effective window is min(rwnd, cwnd). Slow start doubles cwnd per RTT until a threshold, then congestion avoidance grows it linearly.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports