Hi Yong Li, cc-ing openflow-discuss for future reference.
I'm a bit confused. You say that your PC2 receives an ARP request from PC1, but dpctl dump-flows shows that none of the flows had any packets (stats are 0). Can you send packets to an OpenFlow port, and check whether stats are getting updated? Try a ping with a flow that captures everything coming into that port. Thanks, Yiannis 2011/3/27 Yong LI <[email protected]> > Dear Yiannis Yiakoumis, > > I am Yong LI, a Ph. D in Tsinghua University. I have attended GEC10 and > encounter your college of Masa Kobayash, and Srini Seetharaman. Based on > their suggestion, we are now building a OpenWRT based OpenFlow networks. We > use TL-WR1043ND AP. But now, we have encouter a problem with our basic test. > Please help us. Thanks very much in advance. > > > 1. The used Network Topology is as follows: > > > > PC1 <------> (LAN Port 2, OF Port 1) TL-WR1043ND (LAN Port 3, OF Port 2) > <------> PC 2 > > > > PC1 with: 10.100.0.12/255.255.255.0 > > PC2 with: 10.100.0.13/255.255.255.0 > > > > 2. We then configure two flow into openwrt to let packet from OF port 1 go > to port 2, and from OF port 2 go to port 1. > > The comments used are as follows: > > root@OpenWrt:/# dpctl add-flow tcp:127.0.0.1 > in_port=2,idle_timeout=300,actions=output:1 > > root@OpenWrt:/# dpctl add-flow tcp:127.0.0.1 > in_port=1,idle_timeout=300,actions=output:2 > > > > 3. Result: But we can not ping PC2 from PC1. Through wireshark, we find > that the ARP request from PC1 can be received by PC2, and PC2 send ARP > response. But PC1 can not receive this ARP response. > > > > Please help us to deal with this problem. Thanks very much~ We have > attached the configuration status of switch WR1043ND as follows: > > > > a). The status of the switch WR1043ND is as follows: > > *root@OpenWrt:/# dpctl show tcp:127.0.0.1* > > features_reply (xid=0x39f4ee33): ver:0x1, dpid:232062d53d > > n_tables:2, n_buffers:256 > > features: capabilities:0xc7, actions:0xeff > > 1(eth0.1): addr:d8:5d:4c:f5:39:6e, config: 0, state:0 > > 2(eth0.2): addr:d8:5d:4c:f5:39:6e, config: 0, state:0 > > 3(eth0.3): addr:d8:5d:4c:f5:39:6e, config: 0, state:0 > > 4(eth0.4): addr:d8:5d:4c:f5:39:6e, config: 0, state:0 > > get_config_reply (xid=0xae2e8097): miss_send_len=128 > > > > *root@OpenWrt:/# dpctl dump-flows tcp:127.0.0.1 * > > stats_reply (xid=0x2cad363a): flags=none type=1(flow) > > cookie=0, duration_sec=2s, duration_nsec=150000000s, table_id=1, > priority=3276 > > 8, n_packets=0, n_bytes=0, > idle_timeout=300,hard_timeout=0,in_port=2,actions=output:1 cookie=0, > duration_sec=14s, duration_nsec=859000000s, table_id=1, priority=32768, > n_packets=0, n_bytes=0, > idle_timeout=300,hard_timeout=0,in_port=1,actions=output:2 > > > > b). The interface of WR1043ND is as follows: > > root@OpenWrt:/# ifconfig > > eth0 Link encap:Ethernet HWaddr D8:5D:4C:F5:39:6E > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > > RX packets:347 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:135 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:1000 > > RX bytes:43545 (42.5 KiB) TX bytes:9390 (9.1 KiB) > > Interrupt:4 > > > > eth0.1 Link encap:Ethernet HWaddr D8:5D:4C:F5:39:6E > > UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 > > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0 > > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) > > > > eth0.2 Link encap:Ethernet HWaddr D8:5D:4C:F5:39:6E > > UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 > > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0 > > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) > > > > eth0.3 Link encap:Ethernet HWaddr D8:5D:4C:F5:39:6E > > UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 > > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0 > > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) > > > > eth0.4 Link encap:Ethernet HWaddr D8:5D:4C:F5:39:6E > > UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 > > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0 > > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) > > > > eth0.5 Link encap:Ethernet HWaddr D8:5D:4C:F5:39:6E > > inet addr:10.100.0.20 Bcast:10.100.0.255 Mask:255.255.255.0 > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > > RX packets:347 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:134 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0 > > RX bytes:38687 (37.7 KiB) TX bytes:8347 (8.1 KiB) > > > > lo Link encap:Local Loopback > > inet addr:127.0.0.1 Mask:255.0.0.0 > > UP LOOPBACK RUNNING MTU:16436 Metric:1 > > RX packets:24 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:24 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0 > > RX bytes:1928 (1.8 KiB) TX bytes:1928 (1.8 KiB) > > > > mon.wlan0 Link encap:UNSPEC HWaddr > D8-5D-4C-F5-39-6E-00-00-00-00-00-00-00-00-00 > > -00 > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > > RX packets:16 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:1000 > > RX bytes:1312 (1.2 KiB) TX bytes:0 (0.0 B) > > > > wlan0 Link encap:Ethernet HWaddr D8:5D:4C:F5:39:6E > > UP BROADCAST MULTICAST MTU:1500 Metric:1 > > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:1000 > > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) > > > > c). The configuration of WR1043ND are as follows. > > /**NetworkConfiguration**/ > > config ‘switch’ ‘eth0’ > > option ‘name’ ‘rtl8366rb’ > > option ‘reset’ ‘1’ > > option ‘enable_vlan’ ‘1’ > > option ‘enable_learning’ ‘0’ > > > > config ‘switch_vlan’ ‘vlan1’ > > option ‘device’ ‘eth0’ > > option ‘vlan’ ‘1’ > > option ‘ports’ ‘1 5t’ > > > > config ‘switch_vlan’ ‘vlan2’ > > option ‘device’ ‘eth0’ > > option ‘vlan’ ‘2’ > > option ‘ports’ ‘2 5t’ > > > > config ‘switch_vlan’ ‘vlan3’ > > option ‘device’ ‘eth0’ > > option ‘vlan’ ‘3’ > > option ‘ports’ ‘3 5t’ > > > > config ‘switch_vlan’ ‘vlan4’ > > option ‘device’ ‘eth0’ > > option ‘vlan’ ‘4’ > > option ‘ports’ ‘4 5t’ > > > > config ‘switch_vlan’ ‘vlan5’ > > option ‘device’ ‘eth0’ > > option ‘vlan’ ‘5’ > > option ‘ports’ ‘0 5t’ > > > > config ‘interface’ ‘loopback’ > > option ‘ifname’ ‘lo’ > > option ‘proto’ ‘static’ > > option ‘ipaddr’ ‘127.0.0.1’ > > option ‘netmask’ ‘255.0.0.0’ > > > > config ‘interface’ > > option ‘ifname’ ‘eth0.1’ > > option ‘proto’ ‘static’ > > > > config ‘interface’ > > option ‘ifname’ ‘eth0.2’ > > option ‘proto’ ‘static’ > > > > config ‘interface’ > > option ‘ifname’ ‘eth0.3’ > > option ‘proto’ ‘static’ > > > > config ‘interface’ > > option ‘ifname’ ‘eth0.4’ > > option ‘proto’ ‘static’ > > > > config ‘interface’ ‘lan’ > > option ‘ifname’ ‘eth0.1 eth0.5’ > > option ‘proto’ ‘static’ > > option ‘type’ ‘bridge’ > > option ‘ipaddr’ ‘10.100.0.20’ > > option ‘netmask’ ‘255.255.255.0’ > > option ‘stp’ ‘1’ > > > > /**WirelessConfiguration**/ > > config wifi-device radio0 > > option type mac80211 > > option channel 5 > > option macaddr 94:0c:6d:aa:fb:be > > option hwmode 11ng > > option htmode HT20 > > list ht_capab SHORT-GI-40 > > list ht_capab DSSS_CCK-40 > > # REMOVE THIS LINE TO ENABLE WIFI: > > option disabled 0 > > > > config wifi-iface wlan0 > > option device radio0 > > # option network lan > > option mode ap > > option ssid OpenFlow�C2 > > option encryption none > > > > /**OpenflowConfiguration**/ > > config 'ofswitch' > > option 'dp' 'dp0' > > option 'ofports' 'eth0.2 eth0.3 eth0.4' > > option 'ofctl' 'tcp:10.100.0.100:6633' > > option 'mode' 'outofband' > > > > 2011-03-28 > ------------------------------ > 李勇 > Yong Li > Department of Electronic Engineering, > Tsinghua University, > Beijing 100084, P. R. China > (+86)13910285294 > Email: [email protected] >
_______________________________________________ openflow-discuss mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
