User Datagram Protocol

From WikiTech, the free technology encyclopedia

Simple connectionless internet transport protocol (1980)

4 sources from RFC Editor, IBM and Internet Engineering Task Force. Checked by ByteExplained editors on 5 December 2026. How we check facts

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]

Contents
  1. How it works
  2. Uses
  3. See also
  4. References

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] Applications that need a reliable, ordered stream of data are expected to use TCP instead.[1]

Uses

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

  1. ^ RFC 768: User Datagram Protocol. RFC Editor. 1980-08-28. rfc-editor.org
  2. ^ User Datagram Protocol. IBM. ibm.com
  3. ^ RFC 8085: UDP Usage Guidelines. Internet Engineering Task Force. 2017-03. rfc-editor.org
  4. ^ RFC 9000: QUIC: A UDP-Based Multiplexed and Secure Transport. Internet Engineering Task Force. 2021-05. rfc-editor.org
Technologies on WikiTech
Computer networks
Internet
All technologies