DoS Attack Mitigation

From Building Secure and Reliable Systems Ch 10 — anycast, scrubbing centers, rate limiting tiers, and the architectural choices that separate services that survive volumetric attacks from those that do not.

Overview

DoS is a reliability problem

*Building Secure and Reliable Systems* Chapter 10, Mitigating Denial-of-Service Attacks, treats DoS mitigation as a reliability engineering problem, not purely a security one. A service that goes down during a volumetric attack has failed its SLO, and the cause is irrelevant to users who cannot reach it.

Attack traffic crosses three places before it reaches the service, and each is the right place to stop a different kind of attack. The ISP or CDN sees it first and handles volumetric floods. The load balancer or firewall comes next and handles protocol attacks. The application, at layer 7, sees only what is left, and the service sits behind it.

> [!IMPORTANT] 'The most resilient services are not those that detect and block all attacks, but those that are architected to function under abnormal traffic conditions.'

Key concepts

  • Anycast
  • Scrubbing center
  • BGP blackholing
  • SYN cookie
  • Rate limiting tiers

Interview questions

  • How do you architect a public API service to remain available during a 100 Gbps volumetric DDoS attack?

Sign up free to read the full topic

More SRE topics

Start free on Cariara · Coding problems · System design studio