| 1 | [[PageOutline]] |
| 2 | |
| 3 | = Running a Layer 2 Experiment in Mesoscale deployment = |
| 4 | |
| 5 | '''These instructions are a draft. Please be in touch with the GPO at [mailto:help@geni.net] as you start work on your experiment.''' |
| 6 | |
| 7 | [All the rspecs include the AM URL, so you can just copy and paste it from the file.] |
| 8 | |
| 9 | == 1. Register your Ethernet Type == |
| 10 | To ensure that different experiments do not interfere with |
| 11 | each other, we are monitoring which ethernet type is used |
| 12 | by which experiment. To register your ethernet type and |
| 13 | ensure that noone else is using it email gpo-infra@geni.net. |
| 14 | See current reservations |
| 15 | [http://groups.geni.net/geni/wiki/NetworkCore/EthertypeReservations here] |
| 16 | {{{ |
| 17 | To: gpo-infra@geni.net |
| 18 | From: Geni User <geniuser@example.com> |
| 19 | Subject: Reservation request for Ethernet Type X |
| 20 | |
| 21 | Hi, |
| 22 | I am planning to run a Layer 2 experiment and would like to reserve |
| 23 | an ethernet type. My protocol uses eth-type X, if this is not available |
| 24 | please let me know of an alternative ethernet type. |
| 25 | |
| 26 | user urn : URI:urn:publicid:IDN+pgeni.gpolab.bbn.com+user+inki, email:inki@pgeni.gpolab.bbn.com |
| 27 | duration : until June 30th 2011 |
| 28 | |
| 29 | Thanks, |
| 30 | }}} |
| 31 | |
| 32 | To determine your user urn see [http://trac.gpolab.bbn.com/gcf/wiki/OmniTroubleShoot#Q.HowdoIdeterminemyusernameURN here] for instructions. |
| 33 | |
| 34 | == 2. Decide which VLAN you want to use == |
| 35 | Take a look at the [http://groups.geni.net/geni/wiki/TangoGENI#DetailedresourceMaps diagrams] of TangoGENI and decide whether you want |
| 36 | to use VLAN 3715 or 3716. The main difference is in the provided topology, |
| 37 | so take a look and see which topology make more sense. |
| 38 | |
| 39 | == 3. ProtoGENI hosts == |
| 40 | Take a look at the diagram of TangoGENI and decide which ProtoGENI hosts you |
| 41 | would like to use. There are two types of ProtoGENI hosts : |
| 42 | 1. ProtoGENI hosts that are controled by GPO's cluster, this includes all |
| 43 | the nodes at GPO (pc1-pc11). |
| 44 | 2. ProtoGENI hosts at campuses that are controlled by UTAH's cluster, these |
| 45 | includes all the ProtoGENI hosts, but the ones at GPO (pg30-pg33, pg46-pg51). |
| 46 | |
| 47 | === 3a. Reserve Hosts from GPO cluster === |
| 48 | First check how many nodes are available |
| 49 | {{{ |
| 50 | omni.py listresources -a https://pgeni.gpolab.bbn.com/protogeni/xmlrpc/am -o |
| 51 | }}} |
| 52 | |
| 53 | If there are enough nodes available, then you can make an unbound (don't specify |
| 54 | specific hosts) request. Modify [attachment:pg_gpo_sample.rspec this rspec] to include the right number of nodes. |
| 55 | |
| 56 | If there are not enough nodes, please email us. |
| 57 | |
| 58 | === 3b. Reserve Hosts from Utah cluster === |
| 59 | First check if the nodes you want are available |
| 60 | {{{ |
| 61 | omni.py listresources -a https://www.emulab.net/protogeni/xmlrpc/am -o |
| 62 | }}} |
| 63 | |
| 64 | If they are then just go ahead and reserve them. For Utah the request has to be |
| 65 | bound, i.e. you need to specify specific hosts. Modify [attachment:pg_utah_sample.rspec this rspec] to include all |
| 66 | the nodes you want. |
| 67 | |
| 68 | If the nodes you wanted are not available, check to see if some of the other pg |
| 69 | nodes are available and whether you can use those instead. If you can't get the |
| 70 | nodes you want, please email us. |
| 71 | |
| 72 | === 3c. Configure PG nodes === |
| 73 | After you have reserved the nodes you need to configure their interfaces. |
| 74 | |
| 75 | ==== Manual configuration ==== |
| 76 | You can configure the interfaces manualy by logging in to each node. After you login, |
| 77 | follow the appropriate instructions below. |
| 78 | |
| 79 | ===== GPO hosts ===== |
| 80 | For the GPO hosts that are booted with an Ubuntu image, |
| 81 | follow the instructions [http://groups.geni.net/geni/wiki/GENIExperimenter/GpoLabExample#ConfigurePGHosts here] |
| 82 | but instead of using the IPs on the example, use IPs of the form 10.37.1Y.2xx, where xx is as described in the example and Y is |
| 83 | based on which VLAN you decided to use (Y=5 for 3715, Y=6 for 3716). |
| 84 | |
| 85 | ===== Utah hosts ===== |
| 86 | For Utah hosts that are booted with a Fedora 10 image, follow these instructions after loging in. |
| 87 | {{{ |
| 88 | sudo vim /etc/sysconfig/network-scripts/ifcfg-eth1.$VLAN |
| 89 | }}} |
| 90 | |
| 91 | Where the contents of the file should be |
| 92 | {{{ |
| 93 | DEVICE=eth1.$VLAN |
| 94 | USERCTL=no |
| 95 | VLAN=yes |
| 96 | IPADDR=$MY_DATA_IP |
| 97 | NETMASK=255.255.255.0 |
| 98 | BOOTPROTO=static |
| 99 | ONBOOT=yes" |
| 100 | }}} |
| 101 | |
| 102 | '''$VLAN''' is the VLAN you decided to use (3715, or 3716), and '''$MY_DATA_IP$''' can be figured out from [http://www.gpolab.bbn.com/arp/geni-core-arp.txt this file], (10.37.1Y.xxx, where xxx is the last octet described in the file, and Y is either 5 or 6 based on the VLAN). |
| 103 | |
| 104 | ==== Automatic Configuration ==== |
| 105 | If you are writing startup scripts to be executed when the node is reserved, you can do both of these configurations with a script. For GEC11 tutorial we |
| 106 | wrote some scripts to do this which are attached in the file. They will need some modification to apply to the specific setup, but the basic idea is there. |
| 107 | |
| 108 | == 3. OF resources == |
| 109 | Although in the campuses, the VLANs you specified are not OF controlled the |
| 110 | VLANs in the core are, so you would need to reserve a sliver and configure it |
| 111 | to be controlled by a controller that is running at the GPO. |
| 112 | |
| 113 | Modify the [attachment:of_nlr_sample.rspec NLR] and the [attachment:of_nlr_sample.rspec I2] rspces to use your own ethernet type. |
| 114 | |
| 115 | Send your request. Ask for you traffic to be opted in by sending a message to [mailto:response-team@geni.net] |
| 116 | |
| 117 | Unlike your PG hosts, you can reserve your OF sliver for as long as you plan |
| 118 | to be running experiments. |
| 119 | |
| 120 | |
| 121 | |