当前位置:网站首页>7. Eleven state sets of TCP
7. Eleven state sets of TCP
2022-07-02 05:17:00 【Wangjiachenga】
TCP Eleven states of
TCP Five states in the process of three handshakes

Three handshake process (5 States )
client and Server side The initial state : closed
The first course : The state of the server changes
closed --> listen Creating networks socket
The second course : The client state changes
closed --> syn_sent Completed the first handshake process Sent syn
The third course : The state of the server changes
listen --> syn_rcvd Receive the first handshake request , And reply send out syn ack
The fourth course : The client state changes
syn_sent --> established Receive the message of the second handshake reply , And send the final confirmation message ack
The fifth course : The state of the server changes
syn_rcvd --> established Receive the confirmation message of the third handshake reply
syn Flood attack :
SYN The attack used TCP Three times mobile phone system , The attack side uses forged IP Address sends a request to the attacked end ,
And the response from the attacked end The message will never reach its destination , Then the attacked end consumes resources while waiting for the connection to be closed ,
If there are thousands of such connections , Host resources will be exhausted , So as to achieve the purpose of attack .
Is to keep the state of the server in syn_rcvd The state of , Consume the resources of the server
TCP Six states in the process of four waves
The normal situation is the following five states :
A special case :
Four waves (6 States )
client and Server side The initial state is : established
The first course : The state of the server changes
established --> fin_wait1 Complete the first wave process send out fin ack
The second course : The client state changes
established --> close_wait Receive the first wave message And send the ack Information
The third course : The state of the server changes
fin_wait1 --> fin_wait2 Receive the second wave message
====================================================
Add : A special case
The server directly received fin and ack Third wave information , Directly by the closing Status replacement fin_wait2 state , The transition to time_wait state
fin_wait1 --> closing
====================================================
The fourth course : The client state changes
close_wait --> last_ack Complete the third wave process send out fin ack
The fifth course : The state of the server changes
fin_wait2 --> time_wait Complete the fourth wave process send out ack
The sixth course : The client state changes
last_ack --> closed Receive the fourth wave message
The seventh course : The state of the server changes
time_wait --> closed Wait for a while (60s 90s 120s)
Add : Optimization can be targeted at time_wait To optimize , prevent time_wait Too many connections in state , The new connection can't get in .
边栏推荐
- Gee series: Unit 3 raster remote sensing image band characteristics and rendering visualization
- Gee: find the spatial distribution and corresponding time of the "greenest" in the Yellow River Basin in 2020 [pixel by pixel analysis]
- 7.1 simulation summary
- Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]
- 7.1模拟赛总结
- Set the default style of scroll bar Google browser
- MMAP zero copy knowledge point notes
- 國產全中文-自動化測試軟件Apifox
- Mysql基础---查询(1天学会mysql基础)
- Lay the foundation for children's programming to become a basic discipline
猜你喜欢

Video cover image setting, put cover images into multiple videos in the simplest way

创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程

Fabric.js 精简JSON

Mysql基础---查询(1天学会mysql基础)

Analyzing the hands-on building tutorial in children's programming

Save the CDA from the disc to the computer
![Gee series: unit 7 remote sensing image classification using GEE [random forest classification]](/img/01/ba9441b7b1efaed85c464316740edb.jpg)
Gee series: unit 7 remote sensing image classification using GEE [random forest classification]

About PROFIBUS: communication backbone network of production plant

黑馬筆記---Set系列集合

el-cascader回显只选中不显示的问题
随机推荐
7.1模拟赛总结
摆正元素(带过渡动画)
Gee: create a new feature and set corresponding attributes
Fabric.js 更换图片的3种方法(包括更换分组内的图片,以及存在缓存的情况)
Feign realizes file uploading and downloading
C case of communication between server and client based on mqttnet
Essence and physical meaning of convolution (deep and brief understanding)
函数栈帧的创建和销毁
Implementation of leetcode two number addition go
Nodejs (02) - built in module
2022阿里巴巴全球数学竞赛 第4题 虎虎生威(盲盒问题、集卡问题)解决思路
ubuntu20.04安装mysql8
Mathematical problems (number theory) trial division to judge prime numbers, decompose prime factors, and screen prime numbers
Summary of database problems
Gee: use of common mask functions in remote sensing image processing [updatemask]
Paddlepaddle project source code
Case sharing | intelligent Western Airport
Preparation for writing SAP ui5 applications using typescript
The El cascader echo only selects the questions that are not displayed
Collectors. Groupingby sort