Changes between Version 7 and Version 8 of GENIExperimenter/Tutorials/SimpleLayer2Example

11/28/12 19:30:06 (7 years ago)



  • GENIExperimenter/Tutorials/SimpleLayer2Example

    v7 v8  
    1313  2. '''Reserve resources'''. In this step we are going to reserve resources using the [wiki:GENIExperimenter/RSpecs rspec file] from this URL: []. The topology that this rspec describes looks like this:
    1414  3. '''Wait until your resources are ready'''
     16= 2. Run your experiment =
     17Now that resources are ready we can start running our experiment.
     18  1. '''Login to all the reserved hosts.''' We will first start by logging in to both of our reserved nodes. If you don't know how to login to your nodes please follow [wiki:HowTo/LoginToNodes these instructions].
     21  2. '''Send IP traffic''' The first simple experiment that we will run is to verify the IP connectivity between our hosts.
     22    i. Check the interfaces of your nodes. In the terminal type:
     23    {{{
     24   /sbin/ifconfig
     25  }}}
     26    You should see at least two interfaces:
     27      * 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.
     28      * 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.
     29    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.
     30    i. From the client ping the server. From the xterm that is logged in to the client type :
     31    {{{
     32    ping server -c 5
     33  }}}
     34    '''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 :
     35    {{{
     36[[inki@r2 ~]$ ping server -c 5
     37PING ( 56(84) bytes of data.
     3864 bytes from icmp_seq=1 ttl=64 time=1.95 ms
     3964 bytes from icmp_seq=2 ttl=64 time=2.27 ms
     4064 bytes from icmp_seq=3 ttl=64 time=2.04 ms
     4164 bytes from icmp_seq=4 ttl=64 time=1.95 ms
     4264 bytes from icmp_seq=5 ttl=64 time=1.72 ms
     44--- ping statistics ---
     455 packets transmitted, 5 received, 0% packet loss, time 4005ms
     46rtt min/avg/max/mdev = 1.728/1.992/2.278/0.179 ms
     49  3. '''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.
     50    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:
     51    {{{
     52  sudo /sbin/ifconfig <data i/f name>
     53  }}}
     54    '''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.
     55    i. Try again to ping from the client to the server. In the xterm of the client type:
     56    {{{
     57  ping server -c 5
     58  }}}
     59    This time the ping should timeout.
     60    i. Start the Layer 2 ping server: In the server xterm, type:
     61    {{{
     62  sudo /usr/local/bin/pingPlusListener 12345
     63  }}}
     64    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 and the name of the data interface of the client. In the xterm of the client, type:
     65    {{{
     66  sudo /usr/local/bin/pingPlus <server data mac addr> <client data i/f name> 12345
     67  }}}
     68    The result should look like :
     69    {{{
     70[uncusr20@client ~]$ sudo /usr/local/bin/pingPlus 02:00:9B:48:3E:20 mv1.1 12345
     71RQ:'5582+2067' to 2:0:9b:48:3e:20.
     72RQ:5582+2067 from 2:0:3e:15:6c:ab.
     75Congratulations you have run a Layer 2 experiment in GENI!
     77= 3. Cleanup  =
     78Although all your reservations, have expiration times, you should always release
     79your resources once you have completed your experiment to make them available
     80to other experimenters.