Changes between Version 5 and Version 6 of Old/Documentation/OTG/ScriptsRepository/ExpFWD


Ignore:
Timestamp:
Feb 8, 2006, 10:15:19 PM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

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

    v5 v6  
    22
    33{{{
     4 
     5
    46require 'net/http'
    57require 'uri'
     
    1517# Define nodes used in experiment
    1618#
     19
     20defNodes('receiver', [7,6]) {|node|
     21  node.image = nil  # assume the right image to be on disk
     22  node.prototype("test:proto:raw_receiver" , {
     23      'dstfilter' => '12.0.0.7',
     24      'rxdev' => 'ath0',
     25      'protocol' => 'raw'
     26  })
     27  node.net.w0.mode = "master"
     28  node.net.w0.essid = "helloworld"
     29  node.net.w0.type = 'a'
     30  node.net.w0.channel = 36
     31  node.net.w0.ip = '12.0.0.7'
     32}
     33
     34
    1735defNodes('sender', [4,3]) {|node|
    1836  node.image = nil  # assume the right image to be on disk
     
    2543  })
    2644  node.net.w0.mode = "managed"
     45  node.net.w0.essid = "helloworld"
    2746  node.net.w0.ip = "11.0.0.4"
    28   node.net.w0.gateway="11.0.0.1"
     47#  node.net.w0.gateway = "11.0.0.1" 
    2948}
    3049
    31 
    32 defNodes('receiver', [7,6]) {|node|
    33   node.image = nil  # assume the right image to be on disk
    34   node.prototype("test:proto:raw_receiver" , {
    35       'dstfilter' => '12.0.0.7',
    36       'rxdev' => 'ath0',
    37       'protocol' => 'raw'
    38   })
    39   node.net.w0.mode = "master"
    40 }
    4150
    4251defNodes('forwarder', [5,8]) {|node|
     
    5160   node.net.w0.ip="11.0.0.1"
    5261   node.net.w0.mode = "managed"   
     62   node.net.w0.essid = "helloworld"
    5363}
    54 
    55 allNodes.net.w0 { |w|
    56   w.essid = "helloworld"
    57 }
    58 
     64 
    5965#
    6066# Now, start the application
    6167#
    6268whenAllInstalled() {|node|
     69puts "run something..."
    6370  wait 30
    64 
    65   allNodes.startApplications
    66   wait 40
     71 allNodes.startApplications
     72  wait 30
    6773
    6874  Experiment.done
    6975}
    7076
     77
    7178}}}
    7279