[ovs-dev] OpenvSwitch problem

Tuan Nguyen tuan.nguyen at veriksystems.com
Thu Apr 23 04:10:45 UTC 2015


Hi all,

I was testing OpenvSwitch on linksys wrt1900ac with flow entry like:
in_port=1 actions=output=2 ..., package came into port 1, I monitored with
tcpdump, and saw it came to port 2, but this package didn't appear in my
host. Here is detail:

OS: OpenWrt Trunk version: http://git.openwrt.org/?p=openwrt.git;a=summary
       Kernel 3.18.11
OpenvSwitch: version: c78a00b112c959e2b503f459e3e6aaa0c69e11f2
Device WRT1900AC.

root at OpenWrt:/# ovs-vsctl show
f7ae4922-1ec0-457f-8c53-8e9421acb364
    Bridge sw
        Port sw
            Interface sw
                type: internal
        Port "eth1"
            Interface "eth1"
        Port "eth0"
            Interface "eth0"

my table flow:

OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x0, duration=2501.509s, table=0, n_packets=78, n_bytes=4680,
priority=1000, arp actions=goto_table:105
 cookie=0x0, duration=2468.497s, table=0, n_packets=2470, n_bytes=242049,
priority=1000,ip actions=goto_table:20
 cookie=0x0, duration=2434.008s, table=20, n_packets=2434, n_bytes=238532,
dl_dst=d0:39:72:4a:a9:77 actions=output:2
 cookie=0x0, duration=2493.534s, table=105, n_packets=70, n_bytes=4200,
arp,arp_tpa=172.28.1.11
actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],set_field:d0:39:72:4a:a9:77->eth_src,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:0xd039724aa977->NXM_NX_ARP_SHA[],load:0xac1c010b->NXM_OF_ARP_SPA[],IN_PORT

tcpdump -ti eth0
tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
11:34:59.396695 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5051, length 64
11:35:00.396700 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5052, length 64
11:35:01.396716 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5053, length 64
11:35:02.396713 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5054, length 64
11:35:03.396734 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5055, length 64

tcpdump -i eth01
tcpdump: WARNING: eth1: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
11:35:09.499592 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 02:25:9c:13:0a:22 (oui Unknown), length 300
11:35:10.396829 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5062, length 64
11:35:11.396832 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5063, length 64
11:35:12.396858 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5064, length 64
11:35:12.549593 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 02:25:9c:13:0a:22 (oui Unknown), length 300
11:35:13.396869 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5065, length 64
11:35:14.396828 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5066, length 64
11:35:15.396854 IP 172.28.1.10 > 172.28.1.11: ICMP echo request, id 1813,
seq 5067, length 64


My Host: Packet ping didn't come.
22:30:09.851890 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 02:25:9c:13:0a:22 (oui Unknown), length 300
22:30:12.901961 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 02:25:9c:13:0a:22 (oui Unknown), length 300
22:30:15.952018 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 02:25:9c:13:0a:22 (oui Unknown), length 300
22:30:19.002090 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP,
Request from 02:25:9c:13:0a:22 (oui Unknown), length 300

When I tried it with kernel 3.10, OpenvSwitch version:
0dfed4ba9c8a16a1f316d709b7831a4e139472d4, it work well.

Could you tell me how to debug this??

Thanks
Tuan Nguyen



More information about the dev mailing list