当前位置:网站首页>TCP三次握手为什么不是两次或四次
TCP三次握手为什么不是两次或四次
2022-07-01 00:37:00 【江南无故人】
三次是验证客户端与服务器都可以收发数据的最小次数。如果没有第三次,服务器不能确认自己是否可以正常发送数据,只有收到第三次握手客户端发来的ACK报文才能确认。
三次握手客户端第三次握手发送ACK报文后,客户端就认为连接已经建立,会在客户端维护连接,操作系统管理这些连接需要时间和空间。如果是四次握手,先认为连接建立成功的就是服务器,服务器会消耗空间和时间维护这些连接,和服务器握手的客户端可能很多,所有维护这些连接的成本都嫁接到服务器上是不合适的。而三次握手维护这种连接的成本是客户端承担的,更加合理。
边栏推荐
- Sword finger offer 19 Regular Expression Matching
- 2022-2028 global single travel industry research and trend analysis report
- 【2023联发科提前批笔试题】~ 题目及参考答案
- Pytorch installs and uses GPU acceleration
- Ranger plug-in development (Part 2)
- [original] PLSQL index sorting optimization
- Vnctf 2022 cm CM1 re reproduction
- Share your own terminal DIY display banner
- C # generates PPK files in putty format (supports passphrase)
- 2022-2028 global elevator emergency communication system industry research and trend analysis report
猜你喜欢
[daily record] - bug encountered in BigDecimal division operation
20220215 CTF misc buuctf Xiaoming's safe binwalk analysis DD command separate rar file archpr brute force password cracking
Set different background colors for the border and text of the button
Chapter 53 overall understanding of procedures from the perspective of business logic implementation
Oracle data integrity
Mindjet mindmanager2022 mind map decompression installer tutorial
PHP online confusion encryption tutorial sharing + basically no solution
Host FL Studio fruit music production daw20.9
What if the disk of datanode is full?
Implementation of date class
随机推荐
The principle and related problems of acid in MySQL
连表查询 select 生成
CTF tool (1) -- archpr -- including installation / use process
Interface documentation system - Yapi
The quantity and quality of the devil's cold rice 101; Employee management; College entrance examination voluntary filling; Game architecture design
Oracle-表的创建与管理
Tibetan poem PTA
A proper job is a good job
Hoo research | coinwave production - nym: building the next generation privacy infrastructure
$watch will not trigger data change - $watch not firing on data change
[original] PLSQL index sorting optimization
女朋友说:你要搞懂了MySQL三大日志,我就让你嘿嘿嘿!
What is the difference between Pipeline and Release Pipeline in azure devops?
What should I do without 50W bride price
Oracle table creation and management
Basic data structure of redis
A letter to 5000 fans!
2022 is half way through. It's hard to make money
剑指 Offer 18. 删除链表的节点
MySQL variables, stored procedures and functions