当前位置:网站首页>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 .
边栏推荐
- Nodejs (03) -- custom module
- 从数组中找出和为目标的下标
- Express logistics quick query method, set the unsigned doc No. to refresh and query automatically
- 6.30 year end summary, end of student age
- 数据库问题汇总
- 函数中使用sizeof(arr) / sizeof(arr[0])求数组长度不正确的原因
- 线程池批量处理数据
- Leetcode basic programming: array
- C # picture display occupancy problem
- Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]
猜你喜欢

Fabric.js 精简JSON

How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure

Using QA band and bit mask in Google Earth engine

Disable access to external entities in XML parsing

Fabric.js 右键菜单

Solution: the agent throws an exception error

Creation and destruction of function stack frames

Paddlepaddle project source code
![Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]](/img/ff/59956c2323567cc614458a2bccb642.jpg)
Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]

Fabric.js 将本地图像上传到画布背景
随机推荐
A new attribute value must be added to the entity entity class in the code, but there is no corresponding column in the database table
Solution: the agent throws an exception error
7.1模拟赛总结
Nodejs (02) - built in module
Global and Chinese markets for marine selective catalytic reduction systems 2022-2028: Research Report on technology, participants, trends, market size and share
黑马笔记---Set系列集合
Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]
el-cascader回显只选中不显示的问题
paddle: ValueError:quality setting only supported for ‘jpeg‘ compression
Summary of database problems
Exercise notes 13 (effective letter ectopic words)
视差特效的原理和实现方法
操作符详解
Oracle和MySQL的基本区别(入门级)
【pyinstaller】_get_sysconfigdata_name() missing 1 required positional argument: ‘check_exists‘
C case of communication between server and client based on mqttnet
How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure
JS interview collection test question 1
Gee: remote sensing image composite and mosaic
Fabric.js IText 上标和下标