wiki:DSC/dc_trial1

Version 10 (modified by seskar, 11 years ago) ( diff )

Tutorial for Hurdle3-like experiment

Objective

Use OEDL script to execute transmit and receive benchmark scripts on the grid.

Hardware / Software Resources utilized

  1. Two grid nodes with USRPs.
  2. baseline-gnu-12-04-32bit.ndz: disk image loaded onto nodes. This image has all the prerequisite software to configure the USRPs.
  3. Orbit's Arbitrary Waveform Injection System: used to inject noise or simple signal into RF environment. More information of this generator can be found here.
  4. Packet server: This is server that resides on the grid console and used by a transmitting node to send data packets over the air via USRP.
  5. dc.rb: this is the ODEL experiment script to manage GNURadio code, interference service and packet server and execute the hurdle (i.e. run the transmit and receive scripts).

Set up

  • After logging into grid console, make sure all nodes are turned off (in the example below, turn off all the nodes in the grid):
    username@console.grid:~$ omf tell -a offh -t system:topo:all
    
  • Verify state of node before continuing. Make sure nodes are in the POWEROFF state.
    username@console.grid:~$ omf stat
    
  • Image nodes (this will image all nodes with USRPs with SBX daughtercards):
    username@console.grid:~$ omf load -i baseline-gnu-12-04-32bit.ndz -t node1-1.grid.orbit-lab.org,node20-20.grid.orbit-lab.org -r 20
    
  • After nodes are imaged, verify that nodes are in POWEROFF state. Otherwise issue the following to turn them off for a reboot
    username@console.grid:~$ omf tell -a offh -t node1-1.grid.orbit-lab.org,node20-20.grid.orbit-lab.org
    
  • Turn nodes back on and verify they are in POWERON state
    username@console.grid:~$ omf tell -a on -t node1-1.grid.orbit-lab.org,node20-20.grid.orbit-lab.org
    
  • Download the OEDL experiment script to your local directory.
    username@console.grid:~/UHD$ wget http://www.orbit-lab.org/raw-attachment/wiki/DSC/dc_trial1/dc.rb
    

