UDP
The User Datagram Protocol (UDP) is a connectionless transport-layer protocol that sends datagrams without guaranteeing delivery, ordering, or duplicate suppression.
Acing the CCNA Exam: Volume 1 Fundamentals and Protocols
User Datagram Protocol is a transport-layer protocol that sends datagrams without guaranteeing delivery of every message.
- How it is used
- Compares UDP with TCP to explain transport-layer addressing, session multiplexing, and protocol selection.
- How deep it goes
- Defines datagrams, limitations, checksum behavior, header size, overhead, and use cases, but does not cover configuration commands.
- Examples
- Uses DNS lookups, VoIP, live video streaming, datagram-versus-stream analogies, and TCP comparison tables.
- What you can do after
- Evaluate UDP and TCP trade-offs and identify situations where low overhead or tolerated loss favors UDP.
Read how Acing the CCNA Exam: Volume 1 Fundamentals and Protocols explains UDP →
Rust in Action: Systems programming concepts and techniques
UDP is a connectionless transport protocol that sends independent datagrams without guaranteeing delivery, ordering, or duplication control.
- How it is used
- Deploys UDP as the transport for a practical DNS hostname-to-IP resolver.
- How deep it goes
- Demonstrates UDP through DNS message construction and exchange, but treats only a small portion of the DNS protocol.
- Examples
- Uses a Rust command-line resolver, constructed DNS queries, public DNS providers, and hostname-to-IPv4 output.
- What you can do after
- Build a small hostname resolver with Rust's UdpSocket and the trust-dns crate.
Read how Rust in Action: Systems programming concepts and techniques explains UDP →
Go in Practice, Second Edition
UDP is a connectionless transport-layer protocol that sends datagrams without guaranteeing delivery or ordering.
- How it is used
- Addresses logging back pressure by letting clients send without waiting for acknowledgments or maintaining connections.
- How deep it goes
- Shows a runnable Go sender, a timeout choice, a listener command, and practical benefits while leaving broader trade-offs unspecified.
- Examples
- Uses Go UDP logging with net.DialTimeout and a netcat listener on localhost port 1902.
- What you can do after
- Build UDP-based logging clients that tolerate receiver slowdowns and configure send timeouts.
Acing the CCNA Exam: Volume 2 Advanced Networking and Security
UDP is a connectionless transport-layer protocol that sends datagrams without providing TCP's reliability or ordering guarantees.
- How it is used
- Carries DHCP messages during automatic IPv4 address leasing.
- How deep it goes
- Defines UDP’s DHCP role and port assignments, but does not descend into transport-header or delivery mechanisms.
- Examples
- Uses DHCPDISCOVER, DHCPOFFER, DHCPREQUEST, and DHCPACK exchanges between a client and server.
- What you can do after
- Understand DHCP port assignments and recognize UDP’s role in the DORA exchange.
Read how Acing the CCNA Exam: Volume 2 Advanced Networking and Security explains UDP →
Fast Python: High performance techniques for large datasets
- How it is used
- Replaces TCP when lower transport overhead matters and its reliability trade-off is acceptable.
- How deep it goes
- Explains datagram behavior and builds a socket-based client, while deferring packet-loss handling.
- Examples
- Uses a local pastebin client to store and retrieve text over UDP with MessagePack.
- What you can do after
- Apply it via Python’s socket module and MessagePack to send and retrieve text while accepting delivery and security risks.
Read how Fast Python: High performance techniques for large datasets explains UDP →
Also covered in
What to know first
- TCPTCP (Transmission Control Protocol) is a connection-oriented transport-layer protocol that provides reliable, ordered delivery of a byte stream between network endpoints.
- HTTPHTTP is an application-layer protocol that defines request-and-response communication for transferring resource representations and related metadata between networked systems.
- OSI modelThe OSI model is a seven-layer reference framework for organizing and describing the functions of communication between networked systems.
- domain name systemThe Domain Name System (DNS) is a distributed, hierarchical naming system that resolves domain names to IP addresses and other network resource records.
Related concepts
- TCPcontrasts with · TCP (Transmission Control Protocol) is a connection-oriented transport-layer protocol that provides reliable, ordered delivery of a byte stream between network endpoints.
- domain name systemused by · The Domain Name System (DNS) is a distributed, hierarchical naming system that resolves domain names to IP addresses and other network resource records.
- QUICused by · QUIC is a secure, multiplexed transport protocol built over UDP that provides reliable, low-latency communication.
- Trivial File Transfer Protocolused by · Trivial File Transfer Protocol is a lightweight UDP-based file-transfer protocol that provides basic acknowledgment-based reliability without authentication or encryption.
- protocolkind of · A protocol is a defined set of rules and conventions governing how participants communicate, exchange information, or coordinate interactions.
- transport connectoruses · A transport connector is a broker component that exposes a connection endpoint to clients and accepts their connections.
Questions about UDP
What is UDP?
The User Datagram Protocol (UDP) is a connectionless transport-layer protocol that sends datagrams without guaranteeing delivery, ordering, or duplicate suppression.
Which Manning books explain UDP?
Acing the CCNA Exam: Volume 1 Fundamentals and Protocols, Rust in Action: Systems programming concepts and techniques, Go in Practice, Second Edition, Acing the CCNA Exam: Volume 2 Advanced Networking and Security and Fast Python: High performance techniques for large datasets.
What should I know before learning UDP?
Manning books that teach UDP usually introduce TCP, HTTP, OSI model and domain name system first.
What is the difference between UDP and TCP?
The User Datagram Protocol (UDP) is a connectionless transport-layer protocol that sends datagrams without guaranteeing delivery, ordering, or duplicate suppression. TCP (Transmission Control Protocol) is a connection-oriented transport-layer protocol that provides reliable, ordered delivery of a byte stream between network endpoints.
What is UDP a kind of?
UDP is a kind of protocol. A protocol is a defined set of rules and conventions governing how participants communicate, exchange information, or coordinate interactions.
What is UDP also called?
UDP is also called user datagram protocol.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.




