当前位置:网站首页>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 .
边栏推荐
- Implementation of leetcode two number addition go
- Briefly introduce chown command
- 数据的储存
- Global and Chinese market of hydrocyclone desander 2022-2028: Research Report on technology, participants, trends, market size and share
- Gee series: Unit 2 explore datasets
- Global and Chinese market of cell culture freezers 2022-2028: Research Report on technology, participants, trends, market size and share
- Fasttext text text classification
- Paddlepaddle project source code
- 7.1模拟赛总结
- Draw a wave chart_ Digital IC
猜你喜欢
Differential identities (help find mean, variance, and other moments)
How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure
Video cover image setting, put cover images into multiple videos in the simplest way
Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]
Dark horse notes -- map set system
Knowledge arrangement about steam Education
How to configure PostgreSQL 12.9 to allow remote connections
Express logistics quick query method, set the unsigned doc No. to refresh and query automatically
Using QA band and bit mask in Google Earth engine
Using Kube bench and Kube hunter to evaluate the risk of kubernetes cluster
随机推荐
There are duplicate elements in leetcode. Go implementation
Fabric.js 基础笔刷
Case sharing | intelligent Western Airport
go实现leetcode旋转数组
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]
Draw a wave chart_ Digital IC
Fabric.js IText 上标和下标
Fabric.js 精简JSON
LeetCode 241. 为运算表达式设计优先级(分治/记忆化递归/动态规划)
js面试收藏试题1
Collectors.groupingBy 排序
Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]
运维工作的“本手、妙手、俗手”
Implementation of go language for deleting duplicate items in sorting array
Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]
Fabric.js 3个api设置画布宽高
Global and Chinese markets of semiconductor laser therapeutics 2022-2028: Research Report on technology, participants, trends, market size and share
7.1 Résumé du concours de simulation
Global and Chinese market of cell culture freezers 2022-2028: Research Report on technology, participants, trends, market size and share
Mapping settings in elk (8) es