Version 5 (modified by, 5 years ago) (diff)


Lab Zero: A First Experiment Using GENI

Image Map

4. Configure and Initialize

Now that you have reserved your resources, you are ready to run your first GENI experiment.

4.1 Login to nodes

  1. To login to a VM, again click the i in the circle.
  2. Now, click on the ssh link. If you have installed FireSSH a new tab will open up.
  3. In the window that will pop up :
    • in the password field type in your passphrase
    • for the private key, browse to the file that has your private key
    • Press OK
  4. Repeat the previous step for the second VM.
Tip To ssh from the command line, do the following (substituting the values shown on the screen):
Login information for a VM
Figure 4-1 Login to a VM.

5. Execute Experiment

5.1 Send IP traffic

The first simple experiment that we will run is to verify the IP connectivity between our hosts.

  1. Check the interfaces of your nodes. In the terminal type:
       sudo ifconfig
    You should see at least two interfaces:
    • 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 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 address and mask that match what you configured before you reserved your resources.
  2. Fill in the worksheet, noting the name and IP address of the control and of the data interfaces for each node.
    Tip The command prompt on each node says "client" or "server" respectively.
  3. From the client, ping the server. From the terminal window that is logged in to the client type :
        ping <server data IP addr> -c 5
    For example:
        ping -c 5
    An example output should look like :
    [sedwards@client ~]$ ping -c 5
    PING ( 56(84) bytes of data.
    64 bytes from icmp_req=1 ttl=64 time=183 ms
    64 bytes from icmp_req=2 ttl=64 time=91.2 ms
    64 bytes from icmp_req=3 ttl=64 time=91.1 ms
    64 bytes from icmp_req=4 ttl=64 time=91.1 ms
    64 bytes from icmp_req=5 ttl=64 time=91.2 ms
    --- ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4004ms
    rtt min/avg/max/mdev = 91.156/109.579/183.129/36.775 ms

5.2 (optional) Send non-IP traffic

6. Analyze Experiment

Now is when you would ordinarily analyze the results of your experiment.

6.1 Logout of your nodes

  • When you are done, CTRL-C in the server window to stop PingPlusListener.
  • Then type exit in each of your open terminals.

Congratulations you have run an experiment in GENI!


Next: Finish