本文共 1291 字,大约阅读时间需要 4 分钟。
udp协议
UDP, User Datagram Protocol, is a transfer protocol, an alternative to TCP.
UDP( 用户数据报协议 )是一种传输协议,是TCP的替代协议。
Its main difference from TCP is that it’s connectionless.
它与TCP的主要区别在于它是无连接的。
This implies that it’s faster, each packet sent is more lightweight, as it does not contain all the information needed in TCP, and it does have a lighter handshake process.
这意味着它速度更快,每个发送的数据包都更轻巧,因为它不包含TCP中所需的所有信息,并且握手过程也更轻松。
The drawback is that UDP is not reliable as TCP.
缺点是UDP不像TCP那样可靠。
In TCP, if a packet gets lost, the protocol is able to handle it and the packet is re-sent.
在TCP中,如果数据包丢失,则协议可以对其进行处理,然后重新发送该数据包。
In UDP, this is not built-in into the protocol, and must be handled at a higher level (built on top of it). There is no built-in check to control if a packet was received, and if it is received correctly.
在UDP中,它不是内置在协议中,必须在更高级别上进行处理(在其之上构建)。 没有内置检查来控制是否接收到数据包以及是否正确接收到数据包。
UDP was defined in in 1980.
UDP在1980年的中定义。
Some of the most notable application protocols that rely on the UDP layer are DNS and DHCP, and more importantly is the base layer of HTTP/3, the next version of HTTP.
依赖UDP层的一些最著名的应用协议是DNS和DHCP,更重要的是HTTP / 3的基础层, HTTP / 3是HTTP的下一版本。
The UDP protocol uses ports to allow communication between processes, like with TCP.
UDP协议使用端口来允许进程之间进行通信,例如使用TCP。
翻译自:
udp协议
转载地址:http://momgb.baihongyu.com/