Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several questions when running codes #15

Open
Marvelous-coco opened this issue Feb 17, 2024 · 6 comments
Open

Several questions when running codes #15

Marvelous-coco opened this issue Feb 17, 2024 · 6 comments

Comments

@Marvelous-coco
Copy link

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants