Three-time handshake to establish a TCP connection

Source: Internet
Author: User

The requester (often called the customer) sends a SYN segment (SYN 1) that indicates the port of the server to which the client intends to connect, and the initial order number (ISN).
The server sends back a SYN segment (SYN 1) that contains the server's initial order number (ISN) as the answer. Also, set the confirmation number to customer's ISN plus 1 to confirm the customer's SYN message segment (ACK is also 1).
The customer must set the confirmation number to the server's ISN plus 1 to confirm the SYN message segment of the server (ACK 1), which notifies the destination host that both parties have completed the connection setup.

The three-time handshake protocol can accomplish two important functions: it ensures that the connection is ready for transmission and unifies the initial sequence number for both parties. The initial sequence number is the transmission sequence number during the handshake and is confirmed: when one side sends its SYN for the connection, it selects an initial sequence number for the connection, and each segment includes the Sequence number field and the confirmation Number field, which allows the two machines to negotiate the sequence number of their respective data streams using only three handshake messages. In general, isn varies over time, so each connection will have a different isn.

Three-time handshake to establish a TCP connection

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.