当前位置:网站首页>TCP三次握手为什么不是两次或四次
TCP三次握手为什么不是两次或四次
2022-07-01 00:37:00 【江南无故人】

三次是验证客户端与服务器都可以收发数据的最小次数。如果没有第三次,服务器不能确认自己是否可以正常发送数据,只有收到第三次握手客户端发来的ACK报文才能确认。
三次握手客户端第三次握手发送ACK报文后,客户端就认为连接已经建立,会在客户端维护连接,操作系统管理这些连接需要时间和空间。如果是四次握手,先认为连接建立成功的就是服务器,服务器会消耗空间和时间维护这些连接,和服务器握手的客户端可能很多,所有维护这些连接的成本都嫁接到服务器上是不合适的。而三次握手维护这种连接的成本是客户端承担的,更加合理。
边栏推荐
- [original] PLSQL index sorting optimization
- Oracle-表的创建与管理
- 酒旅板块复苏,亚朵继续上市梦,距离“新住宿经济第一股“还有多远?
- Vulnerability discovery - App application vulnerability probe type utilization and repair
- 2022-2028 global weight loss ginger tea industry research and trend analysis report
- The question of IBL precomputation is finally solved
- Tibetan poem PTA
- Error msb8031: building an MFC project for a non Unicode character set is deprecated
- Redis based distributed lock
- ArrayList分析1-循环、扩容、版本
猜你喜欢

剑指 Offer 19. 正则表达式匹配

Vnctf 2022 cm CM1 re reproduction

Shift operators

The longest selling mobile phone in China has been selling well since its launch, crushing iphone12

HDU 2488 A Knight's Journey(DFS)

Introduction to ES6 promise, new features of ES7 and es8 async and await

SAP ui5 beginner tutorial 19 - SAP ui5 data types and complex data binding

Share your own terminal DIY display banner

【日常记录】——对BigDecimal除法运算时遇到的Bug

A letter to 5000 fans!
随机推荐
The girlfriend said: if you want to understand the three MySQL logs, I will let you heiheihei!
2022 is half way through. It's hard to make money
Confirm() method of window
Host FL Studio fruit music production daw20.9
Some views on libco
Teach you how to use Hal library to get started -- become a lighting master
A letter to 5000 fans!
Plot size and resolution with R markdown, knitr, pandoc, beamer
Oracle data integrity
优质的水泵 SolidWorks模型素材推荐,不容错过
Experiment 8 T-SQL, stored procedure
Day31-t1380-2022-02-15-not answer by yourself
20220215 CTF misc buuctf the world in the mirror the use of stegsolve tool data extract
【2023联发科提前批笔试题】~ 题目及参考答案
Search rotation sort array
JS bubble sort and select sort
双链表:初始化 插入 删除 遍历
$watch will not trigger data change - $watch not firing on data change
Pytorch installs and uses GPU acceleration
解决 error MSB8031: Building an MFC project for a non-Unicode character set is deprecated.