1. Import SDN-DDoS-Detection.ova into VirtualBox.

2. Start the Ubuntu-SDN VM.

3. Login.

4. Open Terminal.

5.Switch user 
  #Sudo su 

6. Change to actuall directory
  #cd /home/safi/SDN-Project

7. Activate the OS-Ken controller
 #source osken-env/bin/activate

8. Start OS-Ken controller.
   #python run_controller.py

9. Move to topology directory
   #cd /home/safi/SDN-Project/topology

10.Start Mininet topology
 python3 webserver_topoology.py

11. Verify OVS connection
   established ping between mininet host and server
   
12. Start web server inside mininet
    
13. Start Normal user Ubuntu 

14. login

15.Switch User 
 #Sudo su 
 Make sure the network reachability by adding route 
  #ip route add 10.0.0.0/24 via 192.168.56.101 dev eth0

16. Generate normal traffic.
  curl http://10.0.0.1

17. Start Kali-attacker 

18. Login 
    #Sudo su 

19. Make sure the network reachability by adding route 
  #ip route add 10.0.0.0/24 via 192.168.56.101 dev eth0

20. Run the authorised laboratory attack test.
   #hping3 -S -p 80 --flood 10.0.0.1
21. Observe ML detection.

22. Verify OpenFlow mitigation rule.
   # sudo ovs-ofctl -O OpenFlow13 dump-flows s1 | grep "cookie=0xd00d"

23. Generate Unseen attack from mininet
    #mininet> h3 sh -c 'for i in $(seq 1 2000); do ping -c 1 -W 1 10.0.0.1 >/dev/null & done; wait' 
24. Observe ML detection.

25. Verify OpenFlow mitigation rule.
   # sudo ovs-ofctl -O OpenFlow13 dump-flows s1 | grep "cookie=0xd00d"

26. Check live_flows.csv.
   # cd dataset
   # tail -10 live_flows.csv



-------------------------------LOGIN_Credential----------------------------

Ubuntu-SDN
Kali_attacker
Ubuntu_Normal-user

Username- safi
Password- 1234

credential same for three instance.

-------------------------------.Ova File one drive link----------------------

https://uowtsd-my.sharepoint.com/:f:/g/personal/2436374_student_uwtsd_ac_uk/IgDpG-ctypFcT4s-6IksCBVIAfPMuxn-77GwaoyfCJU8crU?e=9tU331



