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

44 lines
1.6 KiB
Plaintext

// Hybrid — two-domain trunk topology (intl + national, joined at IT 222),
// plus an MI club satellite hanging off Z2 over port :5303.
graph Hybrid {
layout = neato;
bgcolor = "transparent";
margin = 0.3;
overlap = false;
splines = true;
node [shape=box, style="filled,rounded", fontname="Helvetica-Bold",
fontsize=13, penwidth=2, width=1.0, height=0.65, fixedsize=true];
// International domain on the left
SE [label="SE\n240", fillcolor="#dde8fb", color="#1a4fa3", pos="-2.8, 0.9!"];
DE [label="DE\n262", fillcolor="#dde8fb", color="#1a4fa3", pos="-2.8,-0.9!"];
// Country gateway (hinge)
IT [label="IT\n222", fillcolor="#fde2d4", color="#c0531c", pos="0,0!"];
// National domain on the right
Z1 [label="IT-Z1\n2221", fillcolor="#dff3e0", color="#1e7d34", pos="2.6, 1.5!"];
Z2 [label="IT-Z2\n2222", fillcolor="#dff3e0", color="#1e7d34", pos="3.1, 0.5!"];
Z3 [label="IT-Z3\n2223", fillcolor="#dff3e0", color="#1e7d34", pos="3.1,-0.5!"];
Z4 [label="IT-Z4\n2224", fillcolor="#dff3e0", color="#1e7d34", pos="2.6,-1.5!"];
// Satellite hanging off Z2 (NAT'd club reflector)
MI [label="MI club\n(satellite)\nfilter=2222*",
fillcolor="#fff4d6", color="#a37300", style="filled,rounded,dashed",
height=0.95, width=1.4, pos="5.6, 0.5!"];
edge [color="#5f6368", penwidth=1.2];
// Two domains joined at IT
SE -- DE; SE -- IT; DE -- IT;
IT -- Z1; IT -- Z2; IT -- Z3; IT -- Z4;
Z1 -- Z2; Z1 -- Z3; Z1 -- Z4;
Z2 -- Z3; Z2 -- Z4;
Z3 -- Z4;
// Satellite mirror edge (Z2 ↔ MI)
edge [color="#a37300", penwidth=2.0, style=dashed];
Z2 -- MI;
}