Free tech learning for everyone, from basics to pro

Incident ResponseCyber SecurityIntermediate

Responding to denial-of-service attacks: detection, mitigation and preparation

In short: A denial-of-service attack tries to make a service unavailable by overwhelming its bandwidth, network devices or application. Most DDoS attacks are too large to stop on your own equipment, so response depends on preparation: knowing your normal traffic, having a mitigation service or ISP contact ready, and a runbook for confirming, mitigating and communicating.

What a denial-of-service attack is

A denial-of-service (DoS) attack tries to stop legitimate users from reaching a service. When the traffic comes from many machines at once, often thousands of hijacked devices in a botnet, it is a distributed denial-of-service (DDoS) attack. Motives include extortion ("pay or we keep going"), protest, rivalry and distraction while another attack happens elsewhere.

Types of denial-of-service attackDoS and DDoSmake a service unavailableVolumetricfill the internet linkProtocolexhaust firewalls, stateApplicationoverload web apps
Figure 1. Denial-of-service attacks target bandwidth, network devices or the application itself.

Main types

TypeTargetTypical defence
VolumetricYour internet bandwidthUpstream scrubbing by the ISP or a DDoS protection service
ProtocolConnection tables in firewalls, load balancers and serversSYN protection, connection limits, upstream filtering
Application layerWeb servers and databases, using requests that look normalWeb application firewall (WAF), rate limiting, caching through a CDN

A sudden surge in genuine visitors, for example during a sale or exam results day, can look similar. That is why knowing your normal traffic matters.

The first steps during an attack

Responding to a DDoS attackConfirmattack orspike?EscalateISP, providerMitigatescrub, filterCommunicatestaff,customersReviewtune defences
Figure 2. The main steps when a denial-of-service attack hits a public service.
  1. Confirm: check monitoring for unusual traffic volume, source spread, request patterns and error rates. Rule out a failed change or a genuine traffic spike.
  2. Declare an incident and open a log of actions and times.
  3. Escalate early to your ISP, hosting provider or DDoS protection service. A volumetric attack fills the link before traffic reaches your firewall, so only someone upstream can filter it.
  4. Mitigate: switch on scrubbing or "under attack" modes, apply rate limits, block clearly malicious patterns, and serve static content from a CDN.
  5. Watch for a second attack: check whether the noise is hiding a break-in, such as unusual sign-ins or data transfers.
  6. Communicate: tell staff and customers what is affected and how to reach you another way.

Tip: if you receive a ransom demand threatening a DDoS, do not pay. Report it to the police through your national cyber crime reporting service (and, in the UK, to the National Cyber Security Centre for serious incidents) and alert your protection provider.

Preparing before it happens

  • Record baseline traffic levels for your key services.
  • Know whether your ISP or cloud provider includes DDoS protection, and how to request help, including out of hours.
  • Put public websites behind a CDN or protection service, and hide the origin server's real address.
  • Avoid single points of failure: separate DNS providers or anycast DNS, and more than one internet link for critical sites.
  • Write a one-page DDoS runbook with contacts and decision owners, and test it in a tabletop exercise.

Real-world example: an online exam portal under pressure

On results morning, a fictional exam board's portal slows to a crawl. The on-call engineer first checks whether it is simply demand, but sees huge numbers of identical search requests from addresses all over the world, with no session cookies, while real student traffic is normal. Following the runbook, she calls the CDN provider's emergency line, turns on its challenge mode for the search page and adds a rate limit. Within 20 minutes real users are back. The communications team posts a short status update. Afterwards the board caches the results page and runs a yearly DDoS exercise before results day.

Practice

Why can a firewall at your own site not stop a large volumetric DDoS attack?
The attack fills your internet link before traffic reaches the firewall, so filtering must happen upstream at the ISP or a scrubbing service.
How might you tell a DDoS attack apart from a genuine traffic spike?
Compare with your baseline and look at patterns: identical requests, odd sources, missing cookies or sessions and no matching business event suggest an attack.
Name two things to prepare before a DDoS attack happens.
Any two of: baseline traffic, provider contacts and escalation process, CDN or protection service, redundant DNS and links, a written and tested runbook.

Key takeaways

  • DoS and DDoS attacks aim to make a service unavailable.
  • Volumetric, protocol and application-layer attacks need different defences.
  • Large attacks must be filtered upstream by the ISP or a protection service.
  • Watch for other attacks hidden behind the noise.
  • Preparation, baselines and a runbook decide how fast you recover.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

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.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.