1 / 40

Behind the Scenes of GENI Experimentation featuring Content Centric Networking

Behind the Scenes of GENI Experimentation featuring Content Centric Networking. In Part 1 You Learned to…. Log into the GENI Portal. In Part 1 You Learned to…. Log into the GENI Portal Create a s lice. In Part 1 You Learned to…. Log into the GENI Portal Create a s lice

clem
Download Presentation

Behind the Scenes of GENI Experimentation featuring Content Centric Networking

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Behind the Scenes of GENI Experimentation featuring Content Centric Networking

  2. In Part 1 You Learned to… • Log into the GENI Portal

  3. In Part 1 You Learned to… • Log into the GENI Portal • Create a slice

  4. In Part 1 You Learned to… • Log into the GENI Portal • Create a slice • Launch the Flack experimenter tool

  5. In Part 1 You Learned to… • Log into the GENI Portal • Create a slice • Launch the Flack experimenter tool • Set up a simple experiment • Add resources to your slice from an aggregate • Use the resources in your slice

  6. In Part 1 You Learned to… • Log into the GENI Portal • Create a slice • Launch the Flack experimenter tool • Set up a simple experiment • Add resources to your slice from an aggregate • Use the resources in your slice • Delete resources in your slice

  7. In Part 2 You will Learn… • What happens behind the scenes when you run an experiment on GENI • New concepts: • GENI Resource Specifications (RSpecs) • GENI Aggregate Manager API (GENI AM API)

  8. Tutorial Objectives • By the end of this tutorial you should: • Feel comfortable running experiments on GENI • Have a basic understanding of how GENI works • Later exercises may skip some of the basic steps in this tutorial to focus on new material • You may be given an RSpec to use rather than have you create one • You may use slices that have already been created and resources added to them For a description of the GENI concepts covered, see: http://groups.geni.net/geni/wiki/GENIConcepts

  9. GENI Resource Specifications (RSpecs) • RSpecs are XML documents that describe resources • VMs, links, etc. RSpec for a virtual machine with one interface: <?xml version="1.0" encoding="UTF-8"?> <rspec type="request” xsi:schemaLocation="http://www.geni.net/resources/rspec/3 … xmlns="http://www.geni.net/resources/rspec/3"> <node client_id="server" component_manager_id="urn:publicid:IDN+instageni.gpolab.bbn.com+authority+cm”> <sliver_type name="emulab-openvz"/> <interface client_id="server:if0”> </interface> </node> </rspec>

  10. RSpecs • RSpec documents are exchanged by experimenter tools (e.g. Flack) and aggregates • Aggregates use RSpecs to describe what they have – Advertisement RSpecs • Experimenters use RSpecs to describe the resources they want – Request RSpecs • Aggregates use RSpecs to describe the resources allocated to an experimenter – Manifest RSpecs

  11. The GENI AM API • Experimenter tools and aggregates talk to each other using the GENI Aggregate Manager API (GENI AM API) What do you have? I have … ListResources(…) I would like … Advertisement RSpec You have … Aggregate Manager CreateSliver(Request RSpec, …) Experimenter Tool What do I have? Manifest RSpec You have … ListResources(SliceName, …) Manifest RSpec

  12. Putting it all Together… What do you have? • Flack calls ListResourceson all aggregates it knows about • Aggregates send back advertisement RSpecs • Flack uses information in the advertisements to populate its palette of resources I have …

  13. Putting it all Together… • When you drag and drop resources on to the Flack canvas, it creates request RSpecs for these resources • To view the request Rspec click on “View” and select “Preview request documents” • When you click “Submit”, Flack makes createSlivercalls on the aggregates I would like …

  14. Putting it all Together… • Flack periodically calls sliverStatuson the aggregates to check on the status of your request • When sliverStatus shows: • Resources have been allocated, Flack turns its canvas yellow • Resources are ready to use, Flack turns its canvas green

  15. Putting it all Together… What do I have? • ListResources with a slice name returns a manifest RSpec • Manifest includes names and ports used to ssh into VMs • Flack uses this information to help you log into your resources You have …

  16. Putting it all Together… • When you deleted your resources, Flack called deleteSliveron the aggregates

  17. Hands-On Exercise* • Reinforce new concepts using a Future Internet Architecture (FIA) based experiment • New concepts: RSpecs and AM API • Experiment uses a Content Centric Networking (CCN) architecture • CCN: Access information by name rather than by going to a host that has that information • E.g. Ask for “forecast for Davis, CA” rather than going to www.weather.com * Based on a classroom exercise developed by Sonia Fahmy, Ethan Blanton& SriharshaGangam of Purdue U.; Christos Papadopoulos & SusmitShannigrahi of Colorado State U.

  18. Omni: Resource Reservation tool • A command line experimenter tool • Useful for making AM API calls on aggregates • Written in and scriptable from Python • Works with aggregates that implement the GENI AM API • InstaGENI and ExoGENI racks, ProtoGENI, PlanetLab, FOAM (OpenFlow AM) $ omni.pycreatesliveraliceslicemyRSpec.xml INFO:omni:Loadingconfig file omni_config INFO:omni:Using control framework pgeni INFO:omni:Sliceurn:publicid:IDN+pgeni.gpolab. expires within 1 day on 2011-07-07 INFO:omni:Creating sliver(s) from rspec file INFO:omni:Writing result of createsliver for INFO:omni:Writing to ‘aliceslice-manifest-rspe INFO:omni: ----------------------------------- INFO:omni: Completed createsliver: Options as run: aggregate: https://www.emulab. framework: pgeni native: True Args: createsliveraliceslicemyRSpec.xml Result Summary: Slice urn:publicid:IDN+pgeni Reserved resources on https://www.emulab.net/p Saved createsliver results to aliceslice-man INFO:omni: =================================== http://trac.gpolab.bbn.com/gcf/wiki/Omni

  19. Omni Command Workflow Create Slice Create Sliver Cleanup Repeat for each aggregate Repeat for each aggregate listresources listmyslices createsliver sliverstatus deletesliver createslice getversion renewslice Legend: AM API command

  20. GENI AM API Calls Used • listresources: Get an advertisement rspec listing the resources at an aggregate • createsliver: Request resources from an aggregate • sliverstatus: Get status of resources allocated to a slice at an aggregate • deletesliver: Delete resources allocated to a slice by an aggregate For a complete list of GENI AM API calls see: http://groups.geni.net/geni/wiki/GAPI_AM_API

  21. Corresponding Omni Commands omni –a aggregatenamelistresources omni–a aggregatenamecreatesliverslicenamerequestRSpec omni–a aggregatenamesliverstatusslicename omni–a aggregatenamelistresourcesslicename omni–a aggregatenamedeletesliverslicename • A useful utility (distributed with Omni): readyToLogin–a aggregatenameslicename • Gives you the ssh commands you need to log into your nodes • readyToLogin.pyparses the output of listresources and sliverstatusto determine the hostname, port and username for the ssh commands

  22. Tutorial Structure • Configure Omni (Step 2.2 of instructions) • View and edit an RSpecusing Flack (Steps 3.2 – 3.5) • Request resources specified in RSpec using Omni (Step 3.6) • When resources are ready, log into a node to run the CCN application (Step 5) • (Optional) Visualize the experiment using the GENI Desktop and GEMINI • GENI Instrumentation and Measurement system • Tutorial on GENI Desktop/GEMINI Mon @ 1.30pm

  23. Tutorial Tips • Cut-and-paste is your friend! • Cut-and-paste URLs, commands, etc. from instructions into text boxes, terminal windows, etc • If at any step you don’t understand why you are doing something, ask! • If you fall behind, let us know! • We will help you catch up

  24. Step 2.2 Configure omni

  25. Configuring Omni • Omni reads a configuration file omni_config to: • Find locations of ssl certs and ssh key files • ssl certs are used to secure communication between Omni and the aggregates • ssh key pairs are used log into compute resources • Find standard nicknames for aggregates • e.g. you can refer to the InstaGENI rack at NYSERNet as nysernet-ig instead of https://instageni.nysernet.org:12369/protogeni/xmlrpc/am

  26. Creating an Omni Config File • Download the GENI bundle from the GENI Portal 2. Run omni-configure in a terminal window $ omni-configure

  27. Steps 3.2 – 3.5 View and edit rspec

  28. Tips Remember cut-and-paste! Errors in URLs or other text boxes will cause your experiment to fail For this exercise, do not use Flack to submit your RSpec

  29. Step 3.6 Request resources

  30. Tips • Successful return from Omni createslivermeans your RSpec was submitted to the AM • It does not mean: • The RSpec was correct • The resources are available • Use readyToLogin to monitor your resources • Wait until the status turns to “ready” before using

  31. While we wait for our resources to become ready… Learn about ccn

  32. Content Centric Networking… also known as Named Data Networking PRINCIPLE Focus on what you need; not on where you find it TODAY Must know the location of information (aka URL) • Search engines map the what to the where • Most Internet information look-ups start with search engines CCN (NDN) • New network architecture reflects Internet usage • CCN protocols cache data at all network levels • routers, hosts

  33. CCNX • An implementation of CCN by Xerox PARC • Our exercise uses CCNX software • Software runs on all nodes in our experiment • All nodes cache information that passes through them • When a node gets a data request it: • Returns data from local cache, if available • Passes request to neighbor if data not in cache • Caches data returned by neighbor http://www.ccnx.org

  34. Our Experiment Collaborator (collab) also fetches data by name. Requests not in local cache forwarded to researcher. Researcher (rschr) fetches precipitation data by name (e.g. precip data from 1901/01/01 to 1901/01/02). Requests not in local cache forwarded to router. Intermediate node (router). Requests not in local cache forwarded to data source. Data Source (dsrc1): Holds precipitation data from 1 Jan 1901 to 31 Jan 1902 (data from NOAA)

  35. Our Experiment • Log into the researcher node (rsrchr) and fetch data • Use a client program already installed on the node • Installed using an install script in the RSpec • Note how long it takes to get data • Fetch same data again and note time • If time permits • Repeat the above at the collaborator node (collab) • Data is not in local cache but in rsrchr node cache • Fetch new data at the collaborator node (collab) • Data is not in local cache or in rsrchr node cache • Optional: Use GENI Desktop/GEMINI to view graphs of traffic on links • Helps visualize when data comes from a local cache and when it comes from a neighbor

  36. Step 5 Run the ccn application

  37. Tip Cut-and-paste ssh command from readyToLogin into a terminal to log into the rsrchr node. Example: $ ssh-p 32315 -i /Users/vthomas/.ssh/geni_key_portal vthomas@pc1.instageni.nysernet.org

  38. Optional Visualize experiment

  39. Step 7 Finish

  40. Finish Don’t Delete YET!!! We will clean up after Part 3

More Related