Changes between Version 15 and Version 16 of GEC21Agenda/ChoiceNet/access


Ignore:
Timestamp:
10/15/14 17:14:50 (9 years ago)
Author:
Hussamuddin Nasir
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC21Agenda/ChoiceNet/access

    v15 v16  
    17171. SSH using your preferred ssh client into the GN0 Node. Make sure you use your Geni username
    1818
    19 2. Download your manifest using wget on the GDGN0 node from the URL {{{ http://choicenet.netlab.uky.edu/<slicename>_manifest.xml [Replace <slicename> with the slicename assigned to you.] }}}
    20 
    21 {{{
    22 ex. Slicename : mygec21
    23 }}}
    24 
    25   {{{
    26 #!sh
    27 wget http://choicenet.netlab.uky.edu/mygec21_manifest.xml
    28 
    29 }}}
    30 
    31 3. In order for the choicenet tool called GT Tool to run and setup your {{{ChoiceNet}}} Framework, the GT Tool needs to ssh into all of routers and endhost machines in your slice and setup the necessary software. Inorder to facilitate this, we need to use an SSH-Key pair that has been setup for you just for this tutorial . To make this work run the command below on the GN0 node.
     192. For this tutorial you need the choicenet tool called GT Tool to run and setup your {{{ChoiceNet}}} Framework, the GT Tool needs to ssh into all of routers and endhost machines in your slice and setup the necessary software. In order to facilitate this, we need to use an SSH-Key pair that has been setup for you just for this tutorial. We will also need to download your Slice Manifest rspec. For all this to happen please first download the pre-qprk script and then run using the commands below on the GN0 node.
    3220
    3321{{{
    3422#!sh
    35 sudo cp /var/nobody/.ssh/id_rsa ~/.ssh/;sudo chown <GENI USERNAME> ~/.ssh/id_rsa
     23wget http://choicenet.netlab.uky.edu/choicenet_prework.tgz
     24tar xzf choicenet_prework.tgz
     25./choicenet_prework.tgz
    3626}}}
    3727
    3828
    39 '''NOTE: If you plan to use ChoiceNET at a later date from a linux workstation, using the GN0 node is not a requirement. The same can be done from your linux workstation. Your GENI SSH Keypair can be used in place of the keypair above.'''
    40 
    41 
    42 
    43 
    44 
    45 
    46 wget http://choicenet.netlab.uky.edu/choicenet.tar.gz
    47 
    48 tar xzf choicenet.tar.gz
    49 
    50 cd choicenet/source/bin/
    51 
    52 sudo ln -s /usr/lib64/libpcap.so.1.1.1 /usr/lib64/libpcap.so.0.8
    53 
    54 sudo ln -s /usr/lib64/libcrypto.so /usr/lib64/libcrypto.so.1.0.0
    55 
    56 echo "{{{UserKnownHostsFile}}}=/dev/null" >>~/.ssh/config
    57 
    58 echo "{{{StrictHostKeyChecking}}} no" >>~/.ssh/config
    59 
    60 
    61 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa configure
    62 
    63 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa install
    64 
    65 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa -R clickon
    66 
    67 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa pathServiceOn
    68 
    69 ./sendAdvertisements.sh
    70 
    71 Open up two more ssh sessions to the GNO node and cd ~/choicenet/source/bin on each one
    72 
    73 On TERMINAL 1 do
    74 
    75 ================
    76 
    77 
    78 
    79 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h1
    80 
    81 sudo apt-get update;sudo apt-get install iperf
    82 
    83 
    84 this will take you to H1 node
    85 
    86 here
    87 
    88 cd  choicenet/source/bin
    89 
    90 cp ../wrap .
    91 
    92 
    93 Edit this
    94 vim ../config/config.txt
    95 
    96 and add HB or LB as the last line
    97 
    98 sudo ./wrap /usr/bin/iperf -s -V
    99 
    100 
    101 On TERMINAL 2 do
    102 
    103 ================
    104 
    105 
    106 
    107 
    108 ./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h2
    109 
    110 
    111 sudo apt-get update;sudo apt-get install iperf
    112 
    113 
    114 this will take you to H2 node
    115 
    116 here
    117 
    118 cd  choicenet/source/bin
    119 
    120 cp ../wrap .
    121 
    122 
    123 Edit this
    124 vim ../config/config.txt
    125 
    126 and add HB or LB as the last line
    127 
    128 sudo ./wrap /usr/bin/iperf -c <IPv6 address of H1 >  -M 1000 -V
    129 
    130 (IPv6 address should be eth1 on H1 and starts with fec0)
    131 
     29'''NOTE: If you plan to use ChoiceNET at a later date from a linux workstation, using the GN0 node is not a requirement. The same can be done from your linux workstation. All you would need is the manifest rspec for your slice. Your GENI SSH Keypair as a param to the GT TOOL.'''