当前位置:网站首页>UDP和TCP的对比
UDP和TCP的对比
2022-06-21 16:01:00 【斯沃福德】

- UDP是无连接的,发送之前不需要建立连接,可以单播、多播、广播
TCP是面向连接的(点对点通信),发送之前需要先建立连接 - UDP提供最大努力交付,不保证可靠传输,通过首部中校验和字段的值来检查出无码,然后直接丢弃
TCP提供可靠传输服务,即无差错、不丢失、不重复 - UDP是面向报文的,对应用层传下来的报文既不合并也不拆分,保留报文的边界;
TCP是面向字节流的,发送的数据块视为一连串无结构的字节流,每次发送提取一部分字节封装一个TCP报文段,即TCP不保证接收方收到的数据块与发送方的数据库大小相同。 - UDP的逻辑信道是不可靠信道,TCP则是全双工可靠信道
- UDP适用于IP电话、视频会议的场景,时延小; TCP适用于文件传输
边栏推荐
- 聚焦工业智能化场景,华为云招募合作伙伴,帮助解决转型难题
- The "learning link" database of the learning software is suspected to have leaked information, revealing more than 100million pieces of student information
- 接口自动化加解密
- 模板:P6114 【模板】Lyndon 分解&Runs(字符串)
- 如何判断DNS解析故障?如何解决DNS解析错误?
- 【观察】微软“云+端”全面创新,让混合云更简单、更灵活、更安全
- Résolution des erreurs signalées par qtcreator
- Circular of the State Council on regulating the management of the rental of housing with common property rights (for Trial Implementation)
- Which futures company is better to open an account at present? Is the service charge low and the transaction safe?
- tinymce.init()浏览器兼容问题
猜你喜欢

Reinforcement learning introductory project spinning up (1) installation

中国游戏的“外卷”大时代,中小厂商如何破解出海难题?

Cisco(35)——BGP入门实验

Unittest framework

Machine learning model monitoring (Apria)

使用unittest框架生成测试报告

微信小程序开发入门教程-文本组件介绍

IDC Consulting: in 2022, China's relational database software market is about to change

The first atlas showing the development history of the database in China was officially released!

Postman basic operations
随机推荐
叩富网可以开期货账户吗?安全吗?
未定义的函数或变量【一文讲透】(Matlab)
首批入围企业公示!年度TOP100智能网联供应商评选
Notice on Revising the guidelines for the planning, design and livable construction of housing with common property rights in Beijing (for Trial Implementation)
d改进翻译
带你区分几种并行
云原生监控系统·夜莺近期新功能一览,解决多个生产痛点
Pytest--生成测试报告
Google Earth engine (GEE) - use sentinel-2 data acquisition to obtain the NDVI difference of one month ago (Guatemala as an example)
撰写有效帮助文档的7大秘诀
Cisco(59)——Hub&Spoke MPLS
Cloud native monitoring system - Nightingale's recent list of new functions to solve multiple production pain points
[mathematical modeling] Matlab Application Practice Series (95) - application cases of time series prediction (with matlab code)
Oracle JDBC 驱动
Pytest框架实现前后置的处理
Elegant request retry using guzzle Middleware
学习软件“学习通”数据库疑似发生信息泄露,泄露学生信息达1亿多条
Unittest框架的测试日志
Pingcap was selected as the "voice of customers" of Gartner cloud database in 2022, and won the highest score of "outstanding performer"
数据分析必备:6大步骤+5大类型+2大分析方法