seriesoftubes/src/game/30-networks
Frederic Jung f303f29f22
PNIs and IX ports are both peering: traffic leaves at the nearest one (#298)
Routing tried every PNI (rank 1) before any IX port (rank 2), like a
local-pref above peering, so a PNI in London pulled New York's traffic
across the Atlantic even with the same network at the New York IX. PNIs
now route at rank 2 with the IX ports, nearest first. At the same distance
the PNI goes first: an IX port counts as PNI_TIE (0.001) further away,
far below any link weight (at least 1). Distances compare as
(Da-Db)+(dta-dtb) so exits at one distance stay exactly equal, and the
POP-local shortcut skips lists that mix PNIs and IX ports. Backup only and
RouteScript's prefer pni keep their say. The traceroute, the reference
allocation in the tests and the RouteScript help follow.
2026-11-06 06:31:21 +00:00
..
10-networks.js Sweden beyond Stockholm: Gothenburg, Malmö and Haparanda (closes #206) 2026-11-05 07:31:17 +01:00
20-rival-exchanges.js In-Vitro-IX ports at double GotchaFIX's price 2026-10-30 16:25:38 +11:00
30-long-tail.js Sweden beyond Stockholm: Gothenburg, Malmö and Haparanda (closes #206) 2026-11-05 07:31:17 +01:00
32-homegrown-eyeballs.js Sweden beyond Stockholm: Gothenburg, Malmö and Haparanda (closes #206) 2026-11-05 07:31:17 +01:00
35-glowball-sakura-lager.js Tests for the gameplay rules: world, networks, modes, content, fun and fairness, with documented exceptions; drop exchange ports in cities without an exchange 2026-10-29 07:13:56 +01:00
40-traffic-shares.js PNIs and IX ports are both peering: traffic leaves at the nearest one (#298) 2026-11-06 06:31:21 +00:00