Search Linux Wireless

Re: [PATCH] mac80211: Make some mlme timers module paramaters.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 14, 2011 at 7:34 AM, Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote:
> On 02/14/2011 04:12 AM, Johannes Berg wrote:
>>
>> On Fri, 2011-02-04 at 15:30 -0800, greearb@xxxxxxxxxxxxxxx wrote:
>>>
>>> From: Ben Greear<greearb@xxxxxxxxxxxxxxx>
>>>
>>> This allows users to tune the connection-loss algorithms
>>> to be more or less lenient.  In particular, larger
>>> null-func retries helps when using lots of virtual
>>> stations on a loaded network.
>>
>> I see this has been merged, but I really think it should be reverted. It
>> doesn't really fix anything, and it makes the behaviour less
>> predictable. Also, even on a loaded network the nullfunc frames should
>> be transmitted quickly as they go out on VO. I'm thinking the fact that
>> it doesn't will also affect other things -- like the bufferbloat
>> discussion -- and fixing the problem would be a much better idea.
>
> The defaults stay the same, and allowing the values to be set a bit larger
> lets 128 stations associate, where without this, they constantly fail the
> null-func retries counter.
>
> Imagine 128 stations all trying to associate and auth WPA at the
> same time, and start DHCP and some IPv6 auto-negotiation
> as soon as they are up...  That is quite a lot of packets
> for a bunch of timing-sensitive operations.
>
> I know my particular use is pretty strange, but surely I'm not
> the only one that would like a good way to stress-test APs.
>
> I can also imagine that other users might like their system even more
> trigger happy..perhaps that would speed up roaming in some cases.
> Or users on very poor/congested networks, flakey APs, etc.
>
> The default values seem to be chosen arbitrarily to work for most
> users most of the time.  I think it adds way more benefit to allow
> these easily changed than any harm that comes from giving users
> the option.

We default MAX_NULLFUNC_TRIES to 1.  By the time you disconnect you've
missed at least 7 consecutive beacon frames (nominally 700 TU) and the
1 NullData frame (nominal 7 tx attempts).  I have _rarely_ seen trying
multiple times succeed.  Increasing tries requires spacing them out
which significantly increases roaming time which is user visible.
Also in most cases the event generated may cause wpa_supplicant to
re-join the same AP after a scan (depends on whether your supplicant
code blacklist's the ap and/or you have other options).

Thus having the module parameter means I can set my desired parameters
w/o having local mods.

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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux