docs: state the international trunk section-name standard

International trunk sections are named TRUNK_<ISO>_<ISO> using each
country's ISO 3166-1 alpha-2 code with the two codes in alphabetical order
(e.g. TRUNK_DE_FR, TRUNK_DE_IT). Sorting alphabetically makes the name
deterministic so both sysops independently arrive at the same section name
with no 'my country first' dispute.

This convention was already used and explained in WW_DEPLOYMENT.md but was
only a passing 'readable convention' note in INSTALL.md and absent from the
README section-name rule (the most-read spot). State it as the standard in
README section 4 and INSTALL.md section 6b, with the rationale.
This commit is contained in:
Audric committed 2026-06-17 17:18:41 +02:00
1 parent 09db2b5326
commit 70de93f19e
2 files changed
+23 -3

No files matched your search

+18
View File
@@ -361,6 +361,24 @@ link. For example, if reflectors A and B want to link, both configs must use the
same name (e.g. `[TRUNK_AB]`). A connection from a peer whose section name does same name (e.g. `[TRUNK_AB]`). A connection from a peer whose section name does
not match any local section will be rejected. not match any local section will be rejected.
**International naming standard.** For links between countries, name the section
`TRUNK_<ISO>_<ISO>` using each country's ISO 3166-1 alpha-2 code, with the two
codes in **alphabetical order**:
```ini
# Germany (DE) <-> France (FR): "DE" sorts before "FR"
[TRUNK_DE_FR]
# Italy (IT) <-> Germany (DE): alphabetical -> DE before IT
[TRUNK_DE_IT]
```
Alphabetical order makes the name deterministic, so both sysops independently
arrive at the *same* section name with no "my country goes first" dispute. (For
sub-national links, any agreed-upon shared name works — see
[`docs/WW_DEPLOYMENT.md`](docs/WW_DEPLOYMENT.md) for the full international
convention.)
### 5. Routable prefixes — hierarchical and non-full-mesh topologies (optional) ### 5. Routable prefixes — hierarchical and non-full-mesh topologies (optional)
In a standard full mesh every pair of reflectors has a direct trunk link, so In a standard full mesh every pair of reflectors has a direct trunk link, so
+5 -3
View File
@@ -188,9 +188,11 @@ REMOTE_PREFIX=240
``` ```
- **The section name must be identical on both sides.** Both sysops must agree - **The section name must be identical on both sides.** Both sysops must agree
on a shared name (e.g. `TRUNK_DE_SE` for the link between Germany (`262`) on a shared name. For international links the standard is
and Sweden (`240`); ISO 3166-1 alpha-2 codes in alphabetical order is a `TRUNK_<ISO>_<ISO>` using each country's ISO 3166-1 alpha-2 code, with the two
readable convention). codes in **alphabetical order** — e.g. `TRUNK_DE_SE` for Germany (`262`) and
Sweden (`240`). Sorting alphabetically makes the name deterministic, so both
sysops reach the same name independently with no "my country first" dispute.
- `PORT` defaults to `5302` if omitted. - `PORT` defaults to `5302` if omitted.
- Both sides must use the same `SECRET`. - Both sides must use the same `SECRET`.
- `REMOTE_PREFIX` also accepts a comma-separated list. - `REMOTE_PREFIX` also accepts a comma-separated list.