In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The purpose of this article is to share with you what is the process of shaking hands with three messages to establish a TCP connection. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Without saying much, let's take a look at it with the editor.
The process of establishing TCP connection with three-message handshake is as follows: (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 message segment to the server; (3) after receiving the confirmation message segment from the server, the client process immediately replies to the confirmation message segment; (4) enters the established connection state.
A brief introduction to the handshake of three messages to establish TCP connection
The server process first creates the transmission control block TCB and listens, waiting for a connection request from the client.
The client creates the transmission control block TCB and sends a connection request message segment to the server
After receiving the connection request message segment, the server sends an acknowledgement message segment if it agrees to establish a connection.
After receiving the acknowledgement message segment from the server, the client process immediately replies to the acknowledgement message segment and enters the established connection state.
After receiving the confirmation message segment, the server 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,Transmission Control Protocol) is a connection-oriented, reliable, byte-stream-based transport layer communication protocol defined by RFC 793of IETF.
TCP is designed to adapt to a hierarchical protocol hierarchy that supports multiple network applications. Paired processes in host computers connected to different but interconnected computer communication networks rely on TCP to provide reliable communication services. TCP assumes that it can obtain simple and possibly unreliable Datagram services from lower-level protocols. In principle, TCP should be able to operate on various communication systems connected from hardwires to packet-switched or circuit-switched networks.
The above is what is the process of three-message handshake to establish a TCP connection. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.