Are you ready for the tutorial?

42
Sponsored by the National Science Foundation 1 GEC16: March 19, 2013 Are you ready for the tutorial? 1. Sign In 2. Grab a Worksheet 3. Did you do the pre-work? A. Are you able to login to the GENI Portal? Using your home institution username and password, or Using a GPO issued username and password, or A temporary account B. Have are running the GEC16 Tutorial VM including both: VirtualBox GEC16 Tutorial VM image C. Sign and return the GENI Project Software Disclaimer GENI Portal is at: http://panther.gpolab.bbn.co

description

Are you ready for the tutorial?. Sign In Grab a Worksheet Did you do the pre-work? Are you able to login to the GENI Portal? Using your home institution username and password, or Using a GPO issued username and password, or A temporary account - PowerPoint PPT Presentation

Transcript of Are you ready for the tutorial?

Page 1: Are you ready for the tutorial?

Sponsored by the National Science Foundation 1GEC16: March 19, 2013

Are you ready for the tutorial?1. Sign In

2. Grab a Worksheet

3. Did you do the pre-work?A. Are you able to login to the GENI Portal?

• Using your home institution username and password, or• Using a GPO issued username and password, or• A temporary account

B. Have are running the GEC16 Tutorial VM including both:• VirtualBox• GEC16 Tutorial VM image

C. Sign and return the GENI Project Software Disclaimer

GENI Portal is at:

http://panther.gpolab.bbn.com

Page 2: Are you ready for the tutorial?

Sponsored by the National Science Foundation

Tutorial: Getting Started with GENI

Using the GENI Portal

Sarah Edwards, Marshall Brinn,

Aaron Helsinger, Tom Mitchell

GENI Project Office

19 March 2013

Page 3: Are you ready for the tutorial?

Sponsored by the National Science Foundation 3GEC16: March 19, 2013

Hands On Exercise

Do a Simple Layer 2 Experiment in GENI

Reserve two VMs across the US from each other connected by a Layer 2 circuit

Layer 2VM in

MAVM inUtah

Page 4: Are you ready for the tutorial?

Sponsored by the National Science Foundation 4GEC16: March 19, 2013

Understand GENI Terminology

slice project

aggregate

experimenter

resource

Page 5: Are you ready for the tutorial?

Sponsored by the National Science Foundation 5GEC16: March 19, 2013

Use the GENI Portal

Page 6: Are you ready for the tutorial?

Sponsored by the National Science Foundation 6GEC16: March 19, 2013

Experiment Workflow• Part I: Design/Setup

– Step 1: Establish Management Environment– Step 2: Obtain Resources

• Part II: Execute– Execute Experiment

• Part III: Finish– Teardown Experiment

Page 7: Are you ready for the tutorial?

Sponsored by the National Science Foundation 7GEC16: March 19, 2013

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?

Sponsored by the National Science Foundation 8GEC16: March 19, 2013

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 9: Are you ready for the tutorial?

Sponsored by the National Science Foundation 9GEC16: March 19, 2013

Projects

Projects organize research in GENI

Project

Lead

Members

Slice

Projects contain both people and their experiments

A project is led by a single responsible individual: the project lead

Page 10: Are you ready for the tutorial?

Sponsored by the National Science Foundation 10GEC16: March 19, 2013

Creating Projects• Only project leads can create projects.• Project names are public, unique and

permanent• A project may contain many experimenters;

an experimenter may be a member of many projects

• Projects have an optional expiration (e.g. for classes, tutorials)

For today’s tutorial we will all join a project which expires on Friday

Page 11: Are you ready for the tutorial?

Sponsored by the National Science Foundation 11GEC16: March 19, 2013

Experiment Workflow• Part I: Design/Setup

– Step 1: Establish Management Environment– Step 2: Obtain Resources

• Part II: Execute– Execute Experiment

• Part III: Finish– Teardown Experiment

Page 12: Are you ready for the tutorial?

Sponsored by the National Science Foundation 12GEC16: March 19, 2013

Part I: Step 1: Establish Management Environment

1. Pre-work: Login to the Portal

