firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Feature Request]: Move portable nodes to a later contention window

Open luivicur opened this issue 5 months ago • 12 comments

Platform

Cross-Platform

Description

Currently portable nodes share the same CW as a client_base, this interacts with the managed flooding algorithm preferring weaker connections and results in portable nodes having priority.

Portable nodes tend to be at ground level, surrounded by obstacles (often the very user), and seldom have antennas of more than 2.5dBi (i.e. dipole or whip). As a result they make poor relays. Client_base nodes are commonly located in more advantageous positions like roofs or short masts. On average client_base nodes are better suited to forwarding traffic than mobile nodes. In my own experience my mobile node has a 5dB SNR disadvantage compared to my roof node with comparable antenna, but the roof node is hands down the better relay.

Given the physical limitations, re-transmissions from portable nodes are a last ditch effort to extend range. Ideally these nodes should skip relaying while covered by infrastructure nodes, and resume relaying in sparse coverage. The existence of the client_mute role is a recognition of the negative effect clients can have on a dense network.

I propose to delay all mobile roles re-transmissions (everything except router, router_late, and client_base) to allow infrastructure nodes to propagate first. The result should be: -More cancelled re-transmissions in mobile nodes when in dense coverage -Slight delay for re-transmissions when working in ad-hoc meshes.

While client_mute would still be the ideal role in large meshes, this change would mean a lesser impact from new users since client is the default and commonly recommended role. For users frequently moving between dense and sparse regions it would allow a single role to work well enough.

luivicur avatar Jun 10 '26 20:06 luivicur

@luivicur, Welcome to Meshtastic! :wave:

Thanks for opening your first issue. If it's helpful, an easy way to get logs is the "Open Serial Monitor" button on the Web Flasher.

If you have ideas for features, note that we often debate big ideas in the discussions tab first. This tracker tends to be for ideas that have community consensus and a clear implementation.

We're very active on discord, especially the #firmware and #alphanauts-testing channels. If you'll be around for a while, we'd love to see you there!

Welcome to the community! :heart:

github-actions[bot] avatar Jun 10 '26 20:06 github-actions[bot]

@korbinianbauer any chance you can put something into your jupyter notebook simulators and see what the effect of pulling client_base forward in the window (method TBD) would be? I imagine if they were considered to be nodes with X dB more signal than those adjacent, that might help model the "better placed" aspect.

NomDeTom avatar Jun 10 '26 21:06 NomDeTom

"Currently portable nodes share the same CW contention window as a client_base"

Not true / I do not think that is the case. If you mean the role Client, that role is in the medium rebroadcast window.

Client_base, for nodes that is has favorited, is using the late rebroadcast window.

We have a mesh here with 600 nodes or more and have long switched to recommending role Client only for really well-placed nodes that benefit the entire mesh and, yes, making Client_Mute the new recommended default for all portable nodes, as they do not contribute anything in a dense mesh.

"While client_mute would still be the ideal role in large meshes, this change would mean a lesser impact from new users since client is the default and commonly recommended role."

What is the issue with recommending Client_Mute as the default for larger, more dense, meshes?

Aside from that, with well-placed hill and tower nodes having role Client, and all other nodes in the trenches using Client_Mute, Client_Base is useless / I see no real use case for Client_Base anymore.

As for moving Client_Base favorites' contention window handling to the same as Router again (early, ultra-agressive): aside from the fact that the is_favorite field is still misused for a priority routing feature, there were good reasons for moving favorites' of Client_Base to the late rebroadcast window.

shalberd avatar Jun 12 '26 12:06 shalberd

Client and Client_mute share the same CW logic for none favorites.

There is nothing wrong in recommending client_mute for large meshes. We're doing it in our much smaller ~60 node mesh. But new users will stick to the defaults and that means Client. They may eventually find the mesh's recommended settings or be contacted by another user. I'm sure you see that regularly. While that happens, this change would reduce the negative impact.

And then there's the other case of a user constantly moving between sparse and dense networks. Expecting such a user to switch back and forth between roles is naive. Even a tinkerer will forget to switch at some point. The proposed change would make the Client role better able to "play nice" in both scenarios.

This change would only impact roles meant to be portable. Client is such a thing. You should be using client_base and simply not add any favorites. It has become the "smallest" infrastructure role. I understand that chasing people around and reconfiguring nodes is a pain. In any case, this proposal wouldn't affect you mesh until the firmware of your well placed Clients is updated.

luivicur avatar Jun 12 '26 23:06 luivicur

#10725

luivicur avatar Jun 15 '26 19:06 luivicur

At first I was skeptical about this but after reading the most recent comment I think this is a great idea.

On our mesh we have a dearth of extremely well placed mountains and nodes. I'm at the point now where I am testing to determine which nodes to turn back to client or client_base mode to avoid excessive rebroadcasts. One idea I had was to put a public message on the demoted nodes instructing users to message me to be remotely added to favourites.

Moving Client_Base to a medium ground CW between router and client for general broadcasts (not favourites) gives a lot of potential for "second tier" locations to get in a useful rebroadcast without being required to be in a hard infrastructure role and rebroadcast everything. Keeping the current contention window for favourited nodes means that users of the client_mute role would see no negative impact.

Suppressing the need for client nodes within range of a second tier mountain/house node to rebroadcast general traffic seems like a great idea on the surface.

I have to wonder if this idea may be better suited to a new role entirely. A neighbourhood level role between client and infrastructure contention windows.

Deuteranomalous1 avatar Jun 23 '26 19:06 Deuteranomalous1

I have to wonder if this idea may be better suited to a new role entirely. A neighbourhood level role between client and infrastructure contention windows.

I'm of the believe that client_base should be renamed to router_neighborhood, as it mostly fulfills that need. But that's a conversation for another day.

The firmware should leverage the fact that client_base and mobiles are deployed differently and that is the core of the issue.

luivicur avatar Jun 23 '26 20:06 luivicur

This proposed change would complement nicely the router graceful retirement from here: https://github.com/meshtastic/firmware/pull/10718

luivicur avatar Jun 23 '26 23:06 luivicur

This issue has not had any comment or update in the last month. If it is still relevant, please post update comments. If no comments are made, this issue will be closed automagically in 7 days.

github-actions[bot] avatar Aug 23 '26 06:08 github-actions[bot]

Working on the simulations, life got in the way

luivicur avatar Aug 27 '26 22:08 luivicur

This issue has not had any comment or update in the last month. If it is still relevant, please post update comments. If no comments are made, this issue will be closed automagically in 7 days.

github-actions[bot] avatar Oct 28 '26 06:10 github-actions[bot]

This issue has not had any comment since the last notice. It has been closed automatically. If this is incorrect, or the issue becomes relevant again, please request that it is reopened.

github-actions[bot] avatar Nov 07 '26 06:11 github-actions[bot]