From 70de93f19eee1b2bf3ef52969832e02999a0f77b Mon Sep 17 00:00:00 2001 From: Audric Date: Wed, 17 Jun 2026 17:18:41 +0200 Subject: [PATCH] docs: state the international trunk section-name standard International trunk sections are named TRUNK__ 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. --- README.md | 18 ++++++++++++++++++ docs/INSTALL.md | 8 +++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 367d239..d0a9f06 100644 --- a/README.md +++ b/README.md @@ -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 not match any local section will be rejected. +**International naming standard.** For links between countries, name the section +`TRUNK__` 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) In a standard full mesh every pair of reflectors has a direct trunk link, so diff --git a/docs/INSTALL.md b/docs/INSTALL.md index dc74c72..920d545 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -188,9 +188,11 @@ REMOTE_PREFIX=240 ``` - **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`) - and Sweden (`240`); ISO 3166-1 alpha-2 codes in alphabetical order is a - readable convention). + on a shared name. For international links the standard is + `TRUNK__` using each country's ISO 3166-1 alpha-2 code, with the two + 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. - Both sides must use the same `SECRET`. - `REMOTE_PREFIX` also accepts a comma-separated list.