Adaptive TX power for access repeaters - limit flood repeats to the local cell

Open
#3,875 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
networking

Research direction

Start by reading the flood forwarding and transmit power handling entry points; the issue does not name files or tests, so locate them in the codebase. Then trace how inbound floods, direct-route packets, and client registration are handled. Done means implementing the proposed access repeater behavior, including client registration, measured power limits, and uplink reach; this requires protocol and design work.

Written by the indexing model from the issue text.

Description

Problem

By design, every repeater rebroadcasts every incoming flood packet at maximum TX power. In dense urban deployments each repetition is heard - and blocks the channel via CAD - far across the city: overlapping ranges merge into one congested collision domain. Two measures exist to reduce this load: (1) reduce the number of repetitions of each packet, and (2) limit the reach of each repetition.

This proposal targets the incoming flood packets. For an access repeater flood packets like external node adverts or channel messages need to reach its own companions only - not the whole world.

Prior considerations

  • Flood suppression (#3019) limits the number of repetitions where neighbours are redundant - but it is double-edged: the marginal companion attached solely and quietly to the suppressing repeater, or a distant repeater relying on it, may lose everything. The attempt to monitor surrounding nodes to create a reachability graph works but it's complicated and may fail in edge scenarios.
  • Cutting the reach of repetitions instead: a locally throttled repeater with a dynamically lowered TX power still serves its cell, while its repetitions stop blocking the city. Collision domains shrink and transmissions can run concurrently per cell.

Proposal: How to limit the local repeater's reach

Introduce an optional "access repeater" behaviour:

  • Refer to Inbound floods only. Reduced TX power applies only to flood packets arriving from outside the cell — those already carried by at least one other repeater. Floods that reach the repeater as the first hop (from its own clients and immediate neighbourhood) are still rebroadcast at max TX, and so are direct-route packets (messages with a defined path, where transport responsibility demands max TX). An admin's own traffic gets out to the wide mesh exactly as before.
  • The cell and its usage are defined by self-registered clients. Anyone holding the guest password of the repeater can log in and register as an active client of the cell — one prompt ("Register as active client? y/n"), the app sends its public key, no manual key handling.
  • The maximum power for sending into the cell is measured: the required TX power of the repeater focuses on the weakest registered client, clamped between configurable min/max. Starts at max power, only escalates on evidence; silent members age out; admin can list / kick registered clients.
  • No repeater topology knowledge required. The registered companions indirectly define the range the repeater needs to cover — it is not necessary to know every node in the mesh.
  • The uplink is anchored. The reach needed for the important neighbour repeaters is included in the measured level, so the repeater reliably gets its own - and its cell's - traffic in and out to the world.
  • This answers the suppression critique directly: the weakest registered and required node defines the floor while nothing is suppressed.
  • Goals reached: a more stable mesh and a reduced battery consumption on the access repeater.
image image
Dominant language
C
Stars
3.9k
Forks
1.5k
Avg merge
2d 7h
Merged PRs (30d)
56

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 meshcore-dev/MeshCore

All issues in meshcore-dev/MeshCore

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.