1.Install mininet http://mininet.org/download/
2.Install floodlight or clone this following repo. as example https://github.com/wallnerryan/floodlight-qos-beta
3.Extract floodlight-qos-beta files
4.Clone and copy project492.py of mininet topo to your /mininet/custom folder
(Used example one)
$cd floodlight-qos-beta
$ant
$ java -jar target/floodlight.jar
To visit Floodlight ui -> 127.0.0.1:8080/ui/index.html
$sudo mn --custom ~/mininet/custom/project492.py --topo mytopo --controller remote
mininet> iperf h1 h3 (Test connection between h1 and h3)
or
mininet>xterm h1 h3
h3>iperf -s (open TCP socket reciever)
h1>iperf -c 10.0.0.3 (h3 IP)
**If dont have xterm -> sudo apt-get xterm
Follow this repo. PHP side
$cd floodlight-qos-beta; $cd apps
$sudo ./mininet-add-queues.py
Now queues are ready for each interface
$sudo ./qosmanager2 -e
$sudo ./qosmanager2 -L -t policies
$sudo ./qospath2.py -a -S 10.0.0.3 -D 10.0.0.1 -N 2Bits3-1 -J '{"eth-type":"0x0800","queue";"2"}'
[-a = add ,-S source IP , -D destination IP , -N name of policy , -J json object
**Then test bandwidth again by let 10.0.0.1 as receiver from 10.0.0.3
$sudo ./qospath2.py -d -N 2Bits3-1