1 / 58

Are you ready for the tutorial?

Are you ready for the tutorial?. Grab a Worksheet and instructions Did you do the pre-work? A. Do you have an account? B. Have you installed the tools? * SSH * omni. Jane. Jane Doe. Do you have an account?. GENI Portal is at: http://portal.geni.net.

tadita
Télécharger la présentation

Are you ready for the tutorial?

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. Are you ready for the tutorial? • Grab a Worksheet and instructions • Did you do the pre-work? A. Do you have an account? B. Have you installed the tools? * SSH * omni Jane Jane Doe Do you have an account? GENI Portal is at: • http://portal.geni.net

  2. Lab Zero:A First Experiment using GENI

  3. Hands On Exercise Do a Simple Experiment in GENI Reserve two VMs connected at Layer 2 VM VM Layer 2

  4. Understand GENI Terminology project slice experimenter resource aggregate

  5. Use the GENI Portal and Flack

  6. Experiment Workflow • Part I: Design/Setup • Part II: Execute • Part III: Finish

  7. The GENI Portal is… A web-based tool for experimenters to manage experimenters, projects, and slices. Includes simple tools to reserve resources. More to come in the future.

  8. Flack is … A graphical user interface (GUI) for: • designing topologies in GENI • reserving resources in GENI

  9. Experimenter An experimenteris a researcher who uses GENI resources Different types of experimenters have different roles and permissions: • Advisor vs Grad Student • Teacher vs TA vs Student Experimenter

  10. Projects Project Projects organize research in GENI Projects contain both peopleand their experiments A project is led by a single responsible individual: the projectlead Today we will use a project created for this class Lead Members Slice

  11. Experiment Workflow • Part I: Design/Setup • Part II: Execute • Part III: Finish

  12. Part I: Establish Management Environment 1 Pre-work: Design your experiment 2.1 Pre-work: Create a GENI account 2.2 Pre-work: Project lead (aka professor) adds you to project Project Name: GEC20 2.3 Generate and Download SSH Keypair Tutorial instructions: http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/GettingStarted_PartI/Procedure

  13. Creating a GENI account • GENI Portal is at: https://portal.geni.net • Instructions for creating an account are: http://groups.geni.net/geni/wiki/SignMeUp

  14. InCommon Leverage InCommonfor single sign-on authentication Experimenters from 304 educational and research institutions have InCommon accounts • For many experimenters: • no new passwords • familiar login screens

  15. Using ssh with a public/private keypair Login to all GENI compute resources using ssh with a private key There are several ways to offer your private key to ssh. Today we will use a tool called an ssh agent. $ ssh-add ~/.ssh/id_geni_ssh_rsa $ sshusername@hostname -p 12345 No password! You should never be prompted for a password to log into a GENI compute node. If you are, something has always gone wrong.

  16. Expiration and renewal slice expiration time ≤ project expiration time each resource expiration time ≤ slice expiration time each resource expiration time ≤ aggregate’s max expiration project slice resource resource (optional) project expiration time resource resource expiration time slice expiration time now In general, to extend the lifetime of your resource reservation, you must renew the slice and allresources

  17. You are here Profile Help Map Projects Slices Tools Log Messages

  18. Generate SSH Keys Login Join Project 2

  19. On your local machine… > mv ~/Downloads/id_geni_ssh_rsa ~/.ssh/. > chmod 600 ~/.ssh/id_geni_ssh_rsa > ssh-add ~/.ssh/id_geni_ssh_rsa 2

  20. Resource A resourceis a piece of infrastructure A resource can be real or virtual. Resource specifications (aka. RSpecs)are used to describe and request resources. Examples: • Compute: computer vs virtual machine (VM) • Wireline Network: VLAN or OpenFlow • Wireless: WiMAX

  21. Aggregate InstaGENI Rack ExoGENI Rack An aggregatemanages a set of reservableresources Aggregates include: GENI racks OpenFlow WiMAX

  22. Slice A sliceis a container of resources used in an experiment. A slice can contain resources from one or more aggregates A slice is in a single project A slice has an expiration Slice names are public, reusable and unique (within a project)

  23. Putting it all together Member: project Lead: Experimenter (aka Professor) slice Experimenter (aka Student) aggregate resource resource Layer 2

  24. Part Icontinued:Obtain Resources slice 3.1 Create a slice 3.2 (optional) Renew your slice 3.3 Reserve two VMs at on aggregate 3.4 Check Whether VMs are Ready to be Used VM VM Layer 2

  25. Create Slice 3.1

  26. Extend slice expiration 3.2

  27. Launch Flack 3.3

  28. username slice name all available aggregates 3.3 Launch Flack

  29. Draw two VMs connected by a link 3.3

  30. Change names of VMs 3.3

  31. Set IP and mask of interfaces 3.3

  32. 3.3 Reserve resources

  33. Resources are READY!!! 3.4

  34. Experiment Workflow • Part I: Design/Setup • Part II: Execute • Part III: Finish

  35. Part II: Execute Experiment 4.1 Login to nodes (two nodes: client & server) 5 Execute experiment 5.1 Send IP traffic 5.2 Install and use iperf 5.3 Bring down the server’s data interface 5.4 Bring down the server’s control interface 6.1 Logout of nodes Internet ssh Control Interfaces client server Layer 2 Data Interfaces Experimenter

  36. Login 4.1

  37. 5.1 5.1 $ sudoifconfig $ ping 10.1.1.2 –c 5 # server data i/f $ ping 172.17.1.9 –c 5 # server ctrl i/f client $ sudoifconfig server

  38. Worksheet 5.1 Internet Project Name: GEC20 Slice Name: lab0<your initials> ___.___.___.___ eth___ ___.___.___.___ eth___ server client eth___ eth___ Control plane switch 10.1.1.1 10.1.1.2 Control i/f Control i/f Data plane switch Data i/f Data i/f GENI Rack

  39. # do one of: $ sudo yum install iperf $ sudo apt-get install iperf #EG $ hash # start an iperf server $ iperf -s 5.2 # do one of: $ sudo yum install iperf #IG $ sudo apt-get install iperf #EG $ hash # server data i/f $ iperf –c 10.1.1.2 … # server ctrl i/f $ iperf–c 172.17.2.4 … client server

  40. What is the bandwidth of the data link? Why? What is the bandwidth of the control link? Why? 5.2 Internet ___.___.___.___ eth___ ___.___.___.___ eth___ server client eth___ eth___ Control plane switch 10.1.1.1 10.1.1.2 Control i/f Control i/f Data plane switch Data i/f Data i/f GENI Rack

  41. Demo here

  42. # For ExoGENI only do: $ sudo service neucastop # bring down data i/f $ sudoifconfigeth12541 down # bring down ctrl i/f $ sudoifconfigeth999 down 5.3 5.4 # ping server data i/f $ ping 10.1.1.2 … # ping server ctrl i/f $ ping 172.17.2.4 … $ exit client server

  43. Demo here

  44. When you bring down the datainterface, the destination should become unreachable. Why? 5.4 Internet ___.___.___.___ eth___ ___.___.___.___ eth___ server client eth___ eth___ Control plane switch 10.1.1.1 10.1.1.2 Control i/f Control i/f Data plane switch Data i/f Data i/f GENI Rack

  45. After you bring down the controlinterface, the destination becomes unreachable. Why? 5.4 Internet ___.___.___.___ eth___ ___.___.___.___ eth___ server client eth___ eth___ Control plane switch 10.1.1.1 10.1.1.2 Control i/f Control i/f Data plane switch Data i/f Data i/f GENI Rack

  46. After you bring down the controlinterface, your ssh session should immediately hang. Why? 5.4 Internet ___.___.___.___ eth___ ___.___.___.___ eth___ server client eth___ eth___ Control plane switch 10.1.1.1 10.1.1.2 Control i/f Control i/f Data plane switch Data i/f Data i/f GENI Rack

  47. Experiment Workflow • Part I: Design/Setup • Part II: Execute • Part III: Finish

  48. 7 Delete Resources

  49. Part III: Finish Experiment When your experiment is done, you should always release your resources. • Normally this is when you would archive your data • Delete your resources at each aggregate project resource experimenter aggregate slice

  50. Congratulations! You have… • Run your first GENI Experiment! • Exercised your knowledge of GENI terminology • Used the GENI Portal and Flack

More Related