Changes between Version 30 and Version 31 of GENIExperimenter/Tutorials/OpenFlowOVS
- Timestamp:
- 02/27/15 14:22:04 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/OpenFlowOVS
v30 v31 1 = Intro to OpenFlow using OVS=1 = Intro to OpenFlow Tutorial = 2 2 3 Tiny URL: http://tinyurl.com/geniof4 3 5 4 == Overview: == 6 5 This is a simple OpenFlow tutorial that will guide you through the writing of simple !OpenFlow controllers to showcase some of the !OpenFlow capabilities. We are going to write three different controllers: 7 6 1. Write a controller that will '''duplicate all the traffic''' of the !OpenFlow switch out a specific port 8 2. ''' TCP Port Forward''' controller. Diver geall traffic destined to host A on TCP port X to TCP port Y9 3. '''Proxy Controller'''. Write a controller that will diver geall traffic destined to host A, TCP port X to host B, TCP port Y7 2. ''' TCP Port Forward''' controller. Divert all traffic destined to host A on TCP port X to TCP port Y 8 3. '''Proxy Controller'''. Write a controller that will divert all traffic destined to host A, TCP port X to host B, TCP port Y 10 9 11 In this tutorial we are going to use [http://openvswitch.org/ Open vSwitch (OVS)] as an !OpenFlow switch connected to three hosts. 12 OVS is a software switch running on a compute resource. The other three hosts can only communicate through the OVS switch. The controller for the switch can run anywhere in the Internet. 13 For this tutorial we are going to use the [http://www.noxrepo.org/pox/about-pox/ POX controller], this is just an example of [wiki:OpenFlow/Controllers many controllers]. 10 In this tutorial we have a choice of using an '''''!OpenFlow Software Switch''''', [http://openvswitch.org/ Open vSwitch (OVS)], or using an '''''!OpenFlow-Capable Hardware Switch'''''. The general topology is as pictured below. In general, the controller just needs to have a public IP address, so that it can exchange messages with the !OpenFlow switch. The controller for the switch can run anywhere in the Internet. 11 For this tutorial we are going to use a [http://www.noxrepo.org/pox/about-pox/ POX based controller], this is just an example of [wiki:OpenFlow/Controllers many controllers]. 14 12 15 [[Image(GENIExperimenter/Graphics: simple_ovs.png)]]13 [[Image(GENIExperimenter/Graphics:SimpleOpenFlow.jpg,40%)]] 16 14 17 15 == Prerequisites: == … … 21 19 * Reserving resources using Omni [wiki:GENIExperimenter/Tutorials/HelloOmni tutorial] 22 20 - Familiarity with [wiki:HowTo/LoginToNodes logging in to GENI compute resources]. 23 - Basic understanding of OpenFlow. If you are going overthis tutorial at home, flip through the [attachment:IntroToOpenFlow_140123.pptx tutorial's slides]24 - Familiarity with Unix Command line25 - Familiarity with python programming language. We are going to use the [http://www.noxrepo.org/pox/about-pox/ POX controller], this is just anexample of [wiki:OpenFlow/Controllers many controllers], and POX is written in python.21 - Basic understanding of OpenFlow. If you are doing this tutorial at home, flip through the [attachment:IntroToOpenFlow_140123.pptx tutorial's slides] 22 - Familiarity with the Unix Command line 23 - Familiarity with the python programming language. We are going to use the [http://www.noxrepo.org/pox/about-pox/ POX controller], which is just one example of [wiki:OpenFlow/Controllers many controllers], and POX is written in python. 26 24 27 25 == Tools: == 28 - [http://openvswitch.org/ Open vSwitch]. OVS is already be installed on your host. Installation was completed as described [http://groups.geni.net/geni/wiki/HowTo/InstallOVSInProtoGENI here].29 - [http://www.noxrepo.org/pox/about-pox/ POX controller]. POX controller is installed in your host as part of the sliver creation.26 - [http://openvswitch.org/ Open vSwitch]. OVS will be be installed. Installation was completed as described [http://groups.geni.net/geni/wiki/HowTo/InstallOVSInProtoGENI here]. 27 - [http://www.noxrepo.org/pox/about-pox/ POX controller]. POX controller is installed as part of the resource reservation. 30 28 31 29 == Where to get help: == … … 46 44 <tr> 47 45 <td> 48 <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlow OVS/DesignSetup"><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/design.png?format=raw" width="152" height="152" alt="Design/Setup"></a>46 <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlowSW/DesignSetup"><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/design.png?format=raw" width="152" height="152" alt="Design/Setup"></a> 49 47 </td> 50 48 <td> … … 52 50 <li>Part I: Design/Setup</li> 53 51 <ul> 54 <li>Single Rack, OVS: <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlowOVS/DesignSetup"> Reserve topology in one rack [Recommended] </a></li> 55 <li>Single Rack, Hardware OpenFlow <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlowOVS/Appendix"> Reserve topology in one rack using the HW OF switch </a></li> 52 <li>Step 1: Reserve Resources </li> 53 <ul> 54 <li>OpenFlow using Open vSwitch (OVS): <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlowSW/DesignSetup"> Reserve topology in one rack [Recommended] </a></li> 55 <li>OpenFlow using a Hardware Switch: <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlowHW/DesignSetup"> Reserve topology in one rack using the HW OF switch </a></li> 56 </ul> 57 <li>Step 2: Configure and Initialize Services </li> 56 58 </ul></ul> 57 59 </td> … … 63 65 <td> 64 66 <ul> 65 <li><a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlow OVS/Execute">Part II: Execute</a></li>67 <li><a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlowShared/Execute">Part II: Execute</a></li> 66 68 <ul> 67 <li>Step 2: Configure and Initialize Services </li>68 69 <li>Step 3: Execute Experiment </li> 69 70 </ul></ul> … … 72 73 <tr> 73 74 <td> 74 <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlow OVS/Finish"><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/finish.png?format=raw" width="152" height="114" alt="Finish"></a>75 <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlowShared/Finish"><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/finish.png?format=raw" width="152" height="114" alt="Finish"></a> 75 76 </td> 76 77 77 78 <td> 78 79 <ul> 79 <li><a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlow OVS/Finish">Part III: Finish</a></li>80 <li><a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlowShared/Finish">Part III: Finish</a></li> 80 81 <ul> 81 82 <li>Step 4: Teardown Experiment</li>