52 | | = 2. Run your experiment = |
53 | | Now that resources are ready we can start running our experiment. |
54 | | 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]. |
| 41 | 1. Download the [http://groups.geni.net/geni/attachment/wiki/sol4/IDMS/ExpTutorial/pg_extrn_user.xml rspec ]. For more information on rspec refer [http://groups.geni.net/geni/wiki/sol4/IDMS/ExpTutorial#Insiderspec Inside rspec][[BR]] |
| 42 | |
| 43 | 2. Base experiment can only be joined at shared VLAN nodes. Currently shared VLAN nodes are at |
| 44 | * stanford-ig |
| 45 | * utah-ig |
| 46 | * illinois-ig |
| 47 | * ig-bbn |
| 48 | |
| 49 | 3. Select aggregate manager from list above. |
| 50 | {{{ |
| 51 | omni createsliver -a <aggregate_manager> <slice_name> <path_to_rspec_file> -r <project_name> |
| 52 | }}} |
| 53 | |
| 54 | 4. Poll the resource status to make sure overall 'geni_status' is 'ready' |
| 55 | {{{ |
| 56 | omni sliverstatus -a <aggregate_manager> <slice_name> -r <project_name> |
| 57 | }}} |
| 58 | |
| 59 | 5. If 'geni_status' is not 'ready' try using another aggregate manager |
57 | | 2. '''Send IP traffic''' The first simple experiment that we will run is to verify the IP connectivity between our hosts. |
58 | | i. Check the interfaces of your nodes. In the terminal type: |
59 | | {{{ |
60 | | /sbin/ifconfig |
61 | | }}} |
62 | | You should see at least two interfaces: |
63 | | * 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. |
64 | | * 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. |
65 | | 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. |
66 | | i. From the client ping the server. From the xterm that is logged in to the client type : |
67 | | {{{ |
68 | | ping server -c 5 |
69 | | }}} |
70 | | '''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 : |
71 | | {{{ |
72 | | [[inki@r2 ~]$ ping server -c 5 |
73 | | PING 10.10.2.1 (10.10.2.1) 56(84) bytes of data. |
74 | | 64 bytes from 10.10.2.1: icmp_seq=1 ttl=64 time=1.95 ms |
75 | | 64 bytes from 10.10.2.1: icmp_seq=2 ttl=64 time=2.27 ms |
76 | | 64 bytes from 10.10.2.1: icmp_seq=3 ttl=64 time=2.04 ms |
77 | | 64 bytes from 10.10.2.1: icmp_seq=4 ttl=64 time=1.95 ms |
78 | | 64 bytes from 10.10.2.1: icmp_seq=5 ttl=64 time=1.72 ms |
| 62 | == Step 3: login to Reserved Host == |
80 | | --- 10.10.2.1 ping statistics --- |
81 | | 5 packets transmitted, 5 received, 0% packet loss, time 4005ms |
82 | | rtt min/avg/max/mdev = 1.728/1.992/2.278/0.179 ms |
| 64 | 1. To download / upload data on the storage node login to reserved resource. If you are unaware of this, please follow instruction [http://groups.geni.net/geni/wiki/HowTo/LoginToNodes here][[BR]] |
| 65 | 2. '''Test configuration''' : DHCP server allocate ip to each resource connected to base experiment. To ensure your reserved resource is connected to idms base experiment data plane, ping the DHCP server. |
| 66 | {{{ |
| 67 | ping 10.10.150.0 |
85 | | 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. |
86 | | 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: |
87 | | {{{ |
88 | | sudo /sbin/ifconfig <data i/f name> 0.0.0.0 |
89 | | }}} |
90 | | '''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. |
91 | | i. Try again to ping from the client to the server. In the xterm of the client type: |
92 | | {{{ |
93 | | ping server -c 5 |
94 | | }}} |
95 | | This time the ping should timeout. |
96 | | i. Start the Layer 2 ping server: In the server xterm, type: |
97 | | {{{ |
98 | | sudo /usr/local/bin/pingPlusListener 12345 |
99 | | }}} |
100 | | 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: |
101 | | {{{ |
102 | | sudo /usr/local/bin/pingPlus <server data mac addr> <client data i/f name> 12345 |
103 | | }}} |
104 | | The result should look like : |
105 | | {{{ |
106 | | [uncusr20@client ~]$ sudo /usr/local/bin/pingPlus 02:00:9B:48:3E:20 mv1.1 12345 |
107 | | RQ:'5582+2067' to 2:0:9b:48:3e:20. |
108 | | RQ:5582+2067 from 2:0:3e:15:6c:ab. |
109 | | }}} |