Floods of fake traffic that try to knock a service over, and the layers that absorb them.
A DDoS (distributed denial of service) attack tries to make a service unusable by flooding it with fake traffic from thousands of machines, so real users cannot get through.
"Denial of service" means users are denied the service. It is not about stealing data. The attacker just needs more traffic than you can handle. The distributed part means the traffic comes from many machines, often a botnet of hacked devices, so you cannot simply block one address.
| Family | What it overwhelms | Examples (at a high level) |
|---|---|---|
| Volumetric | The network bandwidth into your site | UDP floods, and reflection or amplification, where small spoofed requests to open servers (such as DNS or NTP) cause big replies sent at the victim |
| Protocol | State kept by servers, firewalls and load balancers | SYN flood: many half-open TCP connections fill the table |
| Application layer | Your app, CPU and database | HTTP floods of expensive pages, and slow connections that hold sockets open (slowloris) |
| Layer | Defence | Stops mostly |
|---|---|---|
| Edge | CDN and anycast, which spread traffic over many sites | Volumetric, and some HTTP floods |
| Network | Scrubbing centres, upstream filtering, ISP blackholing as a last resort | Volumetric, protocol |
| Transport | SYN cookies, connection limits, timeouts | SYN floods, slow connections |
| Application | Rate limiting, WAF, bot management, challenges (CAPTCHA) | HTTP floods, bots, scrapers |
| Origin | Hide the origin address, accept traffic only from the edge | Bypassing the edge |
| Design | Cache static answers, queue expensive work, shed load, degrade features | Everything that gets through |
| Capacity | Over-provision, and auto-scale with a budget cap | Moderate spikes |
Adding servers under attack can keep you up, but you may pay for the attacker's traffic. Use a maximum size and alerts on cost, and prefer filtering to scaling for traffic you do not want.
A teaching model with fixed, made-up numbers: each defence cuts a set share of one kind of attack, or none. Rate limiting and the WAF can also block a few real users by mistake (3% each here). Real attacks mix several types at once, and real defences are tuned live.
| Term | Meaning in easy words |
|---|---|
| DoS / DDoS | Denial of service / distributed denial of service: making a service unusable by overload |
| Botnet | A network of hacked machines controlled by an attacker |
| Volumetric attack | An attack that fills your bandwidth |
| Amplification / reflection | Small spoofed requests to open servers that return big replies to the victim |
| SYN flood | Many half-open TCP connections that fill the server’s connection table |
| SYN cookies | A way to answer connections without storing state until the handshake finishes |
| Slowloris | Holding many connections open with very slow requests |
| Scrubbing centre | A site that cleans attack traffic and forwards the good traffic |
| Anycast | One address announced from many places, so traffic is spread out |
| WAF | Web application firewall: filters HTTP requests |
| Rate limiting | Capping how many requests a client can make |
| Blackholing | Dropping all traffic to an address, to protect the rest of the network |
| Origin hiding | Keeping the real server address private and accepting only edge traffic |
| Graceful degradation | Turning off nonessential features to keep the core working |
| Choice | We gain | We lose |
|---|---|---|
| Strict rate limits | Fewer bad requests | Real heavy users may be blocked |
| CAPTCHA challenge | Stops simple bots | Annoys users, hurts accessibility |
| Auto-scale up | Stays available | Pays for attack traffic |
| Over-provision | Headroom for spikes | Idle cost all year |
| Block regions | Cuts a lot of noise | Blocks real users and travellers |
| Outsource to a DDoS provider | Huge capacity and experience | Cost and lock-in |