diff --git a/examples/linearbandwidth.py b/examples/linearbandwidth.py index 18ccf90d1b9dad6fa89417bfe439e3e7caa96459..5cd05f0046c04b4e5a62f73175af5ce71f46261b 100755 --- a/examples/linearbandwidth.py +++ b/examples/linearbandwidth.py @@ -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