- For this particular demo, we'll show how to move an active instance of prads from one middlebox to another.
- We need to update the class path for the controller application. Open the ~/OptMB/apps/build.xml file and update the following line:
<attribute name="Class-Path" value=".:./bin/" />
- Now compile the demo controller:
cd ~/OptMB/apps
ant
- Open the ~/OptMB/apps/testTimedMoveAll.prop file and update the following lines:
edu.wisc.cs.wisdom.sdmbn.apps.testing.TestTimedMoveAll.TraceReplaySwitchPort = 1
edu.wisc.cs.wisdom.sdmbn.apps.testing.TestTimedMoveAll.TraceReplayHost = 192.168.0.1
- We need to generate a large packet capture file which we can playback for the demo. An easy way to do this is to start watching a video in Youtube. Run the following commands, and hit Ctrl-C to exit tcpdump after capturing ~25,000 packets:
cd ~/OptMB/apps
tcpdump -i <your active interface, ie. eth0> -s 1000 -w largeflows.pcap -v
- Update the prads configuration by opening the /usr/local/etc/sdmbn.conf file and update the following lines:
ctrl_ip = 192.168.0.254
ctrl_port_state = 7690
ctrl_port_event = 7691
- Update the mininet configuration by opening the ~/OptMB/demo/scripts/demo.py file and update the line which defines the remote controller:
c0 = RemoteController('c0', ip='192.168.0.254', port=6601)
- Make sure tcpreplay is installed:
sudo apt-get install tcpreplay
- Lastly, disable any networking managers that are running on your system. Turn off any wired or wireless connections that are active from the system tray (next to the clock). Check for the network-manager service; if this exists, stop it:
sudo service network-manager stop
Any active network managers will interfere with the mininet switches and prevent them from working correctly.