Changes between Version 2 and Version 3 of Old/Documentation/OTG/ScriptsRepository/ExpFWD


Ignore:
Timestamp:
Feb 2, 2006, 5:35:47 PM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

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

    v2 v3  
    55require 'uri'
    66
    7 Experiment.name = "hop-4"
     7Experiment.name = "hop-2"
    88Experiment.project = "orbit:mutli-hop"
    99
    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')
    1313
    1414#
    1515# Define nodes used in experiment
    1616#
    17 nodes([3,3], 'sender') {|node|
     17defNodes('sender', [3,3]) {|node|
    1818  node.image = nil  # assume the right image to be on disk
    19   # experiment property space
     19
    2020  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'
    2225  })
    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"
    2529}
     30
     31
    2632
    2733nodes([8,8], 'receiver') {|node|
     
    2935  node.prototype("test:proto:receiver" , {
    3036   'hostname' => '12.0.0.7',
    31     'protocol' => 'udp_libmac'
     37    'protocol' => 'udp'
    3238  })
    3339    node.net.w0.mode = "ad-hoc"
     
    3844}
    3945
    40 
     46defNodes('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}
    4154nodes([4,4], 'forwarder1') {|node|
    4255  node.image = nil  # assume the right image to be on disk