Flow Control
Situation
When there are a quick sender and a slow receiver
Result
Slow receiver will fail to receive the data -> cause loss of data and require the sender to re-send it
Solution
Need flow control to negotiate the speed of transmission
Sliding Window
There are two Sliding windows, sender window and receiver window
Sender Window | Receiver Window | |
---|---|---|
Data In Window | data that can be sent or is not yet acknowledged | Indicate data that can be received |
Sliding | Sliding when the smallest data is acknowledged | Sliding when the smallest data is received |