当前位置:网站首页>TCP 3次握手的通俗理解
TCP 3次握手的通俗理解
2022-06-22 10:42:00 【搬仓鼠】
看了很多篇讲TCP握手的文章,不知道是不是我理解的问题,感觉当时明白了,但是后面又忘了,始终不能在脑袋里面形成一个深刻的印象,所以决定自己利用平时生活的例子来加深对TCP握手的记忆,我把它称为外卖原理(嘿嘿,自创)。
外卖小哥,对应客户端
顾客,对应服务器
第一次握手:
外卖小哥打电话告诉顾客订单将会在30分钟送达,问顾客能接收吗?
第二次握手:
顾客回复外卖小哥有时间取外卖。
第三次握手:
外卖小哥打电话告诉顾客已到达指定地点,请顾客来取餐。
==================================================
上面的内容是我几年前写的了,现在发现有点问题,因为例子中如果是打电话,那么两个人已经建立了通信,所以不太符合TCP的握手机制,建议改成发短信的方式,我也觉得挺合理的,修改如下
第一次握手:
外卖小哥发短信告诉顾客订单将会在30分钟送达,问顾客能接收吗?
第二次握手:
顾客短信回复外卖小哥有时间取外卖。
第三次握手:
外卖小哥发短信告诉顾客已到达指定地点,请顾客来取餐。
3次握手完成,就可以等待通信了,顾客到指定地点取餐,见到外卖小哥,打招呼(开始通信),取走外卖,通信完成
边栏推荐
- LeetCode Algorithm 21. 合并两个有序链表
- scrapy.Request() 的 meta参数 数据的传递
- Spark streamlined interview
- Cache penetration tool "Bloom filter"
- Evaluation of scientific research award and entrepreneurship Award
- Free and easy to use, Tencent arm cloud instance evaluation - AI reasoning acceleration
- Super simple C language Snake does not flash screen double buffer
- laravel 开发 文章URL 生成器
- Byte 3: do you know what Eureka is?
- 【直播回顾】战码先锋第六期:共建测试子系统,赋能开发者提高代码质量
猜你喜欢

Isn't this another go bug?

Inftnews | view: market cooling or opportunities for NFT applications

laravel 开发 文章URL 生成器

In 2022, IPv6 deployment and application will be further promoted. How can we comprehensively realize security upgrading and transformation?
![[deep learning] great! The new attention makes the model 2-4 times faster!](/img/03/37584c9f9d6b16e5a5edc87e3eaa6b.png)
[deep learning] great! The new attention makes the model 2-4 times faster!

When the system is reconstructed, I will leave!

iNFTnews | 观点:市场降温或是让NFT应用走向台前的机会

TCP建立连接过程(深入源码理解3次握手)

电装中国采用 Oracle HCM 云技术解决方案加速人力资源数字化转型

【毕业季·进击的技术er】青春不散场
随机推荐
2022陕西省安全员C证考试题库模拟考试平台操作
解决win7任务栏谷歌浏览器chrome图标丢失、异常空白的问题
数据库课程虚拟教研室负责人杜小勇:立足国产数据库重大需求,探索课程体系建设新模式
TCP建立连接过程(深入源码理解3次握手)
事业发展规划
世界上第一个“半机械人”去世,改造自己只为“逆天改命”
laravel 开发 文章URL 生成器
Laravel development article URL generator
从MVC原理开始手敲一个MVC框架,带你体会当大神的乐趣
Byte 3: do you know what Eureka is?
符合我公司GIS开源解决方案的探讨
等重构完这系统,我就提离职!
Construction details of Danzhou clean animal laboratory
Leetcode algorithm The penultimate node in the linked list
Using computed columns in laravel
在 Laravel 中使用计算列
【毕业季·进击的技术er】青春不散场
Byte 2: why is the key of the redis master node expired, but the expired data is still read from the secondary node? How to solve it?
Summary of neural network training trick
libevent的使用