| 1 | [[PageOutline]] |
| 2 | |
| 3 | = OpenFlow LoadBalancer Tutorial = |
| 4 | In this tutorial, we will show how do Load Balancing Flow Management using OpenFlow on GENI. |
| 5 | |
| 6 | == Overview == |
| 7 | This Project leverages resources on the GENI aggregate in order to experiment with OpenFlow using the GENI Portal. [[BR]] |
| 8 | Please remember to release the resources you when you are done with them. [[BR]] |
| 9 | The following is the topology that you will be creating: [[BR]] |
| 10 | - Load Balancing experiment: [[BR]] |
| 11 | [[Image(OpenFlowAssignment2.png, 50%, nolink)]] |
| 12 | |
| 13 | == Prerequisites == |
| 14 | * GENI Account: |
| 15 | - Get a GENI Portal account via: [https://portal.geni.net Portal Main Site] (You probably already have one, right?) |
| 16 | - Or go to [https://www.pgeni.gpolab.bbn.com/reqaccount.php3 Request_GENI_Account] for an emulab account and to join a GENI project. |
| 17 | * SSH |
| 18 | * Unix command line - see the Tools section |
| 19 | * A moderately deep understanding of the [http://www.openflow.org OpenFlow controller model] and API is required. |
| 20 | * The OpenFlow specification, [http://www.openflow.org/documents/openflow-spec-v1.1.0.pdf version 1.1.0] is a valuable reference for OpenFlow and the controller model. |
| 21 | |
| 22 | == Tools == |
| 23 | '''1. Trema''' [[BR]] |
| 24 | Each exercise in this assignment will require you to design and implement an OpenFlow controller. |
| 25 | Numerous libraries and controller frameworks are available for this task. The guidelines in this assignment assume that you are using the [http://trema.github.com/trema/ Trema] controller framework. |
| 26 | The Trema project web site, http://trema.github.com/trema/, contains documentation, a number of helpful examples, and some tutorial material for learning to use Trema. |
| 27 | |
| 28 | '''2. Traffic Control (tc)'''[[BR]] |
| 29 | The tc command is available in the GNU Linux distributions on GENI nodes, found in the ''/sbin'' directory. |
| 30 | This command manipulates the Linux network forwarding tables, allowing for configuration of queuing disciplines, |
| 31 | which change the policies controlling which packets are forwarded in what order and which are dropped; and network |
| 32 | emulation, which allows the Linux kernel to emulate various network conditions such as delay or loss. |
| 33 | These two effects are provided by the qdisc and netem subcommands, respectively. |
| 34 | In these exercises, tc will be used to modify network conditions and enable different scheduling policies. |
| 35 | Example command lines will be provided. |
| 36 | |
| 37 | '''3. [http://iperf.sourceforge.net/ Iperf]'''[[BR]] |
| 38 | Iperf is available on the GENI nodes, located at ''/usr/local/etc/emulab/emulab-iperf''. |
| 39 | Iperf is used to measure the bandwidth performance of Internet links. In these exercises, |
| 40 | it is used to study the behavior of TCP in the face of changing link characteristics. |
| 41 | Iperf runs as both a server and a client. The server is started with the -s command line option, |
| 42 | and listens for connections from the client. The client is started with the ''-c <server>'' command line option, |
| 43 | and connects to the server and sends data at either the fastest possible rate (given the underlying network) |
| 44 | or a user-specified rate. The -u option causes the sender or receiver to use UDP instead of TCP. |
| 45 | Various other options will be required for these exercises, and provided in the appropriate sections. |
| 46 | All Iperf measurement data should be recorded from the TCP receiver (server) side. |
| 47 | |
| 48 | '''4. Telnet''' [[BR]] |
| 49 | The Unix telnet <host> <port> command allows you to easily connect to a specified TCP port on a remote host and manually input data. |
| 50 | You may find it useful for testing and evaluating your implementations. |
| 51 | |
| 52 | == How to get Help == |
| 53 | * Always ask your tutors (tutorial helper/presenter/TA) first. They are the fastest way to solve the problem. |
| 54 | * If you are using a specific aggregate or tool, you should consider registering in their [wiki:NikySandbox/GENIExperimenter/GENICommunity#Joinusermailinglists mailing list]. It is a great way to get connected with other GENI users and it is an excellent source of wisdom. |
| 55 | * Send mail to the GENI help list: [mailto:help@geni.net]. |
| 56 | * If you want to chat real-time with other GENI users and ask questions, [wiki:HowTo/ConnectToGENIChatRoom join us] in a GENI chatroom. |
| 57 | |
| 58 | == Resources == |
| 59 | * GENI resources include a variety of computational and network assets, all programmable by experimenters. Resources are made available to experimenters by GENI ''aggregates''. The [wiki:UnderstandingGENI UnderstandingGENI page] has more information in its [wiki:UnderstandingGENI#a2AnExperimentersViewofGENI "An Experimenter's View of GENI"] and [wiki:UnderstandingGENI#a3GENIResources "GENI Aggregates"] sections. |
| 60 | |
| 61 | == Tutorial Instructions == |
| 62 | {{{ |
| 63 | #!html |
| 64 | |
| 65 | |
| 66 | <table id="Table_01" height="409" border="0" cellpadding="0" cellspacing="0"> |
| 67 | <tr> |
| 68 | <td> |
| 69 | <a href="http://groups.geni.net/geni/wiki/GENIEducation/SampleAssignments/OpenFlowLoadBalancerTutorial/ExerciseLayout/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> |
| 70 | </td> |
| 71 | <td> |
| 72 | <ul> |
| 73 | <li><a href="http://groups.geni.net/geni/wiki/GENIEducation/SampleAssignments/OpenFlowLoadBalancerTutorial/ExerciseLayout/DesignSetup">Part I: Design/Setup</a></li> |
| 74 | <ul> |
| 75 | <li> Lists of steps for setting up the exercise </li> |
| 76 | </ul></ul> |
| 77 | </td> |
| 78 | </tr> |
| 79 | <tr> |
| 80 | <td> |
| 81 | <a href="http://groups.geni.net/geni/wiki/GENIEducation/SampleAssignments/OpenFlowLoadBalancerTutorial/ExerciseLayout/Execute"><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/execute.png?format=raw" width="152" height="143" alt="Execute"></a> |
| 82 | </td> |
| 83 | <td> |
| 84 | <ul> |
| 85 | <li><a href="http://groups.geni.net/geni/wiki/GENIEducation/SampleAssignments/OpenFlowLoadBalancerTutorial/ExerciseLayout/Execute">Part II: Execute</a></li> |
| 86 | <ul> |
| 87 | <li> Lists of steps for executing the exercise</li> |
| 88 | </ul></ul> |
| 89 | </td> |
| 90 | </tr> |
| 91 | <tr> |
| 92 | <td> |
| 93 | <a href="http://groups.geni.net/geni/wiki/GENIEducation/SampleAssignments/OpenFlowLoadBalancerTutorial/ExerciseLayout/Finish"><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/finish.png?format=raw" width="152" height="114" alt="Finish"></a> |
| 94 | </td> |
| 95 | |
| 96 | <td> |
| 97 | <ul> |
| 98 | <li><a href="http://groups.geni.net/geni/wiki/GENIEducation/SampleAssignments/OpenFlowLoadBalancerTutorial/ExerciseLayout/Finish">Part III: Finish</a></li> |
| 99 | <ul> |
| 100 | <li> Lists of steps for tearing down the exercise</li> |
| 101 | </ul></ul> |
| 102 | </td> |
| 103 | |
| 104 | </tr> |
| 105 | </table> |
| 106 | |
| 107 | }}} |