From: Simon Wunderlich <sw@simonwunderlich.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: mbiglari4@gmail.com
Subject: Re: Gateway shut down detection takes too time from other nodes
Date: Fri, 24 Oct 2025 12:03:22 +0200 [thread overview]
Message-ID: <3735338.hdfAi7Kttb@prime> (raw)
In-Reply-To: <176122249070.1493.7302683075039006895@diktynna.open-mesh.org>
On Thursday, October 23, 2025 2:28:10 PM Central European Summer Time
mbiglari4@gmail.com wrote:
> Dear Simon,
>
> I have a mesh network with three nodes that use 802.11s for the PHY and MAC
> layers, and BATMAN-adv on top to provide routing and mobility. Two of the
> nodes act as gateways, and the other functions as a client. The client
> selects the best gateway based on throughput.
>
> Currently, I don’t have a DHCP server in this network — each node has a
> static IP address. The issue I’m encountering is that when the selected
> gateway node turns off, the client takes too long to switch to a new
> gateway. All nodes are using the BATMAN V routing protocol.
The setup is still not really clear to me. If you are not using DHCP but use
static IP addresses, how do you do the selection of the best gateway? Is this
a functionality of batman-adv, or a script?
batman-adv has the gateway feature [1] which optimizes the gateway based on
throughput, but this is useful only with DHCP enabled - because it redirects
your DHCP requests, nothing more, nothing less. This mechanism is rather slow,
and changes will only happen when the IP address renewal is due.
You may also have interconnect your gateways with Ethernet, use a bridge, and
enable BLA (bridge loop avoidance) in batman-adv. But it's not clear whether
you do that.
Please explain your network setup in more detail, then we may be able to help.
[1] https://www.open-mesh.org/projects/batman-adv/wiki/Gateways
>
> I believe this delay could be reduced by factoring the last connection time
> into the throughput calculation. For example, if you’re using an EWMA
> filter, you could treat a node that has been disconnected for more than 10
> seconds as having a throughput of zero. This would cause the EWMA value to
> drop quickly, allowing the client to select a new gateway sooner.
I can't really comment here unless I know which component in batman-adv would
interact with, as explained above.
However, if you have an idea, you can also go ahead and implement those things
yourself in batman-adv and try it out. Please note that BATMAN V is still
considered experimental, and most networks I work with are running BATMAN IV.
Cheers,
Simon
next prev parent reply other threads:[~2025-10-24 10:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 21:37 Gateway shut down detection takes too time from other nodes mbiglari4
2025-10-15 8:05 ` Simon Wunderlich
2025-10-23 12:28 ` mbiglari4
2025-10-24 10:03 ` Simon Wunderlich [this message]
2026-04-07 13:46 ` martinvdberg
2026-04-15 15:10 ` Simon Wunderlich
2026-04-16 5:46 ` Simon Wunderlich
2026-04-17 7:49 ` Martin
2026-04-20 12:06 ` Simon Wunderlich
[not found] ` <T9GBvsX7uc7S-GxsAnHMFg5oj-euOauWkNTXi2SouU2ow1oX1yogmMCi6FW7mXlFuZ3D9zMBiIGARWa2UDobQ2S0OrY8To4neWUtWArNXzw=@protonmail.com>
2026-04-22 14:21 ` Simon Wunderlich
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=3735338.hdfAi7Kttb@prime \
--to=sw@simonwunderlich.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=mbiglari4@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.