Changes between Version 2 and Version 3 of GEC17Agenda/AdvancedOpenFlow/Procedure/Execute


Ignore:
Timestamp:
07/19/13 22:37:57 (6 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC17Agenda/AdvancedOpenFlow/Procedure/Execute

    v2 v3  
    2222== 2.1 Run an example Load Balancing OpenFlow Controller ==
    2323  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]]
    24   - 2.1.1 Log on to node "Switch", wait until all interfaces are up and running by issuing "ifconfig", make sure eth1, eth2, eth3 are up and assigned with valid IP addresses. [[BR]]
     24  - 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]]
    2525  Start the example Load Balancer by executing the following:
    2626  {{{
     
    3535 
    3636== 2.2 Use GIMI Portal to run the experiment and monitor the load balancer ==
    37    - 2.2.1 Log on to your !LabWiki Account on http://emmy9.casa.umass.edu:3005 , on the `Prepare` Column, type "OpenFlow", it will pop up with a list of .rb choices. Choose any one, and replace the whole content with the ruby script [http://www.gpolab.bbn.com/experiment-support/OpenFlowExampleExperiment/ExoGENI/loadbalancer_monitor.rb HERE].
     37   - 2.2.1 Log on to !LabWiki on http://emmy9.casa.umass.edu:3005 , on the `Prepare` Column, type "OpenFlow", it will pop up with a list of .rb choices. Choose any one, and replace the whole content with the ruby script [http://www.gpolab.bbn.com/experiment-support/OpenFlowExampleExperiment/ExoGENI/loadbalancer_monitor.rb HERE].
    3838   - 2.2.2 Log on to node "Switch" and do "ifconfig" to see the IP addresses on each interfaces.
    3939    - '''Note''': You may not be able to see all interfaces up immediately when node "Switch" is ready; wait for some more time (about 1 min) then try "ifconfig" again.
    40     - Identify the two interfaces that you want to monitor: the interfaces with IP address 192.168.2.1 and 192.168.3.1 respectively. On the !LabWiki page, in your ruby script, find the following line:
     40    - Identify the two interfaces that you want to monitor: the interfaces with IP addresses 192.168.2.1(left) and 192.168.3.1(right) respectively. On the !LabWiki page, in your ruby script, find the following lines:
    4141{{{
    4242###### Change the following to the correct interfaces ######
     
    4545###### Change the above to the correct interfaces ######
    4646}}}
    47    - 2.2.3 Change eth1 and eth3 to the corresponding two interfaces you found with IP address 192.168.2.1 (the interface that connects to the left path) and 192.168.3.1 (the interface that connects to the right path) and press the "save" icon on your !LabWiki page.
    48    - 2.2.4 Drag the `file Icon` at the left-top corner on your !LabWiki page from `Prepare` column and drop it to `Execute` column. Fill in the name of your !LabWiki experiment (this can be anything), the name of your slice (this has to be your slice name), and type "true" in the graph box to enable graphs. And then press "Start Experiment" button.
    49    - 2.2.5 When your experiment is finished, turn off your controller and disconnect switch from your controller:
     47   - 2.2.3 Change eth1 and eth3 to the corresponding two interfaces you found with IP addresses 192.168.2.1 (the interface that connects to the left path) and 192.168.3.1 (the interface that connects to the right path) and press the "save" icon on your !LabWiki page.
     48   - 2.2.4 Drag the `file Icon` at the left-top corner on your !LabWiki page from `Prepare` column and drop it to `Execute` column. Fill in the name of your !LabWiki experiment (this can be anything, it is just to help you track the experiments you run), the name of your slice (this has to be your slice name), and type "true" in the graph box to enable graphs. Then press the "Start Experiment" button.
     49   - 2.2.5 When your experiment is finished, turn off your controller and disconnect the switch from your controller:
    5050      - On node "Switch", press "Ctrl" and "c" key to kill your Load Balancer process on node "Switch"
    5151      - On node "Switch", use the following command to disconnect the OpenFlow Switch from the controller:
     
    5555   - '''Note''': Do not start another experiment (i.e., drag and drop the file icon in !LabWiki and press "Start Experiment") before your current experiment is finished.
    5656   
    57 == (Optional) 2.3 Fetch experimental results from your iRods account ==
    58  - 2.3.1 Log in your iRods account on https://www.irods.org/web/index.php, use "emmy9.casa.umass.edu" as Host/IP, "1247" as Port.
    59  - 2.3.2 Download your experimental results from your user directory under /geniRenci/home/
    60 
    61 == 2.4 Change link parameters of left path using "ovs-vsctl" and repeat the experiment ==
    62  - 2.4.1 Log on to node "left" and change the link capacity for the interface with IP address "192.168.2.2" (use "ifconfig" to find the correct interface, here we assume eth1 is the interface connecting to node "Switch"):
     57== 2.3 Run the experiment in paths with different bandwidth ==
     58 - 2.3.1 Log on to node "left" and change the link capacity for the interface with IP address "192.168.2.2" (use "ifconfig" to find the correct interface, here we assume eth1 is the interface connecting to node "Switch"):
    6359{{{
    6460ovs-vsctl set Interface eth1 ingress_policing_rate=10000
     
    6763 - Other ways to e.g., change link delay and lossrate using "tc qdisc netem" can be found in Section 4.
    6864
    69 == 2.5 Repeat Experiment with limited bandwidth on Left path ==
    70  - 2.5.1 On node "Switch", start your Load Balancer using the following command:
     65 - 2.3.2 On node "Switch", start your Load Balancer using the following command:
    7166 {{{
    7267 /opt/trema-trema-f995284/trema run /root/load-balancer.rb
    7368 }}}
    74  - 2.5.2 Start a new command line window, log onto node "Switch", use the following command to connect the OpenFlow Switch to the controller (the console window that runs your controller should display "Switch is Ready!" when the switch is connected):
     69 - 2.3.3 Start a new terminal, log onto node "Switch", use the following command to connect the OpenFlow Switch to the controller (the console window that runs your controller should display "Switch is Ready!" when the switch is connected):
    7570 {{{
    7671 ovs-vsctl set-controller br0 tcp:127.0.0.1 ptcp:6634:127.0.0.1
    7772 }}}
    78  - 2.5.3 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).
    79  - 2.5.4 When your experiment is finished, turn off your controller and disconnect switch from your controller:
     73 - 2.3.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).
     74 - 2.3.5 When your experiment is finished, turn off your controller and disconnect switch from your controller:
    8075      - On node "Switch", press "Ctrl" and "c" key to kill your Load Balancer process on node "Switch"
    8176      - On node "Switch", use the following command to disconnect the OpenFlow Switch from the controller:
     
    8984 - To answer the above question, you need to understand the Load Balancing controller. Check out the "load-balancer.rb" file in your home directory on node "Switch". Check Section 3.1 for hints/explanations about this OpenFlow Controller.
    9085
    91 == 2.6 Modify the OpenFlow Controller to balance throughput among all the TCP flows ==
    92  - You need to calculate the average per-flow throughput observed from both left and right path in function "stats_reply" in your load-balancer.rb
     86== 2.4 Modify the OpenFlow Controller to balance throughput among all the TCP flows ==
     87 - You need to calculate the average per-flow throughput observed from both left and right paths. The modifications need to happen in the function "stats_reply" in load-balancer.rb
    9388 - In function "decide_path", change the path decision based on the calculated average per-flow throughput: forward the flow onto the path with more average per-flow throughput. (Why? TCP tries its best to consume the whole bandwidth so more throughput means network is not congested)
    9489 - If you do not know where to start, check the hints in Section 3.1.
    9590  - If you really do not know where to start after reading the hints, the answer can be found on node "Switch", at /tmp/load-balancer/load-balancer-solution.rb
    96   - Copy the above solution into your home directory then re-do the experiment on !LabWiki. '''Note:''' you need to change your script to use the correct Load Balancing controller (e.g., if your controller is "load-balancer-solution.rb", you should run "/opt/trema-trema-f995284/trema run /root/load-balancer-solution.rb")
    97  - Redo the experiment using your new OpenFlow Controller following steps in Section 2.5, check the graphs plotted on !LabWiki as well as the controller's log on node "Switch" and see the difference.
     91  - Copy the above solution into your home directory then re-do the experiment on !LabWiki.
     92
     93    '''Note:''' you need to change your script to use the correct Load Balancing controller (e.g., if your controller is "load-balancer-solution.rb", you should run "/opt/trema-trema-f995284/trema run /root/load-balancer-solution.rb")
     94 - Reren the experiment using your new OpenFlow Controller following steps in Section 2.5, check the graphs plotted on !LabWiki as well as the controller's log on node "Switch" and see the difference.
    9895 - When your experiment is done, you need to stop the Load Balancer:
    9996  - On node "Switch", use the following command to disconnect the OpenFlow Switch from the controller:
     
    103100  - On node "Switch", press "Ctrl" and "c" key to kill your Load Balancer process on node "Switch"
    104101
    105 == 2.7 Automate your experiment using !LabWiki ==
    106  - 2.7.1 Add code in your !LabWiki script to automate starting and stoping your OpenFlow Controller:
    107   - Go back to your !LabWiki page, un-comment the script from line 184 to line 189 to start your OpenFlow Controller automatically on !LabWiki
     102== 2.5 Automate your experiment using !LabWiki ==
     103 - 2.5.1 Add code in your !LabWiki script to automate starting and stoping your OpenFlow Controller:
     104  - 2.5.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
    108105   - Note: You might need to change line 185 to use the correct load balancer controller
    109   - Uncomment the script from line 205 to line 209 to stop your OpenFlow Controller automatically on !LabWiki
     106  - 2.5.1.2 In your script, uncomment lines 205 to line 209 to stop your OpenFlow Controller automatically on !LabWiki
    110107 - 2.7.2 On your !LabWiki web page, drag and drop the `file icon` and repeat the experiment, as described in section 2.3, using a different experiment name (the slice name should stay the same).
    111  - If you have more time or are interested in trying out things, go ahead and try section 1.9. The tutorial is over now and feel free to ask questions :-)
    112 
    113 == 2.8 Try more experiments using different kinds of OpenFlow Load Balancers ==
     108 - If you have more time or are interested in trying out things, go ahead and try section 2.6. The tutorial is over now and feel free to ask questions :-)
     109
     110== 2.6 Try more experiments using different kinds of OpenFlow Load Balancers ==
    114111 - You can find more load balancers under /tmp/load-balancer/ on node "Switch"
    115112 - To try out any one of them, follow the steps: