B.A.T.M.A.N Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Lindner <marek.lindner@mailbox.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [PATCH RFC] batman-adv: BATMAN V: use/prefer 11s airtime link metric
Date: Sat, 18 Jan 2025 06:08:05 +0100	[thread overview]
Message-ID: <5954293.xXo6FtjLZv@rousseau> (raw)
In-Reply-To: <20250118003528.6843-1-linus.luessing@c0d3.blue>

On Saturday, 18 January 2025 01:35:27 CET Linus Lüssing wrote:
> When no expected throughput is available then HWMP keeps track of the
> average packet delivery error rate and average phy rate to calculate its
> own expected throughput value.

Is this also the case when 11s mesh forwarding is disabled?


> So the 11s airtime link metric should be a slightly better estimate than
> the expected throughput provided by Minstrel. And should be significantly
> better than our raw PHY rate divided by 3 guestimate fallback.

Have you tested the airtime metric in real world setups or what leads you to 
conclude that 11s airtime link metric is better than expected throughput?

Generally speaking, I like the idea of adding another link metric source.


> +static u32 batadv_v_elp_get_throughput_from_11s(u32 airtime)
> +{
> +       const int tu_to_airtime_unit = 100;
> +       const int test_frame_len = 8192;
> +       const int tu_to_us = 1024;
>
> +       return test_frame_len * 100 * tu_to_airtime_unit / (airtime * 
tu_to_us);

Are these values constant across all platforms and drivers?

Maybe there should be a function call to an 11s function doing the conversion 
and handling all cases (instead of doing this in the batman-adv code)?


>         struct station_info sinfo;
>  -       u32 throughput;
> +       u32 throughput, airtime;

The Reverse Christmas Tree style should be accounted for.

Cheers,
Marek




      parent reply	other threads:[~2025-01-18  8:25 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
2025-01-19  5:05     ` Linus Lüssing
2025-01-19  5:15       ` Linus Lüssing
2025-01-18  5:08 ` Marek Lindner [this message]

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=5954293.xXo6FtjLZv@rousseau \
    --to=marek.lindner@mailbox.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /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