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.
This commit is contained in:
parent
7c65b9e7ed
commit
f303f29f22
16 changed files with 86 additions and 24 deletions
|
|
@ -128,14 +128,15 @@ never freezes the game.
|
|||
(`S.pairMet`) and sets the edge's weight; Dijkstra gives shortest paths from each POP.
|
||||
Links on standby (`l.standby`) add their capacity to the edge, but when loads are
|
||||
handed back to links the active ones fill first and standby links take the rest.
|
||||
2. Builds the exit list `E`: embedded caches (rank 0), PNIs (1), IX ports (2),
|
||||
2. Builds the exit list `E`: embedded caches (rank 0), PNIs and IX ports (2, both peering),
|
||||
transit (3). Each exit has a capacity, the networks it can reach (`ok(net)`) and an
|
||||
egress preference (`high`, `normal`, `low` = backup only). A transit port can also be set to
|
||||
carry (`t.carry`): see step 4.
|
||||
3. Builds flows: for every POP, its demand (eyeballs and customers) split across
|
||||
destination networks by their traffic share (`NSH`, with regional variants for
|
||||
China, Russia and Korea). Incidents can add junk flows or scale demand.
|
||||
4. Routes flows rank by rank: the nearest usable exit first, ECMP across equal exits,
|
||||
4. Routes flows rank by rank: the nearest usable exit first, ECMP across equal exits (a PNI goes before an
|
||||
IX port at the same distance: `PNI_TIE`, #298),
|
||||
consuming link, router (`nodeCap`) and exit capacity. A carrier's own transit port also
|
||||
goes first, before plain transit, for traffic bound for that carrier or for a network that buys
|
||||
transit from it (`25-direct-egress.js`: the shorter AS path): always at its own POP, and from every
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue