Friday, January 31, 2014

Installing CPqD switch, invoke using Mininet and OpenFlow 1.3 for Communication

Installing CPqD switch on Mininet instead of OVSK.

If OVSK is already installed remove it using below commands

sudo kill `cd /usr/local/var/run/openvswitch && cat`
sudo /etc/init.d/openvswitch-switch stop
sudo apt-get remove openvswitch-common openvswitch-datapath-dkms openvswitch-controller openvswitch-pki openvswitch-switch

Git clone mininet
Below git command will check out the latest Mininet
git clone git://

If you want to run the last tagged/released version of Mininet, use
git clone git://
git checkout -b 2.1.0 2.1.0

Install CPqD
cd mininet/util
sudo ./ -n3fx

Start CPqD Switch
sudo mn --topo single,2 --controller remote,ip= --switch user,protocols=OpenFlow13

CPqD works in User space and OVS works in kernel space.

To get the dpid of CPqD switch
sudo dpctl tcp: features

To get the stats and flow rule for CPqD switch:
dpctl tcp: stats-flow

dpctl doc