libteam icon indicating copy to clipboard operation
libteam copied to clipboard

team interface packet counter

Open OKyHb opened this issue 9 years ago • 1 comments

After switching to team driver we have problem with packet counters statistics. Like this:

2: enp3s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT qlen 1000
    RX: bytes  packets  errors  dropped overrun mcast
    4376837523188 6318951869 0       0       0       6020187
    TX: bytes  packets  errors  dropped carrier collsns
    4666802536740 3362998670 0       0       0       0

4: enp3s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master team0 state UP mode DEFAULT qlen 1000
    RX: bytes  packets  errors  dropped overrun mcast
    4397082118769 6206241089 0       0       0       13589800
    TX: bytes  packets  errors  dropped carrier collsns
    15371589631976 11724374918 0       0       0       0

9: team0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT
    RX: bytes  packets  errors  dropped overrun mcast
    8418024056841 8013411841 0       4       0       19609988
    TX: bytes  packets  errors  dropped carrier collsns
    19745880035170 9675699255 0       8       0       0

The total number of bytes on the physical interfaces is almost the same as for team0. But number of packets is very different.

What is the cause of the difference?

OKyHb avatar Apr 04 '16 09:04 OKyHb

(speculating) different packet size, reassembling the packets, etc

ps. we have seen a 10-fold ( ~500T / 50T ) difference in the number of bytes as well ( accumulated over ~2.4 years uptime with teamd 1.23 ) -- but this, of course, is not necessarily related

however, frankly, I would love to see some possible explanations -- just to get an idea for where this might be coming from

gf-mse avatar Jul 07 '20 05:07 gf-mse