networking, updated

UDP

The User Datagram Protocol sends single messages between ports with no handshake and no delivery guarantee. Fast and simple, and the transport behind DNS, DHCP, QUIC and most amplification attacks.

OSI layer
4 Transport
Carried in
IPv4 / IPv6
Identified by
IP protocol 17
Specs
RFC 768, RFC 8085
Wireshark filter
udp
Encrypted
no

Packet structure

UDP header8 bytes + variable

Select a field to see what it does.

RFC 768. Always 8 bytes. No handshake, no state, no retransmission.

How it works

UDP adds only ports, a length and a checksum to IP. Each datagram stands alone: no connection, no ordering, no retransmission, no flow control. The application handles what it needs (DNS retries, QUIC builds a whole reliable transport on top).

Firewalls and NAT still track UDP “connections” as flows: a reply from the right address and port within a timeout (often 30–180 s) is let back in.

UDP scan responses:

Port stateResponse to a datagram
OpenApplication reply, or nothing if the probe was not valid for it
ClosedICMP port unreachable (type 3 code 3)
FilteredNothing, or ICMP administratively prohibited

Because “open” often looks like “filtered”, UDP scans are slow and nmap reports open|filtered.

In Wireshark

FilterShows
udp.port == 53One service
udp && !dns && !mdns && !ssdpUDP minus common noise
udp.length > 1200Large datagrams (possible fragmentation, amplification responses)
icmp.type == 3 && icmp.code == 3Closed UDP ports answering
udp.checksum.badBad checksums (if validation is enabled)
quicQUIC / HTTP/3 on UDP 443
udp.stream eq 3One flow (Follow › UDP Stream)

What normal looks like: DNS to your resolvers, NTP, DHCP, mDNS/SSDP/LLMNR on the LAN, QUIC to big web services. Unusual high-port UDP to the internet can be VPNs, games, VoIP or tunnels.

Security notes

References

§ home
~/knubertus/home/
1,1 Top