mininet bandwidth bug always reports int speed as 10, hardcoded to reflect...

mininet bandwidth bug always reports int speed as 10, hardcoded to reflect actual speed in ryu app, new set of results where the cpqd switch operates without drastic performance degradation
parent e39c7ff0
......@@ -20,7 +20,7 @@ set style line 4 lt 2 lc rgb "orange" lw 2
set timefmt '%s'
set xlabel "Time Series"
set ylabel "Mbps"
set yrange [0:10]
set yrange [0:5]
set ytics 0.5
#set xdata time
set datafile separator ","
......
......@@ -67,15 +67,15 @@ def clean():
pass
os.system('sudo mn -c')
#Creat a topology with 10 Mbs links except the one with the src host
#Creat a topology with 5 Mbs links except the one with the src host
#connected to the network, configure that with bw
def bandwidthTopo(bw, controllerip):
net = Mininet(controller=RemoteController, switch=UserSwitch)
net = Mininet(controller=RemoteController, switch=UserSwitch,link=TCLink)
c0 = net.addController('c0', ip=controllerip, port=6633 )
srcLink = custom(TCLink, bw=bw)
otherLink = custom(TCLink, bw=10)
otherLink = custom(TCLink, bw=4)
"Create custom topo."
attacker = net.addHost( 'h1', mac='00:00:00:00:00:21')
......@@ -209,7 +209,7 @@ def bandwidthTest(bw=5, controllerip="localhost"):
p = Popen(scriptName, shell=True)
sleep_time = 150
sleep_time = 250
i = 10;
while ( i < sleep_time):
if opts.mode == "all":
......@@ -230,6 +230,8 @@ def bandwidthTest(bw=5, controllerip="localhost"):
#stop the traffic generation
h1.cmd('killall mz')
cmd = ("killall bwm-ng")
Popen(cmd, shell=True).wait()
#if opts.mode != "all":
#h2.cmd('killall mz')
......
......@@ -73,8 +73,8 @@ def bandwidthTopo(bw, controllerip):
c0 = net.addController('c0', ip=controllerip, port=6633 )
srcLink = custom(TCLink, bw=bw)
src2Link = custom(TCLink, bw=10-bw)
otherLink = custom(TCLink, bw=10)
src2Link = custom(TCLink, bw=4-bw)
otherLink = custom(TCLink, bw=4)
"Create custom topo."
h1 = net.addHost( 'h1', mac='00:00:00:00:00:21' )
......
......@@ -85,7 +85,7 @@ def bandwidthTopo(bw, controllerip):
c0 = net.addController('c0', ip=controllerip, port=6633 )
srcLink = custom(TCLink, bw=bw)
otherLink = custom(TCLink, bw=10)
otherLink = custom(TCLink, bw=4)
"Create custom topo."
attacker = net.addHost( 'h1', mac='00:00:00:00:00:21')
......
......@@ -85,7 +85,7 @@ def bandwidthTopo(bw, controllerip):
c0 = net.addController('c0', ip=controllerip, port=6633 )
srcLink = custom(TCLink, bw=bw)
otherLink = custom(TCLink, bw=10)
otherLink = custom(TCLink, bw=4)
"Create custom topo."
attacker = net.addHost( 'h1', mac='00:00:00:00:00:21')
......
......@@ -85,7 +85,7 @@ def bandwidthTopo(bw, controllerip):
c0 = net.addController('c0', ip=controllerip, port=6633 )
srcLink = custom(TCLink, bw=bw)
otherLink = custom(TCLink, bw=10)
otherLink = custom(TCLink, bw=4)
"Create custom topo."
attacker = net.addHost( 'h1', mac='00:00:00:00:00:21')
......
#!/bin/bash -x
declare -a arr=(1 2 3 4 5 6 7 8 9 10)
declare -a arr=(1 2 3)
for i in "${arr[@]}"
do
echo "Running BW Test with source link setto $i MB"
......
......@@ -85,7 +85,7 @@ def bandwidthTopo(bw, controllerip):
c0 = net.addController('c0', ip=controllerip, port=6633 )
srcLink = custom(TCLink, bw=bw)
otherLink = custom(TCLink, bw=10)
otherLink = custom(TCLink, bw=4)
"Create custom topo."
attacker = net.addHost( 'h1', mac='00:00:00:00:00:21')
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment