How a UDP Flood Attack Overwhelms a Server
A User Datagram Protocol (UDP) flood is a form of volumetric Denial of Service (DoS) attack designed to overwhelm a target machine by sending a massive volume of UDP packets to random ports. Because UDP is a connectionless and stateless protocol, the receiving server is forced to allocate processing power, bandwidth, and system resources to inspect every packet and generate error responses. This article breaks down the technical mechanics of a UDP flood, explains the internal server processes that lead to resource exhaustion, and outlines the impact on targeted infrastructure.
The Mechanics of the Attack
Unlike TCP, UDP does not require a three-way handshake to establish a connection before data transmission. An attacker can send continuous streams of UDP packets with spoofed source IP addresses directly to arbitrary ports on the target server without waiting for acknowledgment.
When a server receives a UDP packet, it undergoes a multi-step verification process:
- Packet Ingestion: The server’s network interface card (NIC) receives the packet and passes it to the operating system’s network stack.
- Port Lookup: The operating system checks its internal routing tables and listening sockets to determine whether any active program is listening on the targeted destination port.
- ICMP Generation: When the server determines that no application is listening on that port, it generates an ICMP (Internet Control Message Protocol) packet with a “Destination Unreachable (Port Unreachable)” response (Type 3, Code 3) and sends it back to the forged source address.
Vectors of Resource Exhaustion
A UDP flood degrades or crashes a server through three primary bottlenecks:
- CPU and Processing Overhead: Processing millions of lookup requests per second forces the CPU to spend its cycles traversing socket tables and generating ICMP responses rather than executing normal application logic.
- Bandwidth Saturation: The volume of incoming traffic consumes the inbound network pipe. Simultaneously, the volume of outbound ICMP responses can saturate the outbound bandwidth.
- State Table Depletion on Intermediate Devices: Even though UDP is stateless, intermediary hardware such as stateful firewalls, load balancers, and NAT gateways attempt to track UDP “sessions.” High-volume floods rapidly fill the connection tracking tables of these devices, causing them to drop legitimate connections entirely.
Resulting Impact
As incoming packet rates surpass the server’s processing thresholds and network interface capacity, the operating system drops incoming legitimate network packets. Legitimate users attempting to reach hosted services experience severe latency, connection timeouts, or complete service unavailability.