Changes between Version 10 and Version 11 of Internal/AtherosDriverLimits


Ignore:
Timestamp:
Sep 14, 2006, 3:57:15 PM (18 years ago)
Author:
Gautam D. Bhanage
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/AtherosDriverLimits

    v10 v11  
    2121 The user request the creation of two networks on a given set of nodes. Each network will have an access point and a station. The access point and the station are bound by the same essid's and would exist in the same subnet. In the underlying architecture the user chooses the same physical interface on a node to act as a different access point on two seperate networks. The script shows that the user may be oblivious to the fact that he/she is requesting the same node to be acting as different AP's, thereby simulating the requests of two different users for two independent networks with the involvement of a common node (the virtual AP) without each others knowledge. The sample ruby script is as given below:
    2222{{{
    23  code goes here
     23 #
     24# Define nodes used in experiment
     25#
     26# Physical Station for net 01.
     27defNodes('sender', [9,4]) {|node|
     28  node.prototype("test:proto:sender", {
     29    'destinationHost' => '192.168.10.4',
     30    'packetSize' => 1024,
     31    'rate' => 300,
     32    'protocol' => 'udp'   
     33  })
     34  node.net.w0.mode = "managed"
     35  node.net.w0 { |w|
     36  w.type = 'b'
     37  w.essid = "net01"
     38  w.ip = "%192.168.%x.%y"
     39}
     40}
     41
     42# Ap assigned for net 01.
     43defNodes('receiver', [10,4]) {|node|
     44  node.prototype("test:proto:receiver" , {
     45    'protocol' => 'udp'
     46  })
     47  node.net.w0.mode = "master"
     48  node.net.w0 { |w|
     49  w.type = 'b'
     50  w.essid = "net01"
     51  w.ip = "%192.168.%x.%y"
     52}
     53}
     54
     55# Define another station under the essid net 2.
     56defNodes('sender', [11,4]) {|node|
     57  node.prototype("test:proto:sender", {
     58    'destinationHost' => '192.168.10.4',
     59    'packetSize' => 1024,
     60    'rate' => 300,
     61    'protocol' => 'udp'   
     62  })
     63  node.net.w0.mode = "managed"
     64  node.net.w0 { |w|
     65  w.type = 'b'
     66  w.essid = "net02"
     67  w.ip = "%192.168.%x.%y"
     68}
     69}
     70
     71# Connect to the same physical but different virtual AP.
     72defNodes('receiver', [10,4]) {|node|
     73  node.prototype("test:proto:receiver" , {
     74    'protocol' => 'udp'
     75  })
     76  node.net.w0.mode = "master"
     77
     78  node.net.w0 { |w|
     79  w.type = 'b'
     80  w.essid = "net02"
     81  w.ip = "%192.168.%x.%y"
     82}
     83}
     84
     85# allNodes.net.w0 { |w|
     86#  w.type = 'b'
     87#  w.essid = "net01"
     88#  w.ip = "%192.168.%x.%y"
     89#}
     90
     91#
     92# Now, start the application
     93#
     94whenAllInstalled() {|node|
     95  wait 30
     96
     97  allNodes.startApplications
     98  wait 40
     99
     100  Experiment.done
     101}
     102
     103
    24104}}}
    25105