Goal: Setting up a simple packet topology controlled by Ryu. Then failing some of the optical and packet links and observing the behaviuor.
Requirements:
A basic knowlege of Ryu, OpenFlow and linux CLI is required.
Environment: I have used the VM from sdn hub, I recommond you do the same. Link for installation is provided below: http://sdnhub.org/tutorials/sdn-tutorial-vm/
Road Map: This document has two sections for setup:
- Setting up the network
- Doing tests and experiments
Notations:
iControl>
Means the iControll command line
a. Run Ryu
If you are using SDN hub Vm, go to /home/ubuntu/ryu
and run Ryu:
> sudo ./bin/ryu-manager --verbose ryu/app/simple_switch_13.py
b. Start up the Mininet network
> sudo -E python Link_Failure_PktNet.py
When the controller and the topo are up and running, I do the follwoing in the Mininet CLI:
- pingall
- bring a link down
- pingall
- bring the link up again
- pingall
The captured packets can be found in mn_ryu_linkfailure_of3.pcapng. Here is the topo:
Note that when a link goes down, odp_port_status messages are sent to the controller from switch. Here is the structure of this message: