Changes between Version 2 and Version 3 of GEC21Agenda/ChoiceNet/run_tests


Ignore:
Timestamp:
10/15/14 23:49:20 (9 years ago)
Author:
Hussamuddin Nasir
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC21Agenda/ChoiceNet/run_tests

    v2 v3  
    11Navigation: [wiki:GEC21Agenda/ChoiceNet/start Up]
    22
    3 Open up two more ssh sessions to the GNO node and cd ~/choicenet/source/bin on each one
     3At this point we have the Choicenet Framework setup. We now need to run some end to end services to demonstrate the usability of "choice" within a network. For this we will run an iperf test between the end host nodes H1 and H2.
    44
    5 On TERMINAL 1 do
    6 
    7 ================
     5So Open up two more ssh session terminals to the GNO Node and cd ~/choicenet/source/bin on each one
    86
    97
     8--'''On TERMINAL 1'''--
    109
    11 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h1
    12 
    13 sudo apt-get update;sudo apt-get install iperf
     10{{{
     11#!sh
     12cd ~/choicenet/source/bin
     13}}}
    1414
    1515
    16 this will take you to H1 node
     16{{{
     17#!sh
     18./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h1
     19}}}
    1720
    18 here
     21this will take you to H1 node (You can also directly ssh into H1 Node from your laptop if you prefer that way)
    1922
     23on H1 Node
     24
     25{{{
     26#!sh
    2027cd  choicenet/source/bin
    2128
    2229cp ../wrap .
    2330
     31/sbin/ifconfig
    2432
    25 Edit this
    26 vim ../config/config.txt
     33}}}
    2734
    28 and add HB or LB as the last line
     35Form the last command (ifconfig), please note down the IPV6 address of eth1. (This should begin with an fec0:: . This will be used the next terminal )
    2936
     37The use any editor (vim, pico , nano) that you prefer to edit the  ../config/config.txt and add HB or LB as the last line. This tells the choicenet network that your network choice is to use the path you select which can be an HB (High Bandwidth ) path or a LB (Low Bandwidth) path
     38
     39We then use a choicenet wrapper app to convert an existing tcp application into a choicenet application as shown below
     40
     41get ready to start the iperf Server here . Type the command and keep it ready . '''DO NOT RUN IT JUST YET'''
     42
     43{{{
     44#!sh
    3045sudo ./wrap /usr/bin/iperf -s -V
     46}}}
    3147
    3248
    33 On TERMINAL 2 do
     49--'''On TERMINAL 2'''--
    3450
    35 ================
     51{{{
     52#!sh
     53cd ~/choicenet/source/bin
     54}}}
    3655
    3756
     57{{{
     58#!sh
     59./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h1
     60}}}
    3861
     62this will take you to H1 node (You can also directly ssh into H1 Node from your laptop if you prefer that way)
    3963
    40 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h2
     64on H1 Node
    4165
    42 
    43 sudo apt-get update;sudo apt-get install iperf
    44 
    45 
    46 this will take you to H2 node
    47 
    48 here
    49 
     66{{{
     67#!sh
    5068cd  choicenet/source/bin
    5169
    5270cp ../wrap .
    5371
     72}}}
    5473
    55 Edit this
    56 vim ../config/config.txt
     74The use any editor (vim, pico , nano) that you prefer to edit the  ../config/config.txt and add HB or LB as the last line. This tells the choicenet network that your network choice is to use the path you select which can be an HB (High Bandwidth ) path or a LB (Low Bandwidth) path
    5775
    58 and add HB or LB as the last line
     76We then use a choicenet wrapper app to convert an existing tcp application into a choicenet application as shown below
     77
     78get ready to start the iperf Client here . Type the command and keep it ready . '''DO NOT RUN IT JUST YET'''
     79
    5980
    6081sudo ./wrap /usr/bin/iperf -c <IPv6 address of H1 >  -M 1000 -V
    6182
    6283(IPv6 address should be eth1 on H1 and starts with fec0)
     84
     85Now GOTO TERMINAL1 and run the iperf server command. Immediately then switch to TERMINAL2 and run the client command too.