Changes between Version 4 and Version 5 of GENIEducation/SampleAssignments/OpenFlowLoadBalancerTutorial/ExerciseLayout/Execute
- Timestamp:
- 06/20/13 14:28:20 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIEducation/SampleAssignments/OpenFlowLoadBalancerTutorial/ExerciseLayout/Execute
v4 v5 72 72 The information you will use to inform your OpenFlow controller about the state of the two load-balanced paths will be gathered via sending OpenFlow `FlowStatsRequest` from the OpenFlow controller to the OpenFlow switch and then collecting OpenFlow `FlowStatsReply` message from the OpenFlow switch to the OpenFlow controller. For more information about !FlowStatsRequest and !FlowStatsReply, please refer to http://rubydoc.info/github/trema/trema/master/Trema/FlowStatsRequest and http://rubydoc.info/github/trema/trema/master/Trema/FlowStatsReply. [[BR]] 73 73 74 '''Question 1: Implement your load-balancer.rb, run it on ''switch'', and display the total number of bytes sent to the left and right paths when a new TCP flow comes and forward the new TCP flow to the path with less number of bytes transferred.'''[[BR]] 75 '''A sample output is as follows: [[BR]]''' 74 '''Question 1: Implement your load-balancer.rb, run it on ''switch'' using the following command: ''' 75 {{{ 76 /opt/trema-trema-f995284/trema run load-balancer.rb 77 }}} 78 Your load balancer should display the total number of bytes sent to the left and right paths when a new TCP flow comes and forward the new TCP flow to the path with less number of bytes transferred. [[BR]] 79 A sample output is as follows: [[BR]] 76 80 {{{ 77 81 [stats_reply]------------------------------------------- … … 118 122 Note: there is some delay in fetching the flow statistics. The OpenFlow controller may not be able to receive any !FlowStatsReply message before two flows are established. 119 123 120 '''If you really do not know where to start, you can find the answer [http://www.gpolab.bbn.com/experiment-support/OpenFlowExampleExperiment/ExoGENI/load-balancer.rb HERE]''' [[BR]]124 '''If you really do not know where to start, you can find the answer for Question 1 [http://www.gpolab.bbn.com/experiment-support/OpenFlowExampleExperiment/ExoGENI/load-balancer.rb HERE]''' [[BR]] 121 125 122 126 '''Question 2: Modify your load balancer so that it decides path based on the average per-flow throughput observed on each path. ''' [[BR]]