Changes between Initial Version and Version 1 of GENIExperimenter/Tutorials/PortalSimpleLayer2ExampleOneAM/ExecuteExperiment


Ignore:
Timestamp:
03/19/13 03:43:56 (11 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/PortalSimpleLayer2ExampleOneAM/ExecuteExperiment

    v1 v1  
     1= Execute Experiment: Login to the nodes and execute a simple layer 2 experiment =
     2
     3Introduction: [wiki:GENIExperimenter/Tutorials/PortalSimpleLayer2Example Getting Started with GENI using the GENI Portal]
     4{{{
     5#!html
     6<table id="Table_01" height="205" border="0" cellpadding="0" cellspacing="0">
     7        <tr>
     8                <td>
     9                        <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/SetupAccount"><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/design.png?format=raw" width="76" height="76" alt="Design/Setup"></a>
     10               </td>
     11               <td>
     12<ul>
     13             <li>Part I: Design/Setup</li>
     14             <ul>
     15                 <li><a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/SetupAccount">Step 1: Establish Management Environment: Setup your GENI account and join a GENI Project</a></li>
     16                 <li><a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/ObtainResources">Step 2: Obtain Resources: Create a slice and reserve resources</a></li>
     17             </ul></ul>
     18               </td>
     19        </tr>
     20        <tr>
     21                <td>
     22                        <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/ExecuteExperiment"><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/execute_on.png?format=raw" width="76" height="72" alt="Execute"></a>
     23                </td>
     24                <td>
     25             <ul>
     26<li><b>Part II: Execute</b></li>
     27             <ul>
     28                 <li><b><a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/ExecuteExperiment">Execute Experiment: Login to nodes and execute a simple layer 2 experiment</a></b> </li>
     29             </ul></ul>
     30                </td>
     31        </tr>
     32        <tr>
     33                <td>
     34                        <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/TeardownExperiment"><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/finish.png?format=raw" width="76" height="57" alt="Finish"></a>
     35                </td>
     36
     37                <td>
     38             <ul>
     39             <li>Part III: Finish</li>
     40             <ul>
     41                 <li><a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/TeardownExperiment">Teardown Experiment: Delete Resources</a></li>
     42             </ul></ul>
     43                </td>
     44
     45        </tr>
     46</table>
     47
     48}}}
     49
     50= Instructions =
     51
     52Now 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. 
     53
     54== 1. Login to nodes ==
     55{{{
     56#!html
     57<table border="0">
     58      <tr>
     59        <td>
     60        <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalSimpleLayer2Example/Graphics/manifest_utah_1.png?format=raw" alt="Login information for a VM"  height="200" title="Login information for a VM" /> </a>
     61       </td>
     62       <td >
     63         <ol>
     64           <li><FONT COLOR="black">Return to the Slice page. Press the <b>Details</b> button in the row of the slice table for <i>Utah InstaGENI</i>.</font></li>
     65           <li>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>
     66           <li> In the window that will pop up :
     67                <ul>
     68                  <li> in the password field type in your passphrase</li>
     69                  <li> in the private key, browse to the file that has your private key
     70                   <li> <b> Press OK </b> </li>
     71                </ul>
     72             </li>
     73           <li>If you don't have FireSSH installed, open a new terminal window. Copy the command to the right of <b>Login</b> into that terminal window.  You have now logged into your VM.</li>
     74           <li><FONT COLOR="black">Return to the Slice page and repeat the previous two steps for <i>GPO InstaGENI</i> in a second terminal window.</font></li>
     75          </ol>
     76       </td>
     77    </tr>
     78 </table>
     79}}}
     80
     81== 2. Run your experiment ==
     82  1. '''Send IP traffic''' The first simple experiment that we will run is to verify the IP connectivity between our hosts.
     83    i. Check the interfaces of your nodes. In the terminal type:
     84    {{{
     85   /sbin/ifconfig
     86  }}}
     87    You should see at least two interfaces:
     88      * 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.
     89      * 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.
     90    i. Fill in the worksheet, noting the name and  IP address of the control and of the data interfaces for each node. 
     91    '''Note''': 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.
     92    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 :
     93{{{
     94    sudo /sbin/ifconfig <data i/f name> <desired data IP addr>/24
     95}}}
     96       For example:
     97{{{
     98    sudo /sbin/ifconfig mv7.90 10.10.1.1/24
     99}}}
     100    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`.
     101    i. From the client, ping the server. From the terminal window that is logged in to the client type :
     102{{{
     103    ping <server data IP addr> -c 5
     104}}}
     105       For example:
     106{{{
     107    ping 10.10.1.2 -c 5
     108}}}
     109       An example output should look like :
     110    {{{
     111
     112[sedwards@client ~]$ ping 10.10.1.2 -c 5
     113PING 10.10.1.2 (10.10.1.2) 56(84) bytes of data.
     11464 bytes from 10.10.1.2: icmp_req=1 ttl=64 time=183 ms
     11564 bytes from 10.10.1.2: icmp_req=2 ttl=64 time=91.2 ms
     11664 bytes from 10.10.1.2: icmp_req=3 ttl=64 time=91.1 ms
     11764 bytes from 10.10.1.2: icmp_req=4 ttl=64 time=91.1 ms
     11864 bytes from 10.10.1.2: icmp_req=5 ttl=64 time=91.2 ms
     119
     120--- 10.10.1.2 ping statistics ---
     1215 packets transmitted, 5 received, 0% packet loss, time 4004ms
     122rtt min/avg/max/mdev = 91.156/109.579/183.129/36.775 ms
     123}}}
     124
     125  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.
     126    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:
     127    {{{
     128  sudo /sbin/ifconfig <data i/f name> 0.0.0.0
     129  }}}
     130     '''Note''': 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.
     131    i. Try again to ping from the client to the server. In the terminal window of the client type:
     132{{{
     133    ping <server data IP addr> -c 5
     134}}}
     135       For example:
     136{{{
     137    ping 10.10.1.2 -c 5
     138}}}
     139    This time the ping should timeout.
     140    i. Start the Layer 2 ping server: In the server terminal window, type:
     141    {{{
     142  sudo /usr/local/bin/pingPlusListener <EtherType from worksheet>
     143  }}}
     144    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:
     145    {{{
     146sudo /usr/local/bin/pingPlus <server mac> <client i/f name> <Eth>
     147
     148where <server mac> is the server's data interface's MAC address,
     149<client i/f name> is the client data interface' name, and
     150<Eth> is the EtherType from the worksheet.
     151  }}}
     152    The result should look like :
     153    {{{
     154$ sudo /usr/local/bin/pingPlus 02:00:9B:48:3E:20 mv1.1 10001
     155RQ:'5582+2067' to 2:0:9b:48:3e:20.
     156RQ:5582+2067 from 2:0:3e:15:6c:ab.
     157}}}
     158
     159
     160== 3. Logout of your nodes ==
     161
     162 * When you are done, CTRL-C in the server window to stop !PingPlusListener.
     163 * Then type `exit` in each of your open terminals.
     164
     165Congratulations you have run a Layer 2 experiment in GENI!
     166
     167
     168= [wiki:GENIExperimenter/Tutorials/PortalSimpleLayer2Example/TeardownExperiment Next: Teardown Experiment] =