Skip to content

DDoS — Distributed Denial of Service

Overwhelming a server/network with massive fake traffic so legitimate users can't reach it.

  • DoS — one attacker, one machine.
  • DDoS — thousands of machines (botnet) attacking simultaneously.

How It Works

Attacker

   └── Controls Botnet (thousands of compromised devices)

         ├── Device 1 ──┐
         ├── Device 2 ──┼──► Target Server
         ├── Device 3 ──┤
         └── ...        ┘

Victim server gets flooded → CPU/bandwidth exhausted → crashes or stops responding.

Types of DDoS

TypeLayerHow
VolumetricL3/L4Flood bandwidth (UDP flood, ICMP flood)
ProtocolL4Exploit protocol weakness (SYN flood)
ApplicationL7HTTP GET/POST flood, looks like real traffic

SYN Flood (Most Classic)

Attacker sends SYN → Server replies SYN-ACK → Attacker never sends ACK
Server keeps half-open connections until exhausted

Amplification Attack

  • Attacker sends small request with spoofed victim IP.
  • Server sends large response to victim.
  • DNS/NTP used commonly for this.

Defense

MethodHow It Helps
Rate limitingBlock IPs sending too many requests
Anycast diffusionSpread traffic across many servers globally
CDN (Cloudflare)Absorbs traffic before it hits origin
SYN cookiesServer doesn't allocate state until handshake completes
IP blacklistingBlock known botnet IPs
Traffic scrubbingFilter malicious packets, pass clean traffic

Key Terms

  • Botnet — network of compromised machines (zombies).
  • Amplification factor — how much larger the response is vs request (DNS can be 50x).
  • Scrubbing center — dedicated infrastructure that filters DDoS traffic.