Running a class in GENI

  • View
    53

  • Download
    1

Embed Size (px)

DESCRIPTION

Running a class in GENI. GENI Project Office. GENI Accounts and Projects . GENI Accounts and Projects Exercises on GENI Tips Wrap Up. Access to GENI. Leverage InCommon for single sign-on authentication. Experimenters from 304 educational and research i nstitutions have InCommon accounts. - PowerPoint PPT Presentation

Transcript

Survey of Available GENI Resources

Running a class in GENIGENI Project Office

Sponsored by the National Science FoundationSponsored by the National Science Foundation#Train the TA Sept 13, 20121GENI Accounts and Projects

Exercises on GENI

Tips

Wrap Up

GENI Accounts and Projects Sponsored by the National Science FoundationSponsored by the National Science Foundation#Train the TA Sept 13, 20122Access to GENIFor many experimenters:no new passwordsfamiliar login screensLeverage InCommon forsingle sign-on authentication

Experimenters from 304 educational and research institutions have InCommon accounts

GENI Project Office runs a federated IdP to provide accounts for non-federated organizations. Sponsored by the National Science Foundation#Train the TA Sept 13, 2012The GENI Portal trusts identity providers who are members of the InCommon federation.

Students, faculty and staff will have an account provided by their school (for example, the University of Utah) which they use to access campus resources.

They can then use that account to login to GENI as long as their school is a member of InCommon (with some caveats). **This is exactly like using your Facebook or Google account to access other websites.**

For those experimenters, there are no new passwords. For all others, we are happy to make you an account on the GPOs identity provider.

Anyone with an account at a supported identity provider (usually your school or employer) can log in, but they will have no privilegesIf you dont have such an account, we will make you an account at the GPO Identity ProviderYou must be a member of a project to do anything interesting

3ProjectsProjects organize research in GENI

Projects contain both people and their experimentsA project is led by a single responsible individual: the project lead

ProjectLeadMembersSliceSponsored by the National Science Foundation#Train the TA Sept 13, 2012Experimenters can perform experiments in the context of a project.

Projects contain both people and their experiments. (Experiments are represented by slices, a term we will define in a few minutes.)

A project must have a single individual who is willing to take responsibility for what happens within the project. This person is called the project lead.

For our purposes today, we will use a project created for this class and the professor will be the project lead.Only project leads can create projects.Project names are public, unique and permanentA project may contain many experimenters; an experimenter may be a member of many projects

4Project Membership example

Projects have 1 Lead and any number of Admins, Members, and Auditorshttp://groups.geni.net/geni/wiki/GENIConcepts#ProjectTypical ClassExpiration

Sponsored by the National Science Foundation#Train the TA Sept 13, 2012Calendar clipart: http://all-free-download.com/free-vector/vector-clip-art/table_calendar_clip_art_12117.html

Projects have an optional expiration (e.g. for classes, tutorials)For classes it is recommended to have the project expire at the end of the class.

5Populating a ProjectMember-initiated Each experimenter asks to join a project, approval neededTypical for Research projects

Admin-initiated Project Lead/Admin bulk-adds experimentersTypical for Classrooms or Tutorials

Live DemoSponsored by the National Science Foundation#Train the TA Sept 13, 20126Slice Membership exampleSlices have: 1 Lead (person who created the slice)any number of Admins, Members, and AuditorsProject Lead/Admins added as slice Adminshttp://groups.geni.net/geni/wiki/GENIConcepts#Slice

Research AsstSlice LeadResearch AsstSlice LeadPost-DocSlice MemberProfessorSlice AdminProfessorSlice AdminSponsored by the National Science Foundation#Train the TA Sept 13, 2012Project and Slice RolesCreate projectModify project & manage membershipCreate sliceView projectProjectLead Admin Member

AuditorManage slice membershipAct on sliceView sliceAccount/ keys loaded on sliceSliceLead Admin MemberAuditorhttp://groups.geni.net/geni/wiki/ProjectSlicesRolesSponsored by the National Science Foundation#Train the TA Sept 13, 2012Project role definitions: http://groups.geni.net/geni/wiki/GENIGlossary#ProjectSlice role definitions: http://groups.geni.net/geni/wiki/GENIGlossary#Slice

Move it to a wiki

8Slice AccessBeing a member of a slice means you can act on a slice:Add resourcesCheck statusDelete resourcesRenew resources

With any tool!Sponsored by the National Science Foundation#Train the TA Sept 13, 20129Slice Access: Logging in to resourcesSlice membership does not guarantee ability to login to resources!

