Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: Simonas Kazlauskas <iwd.lists.linux.dev@kazlauskas.me>
Cc: James Prestwood <prestwoj@gmail.com>, iwd@lists.linux.dev
Subject: Re: Is the data rate estimation for 5GHz channels overly pessimistic?
Date: Tue, 24 Oct 2023 10:29:40 -0500	[thread overview]
Message-ID: <5ec949dc-e714-438a-9f70-c59bb8f65fc1@gmail.com> (raw)
In-Reply-To: <oo6afd4ygkvv47vthzqlvklqnm3gecjkkvhttrxlrmrqqb643t@6dzpfsigq6j6>

Hi Simonas,

On 10/24/23 10:19, Simonas Kazlauskas wrote:
> Denis Kenzior wrote:
>> On 10/24/23 07:32, James Prestwood wrote:
>>> So you could set:
>>> [Rank].LowSignalRateThreshold=-90
>>>
>>> Any RSSI between -82 and -90 would use -82 for the rank calculation. No idea 
>>> how this would play out in practice, but its at least simple and not tied to 
>>> any given hardware.
>>
>> No, I was more thinking about:
>> /* Added to the rssi value prior to looking up in the ht_vht_he_base_rssi */
>> SensitivityFudgeFactor=4
>> /* Width penalty */
>> SensitivityWidthPenalty=0 (3 today)
>> /* NSS penalty */
>> SensitivityNSSPenalty=3
>> /* Same as SensitivityFudgeFactor, but for HE */
>> SensitivityHEFudgeFactor=10
> 
> My main worry then would be finding good defaults for these values. Ultimately, 
> unless `iwd` ends up in a place where people install it and get a great 
> experience in anything that involves ranking (roaming, initial association, 
> etc.), the WiFi experience on Linux may have a hard time shaking off its stigma. 
> If many has to modify some config variables to get a good experience, the 
> experience will continue staying subpar for the large majority still. Although 
> having the knobs will at least enable a minority to extract a reasonably good 
> experience.

Well, WiFi on Linux is plain terrible.  iwd tries to make it better, but 
ultimately we're down to only two people.  There's only so much that can be 
done.  The goal here was to describe the parameters we could use to 'tweak' the 
current calculation.  These can then be stored per vid/pid/driver or whatever 
and added onto over time.  If the parameters are not provided, then fall back to 
the (very pessimistic) calculation we use now.  Still better than what we used 
to have.

> 
> What worries me in parituclar here is that if we tune these defaults too high 
> (i.e. estimate rate better than it might end up being in practice) then we might 
> end up associating with the AP that is too far away/weak to provide a 
> serviceable connection.
> 
> I wonder if there’s any place in here for some dynamic component that would 
> monitor how the NSS, MCS and other bandwidth affecting parameters behave for a 
> given SSID/BSSID/etc. as the RSSI varies, and transparently learn these 
> parameters throughout a… session (is that a term?) That way even if the 
> estimation for the very first association is too pessimistic, `iwd` can do 
> better when it needs to estimate again for e.g. a romaing decision or a new 
> association after a sleep.
> 
> With such a scheme in place “training” IWD would also be pretty easy to explain 
> to the users (walk around the area with your device connected to the network) if 
> they encountered problems with a particular AP.
> 

Patches are always welcome.  ML isn't my area of expertise, so I can't really 
help here.

Regards,
-Denis


  reply	other threads:[~2023-10-24 15:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-14  9:23 Is the data rate estimation for 5GHz channels overly pessimistic? Simonas Kazlauskas
2023-10-14 16:02 ` James Prestwood
2023-10-14 17:36   ` Denis Kenzior
2023-10-14 17:45     ` Simonas Kazlauskas
2023-10-14 18:07       ` Denis Kenzior
2023-10-15 19:40         ` Simonas Kazlauskas
2023-10-16 11:35           ` James Prestwood
2023-10-16 12:38             ` James Prestwood
2023-10-16 19:12               ` Denis Kenzior
2023-10-16 20:20                 ` Simonas Kazlauskas
2023-10-21 23:23                   ` Simonas Kazlauskas
2023-10-22 20:14                     ` Denis Kenzior
2023-10-24 12:32                       ` James Prestwood
2023-10-24 14:26                         ` Denis Kenzior
2023-10-24 15:06                           ` James Prestwood
2023-10-24 15:32                             ` Denis Kenzior
2023-10-24 15:40                               ` James Prestwood
2023-10-24 15:19                           ` Simonas Kazlauskas
2023-10-24 15:29                             ` Denis Kenzior [this message]
2023-10-16 18:36           ` Denis Kenzior
2023-10-14 17:42   ` Simonas Kazlauskas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5ec949dc-e714-438a-9f70-c59bb8f65fc1@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd.lists.linux.dev@kazlauskas.me \
    --cc=iwd@lists.linux.dev \
    --cc=prestwoj@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox