Changes between Version 1 and Version 2 of GEC17Agenda/GettingStartedWithGENI_I/Procedure/Execute

06/27/13 14:35:04 (6 years ago)



  • GEC17Agenda/GettingStartedWithGENI_I/Procedure/Execute

    v1 v2  
    1919== 4.  Configure and Initialize ==
     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. 
     24=== 9. Login to nodes ===
     27<table border="0">
     28      <tr>
     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>
     36<table id="Table_03" border="0" cellpadding="5" cellspacing="0">
     37        <tr>
     38                <td>
     39                        <img src="" 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>
     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="" 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>
    2159== 5.  Execute Experiment ==
     63=== 10. Run your experiment ===
     64  1. '''Send IP traffic''' The first simple experiment that we will run is to verify the IP connectivity between our hosts.
     65    i. Check the interfaces of your nodes. In the terminal type:
     66    {{{
     67   /sbin/ifconfig
     68  }}}
     69    You should see at least two interfaces:
     70      * 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.
     71      * 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.
     72    i. Fill in the worksheet, noting the name and  IP address of the control and of the data interfaces for each node. 
     76<table id="Table_02" border="0" cellpadding="5" cellspacing="0">
     77        <tr>
     78                <td>
     79                        <img src="" width="50" height="50" alt="Note">
     80               </td>
     81               <td>
     82                    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.
     83               </td>
     84        </tr>
     87    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 :
     89    sudo /sbin/ifconfig <data i/f name> <desired data IP addr>/24
     91       For example:
     93    sudo /sbin/ifconfig eth3742
     95    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 ``.
     96    i. From the client, ping the server. From the terminal window that is logged in to the client type :
     98    ping <server data IP addr> -c 5
     100       For example:
     102    ping -c 5
     104       An example output should look like :
     105    {{{
     107[sedwards@client ~]$ ping -c 5
     108PING ( 56(84) bytes of data.
     10964 bytes from icmp_req=1 ttl=64 time=183 ms
     11064 bytes from icmp_req=2 ttl=64 time=91.2 ms
     11164 bytes from icmp_req=3 ttl=64 time=91.1 ms
     11264 bytes from icmp_req=4 ttl=64 time=91.1 ms
     11364 bytes from icmp_req=5 ttl=64 time=91.2 ms
     115--- ping statistics ---
     1165 packets transmitted, 5 received, 0% packet loss, time 4004ms
     117rtt min/avg/max/mdev = 91.156/109.579/183.129/36.775 ms
     120  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.
     121    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:
     122    {{{
     123  sudo /sbin/ifconfig <data i/f name>
     128<table id="Table_01" border="0" cellpadding="5" cellspacing="0">
     129        <tr>
     130                <td>
     131                        <img src="" width="50" height="50" alt="Warning">
     132               </td>
     133               <td>
     134                    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.
     135               </td>
     136        </tr>
     139    i. Try again to ping from the client to the server. In the terminal window of the client type:
     141    ping <server data IP addr> -c 5
     143       For example:
     145    ping -c 5
     147    This time the ping should timeout.
     148    i. Start the Layer 2 ping server: In the server terminal window, type:
     149    {{{
     150  sudo /usr/local/bin/pingPlusListener <EtherType from worksheet>
     151  }}}
     152    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:
     153    {{{
     154sudo /usr/local/bin/pingPlus <server mac> <client i/f name> <Eth>
     156where <server mac> is the server's data interface's MAC address,
     157<client i/f name> is the client data interface' name, and
     158<Eth> is the EtherType from the worksheet.
     159  }}}
     160    The result should look like :
     161    {{{
     162$ sudo /usr/local/bin/pingPlus 02:00:9B:48:3E:20 eth3742 10001
     163RQ:'5582+2067' to 2:0:9b:48:3e:20.
     164RQ:5582+2067 from 2:0:3e:15:6c:ab.
    23170== 6.  Analyze Experiment ==
     172=== 11. Logout of your nodes ===
     174 * When you are done, CTRL-C in the server window to stop !PingPlusListener.
     175 * Then type `exit` in each of your open terminals.
     177Congratulations you have run a Layer 2 experiment in GENI!