A concise model of TCP sliding window mechanism

Source: Internet
Author: User

Model Diagram :



We can probably look at the model:

  1. 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.
  2. 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.
  3. A the data sent over gradually fills the buffer.
  4. 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.
  5. So repeated.

A concise model of TCP sliding window mechanism

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.