Changes between Version 18 and Version 19 of GENIEducation/SampleAssignments/OpenFlowAssignment/ExerciseLayout/Execute
- Timestamp:
- 05/23/13 10:47:03 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIEducation/SampleAssignments/OpenFlowAssignment/ExerciseLayout/Execute
v18 v19 299 299 }}} 300 300 301 '''Question: Implement your load-balancer.rb, run it on ''switch'', and display the number of bytes and queue length on both left and right node when a decision is made'''[[BR]]301 '''Question: Implement your load-balancer.rb, run it on ''switch'', and display the number of bytes and queue length on both left and right node when a new TCP flow comes and path decision is made'''[[BR]] 302 302 '''A sample output should be as follows: [[BR]]''' 303 303 {{{ … … 306 306 so this new flow goes left. Total number of flows on left: 1 307 307 }}} 308 308 You can use iperf to generate TCP flows from ''outside'' node to ''inside'' node: 309 - 310 - On ''inside'', run: 311 {{{ 312 /usr/local/etc/emulab/emulab-iperf -s 313 }}} 314 - On ''outside'' run the following multiple times, with about 6 seconds interval between each run: 315 {{{ 316 /usr/local/etc/emulab/emulab-iperf -c 10.10.10.2 -t 100 & 317 }}} 318 This will give the ''netinfo.py'' enough time to collect network usage statistics from both left and right node so that the load-balancer can make the right decision. 309 319 310 320 '''If you really do not know where to start, you can find a semi-complete load-balancer.rb [http://www.gpolab.bbn.com/experiment-support/OpenFlowExampleExperiment/load-balancer-hint.rb HERE], you only need to complete the ''next_path'' function that prints out the statistics of each path and returns the path choice''' [[BR]]