Posts

Future References

Image
Hello All, Hope you learned something useful with respect to SDNs and ML through this workshop. In case if you are interested to work further in this amazing domain, you might face many problems. This post is to help you out at such a point. One very common problem one might face while working with Zodiac FX switches are that it might just stop working sometimes. Try checking with different USB cables, Ethernet cables, and laptop ports. If you have exhausted the above possibilities, you can install and/or update the firmware of the Zodiac FX switch. The below videos helps you to the same. In case you face any other problem, you can refer to our blog we have created exclusively for our SDN based final year project. In the blog, we have explained the errors we have previously got, how we fixed those errors, various software packages we've used, how to use them and how to create a real-time prototype of any topology you wish to build. https://aristasdn.blogspo...

List of commands for Day 3

Here is the list of commands we shall be needing for Day 3: To open putty: sudo putty Inside the putty terminal: openflow show flows To run the Ryu controller: cd ryu ryu-manager ryu.app.ofctl_rest ryu.app.simple_switch_13 ryu-manager ryu.app.ofctl_rest ryu.app.rest_router Curl Commands: curl -X GET http://localhost:8080/stats/switches curl -X POST -d '{"dpid": 123917682136693,"priority": 1030 , "match" : { "ipv4_src" : "192.168.1.30", "ipv4_dst":"192.168.1.40"},"actions":[{"type": "SET_FIELD","field": "ipv4_src","value": "192.168.1.50" },{"type": "SET_FIELD","field": "eth_type" , "value" : 2048}, {"type":"OUTPUT","port": 3}]}' http://localhost:8080/stats/flowentry/add To create a DDoS attack: hping3 -c 10000 -d 120 -S -w 64 --flood --r...

Session 1 Day3

Hi folks, The agenda for today is to learn the intuition for decision trees and artificial neural networks. The dataset and scripts for decision trees: https://drive.google.com/drive/folders/1n386wJlSC0gUX2Ty6PsfPLEIgtvtcJt9?usp=sharing The dataset and scripts for Neural nets: https://drive.google.com/open?id=1gDPDemTfG26iMqiweRQg1l6J6yPX3Ufk

Day 3 : Session 1 - ML prerequisites

Hi folks, Updates 1. pip3 install pydotplus 2. pip3 install IPython If graphviz executable is failing to load, then do the following in the terminal,                    sudo apt-get install graphviz Please install keras and tensorflow to implement neural nets using the following commands 1. pip3 install tensorflow 2. pip3 install keras Stay tuned for more updates! :)

ML resources

Hi folks! Here are some useful links for deeper understanding of ML,amd the concepts covered in the workshop. 1. Linear regression https://medium.com/datadriveninvestor/basics-of-linear-regression-9b529aeaa0a5 2. Reinforcement learning Tic Tac Toe example https://towardsdatascience.com/reinforcement-learning-implement-tictactoe-189582bea542 The basics https://deeplizard.com/learn/video/my207WNoeyA The pros and cons https://pythonistaplanet.com/pros-and-cons-of-reinforcement-learning/ 3. KNN https://www.datacamp.com/community/tutorials/k-nearest-neighbor-classification-scikit-learn 4. Overall example of what algorithm to use when https://blog.statsbot.co/machine-learning-algorithms-183cc73197c 5. Neural Nets The video for basics https://www.youtube.com/watch?v=aircAruvnKk Theory for Artificial neural networks http://www.theprojectspot.com/tutorial-post/introduction-to-artificial-neural-networks-part-1/7 How to set up your first simple neural net with keras...

Day 3 Session 2: Building an SDN network

In this session, we shall initially be building a basic SDN network with 1 Controller, 1 Zodiac FX switch and 2 Hosts. Later, we shall look into how OpenFlow protocol installs flows in the Zodiac FX switch using 2 software packages: putty Wireshark After this, we shall create DDoS attacks and see how the controller reacts. We shall also see how to detect DDoS attacks from the controller. Here is a recap of Day 2, which is necessary to understand tomorrow's session: Step 1: Connect a USB cable to power the Zodiac FX switch and the other end to the laptop. Note that the Zodiac FX switch can be powered from any device and not just the controller. Step 2: Open a terminal and execute the command dmesg | grep tty Note the port of the system the USB ACM device is connected to. It's usually ttyACM0 or ttyACM1. Step 3: Open putty terminal by executing this command sudo putty Go to the Serial Connection Type and give /dev/ttyACM0 or /dev/ttyACM1 ...