docs: clarify that local TG numbering is opt-in and routing follows the number

A reflector does not impose the prefix convention on its nodes. Make explicit
the third routing case (previously undocumented): a TG matching no prefix in
the mesh has no owner and stays local-only (relayed among the reflector's own
nodes, never trunked), exactly like stock SvxReflector.

Routing is decided solely by longest-prefix-match on the number itself,
regardless of length: a conforming number is routable wherever its prefix
points *if that prefix is owned by a reflector in the mesh* (e.g. 22210->222
Italy, 26201->262 Germany); a non-matching number (e.g. short 1-199 in a
typical MCC scheme) stays local and is unreachable by international traffic.
Conversely a 'local' number that happens to match a configured prefix will be
routed to that owner.

Use real in-repo MCC examples (222/262) instead of unassigned 201/401, and
state the 'if owned in the mesh' precondition. Updated README (How TG
ownership works), CONCEPTS.md (section 2), and TOPOLOGY_EXAMPLES.md; rebuilt
TOPOLOGY_EXAMPLES.pdf from the matching topology.html change.
This commit is contained in:
Audric committed 2026-06-17 17:28:42 +02:00
1 parent 70de93f19e
commit e35cf42b27
5 files changed
+63 -1

No files matched your search

+25 -1
View File
@@ -41,7 +41,7 @@ for declaring such delegated routes.)
## 2. What happens when a client keys up
A client (an SvxLink node) selects a TG and presses PTT. Two cases:
A client (an SvxLink node) selects a TG and presses PTT. Three cases:
- **The TG is owned locally.** The reflector behaves exactly like stock
SvxReflector: it relays the audio to every other local client on that TG. If
@@ -50,10 +50,34 @@ A client (an SvxLink node) selects a TG and presses PTT. Two cases:
- **The TG is owned by a peer.** The reflector forwards the audio over the trunk
to the owning peer (selected by longest-prefix-match). The owner then relays
it — see below.
- **The TG matches no prefix in the mesh.** It has no owner, so it is **never
sent over any trunk** (`isSharedTG` finds no link to forward on). It still
relays locally among that reflector's own clients, exactly like stock
SvxReflector — it is simply a **local-only** talk group.
The client never knows or cares which reflector owns the TG. That is the whole
point: nodes stay unmodified.
### Local numbering is opt-in — but the number decides routing
A reflector does **not** impose the prefix convention on its nodes; a node may
pick any TG number. What matters is that routing is decided **solely by
longest-prefix-match on the number, regardless of its length**:
- Conforming numbers are routable — wherever their prefix points, provided that
prefix is owned by a reflector in the mesh. This is length-independent: if
Italy's `222` is owned, `22210` routes to its owner just as surely as `222`
itself does; likewise `26201` routes to the owner of Germany's `262`.
- A number that matches no mesh prefix has no owner and stays **local-only**
(e.g. a short `1`–`199` TG in a typical MCC scheme, where countries live in
`200`–`799` — it stays local only because nothing owns that prefix).
So: **obey the convention to be reachable; use a non-matching number to stay
local.** This lets a reflector keep private local TGs alongside its routable,
mesh-facing ones — with one caveat: a number you *intended* as local but that
happens to match a configured prefix **will** be sent to that owner. The number
is the routing key; there is no separate "make this local" switch.
---
## 3. Owner-relay: why the owner is the hub
+8
View File
@@ -487,6 +487,14 @@ recommendation; new cluster-TG assignments should follow the `100–199` /
- Longest-prefix-match decides the owner of any given TG, but only against
the prefixes a reflector has been explicitly configured to trunk to —
prefixes are not gossiped.
- Routing follows the **number, not its length**: a TG goes to the owner of
its longest matching prefix *that exists in the mesh* (e.g. `22210`→`222`,
`26201`→`262`, when those country prefixes are owned), while a TG that
matches **no** configured prefix has no owner and stays **local-only** —
it works among the originating reflector's own nodes but is never trunked.
Local TG numbering is thus the operator's choice; only numbers under the
agreed prefix scheme are reachable across the mesh (and a "local" number
that happens to match a prefix *will* be routed to that owner).
- Trunk relay is single-hop. Satellite mirror is independent of that rule.
- Owner fanout is gated by **peer interest** with a 10-minute idle window.
Interest is registered the first time a peer transmits on a TG.
Binary file not shown.
+8
View File
@@ -656,6 +656,14 @@ the <code>100–199</code> / <code>800–999</code> rule.</p>
<h3 style="page-break-after: avoid;">Properties that hold across all variants</h3>
<ul style="page-break-inside: avoid;">
<li>Longest-prefix-match decides the owner of any given TG.</li>
<li>Routing follows the <strong>number, not its length</strong>: a TG goes to
the owner of its longest matching prefix that exists in the mesh (e.g.
<code>22210</code>&rarr;<code>222</code>, <code>26201</code>&rarr;<code>262</code>,
when those country prefixes are owned). A TG matching <strong>no</strong>
configured prefix has no owner and stays <strong>local-only</strong> —
it relays among the originating reflector's own nodes but is never trunked.
Local TG numbering is the operator's choice; only numbers under the agreed
prefix scheme are reachable across the mesh.</li>
<li>Trunk relay is single-hop. Satellite mirror is independent of that
rule.</li>
<li>Owner fanout is gated by <strong>peer interest</strong> with a