Orbit > OTG > Scripts Repository > Start 3 Co-located UDP sessions to one receiver
Experiment.name = "tutorial-1d"
Experiment.project = "orbit:tutorial"
#
# Define nodes used in experiment
#
defNodes('sender1', [1,2]) {|node|
node.image = nil # assume the right image to be on disk
node.prototype("test:proto:colocate_sender", {
'destinationHost' => '192.168.1.1',
'packetSize' => 1024,
'port1' => 3001,
'port2' => 3002,
'port3' => 3004,
'rate' => 300,
'protocol' => 'udp'
})
node.net.w0.mode = "master"
}
defNodes('receiver', [1,1]) {|node|
node.image = nil # assume the right image to be on disk
node.prototype("test:proto:receiver" , {
'protocol' => 'udp'
})
node.net.w0.mode = "managed"
}
allNodes.net.w0 { |w|
w.type = 'b'
w.essid = "helloworld"
w.ip = "%192.168.%x.%y"
}
#
# Now, start the application
#
whenAllInstalled() {|node|
wait 30
allNodes.startApplications
wait 60
Experiment.done
}
Last modified
20 years ago
Last modified on Feb 27, 2006, 8:51:28 PM
Note:
See TracWiki
for help on using the wiki.
