Changes between Version 2 and Version 3 of Old/Documentation/OTG/ScriptsRepository/ExpFWD
- Timestamp:
- Feb 2, 2006, 5:35:47 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/Documentation/OTG/ScriptsRepository/ExpFWD
v2 v3 5 5 require 'uri' 6 6 7 Experiment.name = "hop- 4"7 Experiment.name = "hop-2" 8 8 Experiment.project = "orbit:mutli-hop" 9 9 10 Experiment.defProperty('rate', 10, 'Kilo Bits per second sent from sender')11 Experiment.defProperty('packetSize', 512, 'Size of packets sent from sender')12 Experiment.defProperty('destinationIP','12.0.0.7','The sink of the flow')10 #Experiment.defProperty('rate', 10, 'Kilo Bits per second sent from sender') 11 #Experiment.defProperty('packetSize', 512, 'Size of packets sent from sender') 12 #Experiment.defProperty('destinationIP','12.0.0.7','The sink of the flow') 13 13 14 14 # 15 15 # Define nodes used in experiment 16 16 # 17 nodes([3,3], 'sender') {|node|17 defNodes('sender', [3,3]) {|node| 18 18 node.image = nil # assume the right image to be on disk 19 # experiment property space 19 20 20 node.prototype("test:proto:sender", { 21 'destinationHost' => "12.0.0.7", 21 'destinationHost' => '12.0.0.7', 22 'packetSize' => 1024, 23 'rate' => 300, 24 'protocol' => 'udp' 22 25 }) 23 node.net.e0.ip = "11.0.0.4" 24 node.net.e0.gateway="11.0.0.1" 26 node.net.w0.mode = "managed" 27 node.net.w0.ip = "11.0.0.4" 28 node.net.w0.gateway="11.0.0.1" 25 29 } 30 31 26 32 27 33 nodes([8,8], 'receiver') {|node| … … 29 35 node.prototype("test:proto:receiver" , { 30 36 'hostname' => '12.0.0.7', 31 'protocol' => 'udp _libmac'37 'protocol' => 'udp' 32 38 }) 33 39 node.net.w0.mode = "ad-hoc" … … 38 44 } 39 45 40 46 defNodes('receiver', [1,1]) {|node| 47 node.image = nil 48 node.prototype("test:proto:receiver" , { 49 'protocol' => 'udp' 50 }) 51 node.net.w0.mode = "managed" 52 node.net.w0.ip = "12.0.0.7" 53 } 41 54 nodes([4,4], 'forwarder1') {|node| 42 55 node.image = nil # assume the right image to be on disk