Captures GPS and velocity
Remember UDP
Full name: User Datagram Protocol
Memory aid: Unscheduled Datagrams go Promptly.
Applications can add their own reliability above UDP.
Study area: Protocols & logical ports · Batch 2
Relevant study for: CompTIA Network+ N10-009 · Cisco CCNA 200-301 · CompTIA A+ Core 1 220-1201 · CompTIA Security+ SY0-701 · ISC2 CISSP 2024 outline
Practice with exam flashcards →Backend & Runtime / Knowledge library
User Datagram Protocol (UDP)
Sends independent datagrams without built-in ordering or retransmission
Why learn User Datagram Protocol (UDP)?
It offers low overhead and application-controlled reliability
The problem it solves
It supports latency-sensitive traffic that can tolerate or manage loss
Where it came from
User Datagram Protocol (UDP) is a networking and web concept that sends independent datagrams without built-in ordering or retransmission. Its guarantees and tradeoffs depend on the concrete implementation and operating context.
Build your understanding
Work through these exercises in order. Try the task before opening a reference.
- Define User Datagram Protocol (UDP) and distinguish it from a neighboring concept.
- Choose a realistic task where User Datagram Protocol (UDP) is appropriate.
- Identify a failure mode caused by misusing User Datagram Protocol (UDP).
- Interpret a small design or result involving User Datagram Protocol (UDP).
- Explain one tradeoff or limitation of User Datagram Protocol (UDP).
Documentation and sources
- MDN Web Technology Glossary (developer.mozilla.org)
Connect the ideas
Explore next
Real World Example
Real-Time Telemetry for Autonomous Drone Fleets
A logistics company managing a fleet of autonomous drones for last-mile delivery.
The business problem
The fleet requires constant, low-latency position updates to avoid collisions, but traditional connection-oriented protocols introduce head-of-line blocking and retransmission delays that render stale location data dangerous.
How this topic solves it
By utilizing the User Datagram Protocol (UDP), the drones transmit independent datagrams containing current telemetry. Because UDP does not perform built-in ordering or retransmission, the system always processes the most recent packet, discarding delayed or out-of-order data that would otherwise clog the control loop.
- Initialize a socket bound to a specific port on the drone controller.
- Package telemetry data into a compact, fixed-length binary structure.
- Transmit datagrams directly to the ground station IP address without establishing a handshake.
- Implement a lightweight application-layer sequence check to identify if a packet is significantly older than the current state.
This diagram illustrates the unidirectional flow of telemetry data from the drone to the ground station.
Encapsulates data into datagrams
Unreliable transport medium
Processes latest telemetry
- Drone Sensor → Data Input → UDP Socket
- UDP Socket → Send Datagram → Network Path
- Network Path → Packet Delivery → Ground Station
Expected business outcome
The ground station maintains a fluid, real-time view of the fleet position, ensuring that collision avoidance logic reacts to the latest possible drone state rather than waiting for outdated retransmissions.
Limitations and checks
UDP lacks reliability; packets may be dropped by network congestion. To check for this, the application must monitor the gap between sequence numbers in the received telemetry stream to determine if packet loss exceeds acceptable thresholds.