Generated by GPT-5-mini| UDP | |
|---|---|
| Name | UDP |
| Title | User Datagram Protocol |
| Developer | David P. Reed |
| Introduced | 1980s |
| Layer | Transport layer |
| Port | Various |
| Related | TCP/IP, Internet Protocol, Transmission Control Protocol, IPX/SPX |
UDP
UDP is a core Internet Protocol transport protocol developed in the early 1980s alongside projects such as DARPA, ARPANET, BSD Unix, TCP/IP. It provides a simple, connectionless datagram service used in systems and applications tied to standards like RFC 768, IPv4, IPv6, sockets.
UDP operates within the Internet Protocol Suite as a minimal transport layer mechanism comparable to Transmission Control Protocol but lacking connection setup, guaranteeing features, or complex state as found in OSI model discussions and texts such as Computer Networking: A Top-Down Approach. UDP is widely used in networked systems built by organizations such as Cisco Systems, Juniper Networks, Microsoft and in protocols including Domain Name System, Dynamic Host Configuration Protocol, Real-time Transport Protocol, Trivial File Transfer Protocol. Implementations appear in stacks for products from Google services to Apple Inc. devices and research in venues like SIGCOMM and USENIX proceedings.
UDP is specified to run over Internet Protocol versions, interoperating with IPv4, IPv6 and used in encapsulation approaches such as GRE and IPsec where simple datagram semantics are required. The architecture omits the sequencing, retransmission, and congestion-control layers present in Transmission Control Protocol and instead exposes packet boundaries to applications such as VoIP stacks, QUIC experiments, SIP deployments, and DNS resolvers. Operation uses checksum verification fields similar to mechanisms in ICMP and interacts with Network Address Translation behavior studied by IETF working groups and documented in standards by IETF and IAB.
The UDP header consists of four 16-bit fields specified in RFC 768: source port, destination port, length, and checksum. Ports map to services enumerated by IANA and known ports for protocols like DNS, NTP, SNMP; ephemeral allocation strategies are discussed in RFC 6056 and implemented in stacks from Linux kernel, FreeBSD, Windows NT. The checksum semantics relate to concepts in Internet checksum literature and to checksum offload features in hardware from Intel Corporation and Broadcom NICs. Tools from Wireshark, tcpdump, Netcat and iperf allow inspection of these fields in packet captures during events such as DDoS attacks and during performance testing reported at conferences like USENIX FAST.
UDP underpins latency-sensitive services including Voice over IP, video streaming, online gaming, Domain Name System lookups, DHCP provisioning, and multicast services like IP multicast used by broadcasters and content delivery systems such as Akamai Technologies or research platforms like PlanetLab. It is employed by modern protocols including QUIC (as a substrate), by tunneling systems such as WireGuard, and by telemetry frameworks like Prometheus exporters or SNMP agents. Emerging use cases appear in cloud platforms run by Amazon Web Services, Google Cloud Platform, Microsoft Azure where UDP-socket-based services are scaled using orchestration systems such as Kubernetes.
Because UDP lacks built-in retransmission and congestion control, reliability is implemented at higher layers by protocols or applications such as RTP with RTCP feedback, SCTP-like alternatives, or custom schemes described in RFC 8085. Flow control and congestion mitigation are the responsibility of stacks and middleware used by vendors like Cisco Systems and researchers at MIT or Stanford University. Security concerns include amplification in UDP reflection attack incidents, exploitation of services such as NTP or DNS in large-scale incidents recorded in reports by CERT/CC, ENISA, and mitigations are proposed in documents by IETF and implemented in firewalls from Palo Alto Networks and Fortinet.
UDP implementations exist in operating systems including Linux kernel, FreeBSD, OpenBSD, NetBSD, and Windows NT with performance influenced by features such as zero-copy, checksum offload, Large Receive Offload, interrupt moderation, and kernel bypass frameworks like DPDK and RDMA. Performance tuning and benchmarking are performed using tools and methodologies from Iperf, Netperf, perf (Linux), and reported in academic venues like SIGCOMM and industry whitepapers from Intel Corporation or Broadcom. Scaling considerations for microservices and distributed systems in infrastructures run by Netflix, YouTube, Facebook rely on UDP-based protocols for reduced latency and require orchestration and telemetry provided by Prometheus and Envoy.
Category:Network protocols