fix the mtu issue using gre tunnels

parent cdbd8bcf
......@@ -91,12 +91,6 @@ def bandwidthTopo(bw, controllerip):
attacker = net.addHost( 'h1', mac='00:00:00:00:00:21')
brosys = net.addHost( 'h2', mac='00:00:00:00:00:22')
brosys2 = net.addHost( 'h3', mac='00:00:00:00:00:23')
attacker.cmd('ethtool -K h1-eth0 tso off')
attacker.cmd('ifconfig h1-eth0 mtu 900')
brosys.cmd('ethtool -K h2-eth0 tso off')
brosys.cmd('ifconfig h2-eth0 mtu 900')
brosys2.cmd('ethtool -K h3-eth0 tso off')
brosys2.cmd('ifconfig h3-eth0 mtu 900')
topSwitch = net.addSwitch( 's1' )
bottomSwitch = net.addSwitch( 's2' )
lvl2Switch = net.addSwitch( 's3' )
......@@ -167,10 +161,15 @@ def bandwidthTest(bw=5, controllerip="localhost"):
h1 = net.getNodeByName('h1')
h2 = net.getNodeByName('h2')
h3 = net.getNodeByName('h3')
s1 = net.getNodeByName('s1')
s1.cmd("ifconfig s1-eth1 mtu 900")
s2 = net.getNodeByName('s2')
s3 = net.getNodeByName('s3')
#populate l3 routes
......@@ -188,7 +187,13 @@ def bandwidthTest(bw=5, controllerip="localhost"):
#start the traffic generation wait for 5 seconds (H1->H3)
tg_cmd = 'mz h1-eth0 -c 0 -t udp sp=49 -A -B -P \"Hello World\" &'
print "Traffic generation from H1 -> H3 started"
h1.cmd('sudo ethtool -K h1-eth0 tso off')
h1.cmd("ifconfig h1-eth0 mtu 900")
h2.cmd('sudo ethtool -K h2-eth0 tso off')
h2.cmd("ifconfig h2-eth0 mtu 900")
h3.cmd('sudo ethtool -K h3-eth0 tso off')
h3.cmd("ifconfig h3-eth0 mtu 900")
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