Changes between Version 115 and Version 116 of GENIExperimenter/Tutorials/OpenFlowOVS/Execute
- Timestamp:
- 03/02/15 11:46:42 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/OpenFlowOVS/Execute
v115 v116 26 26 To get ready for the tutorial you will need to have the following windows open: 27 27 * one window with ssh into the controller 28 * twowindows with ssh into OVS28 * four windows with ssh into OVS 29 29 * one window with ssh into host1 30 30 * two windows with ssh into host2 … … 229 229 === 3d. Run a traffic duplication controller === 230 230 231 In the above example we ran a very simple learning switch controller. The power of !OpenFlow comes from the fact that you can decide to forward the packet anyway you want based on the supported !OpenFlow actions. A very simple but powerful modification you can do, is to duplicate all the traffic of the switch out a specific port. This is very useful for application and network analysis. You can imagine that at the port where you duplicate traffic you connect a device that does analysis. For this tutorial we are going to verify the duplication by doing a `tcpdump` on a porton the OVS switch.231 In the above example we ran a very simple learning switch controller. The power of !OpenFlow comes from the fact that you can decide to forward the packet anyway you want based on the supported !OpenFlow actions. A very simple but powerful modification you can do, is to duplicate all the traffic of the switch out a specific port. This is very useful for application and network analysis. You can imagine that at the port where you duplicate traffic you connect a device that does analysis. For this tutorial we are going to verify the duplication by doing `tcpdumps` on ports on the OVS switch. 232 232 233 233 1. Use the interfaces that are connected to `host2` and `host3`. … … 235 235 * Hardware Switch: Refer to this Section to figure out ports: [http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/OpenFlowHW/DesignSetup#a2a.ConfiguretheControllerfortheHardwareSwitch:UsefulTips UsefulTips]. If you are using a hardware switch, you may not see the traffic on host3, but if you observe your controller output, you will notice that flows are being installed for forwarding to host2 and host3.[[BR]] 236 236 237 To see that duplication is happening, on host3, run: 238 {{{ 239 sudo tcpdump -i <data_interface_name> 240 }}} 241 242 You should see ICMP echo and ICMP reply lines from host1 to host2 showing up in the host3 tcpdump window. 237 To see that duplication is happening, on the ovs host, run: 238 {{{ 239 sudo tcpdump -i <data_interface_name> [using the data_interface to host2] 240 sudo tcpdump -i <data_interface_name> [using the data_interface to host3] 241 }}} 242 243 You should see traffic from host1 to host2 showing up in the tcpdump window for host3. As a comparison, you will notice that no traffic shows up in that window when the controller is running the learning switch. 243 244 2. In the controller host directory `/tmp/pox/ext` you should see two files: 244 245 … … 364 365 ---- 365 366 366 = [wiki:GENIExperimenter/Tutorials/OpenFlowOVS/DesignSetup Design and Setup for OVS] =367 = [wiki:GENIExperimenter/Tutorials/OpenFlowHW/DesignSetup Design and Setup for Hardware Switch] =367 = [wiki:GENIExperimenter/Tutorials/OpenFlowOVS/DesignSetup Prev: Design and Setup for OVS] = 368 = [wiki:GENIExperimenter/Tutorials/OpenFlowHW/DesignSetup Prev: Design and Setup for Hardware Switch] = 368 369 = [wiki:GENIExperimenter/Tutorials/OpenFlowOVS/Finish Next: Finish] =