Update of the traffic statistics
victor.aleo at estudiant.upc.es
Wed Nov 13 05:16:11 EST 2002
I have a problem reading the statistics from the AP (number of rx and tx
bytes). I get them from the procfs (file /proc/net/prism2/wlan#). I have
setup a test with 2 stations associated with the AP. Then I get the
statistics from every station (number of rx and tx bytes) also from the
procfs (/proc/net/prism2/station_ieee_hardware_address). With this test
I see that the traffic per station is correct while the traffic of the
AP it does not correspond to the traffic of the associated stations.
Moreover, in some cases is just 0! So it seems that the statistics are
not updated when the AP sees a packet on the clients.
Thanks a lot,
Michael Smith wrote:
>On Mon, 7 Oct 2002, Victor Aleo wrote:
>>I would like to know how often are the traffic statistics (located at
>>/proc/net/prism2/wlan#) of the AP (and the STA) updated? I need to know
>>how much time (e.g., how many milliseconds) the driver needs to update
>On the STA (and on an AP when monitoring other APs) they're updated each
>time a beacon is received. I think the default beacon interval is 10 or
>100 ms (I never needed to know any closer than that for my purposes but
>you'll probably want to check).
>On the AP they're only updated when the AP sees a packet on the client. If
>you want up-to-date per-station stats, what I did was write a daemon that
>echos raw ethernet packets back to the sender (using a packet(7) socket)
>and run it on each station, and have the AP send an echo request to each
>Jouni Malinen wrote:
>On Mon, Oct 07, 2002 at 06:21:37PM +0200, Victor Aleo wrote:
>Those files are generated when they are read. The data used for this is
>updated for each RX/TX packet.
More information about the HostAP