Thank you Mauricio.

Is there any other way to observe dropped packets ?


On 22-04-2016 16:14, Mauricio Vasquez wrote:
Hi kursat,

On 04/22/2016 01:34 PM, kursat wrote:
Hi,

While i am trying to drop packages, i interfere either strange error or totally wrong port stats. Is there anyone who can guide me or idea about this issue. I am using dpdk with ovs. Dpdk version is*2.2.0* and ovs is *1cef5fff1da194c67e4c502b376b8cffdec79e8b* commit on master branch.

I have 2 dpdk port :

 1(dpdk0): addr:3c:a8:2a:5b:63:84
     config:     0
     state:      0
     current:    1GB-FD
     supported:  10MB-FD
     speed: 1000 Mbps now, 10 Mbps max
 2(dpdk1): addr:3c:a8:2a:5b:63:85
     config:     0
     state:      0
     current:    1GB-FD
     supported:  10MB-FD
     speed: 1000 Mbps now, 10 Mbps max
 LOCAL(br0): addr:3c:a8:2a:5b:63:84
     config:     PORT_DOWN
     state:      LINK_DOWN
     current:    10MB-FD COPPER
     speed: 10 Mbps now, 0 Mbps max

[root@localhost ovs]# ovs-ofctl dump-ports br0
OFPST_PORT reply (xid=0x2): 3 ports
  port  1: rx pkts=0, bytes=0, drop=0, errs=0, frame=?, over=?, crc=?
           tx pkts=0, bytes=0, drop=0, errs=0, coll=?
  port LOCAL: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=0, bytes=0, drop=0, errs=0, coll=0
  port  2: rx pkts=0, bytes=0, drop=0, errs=0, frame=?, over=?, crc=?
           tx pkts=0, bytes=0, drop=0, errs=0, coll=?

At this point i am adding a simple flow : ovs-ofctl -OOpenFlow13 add-flow br0 'table=0, priority=100, in_port:2, action='

NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=5.118s, table=0, n_packets=0, n_bytes=0, idle_age=5, priority=100,in_port=2 actions=drop cookie=0x0, duration=65.077s, table=0, n_packets=0, n_bytes=0, idle_age=65, priority=0 actions=NORMAL

And i am sending packages to port 2 with tcpreplay. After sending packages, in port stats i can see sent package count but no dropped packages.

[root@localhost ovs]# ovs-ofctl dump-ports br0
OFPST_PORT reply (xid=0x2): 3 ports
  port  1: rx pkts=0, bytes=0, drop=0, errs=0, frame=?, over=?, crc=?
           tx pkts=0, bytes=0, drop=0, errs=0, coll=?
  port LOCAL: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=0, bytes=0, drop=0, errs=0, coll=0
* port 2: rx pkts=6270, bytes=6043021, drop=0,* errs=0, frame=?, over=?, crc=?
           tx pkts=0, bytes=0, drop=0, errs=0, coll=?

[root@localhost ovs]# ovs-ofctl dump-flows br0
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=33.855s, table=0, n_packets=6270, n_bytes=6043021, idle_age=21, priority=100,in_port=2 actions=drop cookie=0x0, duration=47.501s, table=0, n_packets=0, n_bytes=0, idle_age=47, priority=0 actions=NORMAL

Any idea why i am interfering drop issue ?

Everything is fine, the number of drop packets in the port statistics means the number of packets that could not be received by the port (number of reception errors), NOT the number of packets that are dropped by the DROP action. In your case, port2 have successfully received 6270 packets, that then have been dropped by the flow you introduced.


Thanks in advance,
kursat





Mauricio Vasquez,


_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss



_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to