Files
Audric 76a7f3dce0 docs(topology): document LOCAL_ALIASES, fix stale and incorrect claims
The PDF is built from docs/topology_pdf/ (HTML + Graphviz), not from
TOPOLOGY_EXAMPLES.md, so the two prose copies had drifted. Resync them
and correct several claims that no longer matched the code.

- Add a LOCAL_ALIASES overlay section (+ diagram 6): re-home a short local
  TG under an owned prefix so the mesh routes the long number while local
  clients keep dialing the short one. Translation happens at the trunk
  boundary only -- clients and satellites see the short number.

- Peer interest: MsgPeerTgInterest (type 129) lets a passive listener
  register interest without keying. The HTML still claimed the owner
  cannot fan a TG back until the peer transmits; corrected in the
  Background, the section-2 return leg, and the Properties list.

- Satellite trust model: per-satellite SECRET_<id> is implemented
  (Reflector::resolveSatelliteSecret); drop the "future work" note.

- SATELLITE_FILTER: filter entries are exact unless suffixed with "*"
  (TgFilter::parse), so the documented bare 2222/2224 values matched only
  those literal TGs. Use 2222* and document the syntax.

- Zones are no longer drawn as satellites. A satellite owns no prefix and
  inherits its parent's identity, so a prefix-owning Zone cannot be one.
  Zones now hang off IT 222 as sub-trunks (REMOTE_PREFIX supports a
  comma-separated list), shown with a mix of owned, local-only and aliased
  TGs. Note that ROUTABLE_PREFIXES=* forwards unowned TGs to the uplink,
  where the peer drops them.

- Merge the old section 3 into section 2 as a "sub-trunk star" variant --
  it was the same two-domain topology with a star instead of a full mesh.
  Satellite becomes section 3, twin section 4.

- Disable code-font ligatures: JetBrains Mono rendered SECRET_<id>= as
  SECRET_<id>= with the ">" swallowed by a ">=" ligature.
2026-07-13 10:26:23 +02:00

65 lines
2.6 KiB
Plaintext

// Sub-trunk star — IT 222 delegates Zone sub-prefixes over ordinary trunks.
// The Zones own their prefixes (unlike satellites) but hold a single uplink.
digraph SubTrunkStar {
layout = dot;
rankdir = TB;
bgcolor = "transparent";
margin = 0.3;
splines = true;
ranksep = 1.35;
nodesep = 0.7;
node [shape=box, style="filled,rounded", fontname="Helvetica-Bold",
fontsize=13, penwidth=2, width=1.05, height=0.65, fixedsize=true];
// Foreign country gateways (top row)
subgraph cluster_intl {
label = "International trunk mesh (port :5302)";
fontname = "Helvetica-Bold"; fontsize = 12; color = "#1a4fa3";
style = "rounded,dashed"; bgcolor = "#f4f8ff";
SE [label="SE\n240", fillcolor="#dde8fb", color="#1a4fa3"];
DE [label="DE\n262", fillcolor="#dde8fb", color="#1a4fa3"];
IT [label="IT\n222", fillcolor="#fde2d4", color="#c0531c"];
}
// Zone reflectors, sub-trunked to IT 222. They own delegated sub-prefixes.
subgraph cluster_zones {
label = "Italian sub-trunks (port :5302)";
fontname = "Helvetica-Bold"; fontsize = 12; color = "#1e7d34";
style = "rounded,dashed"; bgcolor = "#f5fbf6"; margin = 14;
Z1 [label="IT-Z1\n2221", fillcolor="#dff3e0", color="#1e7d34",
fixedsize=false, width=1.3];
Z24 [label="IT-Z2/Z4\n2222, 2224", fillcolor="#dff3e0", color="#1e7d34",
fixedsize=false, width=1.6];
}
// Annotation: the Zone side of every uplink
UP [label="each Zone's uplink to IT 222:\lREMOTE_PREFIX=222\lROUTABLE_PREFIXES=*\l",
shape=note, fillcolor="#fff9e6", color="#a37300",
style="filled,dashed", fontname="Helvetica", fontsize=10,
fixedsize=false];
// Annotation: a Zone mixes local-only TGs with aliased ones
MIX [label="IT-Z2/Z4 talk groups:\lTG 40 no owner → effectively local\lTG 8 LOCAL_ALIASES=8:2222008 → mesh-reachable\lTG 22241 owned outright (under 2224)\l",
shape=note, fillcolor="#eceff1", color="#5f6368",
style="filled,dashed", fontname="Helvetica", fontsize=10,
fixedsize=false];
// Trunk edges — international full mesh
edge [color="#5f6368", penwidth=1.5, dir=none, constraint=false];
SE -> DE; SE -> IT; DE -> IT;
// Sub-trunk edges — IT 222 down to each Zone (bidirectional trunks)
edge [color="#5f6368", penwidth=1.6, style=solid, dir=none,
constraint=true, fontname="Helvetica", fontsize=10,
fontcolor="#3c4043"];
IT -> Z1 [label=" REMOTE_PREFIX=2221 "];
IT -> Z24 [label=" REMOTE_PREFIX=2222,2224 "];
// Attach annotations
edge [color="#a37300", penwidth=1.2, style=dotted, dir=none, label=""];
Z1 -> UP;
edge [color="#5f6368"];
Z24 -> MIX;
}