


Understanding the AM API using Named Data Networking

Image Map

1. Design the Experiment

  1. In today's experiment you will use resources at the aggregate listed on the worksheet. If you don't have a worksheet, use the closest Instageni rack to the first letter of your name (i.e. if your name starts with the letter C, pick a rack that starts with C). This will help to prevent that too many users choose the same rack and eventually the rack will run out of resources.

2. Establish the Environment

2.1 Configure Omni

  1. Login to the GENI Portal
  2. Click on your name in the upper right hand corner, then select the `Profile tab` menu item. Then click on the `Configure omni` tab under `PROFILE`.


Figure 2-2 Download your omni data under step 2.

Figure 2-3 Click on Generate a certificate.

  1. Then click on `Download your omni data`.

Figure 2-5 Click on Download your omni data.
  2. Open a terminal window and type:

3. Obtain Resources

3.1 Create a slice


$ omni createslice SLICE_NAME 

3.2. Load a simple topology in Jacks

For this exercise, we will use the portal to view and edit an existing RSpec file. Start by loading this predefined topology into Jacks.

  1. In the Portal, open the Slice page for the slice you just created. Notice that you created the slice with omni and it is available via the Portal.
  2. Press the Add Resources button to launch Jacks for this slice.
  3. From the Choose RSpec menu (see figure), select the URL button.
Import an RSpec into Jacks
Figure 3-1 Import an RSpec into Jacks.
  1. Enter the URL for the RSpec:
    then click Select.

3.3. Modify the RSpec to automatically install and execute software

Insert comments here. We do on all but one nodes. User does on the remaining node.

3.4. Export your RSpec



Figure 3-4 View and save the final request RSpec
  1. Use the Download button (in the lower left part of the screen next to Save RSpec) to make a local copy of your RSpec with the name rspec.xml. We'll use this in the next step to demonstrate how other client tools also use RSpec files to communicate requests to aggregate managers.

3.5. Instantiate the new experiment using Omni

For this step, we'll change the approach a bit and switch to a new client tool, the command line Omni client. From a terminal, please enter the command:

$ omni -a AM_NICKNAME createsliver SLICE_NAME RSPEC_FILE 

where AM_NICKNAME is the nickname for your assigned aggregate manager and SLICE_NAME is the name of the slice you created earlier (both of these are given on your worksheet). RSPEC_FILE should be replaced with the filename of the RSpec you saved in step 3.4. If all is well, Omni should give you a number of informational messages, such as:

INFO:omni:Loading config file /home/geni/.gcf/omni_config 




INFO:omni: Completed createsliver: 

and your resource reservation is complete!


Next: Execute