This is an old version, saved 5 Dec 2026, 00:29 by TechWritereditor. See the current version.
User Datagram Protocol
User Datagram Protocol (UDP) is one of the core protocols of the TCP/IP suite: a minimal way for programs to send individual messages, called datagrams, to one another across the Internet.[1] It was specified by Jon Postel in RFC 768, published in August 1980, and is an Internet Standard (STD 6).[1]
How it works
UDP adds very little to the underlying Internet Protocol. Each datagram carries an eight-byte header with four fields: a source port, a destination port, a length and a checksum.[1][2] The ports identify which program on each computer the message belongs to, and the source port is optional.[1] The checksum lets the receiver detect damaged data; it is calculated over the header, the data and a "pseudo header" containing the source and destination IP address, which helps catch misdelivered datagrams.[1] Within IP, UDP is identified by protocol number 17.[1]
Unlike TCP, UDP does not set up a connection before sending, and it makes no promise that a datagram will arrive, arrive only once, or arrive in order.[1][2] Lost packets are not resent, and invalid datagrams are simply thrown away.[2] Applications that need a reliable, ordered stream of data are expected to use TCP instead.[1]
Uses
This "best-effort" approach avoids the delay and bookkeeping of setting up and closing connections, which suits short exchanges and real-time traffic.[2] UDP is also used for multicast and broadcast, and for tunnelling other protocols.[2] Protocols such as the Domain Name System, the Session Initiation Protocol and RTP for real-time media run over UDP.[3] Because UDP has no congestion control of its own, IETF guidance says applications built on it must take care not to overload the network.[3]
UDP has gained new importance as a foundation for other transports. QUIC, a secure general-purpose transport protocol standardised by the Internet Engineering Task Force in 2021, carries its packets inside UDP datagrams so that it can pass through existing networks and systems.[4]
See also
References
- ^ RFC 768: User Datagram Protocol. RFC Editor. 1980-08-28. rfc-editor.org
- ^ The User Datagram Protocol (UDP). University of Aberdeen. erg.abdn.ac.uk
- ^ RFC 8085: UDP Usage Guidelines. Internet Engineering Task Force. 2017-03. rfc-editor.org
- ^ RFC 9000: QUIC: A UDP-Based Multiplexed and Secure Transport. Internet Engineering Task Force. 2021-05. rfc-editor.org