Changes between Version 5 and Version 6 of GEC17Agenda/AdvancedOpenFlow/Procedure/Execute
- Timestamp:
- 07/19/13 23:00:13 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC17Agenda/AdvancedOpenFlow/Procedure/Execute
v5 v6 19 19 == 2. Configure and Initialize Services == 20 20 === 2.1. Start a naive OpenFlow controller === 21 An example OpenFlow Controller that assigns incoming TCP connections to alternating paths '''based on total number of flows''' is already downloaded for you. You can find it (load-balancer.rb) in the home directory on node "Switch". [[BR]] 22 - '''2.1.1''' Log on to node "Switch", wait until all interfaces are up and running. To check that all interfaces are configured issue "ifconfig", make sure eth1, eth2, eth3 are up and assigned with valid IP addresses. [[BR]] 23 Start the example Load Balancer by executing the following: 21 An example OpenFlow Controller that assigns incoming TCP connections to alternating paths '''based on total number of flows''' (round robin) is already downloaded for you. You can find it (load-balancer.rb) in the home directory on node "Switch". [[BR]] 22 - '''2.1.1''' Log on to node "Switch", 23 - '''2.1.2''' Check that all interfaces are configured: Issue `ifconfig` and make sure eth1, eth2, eth3 are up and assigned with valid IP addresses. [[BR]] 24 - '''2.1.3''' Start the example Load Balancer by executing the following: 24 25 {{{ 25 26 /opt/trema-trema-f995284/trema run /root/load-balancer.rb 26 27 }}} 27 - '''2.1. 2''' After you started your Load Balancer, you should be able to see the following (Switch id may vary):28 - '''2.1.4''' After you started your Load Balancer, you should be able to see the following (Switch id may vary): 28 29 {{{ 29 30 OpenFlow Load Balancer Conltroller Started! … … 73 74 }}} 74 75 - '''3.2.4''' Go back to your !LabWiki web page, drag and drop the `file icon` and repeat the experiment, as described in section 2.2.4, using a different experiment name (the slice name should stay the same). 75 - ''' 2.3.5''' When your experiment is finished, turn off your controller and disconnect switch from your controller:76 - '''3.4.5''' When your experiment is finished, turn off your controller and disconnect switch from your controller: 76 77 - On node "Switch", press "Ctrl" and "c" key to kill your Load Balancer process on node "Switch" 77 78 - On node "Switch", use the following command to disconnect the OpenFlow Switch from the controller: … … 80 81 }}} 81 82 82 Questions: 83 ==== Questions ==== 83 84 - Did you see any difference from the graphs plotted on !LabWiki, compared with the graphs plotted in the first experiment? why? 84 85 - Check out the output of the Load Balancer on node "Switch" and tell how many flows are directed to the left path and how many are on the right path, why? … … 101 102 - On node "Switch", press "Ctrl" and "c" key to kill your Load Balancer process on node "Switch" 102 103 103 == 3.4 Automate your experiment using !LabWiki==104 === 3.4 Automate your experiment using !LabWiki === 104 105 - '''3.4.1''' Add code in your !LabWiki script to automate starting and stoping your OpenFlow Controller: 105 106 - '''3.4.1.1''' Go back to your !LabWiki page, un-comment the script from line 184 to line 189 to start your OpenFlow Controller automatically on !LabWiki … … 109 110 - If you have more time or are interested in trying out things, go ahead and try section 3.5. The tutorial is over now and feel free to ask questions :-) 110 111 111 == 3.5(Optional) Try different kinds of OpenFlow Load Balancers==112 === 3.5(Optional) Try different kinds of OpenFlow Load Balancers ==== 112 113 - You can find more load balancers under /tmp/load-balancer/ on node "Switch" 113 114 - To try out any one of them, follow the steps: