Changes between Version 2 and Version 3 of GEC21Agenda/ChoiceNet/run_tests
- Timestamp:
- 10/15/14 23:49:20 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC21Agenda/ChoiceNet/run_tests
v2 v3 1 1 Navigation: [wiki:GEC21Agenda/ChoiceNet/start Up] 2 2 3 Open up two more ssh sessions to the GNO node and cd ~/choicenet/source/bin on each one 3 At 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. 4 4 5 On TERMINAL 1 do 6 7 ================ 5 So Open up two more ssh session terminals to the GNO Node and cd ~/choicenet/source/bin on each one 8 6 9 7 8 --'''On TERMINAL 1'''-- 10 9 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 12 cd ~/choicenet/source/bin 13 }}} 14 14 15 15 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 }}} 17 20 18 here 21 this will take you to H1 node (You can also directly ssh into H1 Node from your laptop if you prefer that way) 19 22 23 on H1 Node 24 25 {{{ 26 #!sh 20 27 cd choicenet/source/bin 21 28 22 29 cp ../wrap . 23 30 31 /sbin/ifconfig 24 32 25 Edit this 26 vim ../config/config.txt 33 }}} 27 34 28 and add HB or LB as the last line 35 Form 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 ) 29 36 37 The 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 39 We then use a choicenet wrapper app to convert an existing tcp application into a choicenet application as shown below 40 41 get ready to start the iperf Server here . Type the command and keep it ready . '''DO NOT RUN IT JUST YET''' 42 43 {{{ 44 #!sh 30 45 sudo ./wrap /usr/bin/iperf -s -V 46 }}} 31 47 32 48 33 On TERMINAL 2 do 49 --'''On TERMINAL 2'''-- 34 50 35 ================ 51 {{{ 52 #!sh 53 cd ~/choicenet/source/bin 54 }}} 36 55 37 56 57 {{{ 58 #!sh 59 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h1 60 }}} 38 61 62 this will take you to H1 node (You can also directly ssh into H1 Node from your laptop if you prefer that way) 39 63 40 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h2 64 on H1 Node 41 65 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 50 68 cd choicenet/source/bin 51 69 52 70 cp ../wrap . 53 71 72 }}} 54 73 55 Edit this 56 vim ../config/config.txt 74 The 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 57 75 58 and add HB or LB as the last line 76 We then use a choicenet wrapper app to convert an existing tcp application into a choicenet application as shown below 77 78 get ready to start the iperf Client here . Type the command and keep it ready . '''DO NOT RUN IT JUST YET''' 79 59 80 60 81 sudo ./wrap /usr/bin/iperf -c <IPv6 address of H1 > -M 1000 -V 61 82 62 83 (IPv6 address should be eth1 on H1 and starts with fec0) 84 85 Now GOTO TERMINAL1 and run the iperf server command. Immediately then switch to TERMINAL2 and run the client command too.