Changes between Initial Version and Version 1 of Tutorials/ICDCS2013/GettingStartedWithGENI_I/Procedure/Execute


Ignore:
Timestamp:
07/05/13 10:22:13 (6 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/ICDCS2013/GettingStartedWithGENI_I/Procedure/Execute

    v1 v1  
     1= [http://groups.geni.net/geni/wiki/GEC17Agenda/GettingStartedWithGENI_I/Procedure Getting Started With GENI - Part I] =
     2{{{
     3#!html
     4
     5<div style="text-align:center; width:495px; margin-left:auto; margin-right:auto;">
     6<img id="Image-Maps_5201305222028436" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Execute.jpg?format=raw" usemap="#Image-Maps_5201305222028436" border="0" width="495" height="138" alt="" />
     7<map id="_Image-Maps_5201305222028436" name="Image-Maps_5201305222028436">
     8<area shape="rect" coords="18,18,135,110" href="./DesignSetup" alt="" title=""    />
     9<area shape="rect" coords="180,18,297,111" href="./Execute" alt="" title=""    />
     10<area shape="rect" coords="344,17,460,110" href="./Finish" alt="" title=""    />
     11<area shape="rect" coords="493,136,495,138" href="http://www.image-maps.com/index.php?aff=mapped_users_5201305222028436" alt="Image Map" title="Image Map" />
     12</map>
     13<!-- Image map text links - End - -->
     14
     15</div>
     16}}}
     17
     18
     19== 4.  Configure and Initialize ==
     20
     21
     22Now that you have reserved your resources, you are ready to run your first GENI experiment. For the purpose of this tutorial we are going to do a simple layer 2 experiment. 
     23
     24=== 4.1 Login to nodes ===
     25{{{
     26#!html
     27<table border="0">
     28      <tr>
     29
     30       <td >
     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
     35
     36<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     37        <tr>
     38                <td>
     39                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/Symbols-Tips-icon.png?format=raw" width="50" height="50" alt="Tip">
     40               </td>
     41               <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.
     43        </tr>
     44</table>
     45
     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       </td>
     50        <td>
     51        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/GREESC13/PortalSimpleLayer2Example/Graphics/log_in_v1.png?format=raw" alt="Login information for a VM"  height="200" title="Login information for a VM" />
     52<br />
     53         <b>Figure 9-1</b> <i>The </i>Details<i> page at </i>Utah InstaGENI</i>.</i>
     54       </td>
     55    </tr>
     56 </table>
     57}}}
     58
     59=== 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{{{
     67scp -P 30010 pingPlus-0.2.tar.gz sedwards@pc1.instageni.gpolab.bbn.com:.
     68}}}
     69  2. Compile pingPlus
     70{{{
     71ssh into node
     72tar xvfz pingPlus-0.2.tar.gz
     73cd pingPlus-0.2
     74make
     75}}}
     76
     77== 5.  Execute Experiment ==
     78
     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:
     82    {{{
     83   /sbin/ifconfig
     84  }}}
     85    You should see at least two interfaces:
     86      * 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      * 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. 
     89{{{
     90#!html
     91
     92<table id="Table_02" border="0" cellpadding="5" cellspacing="0">
     93        <tr>
     94                <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">
     96               </td>
     97               <td>
     98                    The "client" is the node in Utah and the "server" is the node at the GPO (in Massachusetts).  The command prompt on each node says "client" or "server" respectively.
     99               </td>
     100        </tr>
     101</table>
     102}}} 
     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 :
     104{{{
     105    sudo /sbin/ifconfig <data i/f name> <desired data IP addr>/24
     106}}}
     107       For example:
     108{{{
     109    sudo /sbin/ifconfig eth3742 10.17.1.1/24
     110}}}
     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 :
     113{{{
     114    ping <server data IP addr> -c 5
     115}}}
     116       For example:
     117{{{
     118    ping 10.17.1.2 -c 5
     119}}}
     120       An example output should look like :
     121    {{{
     122
     123[sedwards@client ~]$ ping 10.17.1.2 -c 5
     124PING 10.17.1.2 (10.17.1.2) 56(84) bytes of data.
     12564 bytes from 10.17.1.2: icmp_req=1 ttl=64 time=183 ms
     12664 bytes from 10.17.1.2: icmp_req=2 ttl=64 time=91.2 ms
     12764 bytes from 10.17.1.2: icmp_req=3 ttl=64 time=91.1 ms
     12864 bytes from 10.17.1.2: icmp_req=4 ttl=64 time=91.1 ms
     12964 bytes from 10.17.1.2: icmp_req=5 ttl=64 time=91.2 ms
     130
     131--- 10.17.1.2 ping statistics ---
     1325 packets transmitted, 5 received, 0% packet loss, time 4004ms
     133rtt min/avg/max/mdev = 91.156/109.579/183.129/36.775 ms
     134}}}
     135
     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:
     138    {{{
     139  sudo /sbin/ifconfig <data i/f name> 0.0.0.0
     140}}}
     141{{{
     142#!html
     143
     144<table id="Table_01" border="0" cellpadding="5" cellspacing="0">
     145        <tr>
     146                <td>
     147                        <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/warning-icon-hi.png?format=raw" width="50" height="50" alt="Warning">
     148               </td>
     149               <td>
     150                    Be extra careful to bring down the IP on the data interface, bringing down the IP on the control interface means that you will lose connectivity to your host.
     151               </td>
     152        </tr>
     153</table>
     154}}}
     155    i. Try again to ping from the client to the server. In the terminal window of the client type:
     156{{{
     157    ping <server data IP addr> -c 5
     158}}}
     159       For example:
     160{{{
     161    ping 10.17.1.2 -c 5
     162}}}
     163    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>
     167  }}}
     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    {{{
     170sudo /usr/local/bin/pingPlus <server mac> <client i/f name> <Eth>
     171
     172where <server mac> is the server's data interface's MAC address,
     173<client i/f name> is the client data interface' name, and
     174<Eth> is the EtherType from the worksheet.
     175  }}}
     176    The result should look like :
     177    {{{
     178$ sudo /usr/local/bin/pingPlus 02:00:9B:48:3E:20 eth3742 10001
     179RQ:'5582+2067' to 2:0:9b:48:3e:20.
     180RQ:5582+2067 from 2:0:3e:15:6c:ab.
     181}}}
     182
     183
     184
     185
     186== 6.  Analyze Experiment ==
     187
     188=== 6.1 Logout of your nodes ===
     189
     190 * When you are done, CTRL-C in the server window to stop !PingPlusListener.
     191 * Then type `exit` in each of your open terminals.
     192
     193Congratulations you have run a Layer 2 experiment in GENI!
     194
     195----
     196
     197= [wiki:GEC17Agenda/GettingStartedWithGENI_I/Procedure Introduction] =
     198= [wiki:GEC17Agenda/GettingStartedWithGENI_I/Procedure/Finish Next:  Finish] =