Small story understanding three handshake when TCP/IP connection

Source: Internet
Author: User
Tags server resume

In the TCP/IP protocol, the TCP protocol establishes a reliable connection through three handshakes, as follows:

The following is a small story to understand the specific meaning of the three-time handshake:

One day, the small guest ( client ) is ready to go to the small service ( server ) home to give gifts ( ready to connect with the server ), when walking to the door of the small house found that the small house door locked,

Then shouted, "Little suit, you open the door (try to connect with the server resume), I am a small guest ( send synchronization sequence number Synchronize Sequence Numbers

, identification information ) ", at this point, the small guest enters the state waiting for the response of the small service (the client enters Syn_send), ( thus realizing the first handshake ).

The small suit received the request message from the small guest, replied, "Come, and open the door ( server responds to client requests, establish connection )", at this time the small service has confirmed the arrival of small guests ( service

The syn_recv state ), ( thus achieving a second handshake between the two parties ).

When the small guest received the response information of the small service, and found that the door has been successfully opened (to establish a successful connection ), then the gift to the small service ( send a confirmation packet to the server ), the

After receiving the gift, the small suit closes the door. ( the connection is complete and interrupted, the client and the server enter the established state simultaneously ), ( thus achieving the third handshake ).

The qualifications are shallow, understand poorly, please place and understanding.

Small story understanding three handshake when TCP/IP 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: 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.