当前位置:网站首页>TCP和UDP的区别
TCP和UDP的区别
2022-07-20 05:52:00 【神的孩子都在歌唱】
前言:
作者:神的孩子在歌唱
大家好,我叫智
TCPUDP的区别?
什么是TCP
TCP(Transmission Control Protocol传输控制协议)是⼀种⾯向连接的,可靠的,基于字节流的传输通
信协议。
1、tcp(Transmission Control Protocol传输控制协议)
2、传输层协议
3、原因:应⽤层需要可靠的连接,但是IP层没有这样的流机制
4、⾯向连接,即在客户端和服务器之间发送数据之间,必须先建⽴连接
5、位于应⽤层和IP层之间
6、连接需要建立三次握手、四次挥⼿断开连接
7、传输数据时可靠的
TCP连接建立——使用三次握手建立连接
1、客户端发送请求【寻址请求】
2、服务器端收到报⽂请求,回应客户端【确认请求】
3、客户端收到服务端的报⽂进⾏回应。【连接请求】
三次握⼿完成,TCP客户端和服务端成功地建⽴连接,可以传输数据。
TCP终⽌⼀个连接——四次挥⼿
1、数据验证请求码
2、传输结束标记
3、确认结束标记
4、连接断开标记
UDP(User Datagram Protocol用户数据报协议)
1、UDP(User Datagram Protocol⽤户数据报协议)
2、传输层协议
3、⽆连接的数据报协议
4、不能提供数据报分组,组装和不能对数据报进⾏排序
5、主要⽤于不要求分组顺序到达的传输中,分组传输顺序的检查和排序有应⽤层完成。
6、提供⾯向事务的简单不可靠传递服务。
7、UDP协议使⽤端⼝分别运⾏在同⼀台设备上的多个应⽤程序
8、功能:为了在给定的主句上能识别多个⽬的的地址,同时允许多个应⽤程序在同⼀台主句上⼯作并
能够独⽴地进⾏数据包的发送和接受,设计⽤户数据报协议UDP
本人csdn博客:https://blog.csdn.net/weixin_46654114
转载说明:跟我说明,务必注明来源,附带本人博客连接。
边栏推荐
- 磁盤管理和文件系統
- 手动安装Apache
- DNS domain name resolution service
- 天坛机房项目成果汇报
- JSON parsing
- Process and planned task management
- Comparative analysis of server hosting and self built computer rooms
- Sword finger offer II 016 Longest substring without duplicate characters
- Disk management and file system
- HDLC PAP CHAP MGRE综合实验
猜你喜欢
System safety and Application
静态路由的综合实验
进程与计划任务管理
Check if the average CPU load is too high (iowait load is high)
Focus on data | Haitai Fangyuan directly hits the construction idea of data security governance in the securities industry
shell脚本之for循环
北京双线机房的一些分析
Guidance process and service control
进程和计划任务管理
Shell Expect自动化交互
随机推荐
Server firewall software iptables
快速了解Shell函数和数组
Installation and management procedures
Focus on data | Haitai Fangyuan directly hits the construction idea of data security governance in the securities industry
Shell循环语句详解--while、until循环
VRRP虚拟路由器冗余协议
北京双线机房的一些分析
DHCP principle and configuration
HCIA知识总结
Istables firewall
ENSP—NAT综合实验
铜牛机房项目进展报告
目录和文件管理
静态路由—综合实验
Shell脚本三种循环(多例题)
02 linear structure 4 pop sequence (simulation of stack in and stack out)
用C语言数组编写贪吃蛇
Account and authority management
Mysql 安装
编程之路,须铸金蝉之势