当前位置:网站首页>TCP协议三次握手过程
TCP协议三次握手过程
2022-07-04 21:16:00 【天渺工作室】
常见前端面试题 TCP协议三次握手过程

1.第1次握手 建立连接
客户端向服务器发送的报文SYN包信息中SYN码为1
2.第2次握手 服务器回应客户端,用于接受并连接请求
服务器返给客户端的的报文SYN码和ACK码都为1,也称呼为syn-ack报文信息。
3.第3次握手 客户端最终发给服务器的,用来确认服务器回复的。
客户端最终发给服务器的报文信息ACK码为1,我们称呼为ack包。
4.第4次 也就是俗称的 最终断开连接。
总结
1次握手:客户端发带有syn码的标志连接数据包服务器。
2次握手:服务器返回syn+ack标志的连接请求+回复数据给客户端。
3次握手:客户端最终发ack标志的数据给服务器。建立连接,可以传输数据了。
边栏推荐
- MP3是如何诞生的?
- Keep on fighting! The city chain technology digital summit was grandly held in Chongqing
- How to use concurrentlinkedqueue as a cache queue
- [early knowledge of activities] list of recent activities of livevideostack
- QT—绘制其他问题
- Use of class methods and class variables
- CAD中能显示打印不显示
- 输入的查询SQL语句,是如何执行的?
- ArcGIS 10.2.2 | solution to the failure of ArcGIS license server to start
- Golang面试整理 三 简历如何书写
猜你喜欢

IIC (STM32)

torch. Tensor and torch The difference between tensor

解读创客教育中的各类智能化组织发展

Lambdaquerywrapper usage
![[wechat applet] collaborative work and release](/img/14/2658cf0ba6be9432c74b2490e53d05.png)
[wechat applet] collaborative work and release

GTEST from ignorance to proficiency (3) what are test suite and test case
![[ 每周译Go ] 《How to Code in Go》系列文章上线了!!](/img/bf/77253c87bfa1512f4b8d3d8f7ebe80.png)
[ 每周译Go ] 《How to Code in Go》系列文章上线了!!
![Jerry's ad series MIDI function description [chapter]](/img/d7/348d85eb9f69ffd75612eeba56b16e.png)
Jerry's ad series MIDI function description [chapter]

redis03——Redis的网络配置与心跳机制

Billions of citizens' information has been leaked! Is there any "rescue" for data security on the public cloud?
随机推荐
redis RDB AOF
How was MP3 born?
How was MP3 born?
做BI开发,为什么一定要熟悉行业和企业业务?
Delphi SOAP WebService 服务器端多个 SoapDataModule 实现相同的接口方法,接口继承
Numpy vstack and column_ stack
gtest从一无所知到熟练使用(2)什么是测试夹具/装置(test fixture)
巅峰不止,继续奋斗!城链科技数字峰会于重庆隆重举行
Exclusive interview of open source summer | new committer Xie Qijun of Apache iotdb community
Redis has three methods for checking big keys, which are necessary for optimization
In the release version, the random white screen does not display the content after opening the shutter
应用实践 | 蜀海供应链基于 Apache Doris 的数据中台建设
Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
How much is the minimum stock account opening commission? Is it safe to open an account online
Interpreting the development of various intelligent organizations in maker Education
Daily question-leetcode556-next larger element iii-string-double pointer-next_ permutation
解析互联网时代的创客教育技术
Redis pipeline
Go language loop statement (3 in Lesson 10)
Daily question -leetcode1200- minimum absolute difference - array - sort