UDP(User Datagram Protocol)是一种无连接的网络传输协议,属于互联网协议套件的核心协议之一。它允许计算机之间快速发送数据,但不保证数据的可靠传递和顺序。
/ˌjuː diː ˈpiː/
UDP is faster than TCP because it doesn't require a connection to be established first.
UDP 比 TCP 更快,因为它不需要先建立连接。
Many online games use UDP for real-time communication, since speed matters more than ensuring every single packet arrives.
许多在线游戏使用 UDP 进行实时通信,因为速度比确保每个数据包都到达更重要。
UDP 是 User Datagram Protocol 的缩写,由 David P. Reed 于1980年设计,定义在 RFC 768 中。Datagram 一词由 data(数据)和 -gram(源自希腊语 gramma,意为"书写的东西")组合而成,表示一个独立的数据单元。UDP 的设计初衷是提供一种轻量级、低延迟的传输方式,适用于对速度要求高但可以容忍少量数据丢失的场景。