DDoS mitigation: what happens once an attack starts

DDoS mitigation is the work of keeping a service available while a distributed denial-of-service attack is under way: noticing it, moving the attack traffic to where it can be handled, separating it from real users, and returning to normal afterwards. Protection is the preparation; mitigation is the response. Each step happens at a different layer, often run by a different party.

Section DDoS protection Updated Steps detect, divert, filter, recover

Quick facts

Goal
Keep real users served while the attack lasts
Four steps
Detect, divert, filter, recover
Who does it
The network provider for floods; you and your edge for application attacks
Fastest blunt tool
Blackholing: dropping all traffic to the target address (RFC 5635)
Background
RFC 4732 describes denial-of-service considerations for internet protocols

How to prepare before any of this is on DDoS protection.

The four steps of DDoS mitigation

  1. Detect. Notice that traffic or errors depart from normal, and that the cause is an attack; the first hour is on incidents.
  2. Divert. Move traffic to capacity that can take it: an upstream provider, a scrubbing service or an edge network.
  3. Filter. Drop what is clearly attack traffic and pass what is not, at the layer the attack uses.
  4. Recover. Undo emergency changes, check what got through, and decide what to change before the next attack.

The steps overlap in practice. Diversion that is always on removes the delay of the second step; filtering that is too strict turns mitigation into a self-inflicted outage.

MITIGATION METHODS BY ATTACK FAMILY VOLUMETRIC PROTOCOL APPLICATION KEEPS REAL USERS SERVED BLACKHOLING UPSTREAM SCRUBBING EDGE ABSORPTION RATE LIMITING AT L7 REQUEST FILTERING // blackholing stops the attack by finishing it
// five methods, and which family each one fits

DDoS mitigation methods

  • Blackholing. Routing all traffic for the attacked address to nowhere. It protects the rest of the network and completes the attacker's goal for that address.
  • Scrubbing. Diverting traffic through a service that removes attack packets and forwards the rest.
  • Edge absorption. Serving from a network large enough to take the flood across many locations.
  • Rate limiting. Capping requests per client or path at layer 7; see rate limiting.
  • Request filtering. Refusing requests that match attack patterns, at layer 7.
  • Source address validation. Networks dropping packets with forged sources (BCP 38), which reduces spoofed floods for everyone.

Always-on or on-demand mitigation

Always-on mitigation keeps traffic flowing through the filtering layer all the time. There is no switch to throw and no delay when an attack starts, and the filter learns what normal traffic looks like. The cost is paid every day, in fees or in latency added to every request.

On-demand mitigation diverts traffic only when an attack is detected, usually by changing routes or DNS. It costs less in quiet periods and adds nothing to normal traffic, but the first minutes of each attack reach you unfiltered, and DNS changes take as long as cached records live. For sites where minutes of outage matter, that delay decides the choice.

Building a DDoS mitigation strategy

A strategy is the answer to three questions written down before the attack: which party mitigates which family, how traffic gets to them, and who decides to switch each measure on.

Write down the contacts and the switches, test the diversion path, and agree what signals trigger it. Standard signalling between a victim and its mitigation provider exists, in the DOTS architecture of RFC 8811, but a phone number that works is still the first item.

Mitigation at layer 7

Application attacks arrive as complete, valid-looking requests, so they get past capacity and reach the application. Mitigation here is request filtering and rate limiting on the targeted paths, tightened deliberately and recorded so it can be undone. The boundary between what layer 7 can see and what it cannot is on layer 3, 4 and 7 attacks.

Mitigation that refuses customers is not a success. Watch error rates for real users while tightening, and loosen what does not help.

Questions

What is DDoS mitigation?

DDoS mitigation is the response to a distributed denial-of-service attack under way: detecting it, diverting traffic to capacity that can take it, filtering attack traffic from real users, and recovering afterwards.

What are DDoS mitigation methods?

Blackholing, upstream scrubbing, edge absorption, rate limiting and request filtering at layer 7, and source address validation by networks. Each fits a different attack family.

How do you mitigate a DDoS attack?

Confirm it is an attack, divert floods to your provider or edge network, filter and rate-limit the targeted paths for application attacks, record each change, and review after it ends.

What is the difference between DDoS protection and mitigation?

Protection is the preparation that keeps a service available; mitigation is the response once an attack has started.