Back to course

UDP (User Datagram Protocol) Overview

Networking Fundamentals: The 0 to Hero Guide

Lesson 24: UDP (User Datagram Protocol) Overview

UDP is the simpler, faster counterpart to TCP at the Transport Layer. It is a connectionless and unreliable protocol.

Key Characteristics of UDP

1. Connectionless Communication

UDP does not require a handshake. Data (called a datagram) is simply sent to the destination, similar to dropping a postcard in the mail. The sender has no idea if the datagram arrived, was corrupted, or was lost.

2. Best-Effort Delivery

  • No Acknowledgements: There are no SYN/ACKs, and no sequencing or flow control mechanisms built into UDP.
  • Speed: Because it skips the overhead of connection setup and reliability checks, UDP is much faster and requires less processing power.

3. Minimal Overhead

The UDP header is much smaller (8 bytes) than the TCP header (20 bytes minimum). This efficiency is critical for time-sensitive applications.

Applications Using UDP

UDP is used where speed is more important than the occasional dropped packet, or where reliability is handled by the application layer itself.

  • DNS (Domain Name System lookups)
  • VoIP (Voice over IP) and Video Streaming
  • Gaming (Real-time updates)
  • SNMP (Simple Network Management Protocol)

Motto: UDP prioritizes speed and efficiency over guaranteed delivery.