wiki:GEC21Agenda/ChoiceNet/access

Version 13 (modified by Hussamuddin Nasir, 5 years ago) (diff)

--

Navigation: Up

For this tutorial we will need to use a Linux workstation as your desktop. For a smooth flow of the tutorial we will use a Fedora15 Openvz Node labelled "GN0" in your slice as your workstation.

Pre-Work

Please login to the portal and join the GEC21-ChoiceNet Project. In the mean time while your account is getting approved, If you have not already received a Resource Card from the tutorial presenters, please ask for one now. On each of these cards, there should be two parts labelled as

  1. "For Attendee" : This will tell you your assigned slicename, the Instageni Rack your resources are located on and the hostname of the GN0 node you need to ssh into.
  1. "For Presenter" : On this part of the card, please print your Name as shown in the GENI Portal and your geni username . Then tear this section along the fold and hand it over to one of the presenters walking by to get access to your assigned slice.

NOTE : Inorder to ssh into the GN0 node, you have to have your ssh keys setup properly as mentioned in this page

Steps

  1. SSH using your preferred ssh client into the GN0 Node. Make sure you use your Geni username
  1. Download your manifest using wget on the GDGN0 node from the URL http://gemini.netlab.uky.edu/<slicename>_manifest.xml [Replace <slicename> with the slicename assigned to you.]
ex. Slicename : mygec21
wget http://choicenet.netlab.uky.edu/mygec21_manifest.xml 

  1. 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.
sudo cp /var/nobody/.ssh/id_rsa ~/.ssh/;sudo chown <GENI USERNAME> ~/.ssh/id_rsa

NOTE: If you plan to use ChoiceNET at a later date from a linux workstation, using the GDGN0 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.

wget http://choicenet.netlab.uky.edu/choicenet.tar.gz

tar xzf choicenet.tar.gz

cd choicenet/source/bin/

sudo ln -s /usr/lib64/libpcap.so.1.1.1 /usr/lib64/libpcap.so.0.8

sudo ln -s /usr/lib64/libcrypto.so /usr/lib64/libcrypto.so.1.0.0

echo "UserKnownHostsFile=/dev/null" >>~/.ssh/config

echo "StrictHostKeyChecking no" >>~/.ssh/config

./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa configure

./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa install

./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa -R clickon

./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa pathServiceOn

./sendAdvertisements.sh

Open up two more ssh sessions to the GNO node and cd ~/choicenet/source/bin on each one

On TERMINAL 1 do

================

./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h1

sudo apt-get update;sudo apt-get install iperf

this will take you to H1 node

here

cd choicenet/source/bin

cp ../wrap .

Edit this vim ../config/config.txt

and add HB or LB as the last line

sudo ./wrap /usr/bin/iperf -s -V

On TERMINAL 2 do

================

./gt -f /tmp/rspec.xml -l <GENI USERNAME> -i ~/.ssh/id_rsa ssh h2

sudo apt-get update;sudo apt-get install iperf

this will take you to H2 node

here

cd choicenet/source/bin

cp ../wrap .

Edit this vim ../config/config.txt

and add HB or LB as the last line

sudo ./wrap /usr/bin/iperf -c <IPv6 address of H1 > -M 1000 -V

(IPv6 address should be eth1 on H1 and starts with fec0)

Attachments (2)

Download all attachments as: .zip