B.A.T.M.A.N Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Linus Lüssing" <linus.luessing@c0d3.blue>
To: Andrew Strohman <andrew@andrewstrohman.com>
Cc: "Marek Lindner" <marek.lindner@mailbox.org>,
	b.a.t.m.a.n@lists.open-mesh.org,
	"René Treffer" <treffer@measite.de>
Subject: Re: [PATCH RFC] batman-adv: BATMAN V: use/prefer 11s airtime link metric
Date: Sun, 19 Jan 2025 05:28:32 +0100	[thread overview]
Message-ID: <Z4x_cHIYD-7sihlj@sellars> (raw)
In-Reply-To: <CAA8ajJnwrAidkea_tVDvRxJy6T_bJ9VQDKq2FW4SSdJfZxYKqQ@mail.gmail.com>

Hi Andrew,

Thanks for your feedback!

> Currently, that means tx rate / 3 (which is an under-estimate).

I think if I recall correctly this was intentional that the
fallback typically under-estimates. Generally speaking better to
under-estimate than over-estimate for a fallback mechanism which
uses a worse approach. The tx rate / 3 fallback is more pessimistic
by design.

> 
> This results in my network perferring 2.4ghz paths when it should be preferring
> 5ghz paths.

Makes sense from the original design idea. The 5ghz radio does not
provide us with an accurate expected throughput from its
locked-up, hidden rate control, so we are better safe than sorry
here and under-estimate it.

But shouldn't this also mean that this patch has a high chance of
fixing the issue in your setup? With this patch you should get a
higher, more "realistic"/comparable estimate for your 5ghz radio?

> The problem is that throughput calculation method is not consistent
> across radios.

Full ACK.

> 
> I know that both these methods of throughput estimation are trying to estimate
> the same thing, but they are implemented differently.

ACK.

> There implementation details
> can result in a bias to over or under estimation.
> 
> I'm suggesting that we make an effort to make the throughput
> calculation method consistent across radios. More specifically,
> if one radio doesn't support sta_get_expected_throughput(),
> then we shouldn't use that method for any radio -- all radios
> should use the same fallback mechanism.

This one I'm not sure of... different radios can still use
different rate control algorithms. One radio might prefer to use
higher WLAN bitrates and tolarate more loss. While another radio
might be more cautious and might generally use lower WLAN bitrates,
to maybe achieve less loss.

And I'm also wondering if that would result in the wrong overall
incentives. Should vendors who give us more useful information
really be punished for that, by us falling back to the method used
with the worst, most locked-up vendor?

> [...]
> In my case, I also found that sta_get_expected_throughput() delivers
> over-estimates.

Or the other one under-estimates ;-). Another thing to keep in
mind I think an expected throughput measurment would be closer
to a UDP than a TCP test. I guess your measurements were with TCP?
On WiFi UDP and TCP throughput can differ quite a bit, at least
from my experience.

Regards, Linus

  parent reply	other threads:[~2025-01-19  4:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-18  0:35 [PATCH RFC] batman-adv: BATMAN V: use/prefer 11s airtime link metric Linus Lüssing
2025-01-18  2:00 ` Andrew Strohman
2025-01-18  4:59   ` Marek Lindner
2025-01-19  3:20     ` Andrew Strohman
2025-01-19  3:48       ` Marek Lindner
2025-01-19  4:28       ` Linus Lüssing [this message]
2025-01-19  5:05     ` Linus Lüssing
2025-01-19  5:15       ` Linus Lüssing
2025-01-18  5:08 ` Marek Lindner

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=Z4x_cHIYD-7sihlj@sellars \
    --to=linus.luessing@c0d3.blue \
    --cc=andrew@andrewstrohman.com \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=marek.lindner@mailbox.org \
    --cc=treffer@measite.de \
    /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