[Bug]: Hop Scaling is too aggressive on faster and non-default presets
Category
Other
Hardware
Not Applicable
Is this bug report about any UI (https://meshtastic.org/docs/configuration/device-uis/) component firmware?
- [ ] Meshtastic UI aka MUI
- [ ] InkHUD
- [ ] BaseUI
Firmware Version
2.8.1.xxxxxxx
Description
I'm asking for the Hop Scaling feature to have increased role floors based on LoRa Preset selection. Faster and non-default presets other than LongFast/LongTurbo receive a roleFloor = 3 to bring the telemetry scaling in line with the greater throughput and lower congestion inherent to a faster non default preset.
The Hop Scaling feature with histogram is great for congested meshes. Along with rejecting packets without a hop_start value and disabling telemetry on upgrade it we have a lot of potential to reduce congestion when 2.8.x is widely adopted.
However, for larger meshes on a non-default and faster preset, such as our MediumSlow mesh in Coastal British Columbia, the Hop Scaling is quite aggressive. Our mesh spans well over 500km end to end and router are located on remote mountains that are inaccessible a large portion of the year. We rely on telemetry received over 3,4, even 5 hops from these remote routers.
We don't have congestion issues right now on MediumSlow and most nodes running 2.7.X but the nodes that have been upgraded to 2.8.x prerelease are all ceasing to report valuable telemetry data. So far this is mainly affecting routers as those are the few that have been upgraded for testing.
The telemetry from Routers is very important for us to measure the health of our network. Packets take a variety of paths. Not always the shortest path. Combined with mandatory 12 hour telemetry intervals for routers this means that an administrator a few hops away can go for days without seeing any telemetry from their routers. This means the administrator has no material way of telling if the router is in fact still online and healthy without driving a great distance (hundreds of kilometres in some cases) to manually request telemetry. Not a scalable solution.
The routers I have upgraded as test units just one town over have almost completely stopped reporting telemetry to me. These are generally 2 or 3 hops away and only a distance of 45-60km as the crow flies but they have gone silent. Channel Utilization on these units was a comfortable 10-15% before with occasional spikes into the high teens. Not really in the range where they should have telemetry hops scaled, IMHO.
Additionally we rely on users with mobile client nodes on vehicles to send regular position data which helps us identify coverage holes by cross referencing with their actual locations. The scaling negatively affects that use case as well.
Overall its a fantastic idea for meshes on the old and new defaults. Perfect, no notes.
But for meshes that already moved to a faster preset to solve their congestion issues and have no congestion its taking away the core features that make Meshtastic cool and useful for a variety of tasks besides sending messages.
Here's my clumsy bodge job in HopScalingModule.h for as an example. Router.cpp already honours the user-configured hop limit — line 536: if (variableHopLimit < p->hop_limit). The scaling only reduces the hop limit, never increases it.
if (didHourlyUpdate) {
uint8_t suggested = (histogramRollCount > 0 && count > 0) ? lastSuggestedHop : HOP_MAX;
// Preset-based hop floor: on non-default presets (anything other than LONG_FAST or LONG_TURBO)
// the mesh is assumed to be less congested, so a minimum floor of 4 is applied to ensure
// remote nodes remain visible. On default presets, scaling runs freely.
uint8_t roleFloor = 0;
if (config.lora.modem_preset != meshtastic_Config_LoRaConfig_ModemPreset_LONG_FAST &&
config.lora.modem_preset != meshtastic_Config_LoRaConfig_ModemPreset_LONG_TURBO) {
roleFloor = 3;
}
lastRequiredHop = std::max(suggested, roleFloor);
}
Relevant log output