wiki:GENIExperimenter/Tutorials/ClickExample/DesignSetup

Version 14 (modified by nriga@bbn.com, 11 years ago) (diff)

--

Click Example

Hello GENI index Hello GENI index Hello GENI index

1. Obtain Resources

In this step, we are going to setup the experiment. In this tutorial we assume that you are sufficiently comfortable with omni to verify that a listresources command works and to know when your slice is ready using sliverstatus.

  1. Create a slice, where <slicename> is click<initials>:
    omni.py createslice <slicename>
    
  2. Create a sliver :
    omni.py createsliver -a pg-utah <slicename> <rspec_url>
    
  3. Check the status of your sliver
    omni.py sliverstatus -a pg-utah <slicename>
    

Install scripts

While you wait for your sliver to become ready, we will see how we can automate the installation of our experiment with install scripts. In this experiment we are going to use software routers in order to write our own forwarding scheme. This means that in any experiment we are going to run we want the basic installation of the software router to always be present. The configuration might change from run to run, but the software should always be installed. The software to be installed, and the scripts to be executed at boot time, are defined in the rspecs. Follow these steps to locate your install script and identify the different parts.

  1. Download the hellogeni rspec:
       cd /tmp
       wget http://www.gpolab.bbn.com/experiment-support/HelloGENI/hellogeni.rspec
    
  2. Open your rspec and look for the install tag and copy the value of the URL attribute.
  3. Loof for the execute tag and write down the name of script to be executed
  4. Download and untar the software
    cd /tmp
    mkdir click
    cd click
    wget <software_url>
    tar xvfz <software_name>
    
  5. Look in your rspec and locate the execute tag. Note what script is being executed at boot time.
  6. Locate the script and open it. Can you identify the different parts?

Next: Execute