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


Ignore:
Timestamp:
03/04/13 17:03:13 (11 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

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

    v1 v1  
     1= [wiki:SarahEdwards/Gec16PortalTutorial Getting Started with GENI using the GENI Portal] =
     2{{{
     3#!html
     4<table border="0">
     5   
     6<tr>
     7<td>
     8<img border="0" src="http://groups.geni.net/syseng/attachment/wiki/SarahEdwards/Gec16PortalTutorial/Graphics/execute_1.png?format=raw" alt="Experiment Workflow"  height="200" title="Experiment Workflow" />
     9</td>
     10       <td >
     11          <ul>
     12             <li>Part I: Design/Setup</li>
     13             <ul>
     14                 <li><a href="http://groups.geni.net/syseng/wiki/SarahEdwards/Gec16PortalTutorial/SetupAccount">Step 1: Establish Management Environment: Setup your GENI account and join a GENI Project</a></li>
     15                 <li><a href="http://groups.geni.net/syseng/wiki/SarahEdwards/Gec16PortalTutorial/ObtainResources">Step 2: Obtain Resources: Create a slice and reserve resources</a></li>
     16             </ul>
     17             <li>Part II: Execute</li>
     18             <ul>
     19                 <li><b><a href="http://groups.geni.net/syseng/wiki/SarahEdwards/Gec16PortalTutorial/ExecuteExperiment">Execute Experiment: Login to nodes and execute a simple layer 2 experiment</a></b> </li>
     20             </ul>
     21             <li>Part III: Finish</li>
     22             <ul>
     23                 <li><a href="http://groups.geni.net/syseng/wiki/SarahEdwards/Gec16PortalTutorial/TeardownExperiment">Teardown Experiment: Delete Resources</a></li>
     24             </ul>
     25          </ul>
     26       </td>
     27    </tr>
     28 </table>
     29}}}
     30= Execute Experiment: Login to the nodes and execute a simple layer 2 experiment =
     31
     32== 1. Login to nodes ==
     33{{{
     34#!html
     35<table border="0">
     36      <tr>
     37        <td>
     38        <img border="0" src="http://groups.geni.net/syseng/attachment/wiki/SarahEdwards/Gec16PortalTutorial/Graphics/details_1.png?format=raw" alt="Login information for a VM"  height="200" title="Login information for a VM" /> </a>
     39       </td>
     40       <td >
     41         <ol>
     42           <li><FONT COLOR="black">Return to the Slice page. Press the <b>Details</b> button in the row of the slice table for <i>GPO InstaGENI</i>.</font></li>
     43           <li>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>
     44           <li><FONT COLOR="black">Return to the Slice page and repeat the preview two steps for <i>Utah InstaGENI</i> in a second terminal window.</font></li>
     45          </ol>
     46       </td>
     47    </tr>
     48 </table>
     49}}}
     50
     51== 2. Run your experiment ==
     52  1. '''Send IP traffic''' The first simple experiment that we will run is to verify the IP connectivity between our hosts.
     53    i. Check the interfaces of your nodes. In the terminal type:
     54    {{{
     55   /sbin/ifconfig
     56  }}}
     57    You should see at least two interfaces:
     58      * The '''control interface'''. This is the interface from where you 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.
     59      * 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.
     60    i. Note the name and the MAC address of the control and of the data interface for each node. The data interface is the one that has an IP that starts with 10.
     61    i. From the client ping the server. From the xterm that is logged in to the client type :
     62    {{{
     63    ping server -c 5
     64  }}}
     65    '''Note''': You can use the name that is assigned to the host to directly ping the host, you can also ping using the IP of the data interface of the node.  An example output should look like :
     66    {{{
     67[[inki@r2 ~]$ ping server -c 5
     68PING 10.10.2.1 (10.10.2.1) 56(84) bytes of data.
     6964 bytes from 10.10.2.1: icmp_seq=1 ttl=64 time=1.95 ms
     7064 bytes from 10.10.2.1: icmp_seq=2 ttl=64 time=2.27 ms
     7164 bytes from 10.10.2.1: icmp_seq=3 ttl=64 time=2.04 ms
     7264 bytes from 10.10.2.1: icmp_seq=4 ttl=64 time=1.95 ms
     7364 bytes from 10.10.2.1: icmp_seq=5 ttl=64 time=1.72 ms
     74
     75--- 10.10.2.1 ping statistics ---
     765 packets transmitted, 5 received, 0% packet loss, time 4005ms
     77rtt min/avg/max/mdev = 1.728/1.992/2.278/0.179 ms
     78}}}
     79
     80  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.
     81    i. Disable the IP in your nodes. First of all we are going to completely disable IP on our nodes. In each of the terminals type:
     82    {{{
     83  sudo /sbin/ifconfig <data i/f name> 0.0.0.0
     84  }}}
     85    '''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.
     86    i. Try again to ping from the client to the server. In the xterm of the client type:
     87    {{{
     88  ping server -c 5
     89  }}}
     90    This time the ping should timeout.
     91    i. Start the Layer 2 ping server: In the server xterm, type:
     92    {{{
     93  sudo /usr/local/bin/pingPlusListener 12345
     94  }}}
     95    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 xterm of the client, type:
     96    {{{
     97  sudo /usr/local/bin/pingPlus <server data mac addr> <client data i/f name> <EtherType from worksheet>
     98  }}}
     99    The result should look like :
     100    {{{
     101[uncusr20@client ~]$ sudo /usr/local/bin/pingPlus 02:00:9B:48:3E:20 mv1.1 10001
     102RQ:'5582+2067' to 2:0:9b:48:3e:20.
     103RQ:5582+2067 from 2:0:3e:15:6c:ab.
     104}}}
     105
     106Congratulations you have run a Layer 2 experiment in GENI!
     107
     108
     109
     110= [wiki:SarahEdwards/Gec16PortalTutorial/TeardownExperiment Next Part: Teardown Experiment] =