Changes between Initial Version and Version 1 of HowTo/UseOpenFlowHWSwitchesIG


Ignore:
Timestamp:
03/18/16 14:03:25 (8 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/UseOpenFlowHWSwitchesIG

    v1 v1  
     1This page provides a guide on how to do the [wiki:GENIExperimenter/Tutorials/OpenFlowOVS OpenFlowOVS tutorial] using the Hardware OpenFlow switches present at the IG racks. This can server as a general guide on how to use the HW switches.
     2
     3[[PageOutline]]
     4== Step 1.  Obtain resources ==
     5
     6   * The topology used in this experiment is the same as the one used in the  [wiki:GENIExperimenter/Tutorials/OpenFlowOVS/DesignSetup OpenFlow using OVS] part of this tutorial: Three virtual machines (VMs) connected by an !OpenFlow switch. However this tutorial uses the hardware !OpenFlow switch on the rack instead of a software OVS switch.
     7   * If you have not reserved a controller yet, make sure to create a slice that will run the !OpenFlow controller by reserving a VM running the controller using the request RSpec [http://www.gpolab.bbn.com/exp/OpenFlowOVS/xen-openflow-controller-rspec.xml].  This RSpec is available at the Portal and is called ''XEN !OpenFlow Controller''''''''.
     8
     9[[Image(GENIExperimenter/Graphics:SimpleHardwareOpenFlow.jpg,40%)]]
     10
     11
     12'''About GENI !OpenFlow switches''' [[BR]]
     13GENI  offers access to hardware !OpenFlow switches. Each !OpenFlow switch, in most cases, can support only one controller.  On the IG racks the switch is sliced based on VLANs, so each VLAN is its own virtual datapath.
     14
     15To force the  links between the VMs to go through the rack !OpenFlow switch, the three VMs must be on separate physical hosts on the rack.  Our experiment will:
     16   * Bind the Xen VMs to different physical hosts.
     17
     18=== 1.1 Find your RSPecs ===
     19
     20The RSpecs for this tutorial are site specific. If you are attending a tutorial, use the site and IP network that was given to you on your worksheet. If you are doing this at home, choose a site from : `clemson, cornell, gatech, gpo, illinois, kansas, uky, kettering, max, missouri, northwestern, nysernet, nyu, sox, stanford, wisconsin`.
     21
     22''In the URLs below, replace <AGGREGATE-NAME> with the name of the site you are using (clemson, cornell,  kansas, uky, kettering, max, northwestern, nysernet, stanford or wisconsin). ''
     23
     24The RSpec you need is at:
     25    * {{{http://www.gpolab.bbn.com/experiment-support/OpenFlowHW/pvtVlan/ig-<AGGREGATE-NAME>.rspec}}}. (Reserves compute resources and specifies location of your controller.)
     26
     27
     28=== 1.2 Edit your RSpecs ===
     29
     30Open your RSpec in a text editor to make the following changes:
     31
     32    * Replace the string <CONTROLLER_IP> (at the bottom of the RSpec) with the IP address of your controller.
     33
     34
     35
     36=== 1.3 Reserve Resources ===
     37
     38  * Use your favorite resource reservation tool (Omni, jFed, Portal) to reserve your resources.  For example, if you are using Omni and the MAX aggregate:
     39{{{ omni -a max-ig createsliver <YOUR_SLICE_NAME> ig-max.rspec }}}
     40
     41
     42== Step 2.  Configure and Initialize ==
     43
     44To get ready for the tutorial you will need to have the following windows open:
     45  * one window with ssh into the controller
     46  * one window with ssh into host1
     47  * two windows with ssh into host2
     48  * one window with ssh into host3
     49
     50Depending on which tool and OS you are using there is a slightly different process for logging in. If you don't know how to SSH to your reserved hosts learn [wiki:HowTo/LoginToNodes how to login.]
     51
     52=== 2a. Configure the Controller for the Hardware Switch: Useful Tips ===
     53==== Which port is connected to which host ====
     54Run the learning pox controller with debug on ''(--verbose)'' (use the command from the OVS tutorial) and start a ping from host1 to host2 and host3. Notice that the printout of pox will have lines like:
     55{{{
     56DEBUG:forwarding.l2_learning:installing flow for 02:b4:88:6d:83:f7.1 -> 02:36:8d:c2:b0:14.8
     57}}}
     58
     59The format after `for` and `->` is <MAC>.<PORT> so this way you know which port is connected to which host. To figure out the name for each port then it is simply `A<PORT>` so if host 1 is out of port 8, then the name is `A8`.
     60
     61==== Configuration files of controllers ====
     62For the proxy and the port_forwarding controllers you will need to modify the config files (port_forward.config, proxy.config) to use the appropriate IP dataplane IP addresses of your hosts to correctly configure your controllers.
     63
     64Next run your controller as you did in the `OVS` experiment.
     65
     66----
     67= [wiki:GENIExperimenter/Tutorials/OpenFlowOVS Introduction] =
     68= [wiki:GENIExperimenter/Tutorials/OpenFlowOVS/Execute Next:  Execute] =