CDN DDoS Protection: How CDNs Absorb Volumetric Attacks
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:
- 2000-2010: Rate Limiting & Blackholing — Simple threshold-based blocking and null-routing attack traffic at the network edge. Effective against small attacks but blunt instruments that often blocked legitimate users.
- 2010-2016: Traffic Scrubbing Centers — Dedicated facilities that filter attack traffic from legitimate traffic using deep packet inspection. Companies like Prolexic (acquired by Akamai in 2014) pioneered this approach.
- 2016-2020: Anycast Absorption — CDN providers leveraged their global anycast networks to absorb volumetric attacks by distributing them across hundreds of PoPs. A 1 Tbps attack becomes 5 Gbps per PoP across 200 locations — manageable for modern infrastructure.
- 2020-present: ML-Based Detection — Machine learning models analyze traffic patterns in real-time, distinguishing between legitimate traffic spikes and attack traffic with over 99% accuracy. Cloudflare's autonomous DDoS protection and AWS Shield Advanced represent this generation.
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.
- Mitigation: Anycast distributes attack traffic across all PoPs. Edge routers drop malformed packets. BGP Flowspec rules filter known attack patterns.
- Capacity: Major CDNs absorb 10-100+ Tbps (Cloudflare: 296 Tbps, Akamai: 250+ Tbps)
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.
- Mitigation: SYN cookies (stateless SYN handling), connection rate limiting, TCP proxy termination at edge
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.
- Mitigation: WAF rules, rate limiting, bot detection, JavaScript challenges, CAPTCHA
CDN DDoS Mitigation Architecture
- Edge ingestion: All traffic arrives at the nearest PoP via Anycast
- L3/L4 filtering: Network-level rules drop known-bad traffic (spoofed IPs, malformed packets, amplification vectors)
- Traffic analysis: Real-time traffic pattern analysis identifies anomalies (sudden spike from one region, unusual request patterns)
- L7 inspection: HTTP requests are inspected by WAF, rate limiter, and bot detection
- Challenge/block: Suspicious traffic receives a JavaScript challenge, CAPTCHA, or block response
- Clean traffic forwarded: Only legitimate requests reach your origin
Always-On vs On-Demand Protection
| Mode | Pros | Cons |
|---|---|---|
| Always-on | Instant protection, no detection delay | May add latency, higher cost |
| On-demand | No latency impact normally | Detection 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.
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
- Cloudflare: Unmetered DDoS mitigation on all plans. 296 Tbps network capacity.
- Akamai (Prolexic): Dedicated scrubbing centers. 20+ Tbps dedicated DDoS capacity.
- CloudFront + Shield: AWS Shield Standard (free, L3/4) + Shield Advanced (paid, L7 + cost protection).
- Fastly: Built-in DDoS mitigation. Custom rules via VCL for L7 filtering.