TCP connection establishment and Termination

Source: Internet
Author: User

TCP connection establishment process and TCP connection termination process 1. TCP connection establishment process-"three handshakes" (1) when the client wants to communicate with the server over TCP, the system first sends a SYN synchronization packet (the SYN bit of the TCP packet header is set) and specifies the server port number to be connected. (2) If the server agrees to the connection, an ACK confirmation packet (The ACK of the TCP packet header is set) will be sent to the client, indicating that the request of the client is accepted, at the same time, the SYN location of the package indicates that the server also wants to communicate with the client. (3) After receiving the package, the client sends an ACK confirmation package to the server to agree. Ii. TCP connection termination process-"4-segment termination sequence" (1) After the Server communicates with the client, the server sends the FIN termination request packet (the FIN bit of the TCP packet header is set), indicating that the communication is ended. (2) the client sends an ACK confirmation packet. (3) the client sends the FIN termination request package to the server. (4) The server returns the ACK confirmation package.

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.