statistics crossnumber puzzle

Eduard GV eduardgv
Mon Oct 30 08:11:39 PST 2006


Hi all,

I'm still trying to understand statistics provided by hostap (see [1])
and I'm stuck ?I don't know where all those numbers come from.

For example:

>From /proc/?/stats I can see that 11 frames have been sent (Unicast +
Multicast), the same number is obtained with ifconfig wifi0. But the
number of bytes are 2242 (stats) and 2218 (ifconfig wifi0)?where are
these missing bytes?

Even weirder: ifconfig wlan0 gives only 9 packets (and 2170Bytes).
Does that mean that a packet should have been sent twice (note that
TxSingleRetryFrames, TxMultipleRetryFrames and TxRetryLimitExceeded =
0)?

Same happens with rxFrames/Bytes. Wifi0 sees 548, wlan0 500 (6 of
which dropped,?or 500 + 6 dropped=506?) and /proc/?/stats provides
556?

Could anyone shed light on this?? As before, I would like to obtain
the probability that a frame is lost (error or collision)



Thank you!


[1] http://lists.shmoo.com/pipermail/hostap/2006-October/014417.html


-------------------------------------------------------------
---------------------/proc/net/hostap/wlan0/stats
TxUnicastFrames=4
TxMulticastframes=7
TxFragments=130
TxUnicastOctets=1654
TxMulticastOctets=588
TxDeferredTransmissions=16
TxSingleRetryFrames=0
TxMultipleRetryFrames=0
TxRetryLimitExceeded=0
TxDiscards=0
RxUnicastFrames=501
RxMulticastFrames=55
RxFragments=556
RxUnicastOctets=767064
RxMulticastOctets=4866
RxFCSErrors=8
RxDiscardsNoBuffer=0
TxDiscardsWrongSA=0
RxDiscardsWEPUndecryptable=0
RxMessageInMsgFragments=0
RxMessageInBadMsgFragments=0

---------------------ifconfig

wifi0     Link encap:UNSPEC  HWaddr
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:548 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:769325 (751.3 KiB)  TX bytes:2218 (2.2 KiB)
          Interrupt:1 Memory:c01af000-c01b0000

wlan0     Link encap:Ethernet  HWaddr MY:MA:CA:DD:RE:SS
          inet addr:myI.Pad.dre.ss  Bcast:xxx.xxx.255.255  Mask:255.255.x.x
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:500 errors:0 dropped:6 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:756000 (738.3 KiB)  TX bytes:2170 (2.1 KiB)
          Interrupt:1 Memory:c01af000-c01b0000

---------------------iwconfig

wifi0     IEEE 802.11b  ESSID:"NOTOCAR"
          Mode:Master  Frequency:2.462GHz  Access Point: MY:MA:CA:DD:RE:SS
          Bit Rate:11Mb/s   Sensitivity=1/3
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:8   Missed beacon:0

wlan0     IEEE 802.11b  ESSID:"NOTOCAR"
          Mode:Master  Frequency:2.462GHz  Access Point: MY:MA:CA:DD:RE:SS
          Bit Rate:11Mb/s   Sensitivity=1/3
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:8   Missed beacon:0




More information about the Hostap mailing list