To ensure access in students resources:Option 1: Make resource reservation from Portalfix the membership of the sliceUse the add resource button in the portalOption 2: Ensure common public key is loaded distribute common public key to studentsask students to upload it in their profileuse corresponding private key to login

Ability to login can help in debugging!Sponsored by the National Science Foundation#Train the TA Sept 13, 2012Add options10Hands OnTest Slice access

Test access to compute resources using both methods

Sponsored by the National Science Foundation#Train the TA Sept 13, 2012GENI Accounts and Projects

Exercises on GENI

Tips

Wrap Up

Exercises on GENI Sponsored by the National Science FoundationSponsored by the National Science Foundation#Train the TA Sept 13, 201212Available ExercisesList of sample assignments and tutorials:Use as they areModify to meet your needs

Annotated:Type PurposeResources neededDifficulty/Duration

Sponsored by the National Science Foundation#Train the TA Sept 13, 2012Available ExercisesEach sample exercise has:Handouts / Instructions for studentsFurther information about the instructorsFor solutions email help@geni.net

Instruction format:3 Steps based on standard experiment lifecycle

Sponsored by the National Science Foundation#Train the TA Sept 13, 201214Popular SamplesTutorials:Lab ZeroBasic GENI understanding, ensures students setup their environment

Intro To OpenFlowBasic OpenFlow introductory tutorial, students learn how to setup OVS and write simple controllers

Assignments: IPv4 RoutingStudents understand IPv4 forwarding and how to configure static routes

TCP Network AwarenessStudents explore different TCP flavors and TCP parameters

Sponsored by the National Science Foundation#Train the TA Sept 13, 201215Migrate an Assignment to GENIFigure out GENI Resources/ToolsWireless/WiredFlack, Omni, Portal, I&M?

Test your exerciseAdjust writeup for GENIRemember to include Clean Up!Sponsored by the National Science Foundation#Train the TA Sept 13, 2012Test the Assignment in GENIRun through the exercise

Automate:Install scripts (HowTo/WriteInstallScripts)Custom ImageCreate RSpec that instantiate the topology install scripts, images are included

Sponsored by the National Science Foundation#Train the TA Sept 13, 201217Resource ReservationStudents make the reservation:RSpec (URL, File, Upload it in Portal)Or the topology if they are just drawing it in Flack (e.g. Lab 0)AMs, Tool

*Admin (Prof., TA) makes all the reservations:Create a Slice per student/groupMake the student(s) member of the sliceEnsure they have keys (email us if needed)Reserve resources from the Portal* Lab Exercises: Resource reservation might take time Assignments: Resource reservation is complicated/unique or out of scope

Sponsored by the National Science Foundation#Train the TA Sept 13, 2012Students might create their own rspec18GENI Accounts and Projects

Exercises on GENI

Random Tips

Wrap Up

TipsSponsored by the National Science FoundationSponsored by the National Science Foundation#Train the TA Sept 13, 201219First Exercise in GENIBulk-add students to projectEmail Prework:GENI accountComputer setup*Other?1 week beforeClass Prep:GENI AccessProject for the ClassTest ExercisesNotify GMOCFigure Student setupEmail help@geni.net 2 weeks before(or sooner)* Include steps for testing the setupTip #1: Start EarlySponsored by the National Science FoundationSponsored by the National Science Foundation#Train the TA Sept 13, 201220Tip #2: Load Balance the studentsSplit students/groups between equivalent resources (e.g. racks) to avoid resource contention

If using scarce resources consider a rolling deadline

Sponsored by the National Science Foundation#Train the TA Sept 13, 2012Number the tips21Tip #3: Notify GMOC GMOC: GENI Meta-operation CenterKeeps track of outagesNotification system for resource reservation

http://groups.geni.net/geni/wiki/HowTo/PreReserveGENIResourcesGMOC Google Calendar keeps track of reservations/outages

Sponsored by the National Science Foundation#Train the TA Sept 13, 201222Tip #4: Setup for the StudentsUse their personal laptopLabZero is a good way to get setupThere are Mac/Windows Binaries for Omni

Use Lab computersGo through the exercises in lab computersstress-test the resources or split students

Use a VM with all the software loadedhttp://groups.geni.net/geni/wiki/HowTo/CreateTutorialVM

Make sure they test it early in the class!Sponsored by the National Science Foundation#Train the TA Sept 13, 2012Make the 23Tip #5: Accessing GENI Resources: SSH Login to all GENI compute resources using ssh keys no password

If you are ever prompted for a password during login to GENI nodes something is wrong

Using key-pair to SSH:Public key: is public to everyone, loaded to nodes

Private key: kept private in your computer, provided to SSH to verify it matches the lo