We may earn an affiliate commission when you visit our partners.

UDP

Save
May 1, 2024 Updated May 12, 2025 18 minute read

User Datagram Protocol (UDP) is a core communication protocol in the Internet Protocol (IP) suite, used for sending messages, known as datagrams, to other hosts on an IP network. Unlike its counterpart, Transmission Control Protocol (TCP), UDP is a connectionless protocol. This means it doesn't establish a formal connection before sending data, allowing for faster transmission. UDP is particularly well-suited for applications where speed is critical and some data loss is acceptable.

Working with UDP can be engaging due to its directness and efficiency. It's a foundational element of the internet, and understanding it opens doors to comprehending how many real-time applications function. For instance, if you're curious about how live video streams with minimal delay or how online games maintain responsiveness, UDP is often a key part of the answer. The lightweight nature of UDP also makes it a go-to choice for services like the Domain Name System (DNS) and Dynamic Host Configuration Protocol (DHCP), which are fundamental to internet operations.

Technical Overview of UDP

To truly grasp UDP, it's important to delve into its technical makeup. This section will explore the protocol's structure, how it uses ports and sockets, its approach to error handling (or the deliberate lack thereof), and its prime use cases in applications demanding real-time performance. This knowledge is particularly valuable for university students in computer science, technical practitioners, and academic researchers seeking a deeper understanding of network protocols.

Protocol Structure: Headers and Datagrams

UDP's simplicity is reflected in its header structure. A UDP header is a mere 8 bytes long, significantly smaller than TCP's variable-length header (which can be 20 to 60 bytes). This small header contributes to UDP's low overhead and speed. The UDP header contains four essential fields, each 2 bytes (16 bits) in size.

These fields are:

Path to UDP

Take the first step.
We've curated 19 courses to help you on your path to UDP. Use these to develop your skills, build background knowledge, and put what you learn to practice.
Sorted from most relevant to least relevant:

Share

Help others find this page about UDP: by sharing it with your friends and followers:

Reading list

We've selected two books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in UDP.
Is an administrator's guide to UDP. It covers everything from the basics of UDP to its advanced features, such as multicast and congestion control. It is an excellent resource for anyone who wants to learn more about UDP.
Is an introduction to UDP. It covers the basics of UDP, as well as more advanced topics such as socket programming and network security. It is an excellent resource for anyone who wants to learn more about UDP.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser