Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.65 KB

Pkt_Network_Link_Failure.md

File metadata and controls

42 lines (31 loc) · 1.65 KB

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:

  1. Setting up the network
  2. Doing tests and experiments

Notations:

  • iControl> Means the iControll command line

1. Setting up the network and the controller

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

2. Doing some tests and observing the behavior

When the controller and the topo are up and running, I do the follwoing in the Mininet CLI:

  1. pingall
  2. bring a link down
  3. pingall
  4. bring the link up again
  5. pingall

The captured packets can be found in mn_ryu_linkfailure_of3.pcapng. Here is the topo: Alt text

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:

Alt text