firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Feature Request]: Ask roof node for missing broadcast messages (S&F with 0-hop answer)

Open Hamberthm opened this issue 5 months ago • 10 comments

Platform

Cross-Platform

Description

Hi

Currently if a roof node is set to CLIENT_BASE, or any other mode other than ROUTER or ROUTER_LATE. it will NOT retransmit a broadcast message if it hears another node rebroadcast it first. This causes missing messages on mobile indoor nodes that depend exclusively on the roof node.

I understand that changing this behavior is not possible as anything done to it will essentially change it to something like ROUTER mode.

I propose a command that can be sent from the indoor node to the roof node, to be able to fetch the missing messages from the roof node's cache. Similarly to a Store & Forward server but of course working only with the HEAP cache.

This could become automatic if, for example, the mesages from the roof node get repeated alongside a hash of some kind calculated after the messages on the channel. The indoor node could request the missing ones automatically after checking the roof emitted hash with its own.

Thanks!

Hamberthm avatar Jun 12 '26 21:06 Hamberthm

@Hamberthm, 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 12 '26 21:06 github-actions[bot]

Here's an alternate idea: Always rebroadcast text messages, it can even stick to the current contention window. All other traffic, including encrypted packets, follows the current logic.

In our mesh text messages are roughly 5% of traffic. The bulk of it are position updates, telemetry, and node_info a distant 3rd. Forwarding all text messages for which the node holds the keys wouldn't add much congestion. But, more importantly, it would improve the feeling of robustness by delivering the messages we actually interact with. I would leave the hop counting logic alone. Simply don't drop the message when a retransmission is heard.

luivicur avatar Jun 13 '26 03:06 luivicur

I don't see how this could be implemented and I'd say it's not even necessary. A Client_Base acts as a router_late for favorite nodes... meaning it will always rebroadcast, but on a later window. So, if you analyze your neighbors and check which ones serve traffic to you, you "just" need to add them as favorites in your client_base node. If those neighbors are R/RL/CB it will also save you the before last hop. Wouldn't it avoid the issue, without more coding?

domusonline avatar Jun 17 '26 11:06 domusonline

I don't see how this could be implemented and I'd say it's not even necessary. A Client_Base acts as a router_late for favorite nodes... meaning it will always rebroadcast, but on a later window. So, if you analyze your neighbors and check which ones serve traffic to you, you "just" need to add them as favorites in your client_base node. If those neighbors are R/RL/CB it will also save you the before last hop. Wouldn't it avoid the issue, without more coding?

Sorry, it seems you got how CLIENT_BASE works wrong. It will NOT always rebroadcast messages TO the favorited node, only FROM.

On the direction TO the favorited node, the CLIENT_BASE acts just as its name implies, a Client, meaning missing messages from the broadcast channels on the indoor node happen all the time, wich makes the whole existence of a roof node a frikin' joke (when talking about broadcast channels, of course).

Hamberthm avatar Jun 17 '26 11:06 Hamberthm

I don't see how this could be implemented and I'd say it's not even necessary. A Client_Base acts as a router_late for favorite nodes... meaning it will always rebroadcast, but on a later window. So, if you analyze your neighbors and check which ones serve traffic to you, you "just" need to add them as favorites in your client_base node. If those neighbors are R/RL/CB it will also save you the before last hop. Wouldn't it avoid the issue, without more coding?

Sorry, it seems you got how CLIENT_BASE works wrong. It will NOT always rebroadcast messages TO the favorited node, only FROM.

On the direction TO the favorited node, the CLIENT_BASE acts just as its name implies, a Client, meaning missing messages from the broadcast channels on the indoor node happen all the time, wich makes the whole existence of a roof node a frikin' joke (when talking about broadcast channels, of course).

No I didn't... You missed the point. I suggested you should add your neighbors as favorites. Regards.

domusonline avatar Jun 17 '26 11:06 domusonline

Or maybe I did... it will only consider the case where "FROM" is a favorite, I think... Would need to check the code.

domusonline avatar Jun 17 '26 11:06 domusonline

You're both right! Which is confusing and a bit of a problem. With DMs: The client_base can tell if a packet is FROM or TO a favorite node and will behave as router_late. With group messages: The client_base knows if a packet is FROM a favorite and will work as router_late. But it cannot tell if it is TO the favorite and will behave as plain old client.

What the OP is requesting is pretty much enabling Store&Forward on the default channel. It is explicitly disabled. I have not played with it though.

I suggest forwarding all text messages for channels the client_base can decode. Behavior would be like expected and additional traffic remains limited (at least in my experience).

luivicur avatar Jun 17 '26 19:06 luivicur

Of course, any request from the inside node answered by the roof node can be answered via a 0-hop message. This is different from a normal S&F server because we don't need the mesh to relay it, since we are directly below the roof node. Traffic impact will therefore be minimal, if I'm correct, because no other node can essentially hear the inside node sending its request (and it would also be a 0-hop message), and the answer from the roof node would only be a single 0-hop message repeated by no other nodes.

Hamberthm avatar Jun 17 '26 19:06 Hamberthm

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 05 '26 06:08 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 Aug 22 '26 06:08 github-actions[bot]