-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGettingStartedMacHelloGENI.html
More file actions
105 lines (91 loc) · 9.02 KB
/
GettingStartedMacHelloGENI.html
File metadata and controls
105 lines (91 loc) · 9.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Getting started!</title>
<link rel="stylesheet" style="text/css" href="css/skeleton.css" media="screen">
<link rel="stylesheet" style="text/css" href="css/skeleton.css" media="print">
<script src="js/jquery.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<div class="container">
<center>
<main>
<div id="header">
<div id="header_info">
<h1 id="logo_cyber">Cyberpaths</h1>
</div>
</div>
<div id="site_body">
<div id="actual_content">
<div id="main_title"><h5>Getting Started! Part 2 - Hello GENI</h5></div><br>
</center>
<br><div class="title_bg"><h3>Hello GENI Experiment - Reserving Resources</h3></div><hr>
<div class="subcontent">
<ol class="instructions">
<li>In this lab, you will be running your first GENI experiment.</li>
<li>At the GENI portal home page, click the <b>New slice</b> button.<br><center><img alt="Screenshot" class="u-max-full-width" src="img/screenshots/newSliceScreenShot.png"></center><br></li>
<li>Here, you need to name the slice. Something like <code><b>[yourLastName]HelloWorld</code></b> will be fine.</li>
<li>Next, click the <b>Add Resources</b> button near the top of the page.</li>
<li>In the <b>Choose Rspec</b> filed at the bottom of the page, select the existing <b>Hello GENI</b> option. The follwing topology should appear on the screen. <center><br><img class="u-max-full-width" alt="Screenshot" src="img/screenshots/helloGeniRspecScreenShot.png"></center><br></li>
<li>Then, click on the Site node and choose any aggregate with <i>InstaGeni</i> or <i>ExoGENI</i> in its name.<center><br><img alt="Screenshot" class="u-max-full-width" src="img/screenshots/aggregatesScreenShot.png"></center><br></li>
<li>Finally, click the Reserve Resource button at the bottom of the page.</li>
</ol>
</div>
<br><div class="title_bg"><h3>Hello GENI Experiment - SSH to the Server Node/PuTTY Usage Guide</h3></div><hr>
<div class="subcontent">
<ol class="instructions">
<li>After you send the request to reserve the resources (which you did in the previous section), hover your mouse over the "Home" button at the top of the page, and select "Slices". On this page, click on the slice that you created.</li>
<li>If the two boxes look gray, it means that they are not ready yet. If they are green, it means that they have been reserved successfully and that you may now use them.<br><center><img class="u-max-full-width" alt="Screenshot" src="img/screenshots/Screenshot_67.png"></center><br></li>
<li>Now, looking on the GENI website, click on the "Details" button on the page that displays the topology for your slice.<br><center><img class="u-max-full-width" alt="Screenshot" src="img/screenshots/Screenshot_90.png"></center><br></li>
<li>For any one of your nodes, you will copy the <code><b style="color:red;">username</b>@<b style="color:blue;">host_address</b> -p <b style="color:purple;">some_port</b></code> for part of the command used to log in to the specified node.<br><center><img class="u-max-full-width" alt="Screenshot" src="img/screenshots/Screenshot_91.png"></center><br></li>
<li>To connect to one of your nodes, execute the following command: <pre><code>ssh -i ~/.ssh/id_geni_ssh_rsa <b style="color:red;">username</b>@<b style="color:blue;">host_address</b> -p <b style="color:purple;">some_port</b></code></pre></li>
<li>If you are asked if you want to continue, say <b>"yes"</b>. If prompted for a passphrase, enter the passphrase from when you generated the SSH key pairs. (It is important to note that as you write your passphrase it will not be displayed in the terminal!)<br><center><img class="u-max-full-width" alt="Screenshot" src="img/screenshots/Screenshot_92.png"></center><br></li>
</ol>
<ul>
<li>Now, the key will be configured for your SSH connections to the GENI rack your resources use (In my case Cornell, yours might be different depending on the site you chose). So, when connecting to your nodes later on, you will <b style="color:red;">only</b> have to go to the "Details" page of the slice, like you did earlier, and click on the SSH hyperlink for the node you want to connect to. You might have a pop-up asking you if you want to allow the web browser to use the application. Allow it, and you should be connected to your node.</li>
<li>For example, if I wanted to connect to my Server node, I would just click on the "Details" page, like so:<br><center><img class="u-max-full-width" alt="Screenshot" src="img/screenshots/Screenshot_93.png"></center><br></li>
<li><b style="color:red;font-size:25;"> *** </b><b>Although the screenshots for the rest of the tutorial show a black terminal, which is the SSH terminal used in Windows, the commands executed in these are the <b style="color:red;">same</b> for MAC</b><b style="color:red;font-size:25;"> *** </b></li>
</ul>
</div>
<br><div class="title_bg"><h3>Hello GENI Experiment - Continued</h3></div><hr>
<div class="subcontent">
<ol class="instructions">
<li>On your Server terminal, type in the following command: <b><code>ifconfig</code></b></li>
<li>Now, you should be able to see information corresponding to your Server node. Specifically, you should see information about "eth0", "eth1", and "lo".<br><center><img class="u-max-full-width" src="img/screenshots/Screenshot_73.png"></center><br></li>
<li>To the right of "eth0", you can notice that it says "inet addr" - the numbers right next to that make up the IP address of your node. Try copying and pasting this into your browser of preference, and click on "Web Server Statistics" to see the statistics corresponding to the web server on your node.<br><center><img class="u-max-full-width" src="img/screenshots/Screenshot_74.png"></center><br></li>
<li>Refreshing the page multiple times will yield different statistical information on the page. Refresh the page multiple times, and take note of these changes. These changes occur because you are requesting information every time you click the refresh button.</li>
<li>Next, hit the back button on your web browser. This time, click on the second link, which reads "Logs from the iperf Server". This shows statistical information from the iperf server.</li>
</ol>
</div>
<br><div class="title_bg"><h3>Hello GENI Experiment - Generating Traffic Between Nodes</h3></div><hr>
<div class="subcontent">
<ol class="instructions">
<li>To generate traffic, you will have to open a connection to the Client node. You can do so by following the same instructions you used to connect to the Server node; the only difference is that you will have to click the Client node on GENI, as opposed to the Server node, when trying to find out the host name and port.</li>
<li>After you connect successfully, your terminal for the Client should look similar to this:<br><center><img class="u-max-full-width" src="img/screenshots/Screenshot_75.png"></center><br></li>
<li>To start generating traffic between the Client and Server, execute the following command on the terminal of the Client: <b><code>iperf -c server -P 2</code></b></li>
<li>Try using the same command again, switching out the number <b style="color:red;">2</b> for another positive number (Don't make it too big!). You should notice different results on the output.</li>
</ol>
</div>
<br><div class="title_bg"><h3>Hello GENI Experiment - Finishing Up</h3></div><hr>
<div class="subcontent">
<ol class="instructions">
<li>On your Server terminal, type "exit", and hit enter in order to exit out of the Server node.</li>
<li>Do the same on the Client: type "exit" and hit enter to exit the Client node.</li>
<li>Lastly, looking at the webpage for your slice in the GENI Portal, click the "Delete" button, and click "Yes" on the pop-up. This will make the resources you reserved available again for other users.</li>
</ol>
</div>
<br><div class="title_bg"><h3>Related Readings and Videos</h3></div><hr>
<div class="subcontent">
<ol class="instructions">
<li>SSH Private Keys: <a href="https://www.youtube.com/watch?v=svRWcx7dT8g" target="_blank">Link</a>.</li>
<li>Network Switch: <a href="https://www.youtube.com/watch?v=Ofjsh_E4HFY" target="_blank">Link</a>.</li>
<li>WinSCP Installation and Usage Guide: <a href="https://www.wireshark.org/download.html" target="_blank">Link</a>.</li>
<li>Wireshark Installation and Usage Guide: <a href="https://winscp.net/eng/docs/guide_install" target="_blank">Link</a>.</li>
</ol>
</div>
</div>
</div>
</div>
</main>
</body></html>