Run the experiment script

  • Type to following command to run the experiment. This will start the packet server, configure and start the interference generator and finally kick off the transmit and receive benchmark scripts within the nodes.
    username@console.grid:~/UHD$ omf exec dc.rb
    
  • The output should look similar to the following:
    username@console.grid:~# omf exec dc.rb
    
     INFO NodeHandler: OMF Experiment Controller 5.4 (git 578791f)
     INFO NodeHandler: Slice ID: default_slice (default)
     INFO NodeHandler: Experiment ID: default_slice-2013-06-14t17.59.37.994-04.00
     INFO NodeHandler: Message authentication is disabled
     INFO Experiment: load system:exp:stdlib
     INFO property.resetDelay: resetDelay = 230 (Fixnum)
     INFO property.resetTries: resetTries = 1 (Fixnum)
     INFO Experiment: load system:exp:eventlib
     INFO Experiment: load system:exp:winlib
     INFO Experiment: load dc.rb
     INFO property.rxnode: rxnode = "node1-1.grid.orbit-lab.org" (String)
     INFO property.txnode: txnode = "node20-20.grid.orbit-lab.org" (String)
     INFO property.freq: freq = "1900000000" (String)
     INFO property.runtime: runtime = "300" (String)
     INFO ALL_UP_AND_INSTALLED: Event triggered. Starting the associated tasks.
     INFO exp: Give machines some time to warm up
     INFO exp: Request from Experiment Script: Wait for 1s....
     INFO  17:59:47.921 (main.cpp:557) - Starting the server at
     INFO  17:59:47.922 (main.cpp:430) - Starting TCP sender server at 5100
     INFO  17:59:47.923 (main.cpp:465) - Starting UDP sender server at 5101
     INFO  17:59:47.923 (main.cpp:513) - Starting UDP receiver server at 5103
     INFO  17:59:47.923 (main.cpp:480) - Starting TCP receiver server at 5102
     INFO exp: Request from Experiment Script: Wait for 1s....
    OK INFO exp: Request from Experiment Script: Wait for 1s....
    OK INFO exp: Request from Experiment Script: Wait for 1s....
    OK INFO exp: Start benchmark_rx,tx
     INFO exp: Request from Experiment Script: Wait for 300s....
     INFO  17:59:51.650 (main.cpp:505) - Rx Thread count: 1
     INFO  17:59:55.070 (main.cpp:457) - Tx Thread count: 1
    console.grid.orbit-lab.org
    INFO   OML Client V2.8.1 [Protocol V3] Copyright 2007-2012, NICTA
    INFO   Net_stream: connecting to host tcp://idb2.orbit-lab.org:3003
     INFO  18:00:10.070 (main.cpp:239) -  TIME = 15000 msec rx/tx/bad packets=521/1678/0 rx/tx bytes=750240/2416320 success=31.0489%
     INFO  18:00:25.070 (main.cpp:239) -  TIME = 30000 msec rx/tx/bad packets=1185/3279/0 rx/tx bytes=1706400/4721760 success=36.1391%
     INFO  18:00:40.070 (main.cpp:239) -  TIME = 45000 msec rx/tx/bad packets=2052/4880/0 rx/tx bytes=2954880/7027200 success=42.0492%
     INFO  18:00:55.070 (main.cpp:239) -  TIME = 60000 msec rx/tx/bad packets=2677/6481/0 rx/tx bytes=3854880/9332640 success=41.3054%
     INFO  18:01:10.070 (main.cpp:239) -  TIME = 75000 msec rx/tx/bad packets=3392/8082/0 rx/tx bytes=4884480/11638080 success=41.9698%
     INFO  18:01:25.070 (main.cpp:239) -  TIME = 90000 msec rx/tx/bad packets=4242/9683/0 rx/tx bytes=6108480/13943520 success=43.8087%
     INFO  18:01:40.070 (main.cpp:239) -  TIME = 105000 msec rx/tx/bad packets=4957/11283/0 rx/tx bytes=7138080/16248960 success=43.9295%
     INFO  18:01:55.070 (main.cpp:239) -  TIME = 120000 msec rx/tx/bad packets=5509/12885/0 rx/tx bytes=7932960/18554400 success=42.7551%
     INFO  18:02:10.070 (main.cpp:239) -  TIME = 135000 msec rx/tx/bad packets=6064/14485/0 rx/tx bytes=8732160/20858400 success=41.864%
     INFO  18:02:25.070 (main.cpp:239) -  TIME = 150000 msec rx/tx/bad packets=6713/16087/0 rx/tx bytes=9666720/23165280 success=41.7293%
     INFO  18:02:40.070 (main.cpp:239) -  TIME = 165000 msec rx/tx/bad packets=7044/17687/0 rx/tx bytes=10143360/25469280 success=39.8259%
     INFO  18:02:55.070 (main.cpp:239) -  TIME = 180000 msec rx/tx/bad packets=7704/19288/0 rx/tx bytes=11093760/27774720 success=39.9419%
     INFO  18:03:10.070 (main.cpp:239) -  TIME = 195000 msec rx/tx/bad packets=7714/20889/0 rx/tx bytes=11108160/30080160 success=36.9285%
     INFO  18:03:25.070 (main.cpp:239) -  TIME = 210000 msec rx/tx/bad packets=7714/22490/0 rx/tx bytes=11108160/32385600 success=34.2997%
     INFO  18:03:40.070 (main.cpp:239) -  TIME = 225000 msec rx/tx/bad packets=7714/24091/0 rx/tx bytes=11108160/34691040 success=32.0203%
     INFO  18:03:55.070 (main.cpp:239) -  TIME = 240000 msec rx/tx/bad packets=7714/25692/0 rx/tx bytes=11108160/36996480 success=30.0249%
     INFO  18:04:10.070 (main.cpp:239) -  TIME = 255000 msec rx/tx/bad packets=7714/27293/0 rx/tx bytes=11108160/39301920 success=28.2637%
     INFO  18:04:25.070 (main.cpp:239) -  TIME = 270000 msec rx/tx/bad packets=7714/28894/0 rx/tx bytes=11108160/41607360 success=26.6976%
     INFO  18:04:40.070 (main.cpp:239) -  TIME = 285000 msec rx/tx/bad packets=7714/30493/0 rx/tx bytes=11108160/43909920 success=25.2976%
     INFO exp: Stop eveything
    OK INFO exp: Request from Experiment Script: Wait for 5s....
     INFO  18:04:55.070 (main.cpp:249) - 300000 msec timeout reached - closing connection
     INFO  18:04:55.070 (main.cpp:252) -  TIME = 300000 msec rx/tx/bad packets=7714/32096/0 rx/tx bytes=11108160/46218240 success=24.0341%
    INFO   Waiting for buffered queue reader thread to drain...
    INFO   Buffered queue reader thread finished OK...
     INFO  18:04:55.080 (main.cpp:349) - Tx Thread count: 0
     INFO exp: Finish it.
     INFO EXPERIMENT_DONE: Event triggered. Starting the associated tasks.
     INFO NodeHandler: 
     INFO NodeHandler: Shutting down experiment, please wait...
     INFO NodeHandler: 
     INFO run: Experiment default_slice-2013-06-14t17.59.37.994-04.00 finished after 5:21
    
  • Turn the nodes off
    username@console.grid:~$ omf tell -a offh -t node1-1.grid.orbit-lab.org,node20-20.grid.orbit-lab.org
    

Attachments (1)

  • dsc-h3.rb (4.1 KB ) - added by seskar 11 years ago. OEDL script for DSC H3-like tutorial

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.