In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Tcp / ip: in the osi network reference model, it provides reliable transmission services /
Definition: transmission control protocol
A: the establishment of tcp/ip is accomplished through three handshakes and four waves.
two。 What is a three-way handshake?
First of all, let's assume that syn= "m", syn, means that the client sends a link request to the server, and the server receives the link request from the syn.
Package, the status of the client is: syn_sent
First handshake: when the client sends a syn (m) link request to the server, waits for confirmation from the server, and then the client status is
Syn_sent
Second handshake: when the server receives a link request for the packet of syn (m), the server needs to send an acknowledgement packet ack (masks 1), which means
Yes, I received it. Mroom1 indicates confirmation, and it also sends syn packets, assuming that the second time, syn=n, and then the status of the server is
Syn_recv, that is, the server sent two packets syn and ack this time.
Third handshake: when the client receives the syn and ack packets sent by the server, it sends an acknowledgement packet ack to the server
(Number1), where nail1 indicates confirmation, and then the status of the client and server is establish, that is, the tcp is established.
3. Wave four times:
The Prime Minister finished waving four times and described it with this word: fin = finsh.
First wave: the client sends a disconnect request for fin to the server
Second wave: the server receives the fin request packet sent by the client, and the server does not immediately send the fin packet to the client.
Maybe the server is still transmitting data and cannot be disconnected, so I sent an ack confirmation packet first, meaning, I received your FIN packet, but I
The data has not been sent yet. Please wait a moment.
The third wave: when the server completes the data transfer, then sends a fin packet to the client, which means that I have transferred all the data
That's it. Now we can disconnect.
Fourth wave: when the client receives the FIN packet sent by the server, it sends an ack to the server, which means it can disconnect
And then break the link after two msl periods
As shown below:
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.