UDP与IP差异? [英] UDP vs IP- difference?

查看:214
本文介绍了UDP与IP差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,UDP位于传输层和互联网层的IP上。我也知道他们既无连接也不可靠。那么当我们已经拥有IP时,UDP有什么意义呢?区别不是很清楚。非常感谢任何帮助。谢谢!

I understand that UDP resides on the transport layer and IP on the internet layer. I also get that they're both connectionless and unreliable. Then what is the point of UDP when we already have IP? The distinction is not very clear. Any help on this is greatly appreciated. Thanks!

推荐答案


那么当我们已经拥有IP时,UDP有什么意义呢?

Then what is the point of UDP when we already have IP?

多路复用服务。 UDP 端口号可以使用相同的L3标识区分同一主机上的多个服务。使用 IP 只是不能在同一台上托管多个服务并轻松区分它们。

To multiplex services. The UDP port number can differentiate between multiple services on the same host, using the same L3 identification. Using IP only it wouldn't be possible to host multiple services on the same station and easily differentiate between them.

另外,考虑UDP over IPv6的情况。由于IPv6没有错误检查,有人必须执行它: UDP的校验和字段不是可选的

Also, consider the case of UDP over IPv6. Since IPv6 doesn't have error-checking somebody has to perform it: the Checksum field of UDP is not optional.

这篇关于UDP与IP差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