This project demonstrates dynamic routing in a Mininet-based software-defined network (SDN) environment. It also simulates a DoS attack using hping3 and adapts the routing to mitigate the attack's impact by dynamically switching paths. When the attack stops, the network restores all paths.
Table of Contents
...
...
@@ -29,8 +29,11 @@ Prerequisites
Install hping3
```
sudo apt-get update
sudo apt-get install hping3
```
Installation
...
...
@@ -39,8 +42,11 @@ Installation
Ensure Mininet is Installed: Mininet comes pre-installed on its official virtual machine (VM). If you're using a custom setup, follow the Mininet Installation Guide.
```
git clone https://github.com/mininet/mininet
cd mininet
```
Ensure Python Dependencies: No external dependencies are required for this project.
...
...
@@ -49,7 +55,7 @@ Usage
The main script (run_topology.py) initializes the network topology, enables IP forwarding, and listens for DoS attack signals.
sudo python3 run_topology.py
`sudo python3 run_topology.py`
You should see:
...
...
@@ -59,7 +65,7 @@ You should see:
Run the attacker script (attacker.py) to simulate a DoS attack using hping3.
sudo python3 attacker.py
`sudo python3 attacker.py`
Start Attack: The attacker script sends a 1 signal to the main script and starts flooding the target with ICMP packets using hping3.