Are you ready for the tutorial? 1. Grab a worksheet and instructions 3. Connect to the network Connect to Texas A&M s wireless network 2. Did you do the pre-work? A. Do you have an account? B. Have you installed the tools? * ssh GENI Portal is at: http://portal.geni.net Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 1
A First Experiment using GENI Violet R. Syrotiuk Arizona State University Based on a presentation by Sarah Edwards, GENI Project Office Sponsored by the National Science Foundation
Hands On Exercise Do a Simple Experiment in GENI Reserve two VMs connected at Layer 2 VM Sponsored by the National Science Foundation VM Layer 2 GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 3
Use the GENI Portal and Jacks Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 4
Experiment Workflow Part I: Design/Setup Part II: Execute Part III: Finish Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 5
The GENI Portal is A web-based tool for experimenters to manage experimenters, projects, and slices. Includes simple tools to reserve resources. Among other things! Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 6
Jacks and jfed are Graphical user interfaces (GUIs) for: designing topologies in GENI reserving resources in GENI Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 7
Experiment Workflow Part I: Design/Setup Part II: Execute Part III: Finish Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 8
Part I: Establish Management Environment 1 Design the experiment 2. Establish the environment 2.1 Pre-work: Create a GENI account 2.2 Pre-work: Ask to join a project Project Name: GRW-Summer-Camp-TAMU 2.3 Generate and download ssh keypair Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 9
2.3 Mac OS X/Linux 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
Part I continued: Obtain Resources slice VM Layer 2 VM 3.1 Create a slice 3.2 (Optional) Renew your slice 3.3 Reserve two VMs at one aggregate 3.4 Check whether VMs are ready to be used Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 13
Experiment Workflow Part I: Design/Setup Part II: Execute Part III: Finish Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 23
Part II: Execute Experiment Experimenter Internet client Control Interfaces Layer 2 server Data Interfaces 4. Configure and initialize 4.1 Login to the client and server nodes Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 24
Part II: Execute Experiment Experimenter Internet client Control Interfaces Layer 2 server Data Interfaces 5. Execute experiment 5.1 Send IP traffic: test connectivity 5.2 Install and use iperf: explore the data and control planes 5.3 Bring down the server s data interface 5.4 Bring down the server s control interface Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 25
5.1 Worksheet Slice Name: <your initials>-lab0 Internet Control plane switch...... Control i/f Data i/f Client 10.1.1.1 Data plane switch 10.1.1.2 Data i/f Control i/f Server
5.1 # Execute on the client $ sudo ifconfig # This is the client s control plane interface eth0 Link encap:ethernet HWaddr 02:21:35:20:37:2a inet addr:172.17.2.8...... # This is the client s data plane interface eth1 Link encap:ethernet HWaddr 02:29:d0:68:c3:bc inet addr:10.10.1.1...... lo Link encap:local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 # Do the same on the server Client
5.2 What is the bandwidth of the data link? Why? What is the bandwidth of the control link? Why? Internet Control plane switch...... Control i/f Data i/f Client 10.1.1.1 Data plane switch 10.1.1.2 Data i/f Control i/f Server GENI Rack
5.2 $ sudo apt-get install iperf $ hash $ sudo apt-get install iperf $ hash # start an iperf server $ iperf -s # Test b/w of server s data i/f # IP address will be different $ iperf c 10.10.1.2 # Test b/w of server s ctrl i/f # IP address will be different $ iperf c 172.17.2.9 Client Server
Demo here
5.3 When you bring down the server s data interface, the destination should become unreachable. Why? Internet Control plane switch...... Control i/f Data i/f Client 10.1.1.1 Data plane switch 10.1.1.2 Data i/f Control i/f Server GENI Rack
5.4 After you bring down the server s control interface, your ssh session should immediately hang. Why? Internet Control plane switch...... Control i/f Data i/f Client 10.1.1.1 Data plane switch 10.1.1.2 Data i/f Control i/f Server GENI Rack
# ping server data i/f $ ping 10.10.1.2 5.3 # bring down data i/f $ sudo ifconfig eth1 down # ping server ctrl i/f $ ping 172.17.2.9 Client $ exit 5.4 # bring down ctrl i/f $ sudo ifconfig eth0 down Server
Demo here
Part II: Execute Experiment Experimenter Internet client Control Interfaces Layer 2 server Data Interfaces 6. Analyze experiment 6.1 Logout of your nodes Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 37
You are trying to log in to a compute node on GENI using SSH and can t. Which are possible explanations? a) You entered the wrong password b) You didn t offer the private key that matches the public key c) The public key wasn t loaded onto the node d) Permissions on the private key are too permissive e) (b), (c), and (d) Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 38
Experiment Workflow Part I: Design/Setup Part II: Execute Part III: Finish Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 39
Part III: Finish Experiment Experimenter Internet client Control Interfaces Layer 2 server Data Interfaces 7. Teardown experiment 7.1 Delete your resources 8. Archive experiment Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 40
Part III: Finish Experiment aggregate resource experimenter slice When your experiment is done, you should always release your resources. Normally this is when you would archive your data and the experiment Delete your resources at each aggregate Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 43
Congratulations! You have Run your first GENI experiment! Exercised your knowledge of GENI terminology Used the GENI Portal and Jacks Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 44
Welcome to GENI! Sponsored by the National Science Foundation GENI Regional Workshop (GRW) at Texas A&M University May 22, 2017 45