linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rate instability in wireless stack
@ 2009-01-04 16:46 Andi Kleen
  2009-01-04 16:36 ` Michael Buesch
  0 siblings, 1 reply; 25+ messages in thread
From: Andi Kleen @ 2009-01-04 16:46 UTC (permalink / raw)
  To: linux-wireless


Hi,

I recently had to switch my desktop over to use wireless to connect
to my DSL line. Unfortunately it was not a entirely happy experience.

I have the following setup:
- One zd1211rw usb stick taped to a desk.
- A wireless antenna next to it, connected to PCI wireless cards

I'm using the zd1211rw stick, which works (54Mbit/s connection
with no apparent packet loss through two walls from a 16Mbit/s DSL line).  
Unfortunately it has horrible queueing behaviour under load: when I have 
multiple download streams going the connection gets extremly laggy. 
The problem seems to be in the client here, when I do the same from a laptop
with Intel wireless there is no significant lag.

To avoid this problem I was trying to switch over to PCI cards.
I tried two different ones:

05:02.0 Network controller: RaLink RT2561/RT61 802.11g PCI

and 

06:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8185 IEEE 802.11a/b/g Wireless LAN Controller (rev 20)

in different machines. The reception should be about the same
or better than with the USB stick: they are connected to a real
antenna which is sitting next to the USB stick on a desk.

Unfortunately they both show the same problem. The connection
works, but quickly goes down to 1Mbit/s after setup and is then very slow.
I tried to manually lock it to 54Mbit/s, but then no data
is transferred. When it's set back to auto it quickly goes
down to 1Mbit/s again.

The USB stick happily stays at 54Mbit/s on its own (and works
well except for the lag behaviour). Both to the same AP.

Since I see this with two different chipsets I suppose it's
some general problem in the midlevel layer. There are no special
messages in dmesg. My laptops which have Intel wireless (ipw2200)
don't show this problem. So it must be in some part that 
is used by the RTL and RT drivers, but not by Intel or zd1211rw.

Kernels I tried: 2.6.27, 2.6.28, current 2.6.29-git (now with Larry's
patch). All same behaviour. 

Any ideas?

-Andi

-- 
ak@linux.intel.com

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: rate instability in wireless stack
@ 2009-01-07  6:46 Martín Ernesto Barreyro
  0 siblings, 0 replies; 25+ messages in thread
From: Martín Ernesto Barreyro @ 2009-01-07  6:46 UTC (permalink / raw)
  To: linux-wireless

Hello, I've rtl8187 usb wifi card on board (at less is inside my laptop=
)
and
I've some problems with the rate control.

When I use the PID algorithm with 2.6.26-1-686(debian) or 2.6.28 kernel=
s
or
minstrel with 2.6.28 it always goes to 54Mb/s, and it doesn't work. If =
I
run
iwconfig wlan0 rate 11M auto, it starts working. Its a little
"optimistic".

This is the rc_stats output
rate     throughput  ewma prob   this prob  this succ/attempt   success
attempts
  P  1         0.9       99.9      100.0          0(  0)        382
382
     2         1.9       99.9      100.0          0(  0)        222
222
     5.5       5.0       99.9      100.0          0(  0)        222
222
    11         9.5       99.9      100.0          4(  4)      48070
48070
     6         1.4       25.0      100.0          0(  0)          1
1
     9         3.6       43.7      100.0          0(  0)          2
2
 t  12        11.0       99.9      100.0          0(  0)        228
228
    18         4.0       25.0      100.0          0(  0)          1
1
    24         5.3       25.0      100.0          0(  0)          1
1
    36         7.6       25.0      100.0          0(  0)          1
1
    48         9.7       25.0      100.0          0(  0)          1
1
T   54        20.0       99.9      100.0          0(  0)         53
53

Total packet count::    ideal 8384      lookaround 441

All the attemps succeed, this is after I use iwconfig wlan0 rate 11M
auto,
otherwhise I couldn't write this, couse it stays at 54Mb/s and doesn't
works.

Today, january 7, I updated the driver with the compat-wireless tarball=
=2E
Now the
driver just stays in 1Mb/s.

rate     throughput  ewma prob   this prob  this succ/attempt   success
attempts
TtP  1         0.0        0.0        0.0          1(  0)          0
0
     2         0.0        0.0        0.0          0(  0)          0
0
     5.5       0.0        0.0        0.0          0(  0)          0
0
    11         0.0        0.0        0.0          0(  0)          0
0
     6         0.0        0.0        0.0          0(  0)          0
0
     9         0.0        0.0        0.0          0(  0)          0
0
    12         0.0        0.0        0.0          0(  0)          0
0
    18         0.0        0.0        0.0          0(  0)          0
0
    24         0.0        0.0        0.0          0(  0)          0
0
    36         0.0        0.0        0.0          0(  0)          0
0
    48         0.0        0.0        0.0          0(  0)          0
0
    54         0.0        0.0        0.0          0(  0)          0
0

Total packet count::    ideal 3546      lookaround 186

I send this problem to Larry, but since someone posted something simila=
r
I
thought it would be useful.

Mart=C3=ADn
--=20
Mart=C3=ADn Ernesto Barreyro <barreyromartin@gmail.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2009-01-07  6:47 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-04 16:46 rate instability in wireless stack Andi Kleen
2009-01-04 16:36 ` Michael Buesch
2009-01-04 17:41   ` Andi Kleen
2009-01-05  0:29     ` Larry Finger
2009-01-05  2:53       ` Andi Kleen
2009-01-05  3:55         ` Larry Finger
2009-01-05  5:02           ` Andi Kleen
2009-01-05  4:59             ` Larry Finger
2009-01-05  5:48               ` Andi Kleen
2009-01-05  5:51                 ` Larry Finger
2009-01-05  8:17                   ` Johannes Berg
2009-01-05 12:54                     ` Andi Kleen
2009-01-05 13:32                 ` Felix Fietkau
2009-01-05 14:23                   ` Andi Kleen
2009-01-05 14:41                     ` Felix Fietkau
2009-01-05 15:24                       ` Andi Kleen
2009-01-05 15:25                         ` Felix Fietkau
2009-01-05 16:35                           ` Andi Kleen
2009-01-05 16:36                             ` Felix Fietkau
2009-01-05 17:11                               ` Andi Kleen
2009-01-05 17:01                                 ` Felix Fietkau
2009-01-05 19:33                                   ` Hin-Tak Leung
2009-01-05 20:16                                     ` Larry Finger
2009-01-05  4:22         ` Larry Finger
  -- strict thread matches above, loose matches on Subject: below --
2009-01-07  6:46 Martín Ernesto Barreyro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).