Changes between Version 126 and Version 127 of GENIExperimenter/Tutorials/OpenFlowOVS/Execute
- Timestamp:
- 03/04/15 14:44:41 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/OpenFlowOVS/Execute
v126 v127 67 67 The output should look like this: 68 68 {{{ 69 POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al. 70 DEBUG:core:POX 0.1.0 (betta) going up... 71 DEBUG:core:Running on CPython (2.7.3/Apr 20 2012 22:39:59) 72 DEBUG:core:Platform is Linux-3.2.0-56-generic-x86_64-with-Ubuntu-12.04-precise 73 INFO:core:POX 0.1.0 (betta) is up. 74 DEBUG:openflow.of_01:Listening on 0.0.0.0:6633 75 INFO:openflow.of_01:[9e-38-3e-8d-42-42 1] connected 76 DEBUG:forwarding.l2_learning:Connection [9e-38-3e-8d-42-42 1] 77 78 }}} 69 POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al. 70 DEBUG:core:POX 0.1.0 (betta) going up... 71 DEBUG:core:Running on CPython (2.7.3/Apr 20 2012 22:39:59) 72 DEBUG:core:Platform is Linux-3.2.0-56-generic-x86_64-with-Ubuntu-12.04-precise 73 INFO:core:POX 0.1.0 (betta) is up. 74 DEBUG:openflow.of_01:Listening on 0.0.0.0:6633 75 INFO:openflow.of_01:[9e-38-3e-8d-42-42 1] connected 76 DEBUG:forwarding.l2_learning:Connection [9e-38-3e-8d-42-42 1] 77 }}} 79 78 80 79 … … 98 97 99 98 3. In the terminal of `host1`, ping `host2`: 100 101 102 103 104 105 106 107 108 109 110 111 99 {{{ 100 [experimenter@host1 ~]$ ping host2 101 PING host2-lan1 (10.10.1.2) 56(84) bytes of data. 102 From host1-lan0 (10.10.1.1) icmp_seq=2 Destination Host Unreachable 103 From host1-lan0 (10.10.1.1) icmp_seq=3 Destination Host Unreachable 104 From host1-lan0 (10.10.1.1) icmp_seq=4 Destination Host Unreachable 105 64 bytes from host2-lan1 (10.10.1.2): icmp_req=5 ttl=64 time=23.9 ms 106 64 bytes from host2-lan1 (10.10.1.2): icmp_req=6 ttl=64 time=0.717 ms 107 64 bytes from host2-lan1 (10.10.1.2): icmp_req=7 ttl=64 time=0.654 ms 108 64 bytes from host2-lan1 (10.10.1.2): icmp_req=8 ttl=64 time=0.723 ms 109 64 bytes from host2-lan1 (10.10.1.2): icmp_req=9 ttl=64 time=0.596 ms 110 }}} 112 111 113 112 Now the ping should work. … … 130 129 131 130 5. If you are using OVS, to see the flow table entries on your OVS switch: 132 131 {{{ 133 132 sudo ovs-ofctl dump-flows br0 134 133 }}} 135 134 You should see at least two table entries: One for ICMP Echo (icmp_type=8) messages from host1 to host2 and one for ICMP Echo Reply (icmp_type=0) messages from host2 to host1. You may also see flow entries for arp packets. 136 135 137 136 6. To see messages go between your switch and your controller, open a new ssh window to your controller node and run tcpdump on the `eth0` interface and on the tcp port that your controller is listening on usually 6633. (You can also run `tcpdump` on the `OVS` control interface if you desire. However, when using the hardware switch, you can only do the `tcpdump` on your controller host.) 138 137 {{{ 139 138 sudo tcpdump -i eth0 tcp port 6633 140 139 }}} 141 140 You will see (1) periodic keepalive messages being exchanged by the switch and the controller, (2) messages from the switch to the controller (e.g. when there is a table miss) and an ICMP Echo message in, and (3) messages from the controller to the switch (e.g. to install new flow entries). 142 141 143 142 7. Kill your POX controller by pressing `Ctrl-C`: 144 {{{ 145 DEBUG:forwarding.l2_learning:installing flow for 02:c7:e8:a7:40:65.1 -> 02:f1:ae:bb:e3:a8.2 146 ^C 147 INFO:core:Going down... 148 INFO:openflow.of_01:[3a-51-a1-ab-c3-43 1] disconnected 149 INFO:core:Down. 150 }}} 143 {{{ 144 DEBUG:forwarding.l2_learning:installing flow for 02:c7:e8:a7:40:65.1 -> 02:f1:ae:bb:e3:a8.2 145 INFO:core:Going down... 146 INFO:openflow.of_01:[3a-51-a1-ab-c3-43 1] disconnected 147 INFO:core:Down. 148 }}} 151 149 152 150 8. Notice what happens to your ping on host1. 153 151 154 152 9. If you are using OVS, check the flow table entries on your switch: 155 153 {{{ 156 154 sudo ovs-ofctl dump-flows br0 157 155 }}} 158 156 Since you set your switch to "secure" mode, i.e. don't forward packets if the controller fails, you will not see flow table entries. If you see flow table entries, try again after 10 seconds to give the entries time to expire. 159 157 … … 238 236 To see that duplication is happening, on the ovs host, run: 239 237 {{{ 240 sudo tcpdump -i <data_interface_name> [ using thedata_interface to host2]241 sudo tcpdump -i <data_interface_name> [ using thedata_interface to host3]238 sudo tcpdump -i <data_interface_name> [data_interface to host2] 239 sudo tcpdump -i <data_interface_name> [data_interface to host3] 242 240 }}} 243 241 … … 262 260 5. Stop the POX controller: 263 261 {{{ 264 DEBUG:myDuplicateTraffic:Got a packet : [02:f1:ae:bb:e3:a8>02:c7:e8:a7:40:65 IP] 265 DEBUG:SimpleL2Learning:installing flow for 02:f1:ae:bb:e3:a8.2 -> 02:c7:e8:a7:40:65.[1, 2] 266 ^C 267 INFO:core:Going down... 268 INFO:openflow.of_01:[3a-51-a1-ab-c3-43 1] disconnected 269 INFO:core:Down. 270 controller:/tmp/pox% 262 DEBUG:myDuplicateTraffic:Got a packet : [02:f1:ae:bb:e3:a8>02:c7:e8:a7:40:65 IP] 263 DEBUG:SimpleL2Learning:installing flow for 02:f1:ae:bb:e3:a8.2 -> 02:c7:e8:a7:40:65.[1, 2] 264 265 INFO:core:Going down... 266 INFO:openflow.of_01:[3a-51-a1-ab-c3-43 1] disconnected 267 INFO:core:Down. 271 268 }}} 272 269 … … 302 299 6. Now, stop the simple layer 2 forwarding controller: 303 300 {{{ 304 DEBUG:forwarding.l2_learning:installing flow for 02:d4:15:ed:07:4e.3 -> 02:ff:be:1d:19:ea.2 305 ^C 306 INFO:core:Going down... 307 INFO:openflow.of_01:[36-63-8b-d7-16-4b 1] disconnected 308 INFO:core:Down. 309 controller:/tmp/pox% 301 DEBUG:forwarding.l2_learning:installing flow for 02:d4:15:ed:07:4e.3 -> 02:ff:be:1d:19:ea.2 302 303 INFO:core:Going down... 304 INFO:openflow.of_01:[36-63-8b-d7-16-4b 1] disconnected 305 INFO:core:Down. 310 306 }}} 311 307 … … 320 316 9. Stop your port forwarding controller: 321 317 {{{ 322 323 ^C 324 325 326 318 DEBUG:myPortForwarding:Got a packet : [02:aa:a3:e8:6c:db>33:33:ff:e8:6c:db IPV6] 319 320 INFO:core:Going down... 321 INFO:openflow.of_01:[36-63-8b-d7-16-4b 1] disconnected 322 INFO:core:Down. 327 323 }}} 328 324