[ovs-discuss] Regarding packet drop counters for OVS bridge ports updated by other commands like SAR, ifconfig

Arvind Kumar arvind.bhati at gmail.com
Wed Apr 27 10:15:05 UTC 2016


Hello,

I have an observation on one of my setups with Xen hypervisor based
computes. When I compare it with another user setup I see a difference and
I am not able to get a lead on how to either solve it or have a better
understanding of it.


Observation with SAR command is that there are rxdrops/s showing large
numbers on a silent system (i.e just VM up, no traffic):



[vmserver02]sar -n EDEV 1 2| grep br-bond1

IFACE   rxerr/s   txerr/s    coll/s  rxdrop/s  txdrop/s  txcarr/s
rxfram/s  rxfifo/s  txfifo/s

03:05:21 AM  br-bond1     0.00      0.00      0.00     14.43      0.00
0.00      0.00      0.00      0.00

03:05:22 AM  br-bond1     0.00      0.00      0.00     11.22      0.00
0.00      0.00      0.00      0.00

Average:     br-bond1        0.00      0.00      0.00     12.82
0.00      0.00      0.00      0.00      0.00


It is observed that there are VRRP packets coming in. When


*This is what the port statuses on openvswitch w.r.t br-bond1:*



*[vmserver02 ] ovs-ofctl show br-bond1*

*OFPT_FEATURES_REPLY (xid=0x2): dpid:00000010e073680d*

*n_tables:254, n_buffers:256*

*capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP*

*actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST
SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE*

*1(bond1): addr:00:10:e0:73:68:0d*

*     config:     0*

*     state:      0*

*     current:    1GB-FD*

*     speed: 1000 Mbps now, 0 Mbps max*

*2(phy-br-bond1): addr:f2:ba:1e:4e:50:3c*

*     config:     0*

*     state:      0*

*     speed: 0 Mbps now, 0 Mbps max*

*LOCAL(br-bond1): addr:00:10:e0:73:68:0d*

*     config:     PORT_DOWN*

*     state:      LINK_DOWN*

*     speed: 0 Mbps now, 0 Mbps max*

*OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0*



*The VRRP protocol trace in OVS says like below:*



[*vmserver02 ] ovs-appctl -t /var/run/openvswitch/ovs-vswitchd.1.ctl
ofproto/trace br-bond1 in_port=1,dl_type=0x0800,nw_proto=112*

*Bridge: br-bond1*

*Flow:
ip,metadata=0,in_port=1,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=112,nw_tos=0,nw_ecn=0,nw_ttl=0*

*Rule: table=0 cookie=0 priority=1*

*OpenFlow actions=NORMAL*

*no learned MAC for destination, flooding*



*        Resubmitted flow: unchanged*

*        Resubmitted regs: reg0=0x0 reg1=0x0 reg2=0x0 reg3=0x0 reg4=0x0
reg5=0x0 reg6=0x0 reg7=0x0*

*        Resubmitted  odp: 3*

*        Resubmitted megaflow:
recirc_id=0,skb_priority=0,ip,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_frag=no*

*        Rule: table=0 cookie=0 priority=2,in_port=1  **à** Below with KVM
setup, the in_port changes.*

*        OpenFlow actions=drop*



*Final flow: unchanged*

*Megaflow:
recirc_id=0,skb_priority=0,ip,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_frag=no*

*Datapath actions: 3*


*Flows are:*

*[vmserver02 ]ovs-ofctl dump-flows br-bond1*

*NXST_FLOW reply (xid=0x4):*

*cookie=0x0, duration=30429.615s, table=0, n_packets=21143537,
n_bytes=6252688518, idle_age=0, priority=1 actions=NORMAL*

*cookie=0x0, duration=25650.506s, table=0, n_packets=890, n_bytes=95200,
idle_age=10, priority=4,in_port=2,dl_vlan=3 actions=mod_vlan_vid:5,NORMAL*

*cookie=0x0, duration=29891.933s, table=0, n_packets=8760764,
n_bytes=1461426392, idle_age=0, priority=4,in_port=2,dl_vlan=1
actions=mod_vlan_vid:9,NORMAL*

*cookie=0x0, duration=29891.153s, table=0, n_packets=11884172,
n_bytes=3429854491, idle_age=0, priority=4,in_port=2,dl_vlan=2
actions=mod_vlan_vid:4,NORMAL*

*cookie=0x0, duration=25632.544s, table=0, n_packets=889, n_bytes=95130,
idle_age=10, priority=4,in_port=2,dl_vlan=4 actions=mod_vlan_vid:6,NORMAL*

*cookie=0x0, duration=30428.811s, table=0, n_packets=0, n_bytes=0,
idle_age=30428, priority=2,in_port=2 actions=drop*



On the other user setup also, there are VRRP packets coming in and the
protocol trace on it shows as being dropped, yet the SAR command does not
show them.


ovs-ofctl show br-eno1

*OFPT_FEATURES_REPLY (xid=0x2): dpid:00000010e0849912*

*n_tables:254, n_buffers:256*

*capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP*

*actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST
SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE*

*1(eno1): addr:00:10:e0:84:99:12*

*     config:     0*

*     state:      0*

*     current:    10GB-FD COPPER AUTO_NEG*

*     advertised: 100MB-FD 1GB-FD 10GB-FD COPPER AUTO_NEG*

*     supported:  100MB-FD 1GB-FD 10GB-FD COPPER AUTO_NEG*

*     speed: 10000 Mbps now, 10000 Mbps max*

*2(phy-br-eno1): addr:3a:14:3c:63:45:f8*

*     config:     0*

*     state:      0*

*     speed: 0 Mbps now, 0 Mbps max*

*LOCAL(br-eno1): addr:00:10:e0:84:99:12*

*     config:     0*

*     state:      0*

*     speed: 0 Mbps now, 0 Mbps max*

*OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0*



*ovs-appctl -t /var/run/openvswitch/ovs-vswitchd.1869.ctl ofproto/trace
br-eno1 in_port=1,dl_type=0x0800,nw_proto=112*

*Bridge: br-eno1*

*Flow:
ip,metadata=0,in_port=1,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=112,nw_tos=0,nw_ecn=0,nw_ttl=0*

*Rule: table=0 cookie=0 priority=1*

*OpenFlow actions=NORMAL*

*no learned MAC for destination, flooding*



*        Resubmitted flow:
ip,metadata=0,in_port=2,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=112,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: 3*

*        Resubmitted megaflow:
recirc_id=0,skb_priority=0,ip,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_frag=no*

*        Rule: table=0 cookie=0 priority=2,in_port=2*

*        OpenFlow actions=drop*



*Final flow: unchanged*

*Megaflow:
recirc_id=0,skb_priority=0,ip,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_frag=no*

*Datapath actions: 3*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160427/744667a5/attachment-0002.html>


More information about the discuss mailing list