Bookmarks

DDoS — distributed denial-of-service attack

Distributed Denial of Service

An attack in which many devices simultaneously saturate the target’s link or resources so that legitimate users cannot access the service.

Also: DDoS attack, DDoS, distributed denial of service attack, distributed DoS attack

checked 9 Nov

All terms

DDoS takes a service down not by breaking in but by overload: hundreds, thousands and even millions of machines send traffic at once, and the target runs out of link capacity, memory or computing power. Hence the name — it is a denial-of-service attack distributed across many sources.

How the attack works

The attack usually comes from a botnet — a network of devices infected with malicious code and controlled directly: the server receives requests from thousands of addresses and cannot tell them apart from legitimate clients. Sometimes the sources are not even infected: in UDP amplification the botnet sends small requests to open resolvers with a spoofed sender address, and the large replies fly towards the target — a DNS resolver may return dozens of times more data than it received in the request.

ClassWhat it overwhelmsExamples
Volumetric (L3/L4)link bandwidthUDP flood, DNS amplification
Protocol (L3/L4)connection tables of network equipmentSYN flood
Application (L7)database queries and page renderingHTTP flood, Slowloris

SYN flood: a classic example

A TCP server keeps half-open connections in the backlog — a queue of limited size. A SYN flood fills the queue with fake connection requests: the attacker sends many SYNs from spoofed addresses and never replies to the SYN-ACK. RFC 4987 reviews the countermeasures: enlarging the queue helps only partly; SYN cookies are more reliable — the server encodes the connection state into the responding SYN-ACK and does not keep memory until the client confirms.

Defences

  • filtering and rate limiting — per-address request counters and rules at the network edge;
  • a network that absorbs large volumes: anycast and traffic scrubbing at a protection provider;
  • WAF and application-level limits against HTTP floods and slow requests;
  • headroom and graceful degradation: serving lightweight pages instead of going down entirely.

Protection starts upstream: if the office link is saturated, traffic will never reach your firewall. That is why volumetric attacks are scrubbed at operators and specialised services, while application-layer ones are handled at the application boundary. To mitigate an attack is to separate malicious traffic from legitimate.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • WAFweb application firewall

    A WAF is a protection tool that filters HTTP requests; DDoS is the attack itself, against which it shields only the application layer.

In depth in the references

where the topic is covered in detail