[ovs-dev] Is anyone can explain the result of perform ovs-appctl ofproto/trace xxx in detail

wangpeihui wangpeihuixyz at 126.com
Mon May 9 09:48:18 UTC 2016


hello,guys
I'm trying vtep experiment ,but some weird things happened,
this is a flow that match inport==5 then send it to port==6 in br0, but i found it perform drop action in the end
Is anyone could help? i'm appreciate it
[root at localhost ~]# ovs-appctl ofproto/trace br0 in_port=5,dl_src=52:54:00:09:ac:ee,dl_dst=46:88:90:98:65:76,dl_type=0x0800 -generate
Bridge: br0
Flow: ip,in_port=5,vlan_tci=0x0000,dl_src=52:54:00:09:ac:ee,dl_dst=46:88:90:98:65:76,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=0,nw_tos=0,nw_ecn=0,nw_ttl=0

Rule: table=0 cookie=0 in_port=5
OpenFlow actions=output:6

    Resubmitted flow: ip,in_port=1,vlan_tci=0x0000,dl_src=52:54:00:09:ac:ee,dl_dst=46:88:90:98:65:76,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=0,nw_tos=0,nw_ecn=0,nw_ttl=0
    Resubmitted regs: reg0=0x0 reg1=0x0 reg2=0x0 reg3=0x0 reg4=0x0 reg5=0x0 reg6=0x0 reg7=0x0
    Resubmitted  odp: drop
    Resubmitted megaflow: recirc_id=0,ip,in_port=5,nw_frag=no
    Rule: table=0 cookie=0 in_port=1
    OpenFlow actions=learn(table=1,idle_timeout=15,priority=1000,cookie=0x5000,NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],output:NXM_OF_IN_PORT[]),resubmit(,1)

        Resubmitted flow: unchanged
        Resubmitted regs: reg0=0x0 reg1=0x0 reg2=0x0 reg3=0x0 reg4=0x0 reg5=0x0 reg6=0x0 reg7=0x0
        Resubmitted  odp: drop
        Resubmitted megaflow: recirc_id=0,ip,in_port=5,dl_src=52:54:00:09:ac:ee,dl_dst=46:88:90:98:65:76,nw_frag=no
        Rule: table=1 cookie=0 priority=0
        OpenFlow actions=output:1
        skipping output to input port

Final flow: ip,in_port=5,vlan_tci=0x0000,dl_src=52:54:00:09:ac:ee,dl_dst=46:88:90:98:65:76,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=0,nw_tos=0,nw_ecn=0,nw_ttl=0
Megaflow: recirc_id=0,ip,in_port=5,dl_src=52:54:00:09:ac:ee,dl_dst=46:88:90:98:65:76,nw_frag=no
Datapath actions: drop
[root at localhost ~]# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=5952.508s, table=0, n_packets=3702, n_bytes=158207, idle_age=0, in_port=5 actions=output:6
 cookie=0x0, duration=5952.503s, table=0, n_packets=0, n_bytes=0, idle_age=5952, in_port=6 actions=output:5
 cookie=0x0, duration=3210.307s, table=0, n_packets=0, n_bytes=0, idle_age=3210, in_port=7 actions=mod_vlan_vid:2,output:5
 cookie=0x0, duration=3210.312s, table=0, n_packets=0, n_bytes=0, idle_age=3210, in_port=5,dl_vlan=2 actions=strip_vlan,output:7
[root at localhost ~]# ovs-appctl dpif/dump-flows br0
recirc_id(0),in_port(2),eth(src=52:54:00:09:ac:ee,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806), packets:510, bytes:21420, used:0.743s, actions:drop
[root at localhost ~]# ovs-appctl dpif/show
system at ovs-system: hit:3767 missed:47
    br0:
        0000-vnet0-p 6/none: (patch: peer=0000-vnet0-l)
        0002-vnet0-p 7/none: (patch: peer=0002-vnet0-l)
        br0 65534/1: (internal)
        vnet0 5/2: (system)
    vtep_bfd:
        vtep_bfd 65534/3: (internal)
    vtep_ls1:
        0000-vnet0-l 1/none: (patch: peer=0000-vnet0-p)
        vtep_ls1 65534/4: (internal)
        vx1 2/5: (vxlan: key=0, remote_ip=100.7.33.5)
    vtep_ls2:
        0002-vnet0-l 1/none: (patch: peer=0002-vnet0-p)
        vtep_ls2 65534/6: (internal)
        vx2 2/5: (vxlan: key=0, remote_ip=100.5.4.102)
[root at localhost ~]# ovs-appctl dpif/dump-flows br0
recirc_id(0),in_port(2),eth(src=52:54:00:09:ac:ee,dst=52:54:00:09:ca:11),eth_type(0x0800),ipv4(frag=no), packets:8, bytes:784, used:0.404s, actions:drop



More information about the dev mailing list