Home >Common Problem >What is the process of establishing a TCP connection using a three-packet handshake?

What is the process of establishing a TCP connection using a three-packet handshake?

藏色散人
藏色散人Original
2020-06-29 09:25:355157browse

The process of establishing a TCP connection with a three-package handshake is: 1. The server process first creates the transmission control block TCB and is in the listening state; 2. The client creates the transmission control block TCB and sends a connection request report to the server. segment; 3. After the client process receives the confirmation segment from the server, it immediately replies with the confirmation segment; 4. Enters the established connection state.

What is the process of establishing a TCP connection using a three-packet handshake?

Brief description of three-message handshake to establish TCP connection

The server process first creates the transmission control block TCB , and is in the listening state, waiting for the client's connection request

The client creates the transmission control block TCB and sends the connection request segment to the server

After the server receives the connection request segment, If the connection is agreed to be established, a confirmation message segment is sent

After the client process receives the confirmation message segment from the server, it immediately replies with a confirmation message segment and enters the established connection state

Server After receiving the confirmation message segment, it also enters the established connection state

The transmission control block TCB (Transmission Control Block) stores some important information in each connection

Related introduction :

Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol, defined by IETF's RFC 793.

TCP is designed to accommodate a layered protocol hierarchy that supports multiple network applications. TCP is relied upon to provide reliable communication services between pairs of processes in a host computer connected to different but interconnected computer communication networks. TCP assumes that it can obtain simple, possibly unreliable datagram services from lower-level protocols. In principle, TCP should be able to operate on top of a variety of communications systems, from hardwired connections to packet-switched or circuit-switched networks.

The above is the detailed content of What is the process of establishing a TCP connection using a three-packet handshake?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn