You are not logged in.

#1 2012-04-14 08:29:53

popoffka
Member
Registered: 2012-03-29
Posts: 16

Hostapd: packet losses

Hi,

I have hostapd running on my Arch machine and I'm experiencing some problems. To illustrate what kind of problems exactly, I'll attach this log from a connected Windows laptop (which was located right next to the access point, signal quality was 100%) (192.168.0.5 is the IP of the Arch machine):

C:\Users\popoffka>ping -n 20 ya.ru

Pinging ya.ru [77.88.21.3] with 32 bytes of data:
Request timed out.
Reply from 77.88.21.3: bytes=32 time=1078ms TTL=59
Request timed out.
Reply from 77.88.21.3: bytes=32 time=871ms TTL=59
Request timed out.
Reply from 77.88.21.3: bytes=32 time=3479ms TTL=59
Reply from 77.88.21.3: bytes=32 time=2949ms TTL=59
Reply from 77.88.21.3: bytes=32 time=42ms TTL=59
Reply from 77.88.21.3: bytes=32 time=2221ms TTL=59
Reply from 77.88.21.3: bytes=32 time=37ms TTL=59
Request timed out.
Reply from 77.88.21.3: bytes=32 time=3061ms TTL=59
Reply from 77.88.21.3: bytes=32 time=2877ms TTL=59
Reply from 77.88.21.3: bytes=32 time=2927ms TTL=59
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Reply from 77.88.21.3: bytes=32 time=3024ms TTL=59
Request timed out.

Ping statistics for 77.88.21.3:
    Packets: Sent = 20, Received = 11, Lost = 9 (45% loss),
Approximate round trip times in milli-seconds:
    Minimum = 37ms, Maximum = 3479ms, Average = 2051ms

C:\Users\popoffka>ping -n 10 192.168.0.5

Pinging 192.168.0.5 with 32 bytes of data:
Reply from 192.168.0.5: bytes=32 time=333ms TTL=64
Reply from 192.168.0.5: bytes=32 time=2204ms TTL=64
Reply from 192.168.0.5: bytes=32 time=3ms TTL=64
Reply from 192.168.0.5: bytes=32 time=1858ms TTL=64
Reply from 192.168.0.5: bytes=32 time=4ms TTL=64
Reply from 192.168.0.5: bytes=32 time=1882ms TTL=64
Reply from 192.168.0.5: bytes=32 time=11ms TTL=64
Reply from 192.168.0.5: bytes=32 time=1934ms TTL=64
Reply from 192.168.0.5: bytes=32 time=3ms TTL=64
Reply from 192.168.0.5: bytes=32 time=1884ms TTL=64

Ping statistics for 192.168.0.5:
    Packets: Sent = 10, Received = 10, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 3ms, Maximum = 2204ms, Average = 1011ms

I tried pinging the same website from the access point itself and got no losses at all and no pings higher than 40ms. When I connect with a different laptop (Linux-based this time) I get pings around 200ms (both to the AP and to ya.ru) and still no losses. When I use my Android-based phone, I get no losses and no pings higher than 80ms.
I could probably blame the difference between my phone and the Linux-based laptop on the old WiFi adapter in the laptop, but my Windows laptop has a new Broadcom 43224 a/b/g/n adapter, so I'm really surprised by the incredibly high ping times and packet losses.
I don't even know where to look for a possible solution, but here's my hostapd.conf, hope it might help: http://codepad.org/jxeuFNrb (I already tried changing channels and/or changing HT40- to HT40+, but that didn't help). Does anyone know what might be the root of my problem and how to fix it?

Thanks (and sorry if my English is a little bit weird).

UPD: oh wait, it turned out that the reason for the high pings was an application I was running on the Windows machine that seemed to somehow overload the WiFi adapter. Now that I turned it off, pings are around 50 ms, but I still get lost packets sometimes (5 packets out of 50 were lost). I wonder what could be the reason for these lost packets.

Last edited by popoffka (2012-04-14 08:40:49)

Offline

#2 2012-04-14 08:50:29

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Hostapd: packet losses

If the issue only occurs with your Windows laptop, then I doubt the issue is going to be with your Arch machine (or hostapd setup).


Burninate!

Offline

Board footer

Powered by FluxBB