Denial of Service and DDoS
Explore how volumetric, protocol, and application-layer attacks overwhelm services.
Denial of Service and DDoS is a free Cyber Security Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
What is a DoS Attack?
A Denial of Service (DoS) attack attempts to make a system or network resource unavailable to legitimate users by overwhelming it with traffic or exploiting vulnerabilities that crash the service.
DoS vs DDoS
DoS originates from a single source. DDoS (Distributed DoS) uses thousands or millions of compromised devices (botnets) or amplification to generate attack traffic. DDoS is much harder to block because the source is distributed globally.
Volumetric DDoS Attacks
Volumetric attacks flood the target's bandwidth with raw traffic:
- UDP floods — spoofed UDP packets saturate bandwidth
- ICMP floods — ping packets overwhelm the target
- DNS amplification — small DNS queries return large responses to victim
Measured in Gbps — some attacks exceed 1 Tbps.
Protocol Attacks
Protocol attacks exploit weaknesses in network protocols:
- SYN flood — sends thousands of TCP SYN packets, exhausting server connection tables
- Ping of Death — sends oversized ICMP packets that crash vulnerable systems
- Smurf attack — spoofed ICMP sent to network broadcast, all hosts reply to victim
Application Layer DDoS
Application layer (Layer 7) attacks target specific application functions with legitimate-looking requests:
- HTTP flood — sends millions of GET/POST requests
- Slowloris — sends partial HTTP headers slowly, occupying all server connections
- SSL exhaustion — abuses TLS handshake CPU cost
Amplification Attacks
Amplification exploits protocols that return much more data than requested:
- DNS amplification: 60x amplification factor
- NTP amplification: 556x amplification factor
- Memcached amplification: 51,000x amplification factor (2018: 1.7 Tbps attack)
Attackers spoof victim's IP as source — reflectors send huge responses to victim.
DDoS Mitigation: Scrubbing Centers
Scrubbing centers are specialized infrastructure that absorb and filter DDoS traffic before it reaches the target. Major providers (Cloudflare, Akamai, AWS Shield) have hundreds of Tbps of scrubbing capacity.
Rate Limiting and Traffic Shaping
Application-level defenses:
- Rate limiting per IP/user
- CAPTCHA challenges for suspicious traffic patterns
- Connection throttling
- IP reputation blocking (known botnet IPs)
Anycast Routing
Anycast distributes attack traffic across multiple global data centers. Instead of one target absorbing all traffic, the load is spread. Cloudflare and other CDNs use anycast to handle massive volumetric attacks.
DDoS in Geopolitics
DDoS is commonly used as a cyberwarfare tool. Major incidents:
- 2007 Estonia — government and banking sites knocked offline during political crisis
- 2022 Ukraine — Ukrainian government sites targeted during Russian invasion
- Hacktivists using DDoS for political statements
Testing DDoS Resistance
Organizations can test resilience with authorized load testing tools:
siege— HTTP load testingab(Apache Bench) — simple HTTP benchmarking- Commercial stress testing services (with authorization)
Never test systems you do not own or have written permission for.
siege -c 100 -t 30S https://example.com # 100 concurrent users, 30 secondsQuick Check: DDoS
Which attack type sends incomplete HTTP headers very slowly to occupy all available server connections?
Lesson Recap
DoS/DDoS attacks deny service by overwhelming targets with traffic or exploiting protocol weaknesses. Attack types include volumetric (UDP/DNS floods), protocol (SYN flood), and application layer (Slowloris, HTTP floods). Defenses include scrubbing centers, anycast, rate limiting, and CAPTCHA. Amplification attacks multiply attack power by exploiting reflectors.
Frequently asked questions
Is the “Denial of Service and DDoS” lesson free?
Yes — the full text of “Denial of Service and DDoS” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.
What will I learn in “Denial of Service and DDoS”?
Explore how volumetric, protocol, and application-layer attacks overwhelm services. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Cyber Security Academy?
No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Denial of Service and DDoS” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Cyber Security Academy lesson?
Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Phishing and Spear Phishing
- Malware: Viruses, Worms, Trojans, Ransomware
- Man-in-the-Middle Attacks
- Denial of Service and DDoS