2. Generate and Download SSH Keypair

3. Join a Project

Project Name:

GEC16PortalTutorialTutorial instructions:http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example

Page 13: Are you ready for the tutorial?

Sponsored by the National Science Foundation 13GEC16: March 19, 2013

Creating a GENI account

• GENI Portal is at:

https://panther.gpolab.bbn.com

• Anyone with an account at a supported identity provider (usually your school or employer) can log in, but they will have no privileges

• If you don’t have such an account, we will make you an account at the GPO Identity Provider

• You must be a member of a project to do anything interesting

Page 14: Are you ready for the tutorial?

Sponsored by the National Science Foundation 14GEC16: March 19, 2013

InCommon

For many experimenters:• no new passwords• familiar login screens

Leverage InCommon forsingle sign-on authentication

Experimenters from 288 educational and research institutions have InCommon accounts

Page 15: Are you ready for the tutorial?

Projects

Slices

Log Messages

Profile

You are here

Help

Page 16: Are you ready for the tutorial?

Generate SSH Keys

Page 17: Are you ready for the tutorial?

In your local VM …

> mv ~/Downloads/id_geni_ssh_rsa ~/.ssh/.> chmod 600 ~/.ssh/id_geni_ssh_rsa> ssh-add ~/.ssh/id_geni_ssh_rsa

Page 18: Are you ready for the tutorial?

Join a ProjectGEC16PortalTutorial

Page 19: Are you ready for the tutorial?

Sponsored by the National Science Foundation 19GEC16: March 19, 2013

Resource

A resource is a piece of infrastructure

A resource can be real or virtual.

Resource specifications are used to describe and request resources.

Examples:• Compute: computer vs virtual machine (VM)• Wireline Network: VLAN or OpenFlow• Wireless: WiMAX

Page 20: Are you ready for the tutorial?

Sponsored by the National Science Foundation 20GEC16: March 19, 2013

Aggregate

An aggregate manages a set of reservable resources

Aggregates include:GENI racks

OpenFlow

WiMAX

InstaGENI Rack ExoGENI Rack

Page 21: Are you ready for the tutorial?

Sponsored by the National Science Foundation 21GEC16: March 19, 2013

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

Page 22: Are you ready for the tutorial?

Sponsored by the National Science Foundation 22GEC16: March 19, 2013

Experimenter

Putting it all together

slice

aggregate aggregate

project Member:Lead:

Experimenter

Layer 2 VLANresourceresource

Page 23: Are you ready for the tutorial?

Sponsored by the National Science Foundation 23GEC16: March 19, 2013

Experiment Workflow• Part I: Design/Setup

– Step 1: Establish Management Environment– Step 2: Obtain Resources

• Part II: Execute– Execute Experiment

• Part III: Finish– Teardown Experiment

Page 24: Are you ready for the tutorial?

Sponsored by the National Science Foundation 24GEC16: March 19, 2013

slice

Part I: Step 2: Obtain Resources

1. Create a slice

2. Reserve VM at Two Aggregates – Utah InstaGENI – GPO InstaGENI

3. Check Whether VMs are Ready to be Used

Layer 2 VLANVM

(Mass)VM

(Utah)

Wait for blinking ball

Page 25: Are you ready for the tutorial?

Create Slice

Page 26: Are you ready for the tutorial?

Add Resources

Extend slice expirationExtend resource expiration

Page 27: Are you ready for the tutorial?

Add Resources at

Utah InstaGENI

Add Resources at

GPO InstaGENI

Wait for blinking ball

Page 28: Are you ready for the tutorial?

Nodes ready?

Page 29: Are you ready for the tutorial?

Sponsored by the National Science Foundation 29GEC16: March 19, 2013

Experiment Workflow• Part I: Design/Setup

– Step 1: Establish Management Environment– Step 2: Obtain Resources

• Part II: Execute– Execute Experiment

• Part III: Finish– Teardown Experiment

Page 30: Are you ready for the tutorial?

Sponsored by the National Science Foundation 30GEC16: March 19, 2013

Part II: Execute Experiment

1. Login to nodes (two nodes: client & server)

