Version 8 (modified by, 5 years ago) (diff)


Understanding the AM API using Named Data Networking

Image Map

4 Wait for resources to be ready

You can tell whether your nodes are ready by using a script built on omni called readyToLogin.

  1. Please use the command:
    readyToLogin -a AM_NICKNAME LabOne 
    where (as before) AM_NICKNAME and LabOne are your aggregate 
    manager nickname and your slice name (both found on your worksheet). 
  2. If it reports that the sliver is not yet ready (for example, it might say that the status is "changing"), then wait a minute or two and try again. Once everything is complete, readyToLogin will give output that should look something like this:
    rschr's geni_status is: ready (am_status:ready)  
    User example logs in to rschr using: 
            ssh  -p 32768 -i /Users/example/.ssh/geni_key_portal 
    User example logs in to collar using: 
            ssh -p 32769 -i /Users/example/.ssh/geni_key_portal 

5 Trying out the NDN application

In this experiment, you will be able to see the NDN in-network caching in action. Our experiment consists of the following nodes:

  • A data source node, called Custodian that holds data in the namespace /nytimes
  • A internet router node, called Internet that forwards Interest and Data packets to and from the custodian.
  • A university hub node, called University that forwards Interest and Data packets to and from the university nodes.
  • A principal investigator node, called PI and a experimenter node, called Experimenter that will issue Interest requests.

Download the scripts and Python codes to your computer and extract it.

Or alternatively,

$ wget
$ tar -xvf ndn-tutorial.gz

In the configuration file, edit the fields according to your GENI username, SSH key, GENI Aggregate name, pc and port numbers. Keep the quotes format unchanged, otherwise the script may not run.

Run, this will automatically transfer the necessary files to the nodes in our topology.

Login into the node Custodian and start the NDN Forwarding Daemon (NFD),

$ nfd-start 

wait until the shell prompt returns (~ a few seconds). The NFD is now up and running.

5.1 Run the NDN application on the same node

$ python -n /nytimes 
$ python -u /nytimes/science

5.2 Run the NDN application on the entire topology

5.3 (Optional) Visualize experiment data flows

To use the GENI Desktop to visualize the data flows in your network, continue with the instructions here.


Next: Finish