[Feature Request]: add back Traffic Management Config pages and settings

Open
#1,504 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
react, typescript
Domain
frontend

Research direction

Read the Traffic Management configuration fields in the linked protobuf and the firmware reference, then inspect how existing module configuration pages are built in the web client. Add a Traffic Management settings page that exposes the five listed values, with sensible lower and upper limits for rate_limit_window_secs. Done when users can configure these values in the web client; the issue does not name relevant source files or tests.

Written by the indexing model from the issue text.

Description

enhancement
Prerequisites
  • I have searched existing issues to ensure this feature hasn't already been requested
  • I have checked the documentation to verify this feature doesn't already exist
Problem Statement

@danditomaso For firmware 2.8.1, because there were too many changes in fields / protobufs for Traffic Management, the module was removed from the Web client in https://github.com/meshtastic/web/pull/1458

Since Traffic Management module is here to stay and protobufs, fields etc are now stable in alpha / development, consider adding back Traffic Management module config to the Web client client.meshtastic.org.

Proposed Solution

So users can set the config for Module Traffic Management values not only via meshtastic cli, but also via Android app.

https://github.com/meshtastic/firmware/blob/develop/src/modules/TrafficManagementModule.cpp#L137

https://github.com/meshtastic/protobufs/blob/develop/meshtastic/module_config.proto#L316

Fields to be able to set are

   /*
     * Minimum interval in seconds between position updates from the same node.
     * A non-zero value implicitly enables the suppression window; 0 disables it.
     */
    uint32 position_min_interval_secs = 4;

    /*
     * Maximum hop distance from the requestor at which direct NodeInfo responses
     * are served from the local cache. A non-zero value implicitly enables direct
     * response; 0 disables it.
     */
    uint32 nodeinfo_direct_response_max_hops = 6;

    /*
     * Time window in seconds for per-node rate limiting.
     * A non-zero value implicitly enables rate limiting; 0 disables it.
     */
    uint32 rate_limit_window_secs = 8;

    /*
     * Maximum packets allowed per node within the rate limit window.
     * A non-zero value implicitly enables rate limiting; 0 disables it.
     */
    uint32 rate_limit_max_packets = 9;

    /*
     * Maximum unknown/undecryptable packets per rate window before the source
     * is dropped. A non-zero value implicitly enables unknown-packet filtering;
     * 0 disables it.
     */
    uint32 unknown_packet_threshold = 11;
  }

It'd probably be good to enfore some upper and lower limits, floor and ceiling, for rate_limit_window_secs.

Current Alternatives

only setting via Meshtastic python cli working as of now for the known fields.

Importance

Nice to have

Additional Context

No response

Dominant language
TypeScript
Stars
861
Forks
316
Avg merge
2d 10h
Merged PRs (30d)
18

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshtastic/web

All issues in meshtastic/web

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.