CDN DDoS Protection: How CDNs Absorb Volumetric Attacks

· Alex Petrov · 4 min read

Why CDNs Are Natural DDoS Shields

A CDN's distributed architecture is inherently DDoS-resistant. Attack traffic aimed at a single target is spread across hundreds of PoPs worldwide, each absorbing a fraction of the total volume. A 1 Tbps attack distributed across 300 PoPs is only ~3.3 Gbps per PoP — well within each PoP's capacity.

The History of DDoS Attacks and CDN Defense

DDoS (Distributed Denial of Service) attacks have evolved from crude network floods into sophisticated, multi-vector campaigns — and CDN defense has evolved to match. Understanding this arms race is essential for appreciating modern CDN protection capabilities.

The first major DDoS attack struck the University of Minnesota in 1999, launched by a tool called Trinoo that coordinated compromised machines to flood a target with UDP traffic. The damage was limited, but the concept was proven: distributed attack sources could overwhelm any single server.

In February 2000, a 15-year-old Canadian hacker known as "Mafiaboy" (Michael Calce) launched DDoS attacks against Yahoo, CNN, eBay, Dell, and Amazon — the biggest websites of the era. The attacks caused an estimated $1.2 billion in damages and demonstrated that even the largest internet companies were vulnerable to relatively unsophisticated flooding attacks.

The scale of DDoS attacks grew exponentially through the 2010s. Operation Ababil (2012-2013) targeted major U.S. banks with 300 Gbps attacks — unprecedented at the time. But the watershed moment came in September 2016, when the Mirai botnet — built from compromised IoT devices like security cameras and DVRs — launched a 1.2 Tbps attack against DNS provider Dyn, taking down Twitter, Netflix, Reddit, and dozens of major websites simultaneously. This single incident demonstrated that IoT botnets could generate attack volumes beyond what any single-site defense could absorb.

CDN-based DDoS mitigation became the industry standard after Mirai. The evolution of CDN defense follows a clear progression:

In 2020, AWS reported mitigating a 2.3 Tbps attack — the largest ever recorded. By 2025, attacks exceeding 1 Tbps are routine, and CDN providers collectively absorb petabits of attack traffic daily. The latest threat evolution includes AI-powered DDoS attacks that adapt their patterns in real-time to evade detection, and "carpet bombing" attacks that spread low-volume traffic across thousands of target IPs to avoid threshold-based detection.

Types of DDoS Attacks CDNs Mitigate

Volumetric Attacks (Layer 3/4)

Flood the target with massive bandwidth: UDP floods, DNS amplification, NTP reflection. CDNs absorb these at the network edge, never forwarding attack traffic to your origin.

Protocol Attacks (Layer 4)

Exploit TCP/UDP protocol weaknesses: SYN floods, Ping of Death, Smurf attacks. Consume server resources (connection state, CPU) rather than bandwidth.

Application Layer Attacks (Layer 7)

Send legitimate-looking HTTP requests at high volume: HTTP floods, slowloris, heavy URL targeting. Harder to distinguish from real traffic.

CDN DDoS Mitigation Architecture

  1. Edge ingestion: All traffic arrives at the nearest PoP via Anycast
  2. L3/L4 filtering: Network-level rules drop known-bad traffic (spoofed IPs, malformed packets, amplification vectors)
  3. Traffic analysis: Real-time traffic pattern analysis identifies anomalies (sudden spike from one region, unusual request patterns)
  4. L7 inspection: HTTP requests are inspected by WAF, rate limiter, and bot detection
  5. Challenge/block: Suspicious traffic receives a JavaScript challenge, CAPTCHA, or block response
  6. Clean traffic forwarded: Only legitimate requests reach your origin

Always-On vs On-Demand Protection

ModeProsCons
Always-onInstant protection, no detection delayMay add latency, higher cost
On-demandNo latency impact normallyDetection delay (30s-5min), DNS propagation needed

Most CDN-based DDoS protection is always-on — all traffic flows through the CDN at all times. Dedicated DDoS services (like Cloudflare Spectrum or Akamai Prolexic) may offer on-demand activation for non-HTTP protocols.

Secure Request Flow — How requests pass through security layersSecure Request Flow — How requests pass through security layers CDN Request Flow — From Browser to Edge CDN Request Lifecycle Step 1 DNS Lookup Step 2 TCP Connect Step 3 TLS Handshake Step 4 Edge Server Step 5 Cache Check Step 6 Response Cache HIT → 5ms response Cache MISS → Fetch origin 0ms ~50ms (cache hit) ~200ms (cache miss)
Figure 2: Secure Request Flow — How requests pass through security layers

Origin Protection During DDoS

Even with CDN DDoS protection, your origin must be hidden. If attackers know your origin IP, they can bypass the CDN entirely. See origin protection for shielding your server's real IP address.

CDN DDoS Protection

External References

References & Standards: Cloudflare documentation · W3C Web Performance