Tutorials/g0WmLTE/Tutorial2: nyupoly_mcsmod.rb

File nyupoly_mcsmod.rb, 1.2 KB (added by jeffrabi, 5 years ago)

Experiment Description

Line 
1defGroup('first_node', 'node1-1.sb4.orbit-lab.org') do |node|
2  node.net.x0.profile = '51'
3  node.net.x0.ip = '10.41.14.1'
4  node.net.x0.netmask = '255.255.0.0'
5  node.addApplication("test:app:wimaxcu_app") do |app|
6    app.measure('status_link')
7  end
8  node.addApplication("test:app:iperf") do |app|
9    app.setProperty('client','10.41.14.4',true)
10        app.setProperty('mss', 536) # Do not raise above 600
11    app.setProperty('interval', 10)
12    app.setProperty('bind', "10.41.14.1")
13    app.measure('TCP_Info', :samples => 2)
14  end
15end       
16
17defGroup('second_node', 'node1-4.sb4.orbit-lab.org') do |node|
18  node.net.x0.profile = '51'
19  node.net.x0.ip = '10.41.14.4'
20  node.net.x0.netmask = '255.255.0.0'
21  node.addApplication("test:app:wimaxcu_app") do |app|
22    app.measure('status_link')
23  end
24  node.addApplication("test:app:iperf") do |app|
25    app.setProperty('server', true)
26        app.setProperty('mss', 536) # Do not raise above 600
27    app.setProperty('interval', 10)
28    app.setProperty('bind', "10.41.14.4")
29    app.measure('TCP_Info', :samples => 2)
30  end
31end       
32
33
34onEvent(:ALL_UP_AND_INSTALLED) do |event|
35  allGroups.startApplications
36  wait 30
37  allGroups.stopApplications
38  Experiment.done
39end