Changes between Version 8 and Version 9 of GEC17Agenda/GettingStartedWithGENI_I/Procedure/Execute
- Timestamp:
- 07/12/13 18:36:20 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC17Agenda/GettingStartedWithGENI_I/Procedure/Execute
v8 v9 1 = [http://groups.geni.net/geni/wiki/ GEC17Agenda/GettingStartedWithGENI_I/Procedure Getting Started With GENI - Part I] =1 = [http://groups.geni.net/geni/wiki/Tutorials/ICDCS2013/GettingStartedWithGENI_I/Procedure Getting Started With GENI - Part I] = 2 2 {{{ 3 3 #!html … … 30 30 <td > 31 31 <ol> 32 <li>Open a new terminal window. Type the login command for <i>Utah InstaGENI</i> into that terminal window. You have now logged into your VM.</li> 33 <li><FONT COLOR="black">Repeat the previous step for <i>GPO InstaGENI</i> in a second terminal window.</font></li> 34 32 <li>To login to a VM, again click the <b>i</b> in the circle.</li> 33 <li>Now, click on the ssh link. If you have installed <a target="https://addons.mozilla.org/en-us/firefox/addon/firessh/"> FireSSH </a> a new tab will open up.</li> 34 <li> In the window that will pop up : 35 <ul> 36 <li> in the password field type in your passphrase</li> 37 <li> in the private key, browse to the file that has your private key 38 <li> <b> Press OK </b> </li> 39 </ul> 40 </li> 41 <li><FONT COLOR="black">Repeat the previous step for the second VM.</font></li> 42 </ol> 35 43 36 44 <table id="Table_03" border="0" cellpadding="5" cellspacing="0"> … … 40 48 </td> 41 49 <td> 42 To find the login information again, go to the Slice page and press the <b>Details</b> button in the appropriate row of the slice table. 50 To ssh from the command line, do the following (substituting the values shown on the screen): 51 <pre> 52 ssh USERNAME@HOSTNAME -p PORT 53 </pre> 43 54 </tr> 44 55 </table> 45 56 46 47 <li>(Optionally) If your neighbor added you to their slice, login to your neighbor's slice. You will find your login information on the slice page for your neighbor's slice.</li>48 </ol>49 57 </td> 50 58 <td> 51 <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GE NIExperimenter/Tutorials/GREESC13/PortalSimpleLayer2Example/Graphics/log_in_v1.png?format=raw" alt="Login information for a VM" height="200" title="Login information for a VM" />59 <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GEC17Agenda/GettingStartedWithGENI_I/Graphics/client_ssh_highlight_v1.png?format=raw" alt="Login information for a VM" height="350" title="Login information for a VM" /> 52 60 <br /> 53 <b>Figure 9-1</b> <i> The </i>Details<i> page at </i>Utah InstaGENI</i>.</i>61 <b>Figure 9-1</b> <i>Login to a VM</i>.</i> 54 62 </td> 55 63 </tr> … … 58 66 59 67 === 4.2 Download and compile experiment software === 60 1. Download pingPlus software: 61 a. Browse to: http://www.gpolab.bbn.com/local-sw/ 62 b. Select `pingPlus-0.2.tar.gz` and then press "Download". 63 c. The software disclaimer will come up. Press "Accept". 64 d. When prompted save the file on your local machine. 65 e. Upload pingPlus onto each of your nodes. 66 {{{ 67 scp -P 30010 pingPlus-0.2.tar.gz sedwards@pc1.instageni.gpolab.bbn.com:. 68 }}} 69 2. Compile pingPlus 70 {{{ 71 ssh into node 68 1. In the first VM, download the pingPlus software: 69 {{{ 70 wget http://www.gpolab.bbn.com/experiment-support/Layer2Ping/pingPlus-0.2.tar.gz 71 }}} 72 2. Decompress the pingPlus software: 73 {{{ 72 74 tar xvfz pingPlus-0.2.tar.gz 75 }}} 76 3. Compile the pingPlus software: 77 {{{ 73 78 cd pingPlus-0.2 74 79 make 75 80 }}} 81 4. Your output should look like this: 82 {{{ 83 client:~% wget http://www.gpolab.bbn.com/experiment-support/Layer2Ping/pingPlus-0.2.tar.gz 84 --2013-07-05 09:32:26-- http://www.gpolab.bbn.com/experiment-support/Layer2Ping/pingPlus-0.2.tar.gz 85 Resolving www.gpolab.bbn.com (www.gpolab.bbn.com)... 192.1.249.17 86 Connecting to www.gpolab.bbn.com (www.gpolab.bbn.com)|192.1.249.17|:80... connected. 87 HTTP request sent, awaiting response... 200 OK 88 Length: 4726 (4.6K) [application/x-gzip] 89 Saving to: `pingPlus-0.2.tar.gz' 90 91 100%[================================================================================================================================================================>] 4,726 --.-K/s in 0.07s 92 93 2013-07-05 09:32:27 (69.1 KB/s) - `pingPlus-0.2.tar.gz' saved [4726/4726] 94 95 client:~% tar xvfz pingPlus-0.2.tar.gz 96 ./._pingPlus-0.2 97 pingPlus-0.2/ 98 pingPlus-0.2/._Makefile 99 pingPlus-0.2/Makefile 100 pingPlus-0.2/._packetFunctions.c 101 pingPlus-0.2/packetFunctions.c 102 pingPlus-0.2/._packetFunctions.h 103 pingPlus-0.2/packetFunctions.h 104 pingPlus-0.2/._pingPlus.c 105 pingPlus-0.2/pingPlus.c 106 pingPlus-0.2/._pingPlusListener.c 107 pingPlus-0.2/pingPlusListener.c 108 pingPlus-0.2/._README 109 pingPlus-0.2/README 110 client:~% cd pin 111 pingPlus-0.2/ pingPlus-0.2.tar.gz 112 client:~% cd pingPlus-0.2 113 client:~/pingPlus-0.2% make 114 gcc -c -o packetFunctions.o packetFunctions.c 115 gcc -c -o pingPlusListener.o pingPlusListener.c 116 gcc packetFunctions.o pingPlusListener.o -o pingPlusListener 117 gcc -c -o pingPlus.o pingPlus.c 118 gcc packetFunctions.o pingPlus.o -o pingPlus 119 }}} 120 121 5. Repeat the above on the second VM. 76 122 77 123 == 5. Execute Experiment == 78 124 79 === 5.1 Run your experiment === 80 1. '''Send IP traffic''' The first simple experiment that we will run is to verify the IP connectivity between our hosts. 81 i. Check the interfaces of your nodes. In the terminal type: 125 === 5.1 Send IP traffic === 126 The first simple experiment that we will run is to verify the IP connectivity between our hosts. 127 128 1. Check the interfaces of your nodes. In the terminal type: 82 129 {{{ 83 130 /sbin/ifconfig … … 86 133 * The '''control interface'''. This is the interface you use to access the node, e.g. ssh into your host. The control interface is mainly used for control traffic, i.e. traffic for controlling the node and the experiment. The control interface usually has a publicly routable IP. 87 134 * The '''data interface'''. This is the interface that is used for sending experimental traffic. This is the interface that connects to the other hosts of your experiment through GENI. The links between these interfaces are the ones that allow you to run non-IP experiments. The data interface is the one that has an IP that starts with 10. 88 i. Fill in the worksheet, noting the name and IP address of the control and of the data interfaces for each node.135 1. Fill in the worksheet, noting the name and IP address of the control and of the data interfaces for each node. 89 136 {{{ 90 137 #!html … … 93 140 <tr> 94 141 <td> 95 <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/4NotesIcon_512x512. JPG?format=raw" width="50" height="50" alt="Note">142 <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/4NotesIcon_512x512.png?format=raw" width="50" height="50" alt="Note"> 96 143 </td> 97 144 <td> 98 The "client" is the node in Utah and the "server" is the node at the GPO (in Massachusetts). Thecommand prompt on each node says "client" or "server" respectively.145 The command prompt on each node says "client" or "server" respectively. 99 146 </td> 100 147 </tr> 101 148 </table> 102 149 }}} 103 i. When we reserved the resources, we did not specify the IP address for the data interfaces. Instead, do this now. Configure the IP address on the data interface of each node using the desired data IP address from the worksheet :150 1. When we reserved the resources, we did not specify the IP address for the data interfaces. Instead, do this now. Configure the IP address on the data interface of each node using the desired data IP address from the worksheet : 104 151 {{{ 105 152 sudo /sbin/ifconfig <data i/f name> <desired data IP addr>/24 … … 109 156 sudo /sbin/ifconfig eth3742 10.17.1.1/24 110 157 }}} 111 i. Use `/sbin/ifconfig` to confirm the new IP address and mask for each node. The IP address should match what you set it to and the mask should be `255.255.255.0`.112 i. From the client, ping the server. From the terminal window that is logged in to the client type :158 1. Use `/sbin/ifconfig` to confirm the new IP address and mask for each node. The IP address should match what you set it to and the mask should be `255.255.255.0`. 159 1. From the client, ping the server. From the terminal window that is logged in to the client type : 113 160 {{{ 114 161 ping <server data IP addr> -c 5 … … 134 181 }}} 135 182 136 2. '''Send non-IP traffic'''. GENI provides the capability of running non-IP experiments, since you can connect your hosts at Layer 2. For the purpose of this tutorial we have installed in all the hosts a very simple Layer 2 ping program that sends packets using a custom ethernet type. 137 i. Disable the IP on your nodes (being careful to disable IP on the data interface NOT the control interface). In each of the terminals type: 183 184 === 5.1 Send non-IP traffic === 185 186 GENI provides the capability of running non-IP experiments, since you can connect your hosts at Layer 2. For the purpose of this tutorial we will use a very simple Layer 2 ping program that sends packets using a custom ethernet type. 187 188 1. Disable the IP on your nodes (being careful to disable IP on the data interface NOT the control interface). In each of the terminals type: 138 189 {{{ 139 190 sudo /sbin/ifconfig <data i/f name> 0.0.0.0 … … 153 204 </table> 154 205 }}} 155 i. Try again to ping from the client to the server. In the terminal window of the client type:206 1. Try again to ping from the client to the server. In the terminal window of the client type: 156 207 {{{ 157 208 ping <server data IP addr> -c 5 … … 162 213 }}} 163 214 This time the ping should timeout. 164 i. Start the Layer 2 ping server: In the server terminal window, type:165 {{{ 166 sudo /usr/local/bin/pingPlusListener <EtherType from worksheet>215 1. Start the Layer 2 ping server: In the server terminal window, type: 216 {{{ 217 sudo ~/pingPlus-0.2/pingPlusListener <EtherType from worksheet> 167 218 }}} 168 i. From the client try to ping the server at layer 2. You will need the mac address of the data interface of the server, the name of the data interface of the client, and the !EtherType from your worksheet. In the terminal window of the client, type:169 {{{ 170 sudo /usr/local/bin/pingPlus <server mac> <client i/f name> <Eth>219 1. From the client try to ping the server at layer 2. You will need the mac address of the data interface of the server, the name of the data interface of the client, and the !EtherType from your worksheet. In the terminal window of the client, type: 220 {{{ 221 sudo ~/pingPlus-0.2/pingPlus <server mac> <client i/f name> <Eth> 171 222 172 223 where <server mac> is the server's data interface's MAC address, … … 176 227 The result should look like : 177 228 {{{ 178 $ sudo /usr/local/bin/pingPlus 02:00:9B:48:3E:20 eth3742 10001229 $ sudo ~/pingPlus-0.2/pingPlus 02:00:9B:48:3E:20 eth3742 10001 179 230 RQ:'5582+2067' to 2:0:9b:48:3e:20. 180 231 RQ:5582+2067 from 2:0:3e:15:6c:ab. 181 232 }}} 182 233 183 184 185 186 234 == 6. Analyze Experiment == 235 236 Now is when you would ordinarily analyze the results of your experiment. 187 237 188 238 === 6.1 Logout of your nodes === … … 195 245 ---- 196 246 197 = [wiki: GEC17Agenda/GettingStartedWithGENI_I/Procedure Introduction] =198 = [wiki: GEC17Agenda/GettingStartedWithGENI_I/Procedure/Finish Next: Finish] =247 = [wiki:Tutorials/ICDCS2013/GettingStartedWithGENI_I/Procedure Introduction] = 248 = [wiki:Tutorials/ICDCS2013/GettingStartedWithGENI_I/Procedure/Finish Next: Finish] =