Cyclic throughput at a distance
Hi all,
I'm trying to squeeze some decent medium range performance out of a AR9103 based router and have run into a sightly humorous but never the less irritating problem: when I get 30 or so meters away from the router (signal reported by iw as -80 dBm) throughput (measured as the rate at which I can download a large file to my macbook) starts oscillating in almost perfect cycles with a period of about 9.5 seconds (see attached image).
First I thought it might be the rate control algorithm, but in the attached image rate control has been disabled and replaced with a fixed retry chain (ratecode/tries: 21/1 14/2 13/4 12/5). I also thought it might have something to do with ANI, but ANI is disabled on the AR9100 chipset. Calibration doesn't seem to write to any registers often enough to be able to cause the periodicity.
I'm seeing a lot of RX CRC errors. Far more than there are PHY errors. Is this normal? The radio environment is an after hours office building that should be very quiet.
I'm leaning towards some sort of problem with TX queue handling. One strange aspect though is that I can see the same problem in a simple ping without the load: round trip times seem to go up (or at least increase in jitter) and down with about the same period as throughput does in the download test.
Any ideas on what might be causing this? Anything running at a 10 second period time? :)
/Bj?rn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: throughput.png
Type: image/png
Size: 10822 bytes
Desc: not available
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20091215/bcae4bb2/attachment.png
Quoted 8 lines · Bj?rn Smedman
I'm trying to squeeze some decent medium range performance out of a AR9103 based router and have run into a sightly humorous but never the less irritating problem: when I get 30 or so meters away from the router (signal reported by iw as -80 dBm) throughput (measured as the rate at which I can download a large file to my macbook) starts oscillating in almost perfect cycles with a period of about 9.5 seconds (see attached image).
Quoted 8 lines
I'm leaning towards some sort of problem with TX queue handling. One strange aspect though is that I can see the same problem in a simple ping without the load: round trip times seem to go up (or at least increase in jitter) and down with about the same period as throughput does in the download test.
Any ideas on what might be causing this? Anything running at a 10 second period time? :)
My first guess would be power saving and how it synchronizes with Beacon (and/or DTIM) interval. Have you tried disabling power saving in the client or experimented with different Beacon interval settings?
- Jouni
I tried changing becon interval (100, 500, 1000) with dtim_period=1 with no effect. My feeling is that it is not power save related as my macbook usually sails straight through that type of problems (it doesn't have power save enabled I think).
What really affects the behavior is signal strength. I put the AP in the window on one side of a big parking lot and drove around with the car. The result is:
Signal* Behavior
-----------------------------------
-63 stable -66 stable -67 stable -70 stable -73 cyclic -> stable -75 cyclic -76 cyclic -> stable -76 cyclic -> stable -> cyclic -78 stable -> cyclic -78 cyclic -78 cyclic -82 cyclic
* Ack rssi as reported by the MacBook
Stable behavior is when the throughput is reasonably stable or varies in a non-cyclic manner. Cyclic behavior is when the throughput goes up and down in a cyclic pattern. So, in short, if the signal strength is above -70 dBm the throughput is stable whereas if it falls below -75 dBm or so it becomes unstable in a cyclic pattern.
In general the AP is useless if signal strength falls below 78 or so. Is this normal?
/Bj?rn
2009/12/16 Jouni Malinen <[email protected]>
Quoted 16 lines · Bj?rn Smedman
Quoted 14 lines
I'm trying to squeeze some decent medium range performance out of a AR9103 based router and have run into a sightly humorous but never the less irritating problem: when I get 30 or so meters away from the router (signal reported by iw as -80 dBm) throughput (measured as the rate at which I can download a large file to my macbook) starts oscillating in almost perfect cycles with a period of about 9.5 seconds (see attached image).
I'm leaning towards some sort of problem with TX queue handling. One strange aspect though is that I can see the same problem in a simple ping without the load: round trip times seem to go up (or at least increase in jitter) and down with about the same period as throughput does in the download test.
Quoted 10 lines
Quoted 2 lines
Any ideas on what might be causing this? Anything running at a 10 second period time? :)
My first guess would be power saving and how it synchronizes with Beacon (and/or DTIM) interval. Have you tried disabling power saving in the client or experimented with different Beacon interval settings?
- Jouni
--
Venatech AB
Ideon Innovation
Ole R?mers v?g 12
SE-22370 LUND
Sweden
+46 (0) 46 286 86 20
info at venatech.se
http://www.venatech.se
I think I've isolated it now to a problem on the TX side: if I use a fixed rate of 6.5 Mbps (MCS0) and only one retry I can see the cyclic behavior directly in the UDP packet loss reported by iperf (and in my mind this packet loss cannot be caused by an RX problem).
The setup looks like this:
[MacBook] <----- weak signal wireless link -----> [AP(ath9k)] <---
Wire ---> [Iperf client]
The packet loss ratio varies between 15% and 80% in a sinusoidal shape (see iperf output below). Since it's a TX problem I'm starting to think it's some form hardware level calibration or MIMO phase-shifting/beamforming or similar. If I reduce txpower on the AP the cyclic behavior sometimes stops for a while and throughput becomes stable. If I then move the macbook around a little throughput goes down sharply and then comes back up and stabilizes again (in about 1 second). To me this suggests some hardware calibration of some sort going on. Sometimes a move triggers the AP to go back to the cyclic behavior giving me a feeling it's a calibration algorithm that fails to converge.
Any ideas what it could be? How to stop it? Any help or suggestions would be greatly appreciated!
/Bj?rn
##################### IPERF ON MACBOOK ####################### macbook$ iperf -u -l 1200 -i 1 --server
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1200 byte datagrams
UDP buffer size: 41.1 KByte (default)
------------------------------------------------------------
[ 3] 121.0-122.0 sec 370 KBytes 3.03 Mbits/sec 2.203 ms 57/ 373 (15%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 122.0-123.0 sec 128 KBytes 1.05 Mbits/sec 5.768 ms 164/ 273 (60%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 123.0-124.0 sec 130 KBytes 1.07 Mbits/sec 1.026 ms 355/ 466 (76%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 124.0-125.0 sec 94.9 KBytes 778 Kbits/sec 2.326 ms 322/ 403 (80%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 125.0-126.0 sec 156 KBytes 1.28 Mbits/sec 1.118 ms 399/ 532 (75%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 126.0-127.0 sec 236 KBytes 1.93 Mbits/sec 1.204 ms 219/ 420 (52%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 127.0-128.0 sec 251 KBytes 2.05 Mbits/sec 1.433 ms 49/ 263 (19%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 128.0-129.0 sec 323 KBytes 2.65 Mbits/sec 0.899 ms 337/ 613 (55%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 129.0-130.0 sec 389 KBytes 3.19 Mbits/sec 1.224 ms 79/ 411 (19%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 130.0-131.0 sec 394 KBytes 3.23 Mbits/sec 0.809 ms 86/ 422 (20%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 131.0-132.0 sec 334 KBytes 2.74 Mbits/sec 2.221 ms 78/ 363 (21%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 132.0-133.0 sec 196 KBytes 1.60 Mbits/sec 4.731 ms 176/ 343 (51%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 133.0-134.0 sec 262 KBytes 2.15 Mbits/sec 0.827 ms 303/ 527 (57%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 134.0-135.0 sec 169 KBytes 1.38 Mbits/sec 5.305 ms 133/ 277 (48%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 135.0-136.0 sec 146 KBytes 1.20 Mbits/sec 1.785 ms 400/ 525 (76%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 136.0-137.0 sec 204 KBytes 1.67 Mbits/sec 1.170 ms 179/ 353 (51%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 137.0-138.0 sec 217 KBytes 1.78 Mbits/sec 1.324 ms 289/ 474 (61%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 138.0-139.0 sec 118 KBytes 970 Kbits/sec 1.063 ms 267/ 368 (73%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 139.0-140.0 sec 479 KBytes 3.93 Mbits/sec 0.503 ms 113/ 522 (22%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 140.0-141.0 sec 369 KBytes 3.02 Mbits/sec 1.938 ms 95/ 410 (23%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 141.0-142.0 sec 347 KBytes 2.84 Mbits/sec 2.557 ms 66/ 362 (18%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 142.0-143.0 sec 124 KBytes 1.02 Mbits/sec 2.301 ms 186/ 292 (64%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 143.0-144.0 sec 146 KBytes 1.20 Mbits/sec 4.541 ms 328/ 453 (72%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 144.0-145.0 sec 108 KBytes 883 Kbits/sec 2.316 ms 335/ 427 (78%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 145.0-146.0 sec 262 KBytes 2.15 Mbits/sec 1.047 ms 314/ 538 (58%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 146.0-147.0 sec 71.5 KBytes 586 Kbits/sec 1.475 ms 251/ 312 (80%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 147.0-148.0 sec 112 KBytes 922 Kbits/sec 1.377 ms 387/ 483 (80%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 148.0-149.0 sec 444 KBytes 3.64 Mbits/sec 1.358 ms 95/ 474 (20%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 149.0-150.0 sec 375 KBytes 3.07 Mbits/sec 0.946 ms 94/ 414 (23%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 150.0-151.0 sec 386 KBytes 3.16 Mbits/sec 1.805 ms 78/ 407 (19%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 151.0-152.0 sec 348 KBytes 2.85 Mbits/sec 2.468 ms 78/ 375 (21%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 152.0-153.0 sec 200 KBytes 1.64 Mbits/sec 4.808 ms 148/ 319 (46%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 153.0-154.0 sec 76.2 KBytes 624 Kbits/sec 1.789 ms 332/ 397 (84%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 154.0-155.0 sec 176 KBytes 1.44 Mbits/sec 2.072 ms 397/ 547 (73%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 155.0-156.0 sec 246 KBytes 2.02 Mbits/sec 1.791 ms 50/ 260 (19%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 156.0-157.0 sec 129 KBytes 1.06 Mbits/sec 0.887 ms 338/ 448 (75%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 157.0-158.0 sec 306 KBytes 2.51 Mbits/sec 4.710 ms 217/ 478 (45%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 158.0-159.0 sec 221 KBytes 1.81 Mbits/sec 1.242 ms 261/ 450 (58%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 159.0-160.0 sec 436 KBytes 3.57 Mbits/sec 0.702 ms 110/ 482 (23%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 160.0-161.0 sec 379 KBytes 3.10 Mbits/sec 1.286 ms 97/ 420 (23%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 161.0-162.0 sec 349 KBytes 2.86 Mbits/sec 1.828 ms 76/ 374 (20%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 162.0-163.0 sec 149 KBytes 1.22 Mbits/sec 4.763 ms 161/ 288 (56%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 163.0-164.0 sec 101 KBytes 826 Kbits/sec 1.879 ms 345/ 431 (80%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 164.0-165.0 sec 77.3 KBytes 634 Kbits/sec 1.191 ms 346/ 412 (84%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 165.0-166.0 sec 104 KBytes 854 Kbits/sec 0.886 ms 338/ 427 (79%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 166.0-167.0 sec 142 KBytes 1.16 Mbits/sec 0.820 ms 354/ 475 (75%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 167.0-168.0 sec 226 KBytes 1.85 Mbits/sec 0.863 ms 274/ 467 (59%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 168.0-169.0 sec 428 KBytes 3.50 Mbits/sec 1.084 ms 95/ 460 (21%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 169.0-170.0 sec 377 KBytes 3.09 Mbits/sec 0.914 ms 97/ 419 (23%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 170.0-171.0 sec 377 KBytes 3.09 Mbits/sec 0.866 ms 95/ 417 (23%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 171.0-172.0 sec 314 KBytes 2.57 Mbits/sec 2.570 ms 83/ 351 (24%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 172.0-173.0 sec 114 KBytes 931 Kbits/sec 4.306 ms 165/ 262 (63%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 173.0-174.0 sec 127 KBytes 1.04 Mbits/sec 1.713 ms 340/ 448 (76%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 174.0-175.0 sec 213 KBytes 1.75 Mbits/sec 0.830 ms 298/ 480 (62%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 175.0-176.0 sec 84.4 KBytes 691 Kbits/sec 3.225 ms 277/ 349 (79%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 176.0-177.0 sec 175 KBytes 1.43 Mbits/sec 2.368 ms 368/ 517 (71%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 177.0-178.0 sec 117 KBytes 960 Kbits/sec 1.175 ms 210/ 310 (68%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 178.0-179.0 sec 473 KBytes 3.88 Mbits/sec 0.981 ms 211/ 615 (34%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 179.0-180.0 sec 403 KBytes 3.30 Mbits/sec 0.429 ms 74/ 418 (18%)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 180.0-181.0 sec 418 KBytes 3.43 Mbits/sec 1.637 ms 54/ 411 (13%)
/Bj?rn
2009/12/17 Bj?rn Smedman <[email protected]>:
Quoted 78 lines
I tried changing becon interval (100, 500, 1000) with dtim_period=1 with no effect. My feeling is that it is not power save related as my macbook usually sails straight through that type of problems (it doesn't have power save enabled I think).
What really affects the behavior is signal strength. I put the AP in the window on one side of a big parking lot and drove around with the car. The result is:
Signal* ? ? ? ? ? ?Behavior
-----------------------------------
-63 ? ? ? ? ? ? ? ? ?stable
-66 ? ? ? ? ? ? ? ? ?stable
-67 ? ? ? ? ? ? ? ? ?stable
-70 ? ? ? ? ? ? ? ? ?stable
-73 ? ? ? ? ? ? ? ? ?cyclic -> stable
-75 ? ? ? ? ? ? ? ? ?cyclic
-76 ? ? ? ? ? ? ? ? ?cyclic -> stable
-76 ? ? ? ? ? ? ? ? ?cyclic -> stable -> cyclic
-78 ? ? ? ? ? ? ? ? ?stable -> cyclic
-78 ? ? ? ? ? ? ? ? ?cyclic
-78 ? ? ? ? ? ? ? ? ?cyclic
-82 ? ? ? ? ? ? ? ? ?cyclic* Ack rssi as reported by the MacBook
Stable behavior is when the throughput is reasonably stable or varies in a non-cyclic manner. Cyclic behavior is when the throughput goes up and down in a cyclic pattern. So, in short, if the signal strength is above -70 dBm the throughput is stable whereas if it falls below -75 dBm or so it becomes unstable in a cyclic pattern.
In general the AP is useless if signal strength falls below 78 or so. Is this normal?
/Bj?rn
2009/12/16 Jouni Malinen <[email protected]>
Quoted 16 lines · Bj?rn Smedman
Quoted 14 lines
I'm trying to squeeze some decent medium range performance out of a AR9103 based router and have run into a sightly humorous but never the less irritating problem: when I get 30 or so meters away from the router (signal reported by iw as -80 dBm) throughput (measured as the rate at which I can download a large file to my macbook) starts oscillating in almost perfect cycles with a period of about 9.5 seconds (see attached image).
I'm leaning towards some sort of problem with TX queue handling. One strange aspect though is that I can see the same problem in a simple ping without the load: round trip times seem to go up (or at least increase in jitter) and down with about the same period as throughput does in the download test.
Quoted 10 lines
Quoted 2 lines
Any ideas on what might be causing this? Anything running at a 10 second period time? :)
My first guess would be power saving and how it synchronizes with Beacon (and/or DTIM) interval. Have you tried disabling power saving in the client or experimented with different Beacon interval settings?
- Jouni
--
Venatech AB
Ideon Innovation
Ole R?mers v?g 12
SE-22370 LUND
Sweden+46 (0) 46 286 86 20
info at venatech.se
http://www.venatech.se
Hi Bj?rn Smedman,
Have you resolved the issue? I encountered the same problem on AR9580 (atheros official driver), but still no clue so far. Looking forward to your response, thx!