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

未关闭
#3,875 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
c
领域
networking

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
C
星标
3.9k
派生
1.5k
平均合并
2 天 19 小时
30 天内合并 PR
61

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

meshcore-dev/MeshCore 的其他 Issue

查看 meshcore-dev/MeshCore 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。