Networking & Protocols (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
How does TCP Flow Control (Sliding Window) work?
senior LevelSystem Design
In Simple Words: Prevents a fast sender from overwhelming a slow receiver's buffer:
- The receiver advertises its available buffer space (Receive Window -
rwnd) in every TCP ACK packet. - The sender cannot send more bytes than the advertised
rwnd. - If the receiver buffer fills up, it advertises
rwnd = 0(Zero Window), forcing the sender to halt transmission until the receiver application reads bytes from the buffer.