docs: clarify cluster TG subscription model and satellite TG filtering

Cluster TGs are a per-reflector subscription choice, not a mesh-wide
requirement. Document that satellites forward all TGs unconditionally
with no prefix or cluster TG filtering.
This commit is contained in:
Audric committed 2026-03-24 16:59:42 +01:00
1 parent b958a53ab3
commit dda6ac5531
3 files changed
+73 -9

No files matched your search

+13 -4
View File
@@ -80,10 +80,11 @@ Similar to `TrunkLink` but with different semantics:
| Aspect | TrunkLink (peer-to-peer) | SatelliteLink |
|--------|-------------------------|---------------|
| Topology | Symmetric mesh peers | Asymmetric — parent is authority |
| TG routing | Prefix-based (`isSharedTG`) | **All TGs** — satellite proxies everything |
| TG routing | Prefix-based (`isSharedTG`) + cluster (`isClusterTG`) | **No filtering** — all TGs forwarded unconditionally |
| Talker arbitration | Nonce tie-break | Parent always wins |
| Who initiates | Both sides connect to each other | Satellite connects to parent |
| Audio path | Only shared-prefix TGs | All TGs active on either side |
| Audio path | Only prefix-matched + cluster TGs | All TGs active on either side |
| `CLUSTER_TGS` config needed | Yes, must match on both sides | Not required |
#### Parent-side changes (`Reflector.cpp`)
@@ -203,8 +204,16 @@ LOCAL_PREFIX=01
CLUSTER_TGS=222,2221,2222,91
```
All reflectors in the mesh must list the same cluster TG set. A TG number
cannot be both a cluster TG and match a `LOCAL_PREFIX`/`REMOTE_PREFIX`.
Each reflector owner chooses which cluster TGs to subscribe to. The cluster TG
check is applied independently on both the sending and receiving side of each
trunk link. If a cluster TG is declared on one side but not the other, the
receiving side silently ignores the traffic — this is normal operation, not a
misconfiguration. Only reflectors that both subscribe to a given cluster TG will
exchange audio for it. A TG number cannot be both a cluster TG and match a
`LOCAL_PREFIX`/`REMOTE_PREFIX`.
**Note:** Satellite links are not affected by `CLUSTER_TGS` — they forward all
TGs unconditionally regardless of configuration.
### Implementation
+40
View File
@@ -65,6 +65,46 @@ at reflector B and carries only TGs whose decimal string starts with B's prefix
(`REMOTE_PREFIX`). No multi-hop routing is needed because every pair has a
direct trunk.
### Cluster TGs
Cluster TGs bypass prefix routing entirely. A TG listed in `CLUSTER_TGS` is
forwarded to **all** trunk peers regardless of `LOCAL_PREFIX` or `REMOTE_PREFIX`.
The routing decision in `TrunkLink` is:
```
if isClusterTG(tg) → forward (regardless of prefix)
else if isSharedTG(tg) → forward (prefix match)
else → drop silently
```
This check is applied **independently on both sides** of each trunk link:
- **Sending side:** `TrunkLink::onLocalTalkerStart`, `onLocalAudio`, and
`onLocalFlush` check `isSharedTG(tg) || isClusterTG(tg)` before sending.
- **Receiving side:** `TrunkLink::handleMsgTrunkTalkerStart`,
`handleMsgTrunkAudio`, and `handleMsgTrunkFlush` perform the same check
before accepting.
Each reflector owner chooses which cluster TGs to subscribe to. A reflector
only sends and accepts traffic for cluster TGs listed in its own `CLUSTER_TGS`.
If a cluster TG is declared on the sending reflector but not the receiving one,
the receiving side silently ignores the traffic — this is normal operation, not
a misconfiguration. Only reflectors that both subscribe to a given cluster TG
will exchange audio for it.
### Satellite Links — No TG Filtering
Satellite links (`SatelliteClient` / `SatelliteLink`) do **not** apply any TG
filtering. All talker signaling and audio is forwarded unconditionally in both
directions:
| Aspect | Trunk link | Satellite link |
|--------|-----------|----------------|
| Prefix filtering (`isSharedTG`) | Yes | No |
| Cluster filtering (`isClusterTG`) | Yes | No |
| What is forwarded | Only prefix-matched + cluster TGs | All TGs |
| `CLUSTER_TGS` config needed | Yes, on both sides | No |
---
## Connection and Handshake