2. Run your experiment1. Send IP Traffic

2. Disable IP

3. Send Layer 2 (non-IP) Traffic

3. Logout of nodes

Internet

Data Interfaces

Control Interfaces

ssh

Layer 2 VLAN

Experimenter

server(Mass)

client(Utah)

Page 31: Are you ready for the tutorial?

Login

Page 32: Are you ready for the tutorial?
Page 33: Are you ready for the tutorial?

$ /sbin/ifconfig

$ /sbin/ifconfig

server

client

Page 34: Are you ready for the tutorial?

Worksheet

Client

Control Interface

Name eth ___

IP Address __ . __ . __ . __

Data Interface

Name mv ___ . ___

Initial IP Addr 10 . __ . __ . __

Des IP Addr 10 . 10 . 1 . 1 /24

Server

Control Interface

Name eth ___

IP Address __ . __ . __ . __

Data Interface

Name mv ___ . ___

Initial IP Addr 10 . __ . __ . __

Des IP Addr 10 . 10 . 1 . 2 /24

MAC Address __ : __ : __ : __ : __ : __

Project Name:GEC16PortalTutorial

Slice Name: portal01

EtherType: 10001

Page 35: Are you ready for the tutorial?

# configure your IP

$ sudo /sbin/ifconfig mv10.1 10.10.1.1/24

# should SUCCEED$ ping 10.10.1.2 –c 5

# disable IP on your nodes

$ sudo /sbin/ifconfig mv10.1 0.0.0.0

# should FAIL$ ping 10.10.1.2 –c 5

# start L2 client$ sudo /usr/local/bin/pingPlus 01:02:03:04:05:06 mv10.1 10001

$ exit

# configure your IP $ sudo /sbin/ifconfig mv2.3 10.10.1.2/24

# disable IP on your nodes$ sudo /sbin/ifconfig mv2.3 0.0.0.0

# start L2 server

$ sudo /usr/local/bin/pingPlusListener 10001

$ exit

serverclient

Be careful!

Page 36: Are you ready for the tutorial?

Sponsored by the National Science Foundation 37GEC16: March 19, 2013

Experiment Workflow• Part I: Design/Setup

– Step 1: Establish Management Environment– Step 2: Obtain Resources

• Part II: Execute– Execute Experiment

• Part III: Finish– Teardown Experiment

Page 37: Are you ready for the tutorial?

Sponsored by the National Science Foundation 38GEC16: March 19, 2013

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 38: Are you ready for the tutorial?

Delete Resources at both GPO InstaGENI and Utah InstaGENI

Page 39: Are you ready for the tutorial?

Sponsored by the National Science Foundation 40GEC16: March 19, 2013

Congratulations!

You have…–Run your first GENI Experiment!–Exercised your knowledge of GENI

terminology–Used the GENI Portal

Page 40: Are you ready for the tutorial?

Sponsored by the National Science Foundation 41GEC16: March 19, 2013

What’s Next?

• (If needed) Request a permanent account

• Are you a Professor or PI? – Ask to be a Project Lead so you can create projects

– Invite students to join your project

• Are you a Student?– Ask your professor to create a project – Request to join that project

Keep experimenting!

Page 41: Are you ready for the tutorial?

Sponsored by the National Science Foundation 42GEC16: March 19, 2013

Learn about other tools

• Tools that are integrated with the Portal– Flack GUI is linked on each slice page

• InstaGENI Tutorial on Thurs from 8:30-10am – Omni command line tool (config linked on bottom of Profile page)

• Advanced Networking Experiments Tutorial on Wed from 1:30-3:30

• Get help at GEC– Drop In Session– Coding Sprint– Help Table

• Get help after GEC– Portal specific questions: [email protected] (Sarah, Tom, Aaron

& Marshall)– Everything else: [email protected] (Niky and Vic)

Page 42: Are you ready for the tutorial?

Sponsored by the National Science Foundation 43GEC16: March 19, 2013

Welcome to GENI!

Don’t forget to fill out the tutorial survey!

http://tinyurl.com/GEC16-Tut-Feedback