[ovs-discuss] help - ovs 2.5 flow statistics issues

awang10 at masonlive.gmu.edu awang10 at masonlive.gmu.edu
Wed Jul 27 14:14:15 UTC 2016


Hi, All,


I am running openvswitch 2.5.0 on Ubuntu 14.04 LTS with kernel 3.13.0-92-generic.

I installed the two following rules to the switch:


NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=2.183s, table=0, n_packets=0, n_bytes=0, idle_age=2, priority=50000,ip,in_port=1,nw_src=10.0.0.0/8,nw_dst=81.0.0.0/8 actions=output:2
 cookie=0x0, duration=10.829s, table=0, n_packets=0, n_bytes=0, idle_age=10, in_port=1 actions=output:2


Another host machine connecting to the switch generates traffic (including 10.0.0.0/8 -> 81.0.0.0/8) that goes through the switch.

However, the statistics were not be updated correctly with n_packets for the higher priority rule remaining 0 while all the traffic statistics being credited to the lower priority rule.

But if I modify the rules to be:


NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=2.183s, table=0, n_packets=0, n_bytes=0, idle_age=2, priority=50000,ip,in_port=1,nw_src=10.0.0.0/8 actions=output:2
 cookie=0x0, duration=10.829s, table=0, n_packets=0, n_bytes=0, idle_age=10, in_port=1 actions=output:2


Then it works fine. So it seems that statistics with both nw_src and nw_dst matching do not work properly? Or did I misconfigure something?

I'd really appreciate your help!


Thanks,

An
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160727/35831d70/attachment-0002.html>


More information about the discuss mailing list