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

Try to prime the pump to avoid PACKET_INs during iperf test

Background: the reference controller is reactive and installs exact
match rules. By attempting to start a telnet session we make sure that
the ARP caches and TCP flow rules are set up (in one direction at
least) before the test starts.

This is intended to help with #413
parent aae0affa
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,9 @@ def linearBandwidthTest( lengths ):
print "*** testing bandwidth"
for n in lengths:
src, dst = net.hosts[ 0 ], net.hosts[ n ]
# Try to prime the pump to reduce PACKET_INs during test
# since the reference controller is reactive
src.cmd( 'telnet', dst.IP(), '5001' )
print "testing", src.name, "<->", dst.name,
bandwidth = net.iperf( [ src, dst ] )
print 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