User Datagram Protocol

The User Datagram Protocol (UDP) is a transport layer protocol used extensively in networking, particularly where speed is prioritized over guaranteed delivery.

Here is a comprehensive overview of UDP drawn from the sources, covering its characteristics, common applications, and security implications:

1. Characteristics and Functionality

UDP is fundamentally a connectionless protocol. Unlike TCP, UDP is designed to carry short messages over a computer network and provides an unreliable service.

Key features related to its structure and use include:

Lightweight protocol to send real-time data

2. Common Applications and Ports

UDP is utilized by various network services, especially those sensitive to delay or those that prioritize real-time transfer.

Service Name Port Description
DNS (Domain Name System) 53 (TCP/UDP) DNS clients typically send requests to servers listening on UDP port 53. If the message exceeds 512 octets, TCP port 53 is used as a failover.
NTP (Network Time Protocol) 123 (UDP) Used for synchronizing clocks across networked computers.
SNMP (Simple Network Management Protocol) 161 (UDP) SNMP agents receive requests from managers on this port.
TFTP (Trivial File Transfer Protocol) 69 (UDP) A connectionless protocol used for transferring files.
NetBIOS Name Service/Datagram Service 137, 138 (UDP/TCP) Used for name resolution (137) and datagram services (138) in Windows networks.
ISAKMP/IKE 500 (UDP) Used to set up a security association in the IPsec protocol suite, typically in a VPN environment.
LDAP (Lightweight Directory Access Protocol) 389 (TCP/UDP) Can use UDP as its transport protocol.
VoIP (Voice over Internet Protocol) 5060, 5061 (TCP/UDP) Used by the Session Initiation Protocol (SIP) for voice and video calls.

UDP is commonly applied in applications such as Audio streaming and Videoconferencing and teleconferencing.

2. UDP in Reconnaissance and Scanning

UDP is essential in network mapping and host discovery, particularly when TCP or ICMP are filtered.

A. UDP Traceroute Traceroute programs, especially those running in Linux (using the default traceroute command) or specialized tools like NetScanTools Pro, can use the UDP protocol to trace the route to a destination.

B. UDP Scanning UDP scanning checks the UDP ports of a target system to determine if services are running or in a listening state.

3. Security Vulnerabilities and Attacks

UDP is frequently leveraged in various attacks, especially Denial-of-Service (DoS) attacks, due to its connectionless nature.

A. Denial-of-Service (DoS) Attacks UDP flood attacks fall under the category of volumetric attacks, which aim to exhaust network bandwidth.

B. Session Hijacking and Spoofing UDP is susceptible to hijacking, known as UDP Hijacking. Because UDP lacks synchronization or sequencing, a UDP session can be attacked more easily than a TCP session.

C. Evasion and Tunneling UDP is used in evasion techniques because it is often less scrutinized than TCP traffic.