Intermediate Topic 28 of 51 Security & Cryptography
Denial of Service
Overwhelming a service to make it unavailable.
How it works
A denial-of-service attack tries to make a service unavailable by exhausting resources such as bandwidth, CPU, memory, connections or application logic. Volumetric floods saturate links, protocol attacks like SYN floods consume connection tables, and application-layer attacks send expensive requests. Distributed denial of service uses many compromised devices, a botnet, and reflection and amplification via DNS or NTP servers to multiply traffic.
Step-by-step walkthrough
- Many requests arrive at once.
- They exhaust bandwidth, connections or CPU.
- The server is too busy for real users.
- A distributed attack uses thousands of machines, a DDoS.
- Defences: rate limits, CDNs and scrubbing.
Where it is used
Websites, games, payment services and APIs face these attacks, and defenders use CDNs and scrubbing services, rate limiting, autoscaling, anycast, SYN cookies, caching and web application firewalls.
Common pitfall
Overprovisioning alone cannot stop large attacks. Algorithmic complexity bugs, such as regular expression backtracking or hash collisions, let a single request cause heavy load. Application endpoints without limits, like search and login, are weak spots. Plan incident response, monitor traffic baselines and design graceful degradation.
Where it fits in the course
Denial of Service is topic 28 of 51 in Security & Cryptography, rated Intermediate. It follows Buffer Overflow. The next topic is Man-in-the-Middle Attacks.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Security & Cryptography quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Security & Cryptography quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Denial of Service?
Where do people use Denial of Service?
What is the most common mistake with Denial of Service?
What should I learn before this topic?
How can I practice it?
Is Denial of Service hard to learn?
How long does it take to learn Denial of Service?
Which topics are related to Denial of Service?
What should I study after Denial of Service?
Related topics
- Buffer Overflow (Security & Cryptography)
- Man-in-the-Middle Attacks (Security & Cryptography)
- CSRF (Security & Cryptography)
- Network Intrusion Detection (Security & Cryptography)
- Service Discovery (Distributed Systems & Cloud)
- Service Mesh (Distributed Systems & Cloud)
- Service Workers (Web Development)