Skip to content
Snippets Groups Projects
Commit 4a304688 authored by Bob Lantz's avatar Bob Lantz
Browse files

Select TCP Reno and run iperf for a longer time interval

The hope is that this will make the results a bit more consistent
when running in a VM environment.
parent d3377bf9
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
from mininet.node import UserSwitch, OVSKernelSwitch, Controller from mininet.node import UserSwitch, OVSKernelSwitch, Controller
from mininet.topo import Topo from mininet.topo import Topo
from mininet.log import lg from mininet.log import lg
from mininet.util import irange from mininet.util import irange, quietRun
from mininet.link import TCLink from mininet.link import TCLink
from functools import partial from functools import partial
...@@ -78,6 +78,10 @@ def linearBandwidthTest( lengths ): ...@@ -78,6 +78,10 @@ def linearBandwidthTest( lengths ):
topo = LinearTestTopo( hostCount ) topo = LinearTestTopo( hostCount )
# Select TCP Reno
output = quietRun( 'sysctl -w net.ipv4.tcp_congestion_control=reno' )
assert 'reno' in output
for datapath in switches.keys(): for datapath in switches.keys():
print "*** testing", datapath, "datapath" print "*** testing", datapath, "datapath"
Switch = switches[ datapath ] Switch = switches[ datapath ]
...@@ -97,7 +101,7 @@ def linearBandwidthTest( lengths ): ...@@ -97,7 +101,7 @@ def linearBandwidthTest( lengths ):
# since the reference controller is reactive # since the reference controller is reactive
src.cmd( 'telnet', dst.IP(), '5001' ) src.cmd( 'telnet', dst.IP(), '5001' )
print "testing", src.name, "<->", dst.name, print "testing", src.name, "<->", dst.name,
bandwidth = net.iperf( [ src, dst ] ) bandwidth = net.iperf( [ src, dst ], seconds=10 )
print bandwidth print bandwidth
flush() flush()
results[ datapath ] += [ ( n, bandwidth ) ] results[ datapath ] += [ ( n, bandwidth ) ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment