wrtbwmon icon indicating copy to clipboard operation
wrtbwmon copied to clipboard

Usage is too low compared to the real usage

Open rockrevenchy opened this issue 5 years ago • 5 comments

in very short, after I installed wrtbwmon as well as the luci addon, I tried it by mass downloading stuff just to see how it would react, weirdly enough I could not get more than about 300KB/s download speed to show and a total download of 3MB was noted which is inaccurate considering I've been downloading about 1GB of stuff during my tests at a speed of around 2MBps.

I off course kept the page running during the whole process to keep an eye out, I also noted that it sometimes would even go as far as to say I had 0 B/s on each refresh while I was downloading.

rockrevenchy avatar Feb 19 '20 07:02 rockrevenchy

I have exactly same issue on my new compiled openwrt.

assofour avatar Mar 07 '20 16:03 assofour

unfortunately i see the same on OpenWRT master...have downloaded 500M+ in the last couple of minutes and it only shows 27MB downloaded total.

facboy avatar Mar 19 '20 19:03 facboy

I suspect this is due to wrtbwmon selecting the wrong network interface or the device not performing any routing.

We can start debugging by inspecting output of the following commands:

iptables -nvL
iptables -nvL -t mangle
ifconfig
route -n

If your device running wrtbwmon is not doing any routing (i.e., is in bridge-only mode), the iptables counters will not be updated by default because your bridge traffic is not going through the iptables chains.

It sounds like running the following command will send bridge traffic through the iptables chains (disclaimer: I have not tested this):

echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables

You may need to adjust your iptables rules prior to running the command if you want your bridge to continue to work.

pyrovski avatar Apr 13 '20 16:04 pyrovski

There's a similar discussion at https://github.com/Kiougar/luci-wrtbwmon/issues/20; wrtbwmon was not designed to work in bridge mode.

pyrovski avatar Apr 13 '20 16:04 pyrovski

i think in my case the issue is that i have software offloading enabled so the traffic is not going through iptables.

facboy avatar Apr 13 '20 21:04 facboy