rt3573sta icon indicating copy to clipboard operation
rt3573sta copied to clipboard

Wrong traffic totals reported by driver to kernel?

Open ricab opened this issue 11 years ago • 3 comments

Using this driver for a netgear WDNA 4100, I get an inconsistency between total reported traffic for the interface and the sum of individual packets. I have confirmed the two results with several tools:

  1. the totals of Rx traffic are around a few Kb/s (~6kb)
    • confirmed with /proc/net/dev, dstat, bmw-ng, cbm, iptraf, ifstat, gnome-system-monitor
  2. connection/packet streams don't get anywhere close to that
    • confirmed with netstat, tcpdump, iftop, nethogs, iptraf

For instance, "watch -n 1 'cat /proc/net/dev'" shows the totals constantly increasing (~6Kb/s), while tcpdump shows periods of several seconds without any packet (the few packets that come through being mostly <100kb)

I am therefore let to suspect the driver reports wrong totals to the kernel. Would that make sense to you? Thanks!

(I made a post regarding this on http://unix.stackexchange.com/questions/114803/accounting-for-proc-net-dev-reported-traffic)

ricab avatar Feb 16 '14 19:02 ricab

I meant "the few packets that come through being mostly <100b" (bytes instead of Kb)

ricab avatar Feb 18 '14 21:02 ricab

That is because this driver reports not the 802.3 statistics but 802.11 (all beacons from a connected BSSID let the totals constantly increasing (~6Kb/s) ). If you want to fix it, look here: https://github.com/maroviher/DPO_RT5572_LinuxSTA_2.6.1.3_20121022_mod/commit/81cddb83af73ccaf2b7e41dd2ef40b395ad3f42d

maroviher avatar Jan 04 '18 12:01 maroviher

Nice, thanks. I am not using this nowadays, but still good to know.

ricab avatar Jan 04 '18 15:01 ricab