Changes between Version 3 and Version 4 of Tutorials/c0WiFi/Tutorial4


Ignore:
Timestamp:
Oct 15, 2014, 5:12:42 PM (10 years ago)
Author:
nilanjan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/c0WiFi/Tutorial4

    v3 v4  
    1 == Wifi Tutorial: ==
    2 
    3 This tutorial shows how to use the OMF feature to collect data into an OML database. The OEDL script used here is built on top of the script used for ''Access point with multiple clients'' with slight changes that allow each wifi client to initiate an iperf session on a staggered first-in first-out schedule.
     1== Wifi Tutorial: Data logging with OMF ==
     2
     3This tutorial shows how to use OMF's data logging feature. The OEDL script used here is built on top of the script used for ''Access point with multiple clients'' with slight changes that allow each wifi client to initiate an iperf session on a staggered first-in first-out schedule.
    44
    55=== Experiment Script ===
     
    294294}}}
    295295 The client groups are referenced with the additional Ruby code to allow starting each iperf session and wait before starting the next. The iperf sessions are stopped in a similar way as well.
     296
     297=== Executing the Experiment Script ===
     298An overview on running experiment scripts on the orbit testbed can be found on the [wiki:Documentation/CGettingStarted Getting Started Page].
     299In order to run this experiment script, load ''baseline.ndz'' image on nodes with wifi cards. Check the ''Status Page' on the [https://www.orbit-lab.org/cPanel/controlPanel/start Control Panel] to select any particular type of wifi card.
     300{{{
     301nilanjan@console.grid:~/EXP$ omf load -i baseline.ndz -t node15-1,node16-1,node17-1,node19-1,node20-1
     302}}}
     303
     304After the nodes have finished imaging, turn the nodes on. The topology used here is ''system:topo:imaged'' which selected the prior set of node that were successfully imaged.
     305{{{
     306nilanjan@console.grid:~/EXP$ omf tell -a on -t system:topo:imaged
     307}}}
     308
     309To run this experiment with 2 clients nodes:
     310{{{
     311nilanjan@console.grid:~/EXP$ omf exec wifi-ap-exercise3.rb -- --accesspoint node15-1 --client node17-1,node19-1 --interval 60
     312}}}
     313
     314The output of this script should be similar to the following:
     315{{{
     316 INFO NodeHandler: OMF Experiment Controller 5.4 (git 3fb37b9)
     317 INFO NodeHandler: Reading configuration file /etc/omf-expctl-5.4/services.yaml
     318 INFO NodeHandler: Add domain http - http://internal1.orbit-lab.org:5054/
     319 INFO NodeHandler: Add domain http - http://repository1.orbit-lab.org:5054/
     320 INFO NodeHandler: Slice ID: default_slice (default)
     321 INFO NodeHandler: Experiment ID: default_slice-2014-10-15t12.08.29.982-04.00
     322 INFO NodeHandler: Message authentication is disabled
     323 INFO Experiment: load system:exp:stdlib
     324 INFO property.resetDelay: resetDelay = 230 (Fixnum)
     325 INFO property.resetTries: resetTries = 1 (Fixnum)
     326 INFO Experiment: load system:exp:eventlib
     327 INFO Experiment: load system:exp:winlib
     328 INFO Experiment: load wifi-ap-exercise3.rb
     329 INFO property.accesspoint: accesspoint = "node15-1" (String)
     330 INFO property.client: client = "node17-1,node19-1" (String)
     331 INFO property.interval: interval = 60 (Fixnum)
     332 INFO ALL_UP_AND_INSTALLED: Event triggered. Starting the associated tasks.
     333 INFO exp: Wifi Multi Client Iperf Experiment
     334 INFO exp: Request from Experiment Script: Wait for 10s....
     335 INFO node17-1.grid.orbit-lab.org: Device 'net/w0' reported Not-Associated
     336 INFO node19-1.grid.orbit-lab.org: Device 'net/w0' reported Not-Associated
     337 INFO exp: Start access point
     338 INFO exp: Start client 1 ==> node17-1
     339 INFO exp: Request from Experiment Script: Wait for 60s....
     340 INFO node17-1.grid.orbit-lab.org: Device 'net/w0' reported 00:60:B3:AC:2B:D5
     341 INFO node19-1.grid.orbit-lab.org: Device 'net/w0' reported 00:60:B3:AC:2B:D5
     342 INFO exp: Start client 2 ==> node19-1
     343 INFO exp: Request from Experiment Script: Wait for 60s....
     344 INFO exp: Stop client 1 ==> node17-1
     345 INFO exp: Request from Experiment Script: Wait for 60s....
     346 INFO exp: Stop client 2 ==> node19-1
     347 INFO exp: Request from Experiment Script: Wait for 60s....
     348 INFO exp: Stop access point
     349 INFO exp: All my Applications are stopped now.
     350 INFO EXPERIMENT_DONE: Event triggered. Starting the associated tasks.
     351 INFO NodeHandler:
     352 INFO NodeHandler: Shutting down experiment, please wait...
     353 INFO NodeHandler:
     354 INFO run: Experiment default_slice-2014-10-15t12.08.29.982-04.00 finished after 4:20
     355}}}
     356
     357=== Experiment Results ===
     358
     359The detailed output from the experiment script is stored in the default slice*.log file under the /tmp directory of the console. However in this case the iperf results are store separately in an OML database that is accessible via the ''results service''. To view this data under the results service please see instructions here.