Changes between Version 5 and Version 6 of Old/Documentation/OTG/ScriptsRepository/ExpFWD
- Timestamp:
- Feb 8, 2006, 10:15:19 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/Documentation/OTG/ScriptsRepository/ExpFWD
v5 v6 2 2 3 3 {{{ 4 5 4 6 require 'net/http' 5 7 require 'uri' … … 15 17 # Define nodes used in experiment 16 18 # 19 20 defNodes('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 17 35 defNodes('sender', [4,3]) {|node| 18 36 node.image = nil # assume the right image to be on disk … … 25 43 }) 26 44 node.net.w0.mode = "managed" 45 node.net.w0.essid = "helloworld" 27 46 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" 29 48 } 30 49 31 32 defNodes('receiver', [7,6]) {|node|33 node.image = nil # assume the right image to be on disk34 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 }41 50 42 51 defNodes('forwarder', [5,8]) {|node| … … 51 60 node.net.w0.ip="11.0.0.1" 52 61 node.net.w0.mode = "managed" 62 node.net.w0.essid = "helloworld" 53 63 } 54 55 allNodes.net.w0 { |w| 56 w.essid = "helloworld" 57 } 58 64 59 65 # 60 66 # Now, start the application 61 67 # 62 68 whenAllInstalled() {|node| 69 puts "run something..." 63 70 wait 30 64 65 allNodes.startApplications 66 wait 40 71 allNodes.startApplications 72 wait 30 67 73 68 74 Experiment.done 69 75 } 70 76 77 71 78 }}} 72 79