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.
This commit is contained in:
Audric committed 2026-07-13 10:26:23 +02:00
1 parent a9b622b2c7
commit 76a7f3dce0
12 files changed
+763 -374

No files matched your search

+115
View File
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.42.4 (0)
-->
<!-- Title: SubTrunkStar Pages: 1 -->
<svg width="555pt" height="457pt"
viewBox="21.60 21.60 533.10 434.92" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(25.6 430.92)">
<title>SubTrunkStar</title>
<g id="clust1" class="cluster">
<title>cluster_intl</title>
<path fill="#f4f8ff" stroke="#1a4fa3" stroke-dasharray="5,2" d="M79.5,-307C79.5,-307 483.5,-307 483.5,-307 489.5,-307 495.5,-313 495.5,-319 495.5,-319 495.5,-363 495.5,-363 495.5,-369 489.5,-375 483.5,-375 483.5,-375 79.5,-375 79.5,-375 73.5,-375 67.5,-369 67.5,-363 67.5,-363 67.5,-319 67.5,-319 67.5,-313 73.5,-307 79.5,-307"/>
<text text-anchor="middle" x="281.5" y="-361.4" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">International trunk mesh (port :5302)</text>
</g>
<g id="clust2" class="cluster">
<title>cluster_zones</title>
<path fill="#f5fbf6" stroke="#1e7d34" stroke-dasharray="5,2" d="M74.5,-137C74.5,-137 338.5,-137 338.5,-137 344.5,-137 350.5,-143 350.5,-149 350.5,-149 350.5,-221 350.5,-221 350.5,-227 344.5,-233 338.5,-233 338.5,-233 74.5,-233 74.5,-233 68.5,-233 62.5,-227 62.5,-221 62.5,-221 62.5,-149 62.5,-149 62.5,-143 68.5,-137 74.5,-137"/>
<text text-anchor="middle" x="206.5" y="-219.4" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="12.00">Italian sub&#45;trunks (port :5302)</text>
</g>
<!-- SE -->
<g id="node1" class="node">
<title>SE</title>
<path fill="#dde8fb" stroke="#1a4fa3" stroke-width="2" d="M483.5,-354C483.5,-354 431.5,-354 431.5,-354 425.5,-354 419.5,-348 419.5,-342 419.5,-342 419.5,-319 419.5,-319 419.5,-313 425.5,-307 431.5,-307 431.5,-307 483.5,-307 483.5,-307 489.5,-307 495.5,-313 495.5,-319 495.5,-319 495.5,-342 495.5,-342 495.5,-348 489.5,-354 483.5,-354"/>
<text text-anchor="middle" x="457.5" y="-334.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">SE</text>
<text text-anchor="middle" x="457.5" y="-320.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">240</text>
</g>
<!-- DE -->
<g id="node2" class="node">
<title>DE</title>
<path fill="#dde8fb" stroke="#1a4fa3" stroke-width="2" d="M307.5,-354C307.5,-354 255.5,-354 255.5,-354 249.5,-354 243.5,-348 243.5,-342 243.5,-342 243.5,-319 243.5,-319 243.5,-313 249.5,-307 255.5,-307 255.5,-307 307.5,-307 307.5,-307 313.5,-307 319.5,-313 319.5,-319 319.5,-319 319.5,-342 319.5,-342 319.5,-348 313.5,-354 307.5,-354"/>
<text text-anchor="middle" x="281.5" y="-334.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">DE</text>
<text text-anchor="middle" x="281.5" y="-320.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">262</text>
</g>
<!-- SE&#45;&gt;DE -->
<g id="edge1" class="edge">
<title>SE&#45;&gt;DE</title>
<path fill="none" stroke="#5f6368" stroke-width="1.5" d="M419.27,-330.5C386.07,-330.5 352.86,-330.5 319.66,-330.5"/>
</g>
<!-- IT -->
<g id="node3" class="node">
<title>IT</title>
<path fill="#fde2d4" stroke="#c0531c" stroke-width="2" d="M131.5,-354C131.5,-354 79.5,-354 79.5,-354 73.5,-354 67.5,-348 67.5,-342 67.5,-342 67.5,-319 67.5,-319 67.5,-313 73.5,-307 79.5,-307 79.5,-307 131.5,-307 131.5,-307 137.5,-307 143.5,-313 143.5,-319 143.5,-319 143.5,-342 143.5,-342 143.5,-348 137.5,-354 131.5,-354"/>
<text text-anchor="middle" x="105.5" y="-334.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">IT</text>
<text text-anchor="middle" x="105.5" y="-320.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">222</text>
</g>
<!-- SE&#45;&gt;IT -->
<g id="edge2" class="edge">
<title>SE&#45;&gt;IT</title>
<path fill="none" stroke="#5f6368" stroke-width="1.5" d="M421.8,-354.16C394.93,-370.49 356.52,-390.76 319.5,-399.5 286.63,-407.26 276.37,-407.26 243.5,-399.5 206.48,-390.76 168.07,-370.49 141.2,-354.16"/>
</g>
<!-- DE&#45;&gt;IT -->
<g id="edge3" class="edge">
<title>DE&#45;&gt;IT</title>
<path fill="none" stroke="#5f6368" stroke-width="1.5" d="M243.27,-330.5C210.07,-330.5 176.86,-330.5 143.66,-330.5"/>
</g>
<!-- Z1 -->
<g id="node4" class="node">
<title>Z1</title>
<path fill="#dff3e0" stroke="#1e7d34" stroke-width="2" d="M158.5,-198C158.5,-198 88.5,-198 88.5,-198 82.5,-198 76.5,-192 76.5,-186 76.5,-186 76.5,-163 76.5,-163 76.5,-157 82.5,-151 88.5,-151 88.5,-151 158.5,-151 158.5,-151 164.5,-151 170.5,-157 170.5,-163 170.5,-163 170.5,-186 170.5,-186 170.5,-192 164.5,-198 158.5,-198"/>
<text text-anchor="middle" x="123.5" y="-178.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">IT&#45;Z1</text>
<text text-anchor="middle" x="123.5" y="-164.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">2221</text>
</g>
<!-- IT&#45;&gt;Z1 -->
<g id="edge4" class="edge">
<title>IT&#45;&gt;Z1</title>
<path fill="none" stroke="#5f6368" stroke-width="1.6" d="M99.06,-306.97C95.19,-290.31 91.7,-267.13 95.5,-247 98.72,-229.97 105.89,-211.8 112.16,-198.04"/>
<text text-anchor="middle" x="157.5" y="-250" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#3c4043"> &#160;REMOTE_PREFIX=2221 &#160;</text>
</g>
<!-- Z24 -->
<g id="node5" class="node">
<title>Z24</title>
<path fill="#dff3e0" stroke="#1e7d34" stroke-width="2" d="M324,-198C324,-198 233,-198 233,-198 227,-198 221,-192 221,-186 221,-186 221,-163 221,-163 221,-157 227,-151 233,-151 233,-151 324,-151 324,-151 330,-151 336,-157 336,-163 336,-163 336,-186 336,-186 336,-192 330,-198 324,-198"/>
<text text-anchor="middle" x="278.5" y="-178.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">IT&#45;Z2/Z4</text>
<text text-anchor="middle" x="278.5" y="-164.1" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="13.00">2222, 2224</text>
</g>
<!-- IT&#45;&gt;Z24 -->
<g id="edge5" class="edge">
<title>IT&#45;&gt;Z24</title>
<path fill="none" stroke="#5f6368" stroke-width="1.6" d="M143.64,-313.15C169.46,-300.74 203.18,-281.76 227.5,-258 245.21,-240.7 259.4,-216.07 268.27,-198.23"/>
<text text-anchor="middle" x="310.5" y="-250" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#3c4043"> &#160;REMOTE_PREFIX=2222,2224 &#160;</text>
</g>
<!-- UP -->
<g id="node6" class="node">
<title>UP</title>
<polygon fill="#fff9e6" stroke="#a37300" stroke-width="2" stroke-dasharray="5,2" points="137,-49.5 0,-49.5 0,-2.5 143,-2.5 143,-43.5 137,-49.5"/>
<polyline fill="none" stroke="#a37300" stroke-width="2" stroke-dasharray="5,2" points="137,-49.5 137,-43.5 "/>
<polyline fill="none" stroke="#a37300" stroke-width="2" stroke-dasharray="5,2" points="143,-43.5 137,-43.5 "/>
<text text-anchor="start" x="8" y="-34.5" font-family="Helvetica,sans-Serif" font-size="10.00">each Zone&#39;s uplink to IT 222:</text>
<text text-anchor="start" x="8" y="-23.5" font-family="Helvetica,sans-Serif" font-size="10.00">REMOTE_PREFIX=222</text>
<text text-anchor="start" x="8" y="-12.5" font-family="Helvetica,sans-Serif" font-size="10.00">ROUTABLE_PREFIXES=*</text>
</g>
<!-- Z1&#45;&gt;UP -->
<g id="edge6" class="edge">
<title>Z1&#45;&gt;UP</title>
<path fill="none" stroke="#a37300" stroke-width="1.2" stroke-dasharray="1,5" d="M115.49,-150.93C105.75,-123.48 89.39,-77.41 79.61,-49.84"/>
</g>
<!-- MIX -->
<g id="node7" class="node">
<title>MIX</title>
<polygon fill="#eceff1" stroke="#5f6368" stroke-width="2" stroke-dasharray="5,2" points="462,-52 193,-52 193,0 468,0 468,-46 462,-52"/>
<polyline fill="none" stroke="#5f6368" stroke-width="2" stroke-dasharray="5,2" points="462,-52 462,-46 "/>
<polyline fill="none" stroke="#5f6368" stroke-width="2" stroke-dasharray="5,2" points="468,-46 462,-46 "/>
<text text-anchor="start" x="201" y="-40" font-family="Helvetica,sans-Serif" font-size="10.00">IT&#45;Z2/Z4 talk groups:</text>
<text text-anchor="start" x="201" y="-29" font-family="Helvetica,sans-Serif" font-size="10.00">TG 40 &#160;&#160;&#160;&#160;&#160;no owner → effectively local</text>
<text text-anchor="start" x="201" y="-18" font-family="Helvetica,sans-Serif" font-size="10.00">TG 8 &#160;&#160;&#160;&#160;&#160;&#160;LOCAL_ALIASES=8:2222008 → mesh&#45;reachable</text>
<text text-anchor="start" x="201" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">TG 22241 &#160;&#160;owned outright (under 2224)</text>
</g>
<!-- Z24&#45;&gt;MIX -->
<g id="edge7" class="edge">
<title>Z24&#45;&gt;MIX</title>
<path fill="none" stroke="#5f6368" stroke-width="1.2" stroke-dasharray="1,5" d="M286.51,-150.93C296,-124.2 311.75,-79.82 321.61,-52.05"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.5 KiB