skydive-project / skydive

An open source real-time network topology and protocols analyzer
https://skydive.network
Apache License 2.0
2.66k stars 400 forks source link

Wrong count of packets with opencontrail / afpacket #461

Closed eonpatapon closed 6 years ago

eonpatapon commented 7 years ago

With a single ping flow I can see that ABPackets and ABBytes are increasing in a non linear manner. The BAPackets is fine (+1 per second, like the ping does).

The capture is made on the VM tap interface.

At some point we are dropping incoming packets via a security group so nothing is reaching the VM tap but ABPackets/ABBytes is still increasing (not as fast, but still).

I can provide a devstack with this issue if someone is willing/able to debug this issue.

eonpatapon commented 7 years ago

This is the kind of metrics I get with a single ping:

    "Metric": {
      "ABBytes": 665518,
      "ABPackets": 6791,
      "BABytes": 58114,
      "BAPackets": 593
    },
eonpatapon commented 7 years ago

Fun fact: ABPackets is increasing strangely after the 9 first packets

safchain commented 7 years ago

@eonpatapon which type of capture are using afpacket (default) or pcap ? thx

eonpatapon commented 7 years ago

afpacket, I will make a test with pcap

eonpatapon commented 7 years ago

Ok, so with pcap it works properly