Changes between Version 21 and Version 22 of GEC21Agenda/iMinds


Ignore:
Timestamp:
10/17/14 10:53:43 (9 years ago)
Author:
pieter.becue@intec.ugent.be
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC21Agenda/iMinds

    v21 v22  
    115115 * For every node, select a specific node from the list (see table above)
    116116
    117  === Configure the access point (on the mobile node) ===
    118 
    119 Before running the experiment, we will use the shell script option in the RSpec to install hostapd.
    120 Go to the Raw RSpec view and add the following in the node part of the ap (first line is already there):
    121 
    122 {{{
    123 <sliver_type name="raw-pc"/>
    124 <services>
    125      <execute shell="sh" command="sudo apt-get update ; sudo apt-get install hostapd ; "/>
    126 </services>
    127 }}}
    128 
    129  === Configuration of Access Point (on your mobile node) ===
    130 
    131 SSH to your mobile node (from jFed). Become root:
     117 === Configuration of Access Point ===
     118
     119SSH to your AP node (double click it in jFed). Become root:
    132120{{{
    133121$ sudo su
     
    149137}}}
    150138
    151 Replace X with your demo number. Replace Y with your channel and Z with the WiFi mode.
     139Replace X with your demo number. Replace Y with your channel and Z with the WiFi mode (see table above).
    152140Start hostapd. The above config will setup an AP on wlan0 using 802.11a or g, channel Y, with SSID demoX:
    153141{{{
     
    160148}}}
    161149
    162  === Configure the client (on one of the fixed nodes) ===
     150 === Configure the mobile node(robot) as client ===
    163151
    164152Become root:
     
    185173 === iPerf measurement ===
    186174
    187 Start an iPerf server instance (UDP in this case) on the mobile node (AP):
     175Start an iPerf server instance (UDP in this case) on the AP:
    188176{{{
    189177$ iperf -s -u -i 1 &
    190178}}}
    191179
    192 Configure the iPerf client:
    193 {{{
    194 $ iperf -u -c 192.168.X.1 -b 40M -i 1 -t 6000
    195 }}}
    196 
    197 If the iperf reports an actual 40Mbit/sec throughput, you probably lost the connection.
    198 By tweaking the transmit power (values of 0 to 20dBm) of the access point, you should be able to see a difference in throughput of the iPerf stream:
    199 {{{
    200 $ iwconfig wlan0 txpower <0-20>
    201 }}}
    202 
    203 For this tutorial, leave the txpower to 20 for the first experiment runs. If the effect of moving the mobile node is too limited, you can try lowering the txpower.
     180Configure the iPerf client (on the robot):
     181{{{
     182$ iperf -u -c 192.168.X.1 -b 30M -i 1 -t 6000
     183}}}
     184
     185By tweaking the transmit power (values of 0 to 15dBm) of the access point, you should be able to see a difference in throughput of the iPerf stream:
     186{{{
     187$ iwconfig wlan0 txpower <0-15>
     188}}}
     189
     190For this tutorial, leave the txpower set to default (15 or 20dBm) for the first experiment runs. If the effect of moving the mobile node is too limited, you can try lowering the txpower.
    204191Note that each antenna at the w-iLab.t is equipped with a 10dB attenuator (so 20dB attenuation per link).
    205192