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

三次是验证客户端与服务器都可以收发数据的最小次数。如果没有第三次,服务器不能确认自己是否可以正常发送数据,只有收到第三次握手客户端发来的ACK报文才能确认。
三次握手客户端第三次握手发送ACK报文后,客户端就认为连接已经建立,会在客户端维护连接,操作系统管理这些连接需要时间和空间。如果是四次握手,先认为连接建立成功的就是服务器,服务器会消耗空间和时间维护这些连接,和服务器握手的客户端可能很多,所有维护这些连接的成本都嫁接到服务器上是不合适的。而三次握手维护这种连接的成本是客户端承担的,更加合理。
边栏推荐
- 【日常记录】——对BigDecimal除法运算时遇到的Bug
- Metauniverse and virtual reality (II)
- Set different background colors for the border and text of the button
- JS bubble sort and select sort
- Ybtoj exchange game [tree chain splitting, line segment tree merging]
- Vnctf 2022 cm CM1 re reproduction
- Hoo research | coinwave production - nym: building the next generation privacy infrastructure
- Longest valid bracket
- C#生成putty格式的ppk文件(支持passphrase)
- ArrayList分析1-循环、扩容、版本
猜你喜欢

Ranger plug-in development (Part 2)

Vnctf 2022 cm CM1 re reproduction

NE555波形发生器手把手教程之NE555内部结构(一)

Using C language to realize the exchange between the contents of two arrays (provided that the array is the same size)

魔王冷饭||#101 魔王解惑数量多与质量;员工管理;高考志愿填报;游戏架构设计
![[daily record] - bug encountered in BigDecimal division operation](/img/82/3105586841076b9bb1c57eac221ddf.png)
[daily record] - bug encountered in BigDecimal division operation

P4 learning - Basic tunneling

20220215-ctf-misc-buuctf-ningen--binwalk analysis --dd command separation --archpr brute force cracking

Member management applet actual development 07 page Jump

Mindjet mindmanager2022 mind map decompression installer tutorial
随机推荐
Introduction to ES6 promise, new features of ES7 and es8 async and await
Tcp/ip protocol stack, about TCP_ RST | TCP_ ACK correct attitude
第53章 从业务逻辑实现角度整体性理解程序
[LeetCode] 爬楼梯【70】
leetcode 474. Ones and zeroes (medium)
P4学习——Basic Tunneling
[daily record] - bug encountered in BigDecimal division operation
Docsify building a personal minimalist knowledge warehouse
C#生成putty格式的ppk文件(支持passphrase)
Sword finger offer 19 Regular Expression Matching
$watch will not trigger data change - $watch not firing on data change
Host FL Studio fruit music production daw20.9
Authentication principle of Ranger plug-in
Shift operators
2022-2028 global PTFE lined valve industry research and trend analysis report
PyTorch安装并使用gpu加速
Deployment of mini version message queue based on redis6.0
Is the public read-only field with immutable structure valid- Does using public readonly fields for immutable structs work?
【2023联发科提前批笔试题】~ 题目及参考答案
Integer to hexadecimal string PTA