POX basics – handling network events

Any topology will work for this, although the bigger it is the harder but more interesting.

https://gist.github.com/JamesWKerr/e8fad674b4593f2db8e3

This topology is used in Data Centres: the top four gateways to the internet would lead to  the root node, with the leaves(bottom nodes) being the hosts.

It looks something along these lines…

network-topology

To begin, open a text editor of your choice (sublime3, notepad++,vim, nano etc)

and save the file as a .py, to enable syntax highlighting.  I called mine rather unimaginitively EventViewer.py. Save this to the directory ext. This is where all your modules go.

D

 

I run mininet natively on linux, recommended for scalability and ease of use if you can, so my command is pox naturally, then the combination of my python module and the l2.learning. As before in simulation, use openvswitch and a remote controller. You can use my topos, or keep things simple as before. The ampersand at the end daemonises pox so you regain control of your terminal.

/home/james/pox/pox.py EventViewer.py l2_learning log –no-default –FatTree.py

 –controller=remote -switch ovsk –topo=mytopo–mac &