Changes between Initial Version and Version 1 of Old/Documentation/OTG/ScriptsRepository/OTG/ScriptsRepository/ExpUDP3to1


Ignore:
Timestamp:
Sep 29, 2005, 3:46:06 PM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/Documentation/OTG/ScriptsRepository/OTG/ScriptsRepository/ExpUDP3to1

    v1 v1  
     1describe OTG/ScriptsRepository/ExpUDP3to1 here
     2
     3{Experiment.name = "tutorial-1a"
     4Experiment.project = "orbit:tutorial"
     5
     6#
     7# Define nodes used in experiment
     8#
     9defNodes('sender', [1,2]) {|node|
     10  node.image = nil  # assume the right image to be on disk
     11
     12  node.prototype("test:proto:sender", {
     13    'destinationHost' => '192.168.1.1',
     14    'packetSize' => 1024,
     15    'rate' => 300,
     16    'protocol' => 'udp'
     17  })
     18  node.net.w0.mode = "master"
     19}
     20
     21defNodes('receiver', [1,1]) {|node|
     22  node.image = nil  # assume the right image to be on disk
     23  node.prototype("test:proto:receiver" , {
     24    'protocol' => 'udp'
     25  })
     26  node.net.w0.mode = "managed"
     27}
     28
     29allNodes.net.w0 { |w|
     30  w.type = 'b'
     31  w.essid = "helloworld"
     32  w.ip = "%192.168.%x.%y"
     33}
     34
     35#
     36# Now, start the application
     37#
     38whenAllInstalled() {|node|
     39  wait 30
     40
     41  allNodes.startApplications
     42  wait 40
     43
     44  Experiment.done
     45}
     46
     47
     48}}}