are you ready for the tutorial?
DESCRIPTION
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. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/1.jpg)
Sponsored by the National Science Foundation 1Lab Zero – March 14, 2014
Are you ready for the tutorial?
1. Grab a Worksheet and instructions
2. Did you do the pre-work?A. Do you have an account?B. Have you installed the tools?
* SSH * omni Do you have an account?
GENI Portal is at:
http://portal.geni.net
JaneJane Doe
![Page 2: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/2.jpg)
Sponsored by the National Science Foundation
Lab Zero:A First Experiment using GENI
![Page 3: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/3.jpg)
Sponsored by the National Science Foundation 3Lab Zero – March 14, 2014
Hands On Exercise
Do a Simple Experiment in GENI
Reserve two VMs connected at Layer 2
Layer 2VMVM
![Page 4: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/4.jpg)
Sponsored by the National Science Foundation 4Lab Zero – March 14, 2014
Understand GENI Terminology
slice project
aggregate
experimenterresource
![Page 5: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/5.jpg)
Sponsored by the National Science Foundation 5Lab Zero – March 14, 2014
Use the GENI Portal and Flack
![Page 6: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/6.jpg)
Sponsored by the National Science Foundation 6Lab Zero – March 14, 2014
Experiment Workflow• Part I: Design/Setup
• Part II: Execute
• Part III: Finish
![Page 7: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/7.jpg)
Sponsored by the National Science Foundation 7Lab Zero – March 14, 2014
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.
![Page 8: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/8.jpg)
Sponsored by the National Science Foundation 8Lab Zero – March 14, 2014
Flack is …
A graphical user interface (GUI) for: – designing topologies in GENI– reserving resources in GENI
![Page 9: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/9.jpg)
Sponsored by the National Science Foundation 9Lab Zero – March 14, 2014
Experimenter
An experimenter is 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
![Page 10: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/10.jpg)
Sponsored by the National Science Foundation 10Lab Zero – March 14, 2014
Projects
Projects organize research in GENI
ProjectLead
Members
Slice
Projects contain both people and their experimentsA project is led by a single responsible individual:
the project lead Today we will use a
project created for this class
![Page 11: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/11.jpg)
Sponsored by the National Science Foundation 12Lab Zero – March 14, 2014
Experiment Workflow• Part I: Design/Setup
• Part II: Execute
• Part III: Finish
![Page 12: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/12.jpg)
Sponsored by the National Science Foundation 13Lab Zero – March 14, 2014
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 KeypairTutorial instructions:http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/GettingStarted_PartI/Procedure
![Page 13: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/13.jpg)
Sponsored by the National Science Foundation 14Lab Zero – March 14, 2014
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
![Page 14: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/14.jpg)
Sponsored by the National Science Foundation 16Lab Zero – March 14, 2014
InCommon
For many experimenters:• no new passwords• familiar login screens
Leverage InCommon forsingle sign-on authentication
Experimenters from 304 educational and research institutions have InCommon accounts
![Page 15: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/15.jpg)
Sponsored by the National Science Foundation 17Lab Zero – March 14, 2014
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 $ ssh username@hostname -p 12345
You should never be prompted for a password to log into a GENI compute node.If you are, something has always gone wrong.
No password!
![Page 16: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/16.jpg)
Sponsored by the National Science Foundation 19Lab Zero – March 14, 2014
Expiration and renewal
slice expiration time ≤ project expiration timeeach resource expiration time ≤ slice expiration time
each resource expiration time ≤ aggregate’s max expiration
project
slice
resource(optional)
project expiration time
slice expiration time
resource expiration timenow
In general, to extend the lifetime of your resource reservation, you must renew the slice and all resources
resourceresource
![Page 17: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/17.jpg)
You are here
Projects
Slices
Log Messages
HelpProfile
Tools
Map
![Page 18: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/18.jpg)
2Login
Join Project
Generate SSH Keys
![Page 19: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/19.jpg)
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
![Page 20: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/20.jpg)
Sponsored by the National Science Foundation 23Lab Zero – March 14, 2014
Resource
A resource is 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
![Page 21: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/21.jpg)
Sponsored by the National Science Foundation 24Lab Zero – March 14, 2014
Aggregate
An aggregate manages a set of reservable resources
Aggregates include:GENI racksOpenFlow WiMAX
InstaGENI Rack ExoGENI Rack
![Page 22: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/22.jpg)
Sponsored by the National Science Foundation 25Lab Zero – March 14, 2014
Slice
A slice is 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)
![Page 23: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/23.jpg)
Sponsored by the National Science Foundation 26Lab Zero – March 14, 2014
Experimenter(aka Student)
Putting it all together
slice
aggregate
project Member:Lead:
Experimenter(aka Professor)
Layer 2resourceresource
![Page 24: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/24.jpg)
Sponsored by the National Science Foundation 27Lab Zero – March 14, 2014
slice
Part I continued:Obtain Resources
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
Layer 2VMVM
![Page 25: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/25.jpg)
3.1
Create Slice
![Page 26: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/26.jpg)
3.2Extend slice expiration
![Page 27: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/27.jpg)
3.3
LaunchFlack
![Page 28: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/28.jpg)
LaunchFlack
username slice name
all availableaggregates
3.3
![Page 29: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/29.jpg)
Draw two VMs connected by a link
3.3
![Page 30: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/30.jpg)
Change names of VMs
3.3
![Page 31: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/31.jpg)
3.3
Set IP and mask of interfaces
![Page 32: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/32.jpg)
Reserve resources
3.3
![Page 33: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/33.jpg)
Resources are READY!!!
3.4
![Page 34: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/34.jpg)
Sponsored by the National Science Foundation 37Lab Zero – March 14, 2014
Experiment Workflow• Part I: Design/Setup
• Part II: Execute
• Part III: Finish
![Page 35: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/35.jpg)
Sponsored by the National Science Foundation 39Lab Zero – March 14, 2014
Part II: Execute Experiment
4.1 Login to nodes (two nodes: client & server)5 Execute experiment
5.1 Send IP traffic5.2 Install and use iperf5.3 Bring down the server’s data interface5.4 Bring down the server’s control interface
6.1 Logout of nodes
Internet
Data Interfaces
Control Interfaces
ssh
Layer 2
Experimenter
serverclient
![Page 36: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/36.jpg)
Login4.1
![Page 37: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/37.jpg)
$ sudo ifconfig
$ ping 10.1.1.2 –c 5 # server data i/f$ ping 172.17.1.9 –c 5 # server ctrl i/f
$ sudo ifconfig
server
client
5.1
5.1
![Page 38: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/38.jpg)
WorksheetProject Name: GEC20
Slice Name: lab0<your initials>
5.1
clienteth___
eth___
10.1.1.1
___.___.___.___
servereth___
eth___
10.1.1.2
___.___.___.___
Data i/f
Control i/f
Data i/f
Control i/f
Internet
Control plane switchDa
ta
plan
e sw
itch
![Page 39: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/39.jpg)
# 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…
# do one of:$ sudo yum install iperf$ sudo apt-get install iperf #EG$ hash
# start an iperf server$ iperf -s
serverclient
5.2
![Page 40: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/40.jpg)
5.2What is the bandwidth of the data link? Why?What is the bandwidth of the control link? Why?
clienteth___
eth___
10.1.1.1
___.___.___.___
servereth___
eth___
10.1.1.2
___.___.___.___
Data i/f
Control i/f
Data i/f
Control i/f
Internet
Control plane switchDa
ta
plan
e sw
itch
GENI Rack
![Page 41: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/41.jpg)
Demo here
![Page 42: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/42.jpg)
# ping server data i/f$ ping 10.1.1.2…
# ping server ctrl i/f$ ping 172.17.2.4…
$ exit
# For ExoGENI only do:$ sudo service neuca stop # bring down data i/f$ sudo ifconfig eth12541 down
# bring down ctrl i/f$ sudo ifconfig eth999 down
serverclient
5.3
5.4
![Page 43: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/43.jpg)
Demo here
![Page 44: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/44.jpg)
5.4 When you bring down the data interface, the destination should become unreachable. Why?
clienteth___
eth___
10.1.1.1
___.___.___.___
servereth___
eth___
10.1.1.2
___.___.___.___
Data i/f
Control i/f
Data i/f
Control i/f
Internet
Control plane switchDa
ta
plan
e sw
itch
GENI Rack
![Page 45: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/45.jpg)
5.4 After you bring down the control interface, the destination becomes unreachable. Why?
clienteth___
eth___
10.1.1.1
___.___.___.___
servereth___
eth___
10.1.1.2
___.___.___.___
Data i/f
Control i/f
Data i/f
Control i/f
Internet
Control plane switchDa
ta
plan
e sw
itch
GENI Rack
![Page 46: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/46.jpg)
5.4 After you bring down the control interface, your ssh session should immediately hang. Why?
clienteth___
eth___
10.1.1.1
___.___.___.___
servereth___
eth___
10.1.1.2
___.___.___.___
Data i/f
Control i/f
Data i/f
Control i/f
Internet
Control plane switchDa
ta
plan
e sw
itch
GENI Rack
![Page 47: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/47.jpg)
Sponsored by the National Science Foundation 51Lab Zero – March 14, 2014
Experiment Workflow• Part I: Design/Setup
• Part II: Execute
• Part III: Finish
![Page 48: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/48.jpg)
Delete Resources
7
![Page 49: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/49.jpg)
Sponsored by the National Science Foundation 53Lab Zero – March 14, 2014
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
sliceproject
aggregateexperimenter
resource
![Page 50: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/50.jpg)
Sponsored by the National Science Foundation 54Lab Zero – March 14, 2014
Congratulations!
You have…–Run your first GENI Experiment!–Exercised your knowledge of GENI
terminology–Used the GENI Portal and Flack
![Page 51: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/51.jpg)
Sponsored by the National Science Foundation 55Lab Zero – March 14, 2014
Welcome to GENI!
![Page 52: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/52.jpg)
Sponsored by the National Science Foundation
Working With Collaborators
![Page 53: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/53.jpg)
Sponsored by the National Science Foundation 57Lab Zero – March 14, 2014
Projects
Projects organize research in GENI
Projects contain both people and their experimentsA project is led by a single responsible individual:
the project lead
ProjectLead
Members
Slice
![Page 54: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/54.jpg)
Sponsored by the National Science Foundation 58Lab Zero – March 14, 2014
Project Membership exampleProjects have 1 Lead and any number of Admins, Members, and Auditors
http://groups.geni.net/geni/wiki/GENIConcepts#Project
Typical Class
Expiration
Typical Research Project
![Page 55: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/55.jpg)
Sponsored by the National Science Foundation 59Lab Zero – March 14, 2014
Populating a Project
1. Member-initiated Each experimenter asks to join a project, approval needed
• Typical for Research projects
2. Admin-initiated Project Lead/Admin bulk-adds experimenters
• Typical for Classrooms or Tutorials
![Page 56: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/56.jpg)
Sponsored by the National Science Foundation 61Lab Zero – March 14, 2014
Working with multiple members in a slice
Research AsstSlice Lead Post-Doc
Slice MemberProfessor
Slice Admin
Members of all slices in a project:
• Project Leads (Professor)• Project Admins (TAs, Graders)Other can be added manually
http://groups.geni.net/geni/wiki/GENIConcepts#Slice
![Page 57: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/57.jpg)
Sponsored by the National Science Foundation 62Lab Zero – March 14, 2014
Slice AccessBeing a member of a slice means you can act on a slice:
– Add resources– Check status– Delete resources– Renew resources
With any tool!
![Page 58: Are you ready for the tutorial?](https://reader035.vdocument.in/reader035/viewer/2022062323/568165bf550346895dd8c0a2/html5/thumbnails/58.jpg)
Sponsored by the National Science Foundation 63Lab Zero – March 14, 2014
Slice Access: Logging in to resources
Slice membership does not guarantee ability to login to resources!
To ensure access in collaborator’s resources:Option 1: Make resource reservation from Portal
• fix the membership of the slice• Use the add resource button in the portal
Option 2: Make resource reservation using omni• fix the membership of the slice• Call createsliver
Option 3: Ensure common public key is loaded • distribute common public key to collaborators• ask collaborators to upload it in their profile• use corresponding private key to login