Skip to content

RajathPatilKulkarni/DDoS-Attack-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🛡️ DDoS Attack Simulation in C++

C++ License: MIT Simulated Mitigation

This project simulates a Distributed Denial-of-Service (DDoS) attack in a network of nodes using C++. It models legitimate and malicious traffic, processes packets, and applies mitigation strategies to analyze how a target system handles attack scenarios.

⚠️ For educational and ethical use only. This simulation is intended solely for research and learning purposes.


📌 Features

  • Node-based virtual network simulation
  • Simulates attacker vs legitimate traffic sources
  • Supports various DDoS mitigation techniques:
    • ✅ Rate Limiting
    • ✅ IP Filtering
    • ✅ Deep Packet Inspection (DPI)
    • ✅ Traffic Pattern Analysis
  • Packet-level processing and drop stats
  • Modular design to easily add more techniques

🖥️ How It Works

  • Nodes generate packets targeting a specific node (victim).
  • Attackers generate high-volume traffic based on configurable intensity.
  • The simulator evaluates the effect of each mitigation strategy across multiple time steps.
  • Statistics on packets processed, dropped, and load on the target node are logged for each step.

🛠️ Setup & Run

🧾 Prerequisites

  • C++17 compatible compiler (e.g. g++, clang++)
  • Linux/MacOS/Windows Terminal

🧪 Compile

g++ src/main.cpp -o ddos_simulation

▶️ Run

./ddos_simulation

📊 Sample Output

=== DDoS Attack Simulation ===
Network configuration: 50 nodes, 10 attackers, target node: 0

=== Without Mitigation ===
Time step: 0
Packets processed: 400 (Legitimate: 100, Attack: 300)
Packets dropped: 600 (Legitimate: 0, Attack: 600)
Target node load: 1000/1000
----------------------------------

📁 Project Structure

ddos-attack-simulation/
├── src/
│   └── main.cpp           # Main simulation code
├── README.md              # Project documentation
├── LICENSE                # MIT License

🧠 Topics

  • c++
  • ddos
  • network-simulation
  • cybersecurity
  • network-security
  • mitigation-strategies
  • ethical-hacking
  • packet-analysis

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.


👨‍💻 Author

Rajath Patil Kulkarni

GitHub · LinkedIn

About

This project simulates a Distributed Denial-of-Service (DDoS) attack in a virtual network environment. It models a network of nodes, some of which act as attackers flooding a target node with malicious traffic. The simulation supports various traffic mitigation strategies to analyze their effectiveness under attack conditions.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages