chiragbiradar / DDoS-Attack-Detection-and-Mitigation

SDN networks (Software Defined Networking ) are exposed to new security threats and attacks, especially Distributed Denial of Service (DDoS) attacks. For this aim, we have proposed a model able to detect and mitigate attacks automatically in SDN networks using Machine Learning (ML)
http://www.fiverr.com/s/m5Y8Z6x
MIT License
131 stars 24 forks source link

Several questions when running codes #15

Open Marvelous-coco opened 6 months ago

Marvelous-coco commented 6 months ago

Hello, i have a few questions when i try to run the project. question1 : After I run controller.py in ryu, I stuck to this step for 8 hours: Snipaste what does the last sentence mean?and the ryu manager output nothing after i launched ICMP flood in mininet.

Question2 : How can i get "PredictFlowStatsfile.csv" to predict flow?

Question3 : How can I change learning methods in controller.py and how can i use ml.py?

I would greatly appreciate it if you could provide some guidance on how to resolve these issue. Thank you for your time and for sharing your code with the community.

Marvelous-coco commented 6 months ago

And i ran topology.py then tried "pingall" in mininet , the hosts can not reach each othe. Then I used command"sudo mn -c" but it didn't work, do you have any suggestions for it?.( I used Ubuntu18.04 ,python 3.6) Snipaste08

chiragbiradar commented 6 months ago

Hello @Marvelous-coco , Answer 1: The last sentence in your message refers to the script importing the package. It's not stuck; rather, it's running in the background. You can now proceed to perform attacks and observe the detected and mitigated traffic. As for the Ryu manager, if it's not outputting anything after you launched the ICMP flood in Mininet, you might want to check the configuration or logs to troubleshoot the issue. Keep an eye on the Ryu manager's logs or console output for any relevant information. Check if mininet is connected properly.

Answer 2: You can get predictflow.csv here-> https://drive.google.com/file/d/1N2QLDPb90XOdxcuQ_Fb7ZSVOG4J3w_zY/view

Answer 3: There separate script for different methods ex: knn.py, rf.py, you can also check dump folder

chiragbiradar commented 6 months ago

And i ran topology.py then tried "pingall" in mininet , the hosts can not reach each othe. Then I used command"sudo mn -c" but it didn't work, do you have any suggestions for it?.( I used Ubuntu18.04 ,python 3.6) Snipaste08

Have you changed mininet ip with your mininet ip?

Marvelous-coco commented 6 months ago

And i ran topology.py then tried "pingall" in mininet , the hosts can not reach each othe. Then I used command"sudo mn -c" but it didn't work, do you have any suggestions for it?.( I used Ubuntu18.04 ,python 3.6) Snipaste08

Have you changed mininet ip with your mininet ip?

Yes, I replaced the controller ip with my own ryu controller ip, while keep the hosts and switches ip the same as your settings.

chiragbiradar commented 6 months ago

And i ran topology.py then tried "pingall" in mininet , the hosts can not reach each othe. Then I used command"sudo mn -c" but it didn't work, do you have any suggestions for it?.( I used Ubuntu18.04 ,python 3.6) Snipaste08

Have you changed mininet ip with your mininet ip?

Yes, I replaced the controller ip with my own ryu controller ip, while keep the hosts and switches ip the same as your settings.

Can you share your machine details: OS, whether your are using VM, etc

Marvelous-coco commented 6 months ago

Hello!Thank you for your kindly reply! But I still can't see the attack be mitigated after I run KNN_controller.py and minigation_module.py.