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


Ignore:
Timestamp:
Oct 5, 2005, 4:04:18 PM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

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

    v1 v1  
     1describe OTG/ScriptsRepository/ExpRAW1 here
     2
     3{{{
     4
     5Experiment.name = "tutorial-1g"
     6Experiment.project = "orbit:tutorial"
     7#
     8# Define nodes used in experiment
     9#
     10defNodes('sender', [1,2]) {|node|
     11  node.image = nil  # assume the right image to be on disk
     12  node.prototype("test:proto:raw_sender", {
     13        'destinationMAC' =>'00:60:B3:AC:2B:9E',
     14        'txdev'=>'ath0,
     15        'packetSize' => 1024,
     16        'rate' => 300
     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:raw_receiver" , {
     24        'rxdev' => 'ath0',
     25      'protocol' => 'raw'
     26        })
     27  node.net.w0.mode = "managed"
     28  }
     29
     30  allNodes.net.w0 { |w|
     31        w.type = 'b'
     32        w.essid = "helloworld"
     33        w.ip = "%192.168.%x.%y"
     34  }
     35
     36  #
     37  # Now, start the application
     38  #
     39 whenAllInstalled() {|node|
     40      wait 30
     41      allNodes.startApplications
     42      wait 40
     43
     44     Experiment.done
     45
     46}
     47
     48
     49}}}