Model Diagram :
We can probably look at the model:
- The first is a three-time handshake between AB to establish a TCP connection. During the interaction of the message, a sends its own buffer size (window size) 3 to b,b, so that both sides know the window size to the end.
- A starts sending data, a continuously sends 3 units of data because he knows the buffer size of B. After this wave of data sent, a can no longer be sent, you need to wait for the confirmation of B.
- A the data sent over gradually fills the buffer.
- When a message in the buffer is read by the process, the buffer has a vacancy, and B sends an ACK to a, which indicates that the window size is 1.
A receives an ACK from B and knows that B resizes the window to 1, so he sends only one unit of data and waits for the next acknowledgment message of B.
- So repeated.
A concise model of TCP sliding window mechanism