Mitigating DDoS attacks: scrubbing services, RTBH, rate limiting, CDNs and planning
In short: DDoS attacks come in three types: volumetric floods that fill your internet link, protocol attacks that exhaust firewalls and servers, and application attacks that overload websites. Big floods can only be stopped upstream by your ISP or a cloud scrubbing service. RTBH and FlowSpec drop traffic at the provider edge, on-site devices handle protocol attacks, and CDNs and WAFs protect applications.
Know the attack type
- Volumetric: UDP floods and reflection or amplification attacks (DNS, NTP, memcached, CLDAP) that send hundreds of gigabits per second. Measured in bits per second.
- Protocol: SYN floods, fragment attacks and other tricks that exhaust connection tables in firewalls, load balancers and servers. Measured in packets per second.
- Application layer: floods of real-looking HTTP requests that overload web servers and databases. Measured in requests per second.
Why the firewall cannot save you from a flood
If your internet link is 1 Gbps and an attacker sends 50 Gbps, the link is full before traffic even reaches your firewall. No device on your side can help; the traffic must be dropped upstream, inside your ISP or a specialist provider with far bigger capacity.
Cloud scrubbing services
Providers such as Cloudflare, Akamai, Radware, Netscout Arbor, and the major cloud platforms' DDoS services have terabits of capacity spread worldwide. During an attack, your traffic is routed through their scrubbing centres, where attack traffic is removed and clean traffic is forwarded to you (over a GRE tunnel or private connection).
- Always-on: all traffic always flows through the service. Instant protection, small latency cost. Typical for websites through a CDN.
- On-demand: traffic is diverted only during an attack, usually by announcing your prefixes through the provider with BGP. Cheaper, but there is a short delay while diversion starts.
RTBH and FlowSpec
- Remotely triggered black hole (RTBH): you announce the attacked IP address (a /32) to your ISP with a special BGP community, and the ISP drops all traffic to it at its edge. The attack stops affecting your other services, but the target is completely offline: you sacrifice one address to save the rest.
- BGP FlowSpec: lets you send more precise filters to your provider, such as "drop UDP from port 123 to this address", so only attack traffic is dropped.
On-site protection
- Firewalls and load balancers with SYN cookies and connection rate limits handle SYN floods.
- Limit connections per source and drop obviously invalid traffic.
- Protect your own devices with CoPP and infrastructure ACLs.
- Do not let your network be used in attacks: block spoofed sources (BCP 38) and do not run open DNS resolvers, NTP servers or memcached on the internet.
Applications
A CDN absorbs floods across its edge network, and a WAF with rate limiting and bot detection handles HTTP floods. Cloud autoscaling helps but can also raise your bill during an attack.
Have a plan before you need it
- Know your ISP's DDoS service and how to contact their security team 24/7.
- Agree RTBH communities and test them.
- Decide which services need always-on protection.
- Monitor traffic (NetFlow) so you can see an attack's type and target quickly.
Real-world example: the exam booking site
A college's online exam booking site was hit by a 20 Gbps UDP reflection attack on the first morning of registration, filling its 2 Gbps internet link and taking down email and VPN as well. Its ISP black-holed the website's address with RTBH, restoring everything else within 15 minutes. The website was then moved behind a CDN with always-on DDoS protection, which absorbed a second attack the next year without anyone noticing.
Practice
Why can an on-site firewall not stop a volumetric attack bigger than your internet link?
What does RTBH do, and what is its cost?
What is the difference between always-on and on-demand scrubbing?
Key takeaways
- DDoS attacks are volumetric, protocol or application layer.
- Large floods must be stopped upstream by the ISP or a scrubbing service.
- RTBH sacrifices one address; FlowSpec drops attack traffic more precisely.
- Use SYN cookies, CDNs and WAFs, and have a tested plan with your ISP.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.