当前位置:网站首页>TCP three handshakes and four waves (2022.4.18-4.24)
TCP three handshakes and four waves (2022.4.18-4.24)
2022-04-22 05:18:00 【Look, water is water】
The popular understanding of three handshakes is as follows : The client sends a connection request to the server ( for the first time ), The server receives the information from the client and sends it to the client with verification ( The second time ), The client receives and confirms the verification and sends it to the server ( third time )
Connection request succeeded ;
The text of professional three handshakes is analyzed as follows :
for the first time :
The client initiates... From the server SYN Connect the application and bring your serial port number ( Such as Seq=x), Probably transmitting SYN=1,Seq=x;
The second time :
The server receives the client connection application , send out SYN+ACK( confirm ), The information transmitted to the client is SYN=1,Seq=y( The serial number of the server itself ),ACK=1,ack=x+1;
third time :
The client receives the information from the server and returns it to the client ACK, What is passed to the server is ACK=1,Seq=x+1,ack=y+1; Establishing a connection ;
Four waves are commonly understood as follows : The client completes the task and sends a disconnection request to the server ( for the first time ), The server receives the application but is not ready, and sends a message to the client at this time to make the client wait ( The second time ), Server side
Is fully ready to send a message to the client agreeing to disconnect the application ( third time ), The client disconnects after receiving the disconnection verification request from the server ( The fourth time );
The text of four professional waves is analyzed as follows :
for the first time :
The client sends a disconnection request to the server FIN And bring your serial number ( Such as Seq=u), Probably transmitting FIN=1,Seq=u;
The second time :
The server receives the disconnection application from the client , However, the data may not be completely processed at this time , So let's start with a ACK Confirm that it is sent to the guest server to make it in the state of waiting to be closed , The data transmitted is about :ACK=1,
Seq=v( At this time, the port number in the server state ),ack=u+1;
third time :
The data processing of the server is completed , Formally send to client FIN+ACK notice , There are about FIN=1,ACK=1,Seq=w( At this time, the port number in the server state ),ack=u+1:
The fourth time :
After receiving the message from the server, the client sends it to the server ACK notice , disconnect ; To the server are :ACK=1,Seq=u+1,ack=w+1;
版权声明
本文为[Look, water is water]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210626121571.html
边栏推荐
- Basic security settings of the server
- Batch resolves the IP address of the domain name and opens the web page
- Jackson
- MySQL view character set and proofing rules
- Jackson
- Input and output of scanf and printf (format controller)
- Nexus私服——(三) 在项目实战中使用私服仓库
- The eleventh job of MySQL database - Application of view
- Query result processing
- Anti chattering function and throttling function
猜你喜欢

Junit简介与入门

How to restrict Oracle sub query
![[redis notes] data structure and object: Dictionary](/img/0a/0c78c1f897f3a397a87ebb5f138107.png)
[redis notes] data structure and object: Dictionary

Chapter IX user and authority
![[I. XXX pest detection items] 3. Loss function attempt: focal loss](/img/91/5771f6d4b73663c75da68056207640.png)
[I. XXX pest detection items] 3. Loss function attempt: focal loss

Junit簡介與入門

Go array slice

Dynamic programming -- lc474 One and zero

Mongodb experiment -- data backup and recovery and database optimization

TDD开发模式与DDD开发模式
随机推荐
什么是幂等性
Go language crawler Foundation
Leetcode 1423. Maximum points you can obtain from cards
Summary of common methods, advantages and disadvantages of robot UAV visual obstacle avoidance
Data distribution, correlation analysis and visualization method of data exploratory analysis (EDA)
Measuring the global recursive DNS infrastructure: a view from the edge
What is an iterator
Jackson
Pytorch builds a two-way LSTM to realize time series forecasting (load forecasting)
Swagger UI简介
Analyzing redis distributed locks from the perspective of source code
2022-1-17 to 2022-1-30 iterator mode
scanf、printf的输入输出(格式控制符)
How to dynamically load parameters, pictures and background pictures for RDLC printing reports of ReportViewer
13.9.1-PointersOnC-20220421
[Reading Notes - > statistics] 07-01 introduction to the concept of discrete probability distribution geometric distribution
One way to disable Google cross domain
Tree array
Spark starter: wordcount
[matlab] draw Zernike polynomials