2011-03-11 21:17:25

by Chris Dosé

[permalink] [raw]
Subject: Unusual saw-wave like ping times from linux wireless AP to MacBook Pro, iPhone

I have a ubuntu 10.04 based wireless router running hostapd 0.7.3, the
latest compat-wireless ath9k. The same experiments were tried using
hostapd 0.6.9 and ath9k from 2.6.32 and 2.6.35 as well. also, hostapd
was tried in g mode and n mode, with wpa/wpa2 on and off, and with
high throughput on and off. I always get the same (or similar)
results.

The symptoms are like this: pinging a macbook pro, or an iphone, from
the AP results in an almost perfectly regular saw-wave like pattern.
The ping time starts at 50ms, steadily rises every subsequent ping
until it reaches somewhere over 200ms, then abruptly resets back to
50ms, and rises again. Graphing it in excel shows it is strangely
very precise. Between all the different version I've tried, I've seen
slight variations on this, running the latest versions of everything
now it seems like it starts closer to 1ms and rises to 200ms then
starts over.

Pinging another wireless device on my network (an HP wireless printer)
results in very fast, steady 5ms ping times. So it's not ALL wireless
clients, just some. In this case it seems apple products, but I have
nothing else currently to test with.

Pings look like this:
http://tinypaste.com/9dc704

Two graphs I made:
http://imagebin.org/142438
http://imagebin.org/142439

daemon.log: http://tinypaste.com/7a452e
dmesg: http://tinypaste.com/1cbe32
kern.log: http://tinypaste.com/cd1a1

lspci for my wireless card:
00:0e.0 Network controller: Atheros Communications Inc. AR922X
Wireless Network Adapter (rev 01)

If I can supply any more information, please let me know what.


2011-03-11 21:24:48

by Felix Fietkau

[permalink] [raw]
Subject: Re: Unusual saw-wave like ping times from linux wireless AP to MacBook Pro, iPhone

On 2011-03-11 10:17 PM, Chris Dos? wrote:
> I have a ubuntu 10.04 based wireless router running hostapd 0.7.3, the
> latest compat-wireless ath9k. The same experiments were tried using
> hostapd 0.6.9 and ath9k from 2.6.32 and 2.6.35 as well. also, hostapd
> was tried in g mode and n mode, with wpa/wpa2 on and off, and with
> high throughput on and off. I always get the same (or similar)
> results.
>
> The symptoms are like this: pinging a macbook pro, or an iphone, from
> the AP results in an almost perfectly regular saw-wave like pattern.
> The ping time starts at 50ms, steadily rises every subsequent ping
> until it reaches somewhere over 200ms, then abruptly resets back to
> 50ms, and rises again. Graphing it in excel shows it is strangely
> very precise. Between all the different version I've tried, I've seen
> slight variations on this, running the latest versions of everything
> now it seems like it starts closer to 1ms and rises to 200ms then
> starts over.
>
> Pinging another wireless device on my network (an HP wireless printer)
> results in very fast, steady 5ms ping times. So it's not ALL wireless
> clients, just some. In this case it seems apple products, but I have
> nothing else currently to test with.
That's perfectly normal. These devices are going in powersave mode and
only wake up when they're notified to do so via beacons. Until they wake
up, frames are buffered on the AP.

- Felix