๐ DoS and DDoS Detection & Prevention โ Exam Notes (Network Security)
๐ 1. Definition
๐น Denial of Service (DoS)
A DoS attack is an attempt to make a network, server, or service unavailable by overwhelming it with excessive traffic or requests.
๐น Distributed Denial of Service (DDoS)
A DDoS attack is similar to DoS, but it is launched from multiple systems (botnets) at the same time.
๐ Simple idea:
- DoS = One attacker
- DDoS = Many attackers (more powerful)
โ ๏ธ 2. How DoS/DDoS Attacks Work
- Attacker sends a large number of requests
- Server resources (CPU, memory, bandwidth) get exhausted
- Legitimate users cannot access the service
๐งฑ 3. Types of DoS/DDoS Attacks
๐ธ 1. Volume-Based Attacks
- Flood network with traffic
- Example: UDP Flood
๐ธ 2. Protocol Attacks
- Exploit weaknesses in protocols
- Example: SYN Flood
๐ธ 3. Application Layer Attacks
- Target specific applications
- Example: HTTP Flood
๐ 4. Detection of DoS/DDoS Attacks
๐น 1. Traffic Analysis
- Monitor unusual traffic spikes
๐น 2. Network Monitoring Tools
- IDS/IPS systems detect suspicious activity
๐น 3. Behavior Analysis
- Identify abnormal patterns (e.g., repeated requests)
๐น 4. Log Analysis
- Check server logs for unusual activity
๐จ 5. Symptoms of DoS/DDoS Attacks
- Slow network performance
- Website/server becomes unavailable
- High bandwidth usage
- Increased number of requests from unknown sources
๐ก๏ธ 6. Prevention Techniques
๐ธ 1. Firewalls
๐ธ 2. Intrusion Prevention Systems (IPS)
- Detect and block attacks automatically
๐ธ 3. Rate Limiting
- Limit number of requests per user
๐ธ 4. Load Balancing
- Distribute traffic across multiple servers
๐ธ 5. Traffic Filtering
- Block suspicious IP addresses
๐ธ 6. Network Redundancy
- Use multiple servers and backup systems
๐ธ 7. Use of CDN (Content Delivery Network)
- Distributes traffic globally to reduce load
๐ธ 8. Anti-DDoS Services
- Specialized protection systems
๐ 7. Defense Strategies
๐น Proactive Defense
-
Prepare before attack:
- Strong infrastructure
- Monitoring systems
๐น Reactive Defense
-
Respond during attack:
- Block IPs
- Redirect traffic
๐ 8. Important Concept
๐ธ Traffic Threshold Rule
If Traffic > Normal Threshold โ Possible DoS Attack
๐ผ๏ธ 9. Diagram Descriptions
๐ DoS Attack Diagram
- Single attacker โ Server โ Overload
๐ DDoS Attack Diagram
- Multiple attackers (botnet) โ Server โ Crash
๐ Load Balancing Diagram
- Traffic โ Multiple servers โ Balanced load
๐งพ 10. Real-Life Examples
- ๐ Popular websites becoming unavailable due to heavy traffic attacks
- ๐ข Company servers crashing due to DDoS
- ๐ฎ Online gaming servers targeted by attackers
๐ Likely Exam Questions
- Define DoS and DDoS attacks.
- Differentiate between DoS and DDoS.
- Explain types of DoS attacks.
- How can DoS/DDoS attacks be detected?
- Describe prevention techniques for DDoS.
- What are symptoms of a DoS attack?
- Explain rate limiting and load balancing.
- What is a botnet?
- Describe application-layer attacks.
- Write short notes on:
- SYN Flood
- CDN
- Traffic filtering
๐ Quick Summary / Conclusion
- DoS/DDoS attacks aim to make services unavailable.
- DDoS is more dangerous due to multiple attackers.
- Detection involves monitoring traffic and behavior.
- Prevention includes firewalls, IPS, load balancing, and CDNs.
- Strong planning and layered defense reduce risks.
๐ In short:
DoS and DDoS attacks disrupt services, but proper detection and multi-layered prevention can effectively defend against them.