Changes between Version 59 and Version 60 of GEC17Agenda/AdvancedOpenFlow/Procedure/Execute
- Timestamp:
- 03/09/14 22:04:51 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC17Agenda/AdvancedOpenFlow/Procedure/Execute
v59 v60 99 99 }}} 100 100 Execute `kill -9 <process_id>` for the above case <process_id> would be 4278 101 }}}102 101 103 102 === 3.2 Run the experiment in paths with different bandwidth === 104 103 - '''3.2.1''' Log on to node "left" (use the `readyToLogin.py` script) 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"): 105 {{{106 ovs-vsctl set Interface eth1 ingress_policing_rate=10000104 {{{ 105 ovs-vsctl set Interface eth1 ingress_policing_rate=10000 107 106 }}} 108 107 The above will rate-limit the connection from node "Switch" to node "left" to have a bandwidth of 10Mbps. 109 108 - Other ways to e.g., change link delay and loss-rate using "tc qdisc netem" can be found in [wiki:GEC17Agenda/AdvancedOpenFlow/Procedure/Appendices#E.Tips:DebugginganOpenFlowController Appendix E]. 110 111 - '''3.2.2''' On node "Switch", start your Load Balancer using the following command: 112 {{{ 113 /opt/trema-trema-f995284/trema run /root/load-balancer.rb 114 }}} 115 - '''3.2.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): 116 {{{ 117 ovs-vsctl set-controller br0 tcp:127.0.0.1 ptcp:6634:127.0.0.1 118 }}} 119 - '''3.2.4''' Go back to your !LabWiki web page, drag and drop the `file icon` and repeat the experiment, as described in section 3.1, using a different experiment name (the slice name should stay the same). 120 - '''3.2.5''' When your experiment is finished, turn off your controller and disconnect switch from your controller: 121 - On node "Switch", press "Ctrl" and "c" key to kill your Load Balancer process on node "Switch" 122 - On node "Switch", use the following command to disconnect the OpenFlow Switch from the controller: 123 {{{ 124 ovs-vsctl del-controller br0 125 }}} 126 109 - '''3.2.2''' Re-run your experiment with the new setting following the same instructions as in '''3.1'''. 110 127 111 ==== Questions ==== 128 112 - Did you see any difference from the graphs plotted on !LabWiki, compared with the graphs plotted in the first experiment? why?