BW monitor: not accurate

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
mems
Posts: 6
Joined: Thu Jan 13, 2011 8:37 am

BW monitor: not accurate

Post by mems »

I have installed Gargoyle on RSpro. It works fine. However when I check the BW monitor graph, it shows the bandwidths of download and upload just about 1-2 kbps for download and 5 kbps for upload.
In fact when I check by using iperf, the throughput is > 80 Mbps and MCS from 12-15 (HT 20).
This happens for both AP and STA modes. I uses bridge WDS for both cases.

This is output of ifconfig:
--------------------------------------------------------------------------------
/etc/config# ifconfig
br-lan Link encap:Ethernet HWaddr
inet addr:10.50.0.57 Bcast:10.50.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36786 errors:0 dropped:0 overruns:0 frame:0
TX packets:22643 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4201662 (4.0 MiB) TX bytes:10178473 (9.7 MiB)

eth1 Link encap:Ethernet HWaddr
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1330733 errors:0 dropped:0 overruns:0 frame:0
TX packets:1343522 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1374263279 (1.2 GiB) TX bytes:1381284245 (1.2 GiB)
Interrupt:5

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:33 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3015 (2.9 KiB) TX bytes:3015 (2.9 KiB)

mon.wlan0 Link encap:UNSPEC HWaddr
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1457 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:169007 (165.0 KiB) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:14879 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1610183 (1.5 MiB)

wlan0.sta Link encap:Ethernet HWaddr
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1356502 errors:0 dropped:0 overruns:0 frame:0
TX packets:1344454 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1377880064 (1.2 GiB) TX bytes:1418529656 (1.3 GiB)



-------------------------------------------------------------------------------
I have tested for all other scenarios, e.g. WAN, LAN port ..
the setting from /var/state/network/ifname is tested for both br-lan and br-wan.
My board is Atheros AR9220.
I believe that the problem is that the file bw_gargoyle in init.d using br-lan or br-wan and as you see from the above ifconfig output, the br-lan/wan shows very low Rx/tx packets. (maybe this is error as reported:
https://dev.openwrt.org/ticket/7670)

Thus I believe we should, for bw_monitor, use other interfaces (eth0, eth1 or wlan0..).

In the bw_gargoyle and var/state/network, I have tried to change to just use eth0, eth1 (depend on network config) and wlan0, but the bw_monitor does not work.
I have not know how to fix this, because bw_gargoyle also uses some files and patches (e.g libipbw, iptables extension).

Could you fix the problem of bw_gargoyle that gives possibility of using other interfaces (eth0, eth1, wlan0..) ?

Thanks in advance

mems
Posts: 6
Joined: Thu Jan 13, 2011 8:37 am

Re: BW monitor: not accurate

Post by mems »

I believe that ifconfig output shows accuracy error in br-lan interface when using ATH9k driver abd bridge is between the wlan0 and eth.

The best way should fix the error in ifconfig (in busybox). The other ways can be make bwmon_gargoyle working with other accurate interfaces, e.g eth, wlan..etc.

Post Reply