Home
The purpose of this project is to create a dominant-state multipath-routed network. To do this, we used the Ryu SDN controller connected to a mininet instance.
Once you have both mininet and Ryu installed, navigate to the home directory of this repository on your local machine.
Then, launch the mininet instance:
sudo mn --custom [topoFile] --topo [topo] --controller remote --switch ovsk,protocols=OpenFlow13 --link=tc
The main topology file used by this project is square_topo.py
and the topology is square_topo
.
Once mininet is up and running, launch the controller in a separate terminal:
ryu-manager [controllerFile] --observe-links
The controller files are shortestPathWithSTP.py
and mplsShortestPathWithSTP.py
. Note that the controller must be launched after the mininet instance is launched; otherwise, unexpected behavior may occur.
Now that both mininet and the controller are running, you can try various commands in the mininet command line, such as pinging from one host to another. To view the flow information on the switches, you can use
sudo ovs-ofctl -O OpenFlow13 dump-flows [switch_name]