Pie in the Sky: backhaul for POPs cut off from the backbone
A pie dish at a POP the backbone does not reach now lifts all of that POP's own traffic to a landing dish on the backbone (bent pipe within 1,000 km, lasers past that): one virtual edge, capacity min(dish, landing dish, crust) after terminals, latency the orbit path. Its IGP weight is Infinity; only the cut-off POP's paths are rerun with it (pieRelink), so POPs on the backbone never route through orbit and saves without a cut-off dish route exactly as before. Spats, safe mode, a down crust, landing rights and backhoes cut it. A cut-off dish now reports 'backhaul' or 'isl' (it said 'ok' when it had local terminals). Rule O3 now reads: a cut-off pie dish carries only its own POP's traffic and local terminals, never transit between other cities.
This commit is contained in:
parent
4ad080cb91
commit
940ce0df10
6 changed files with 94 additions and 41 deletions
|
|
@ -71,14 +71,16 @@ test('O2: a half-baked crust carries nothing, and orbit never carries more than
|
|||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('O3: a dish whose POP is off the backbone is flagged and carries no transit, only its own terminals', () => {
|
||||
test('O3: a dish whose POP is off the backbone is flagged and carries only its own POP\'s traffic and its terminals', () => {
|
||||
const { ev, errors } = load();
|
||||
world(ev);
|
||||
ev("ACT.buildPop({city:'syd'});ACT.pieDish({city:'syd'});S.pie.lic.AU={state:'ok',until:1e6};for(const x of S.pie.dishes)x.ant=PIE_ANT_MAX;compute()");
|
||||
assert.deepEqual(ev('JSON.stringify(R.pie.isl)'), '["syd"]', 'Sydney has no fiber to the rest');
|
||||
circuit(ev, 'hs', 'lon', 'syd');
|
||||
assert.equal(ev('R.l2.hs||0'), 0, 'no way through the island dish');
|
||||
assert.equal(ev("Object.keys(R.ef).some(k=>k.includes('syd'))"), false);
|
||||
assert.equal(ev('R.l2.hs'), 5, "a circuit to Sydney is Sydney's own traffic: it rides the backhaul");
|
||||
assert.ok(ev("R.ef['pie:bh:syd'].eg['l2:hs']") > 0);
|
||||
circuit(ev, 'ln', 'lon', 'nyc');
|
||||
assert.equal(ev("Object.keys(R.ef).some(k=>k.includes('syd')&&R.ef[k].eg['l2:ln']>0)"), false, 'never transit between other cities');
|
||||
// a home next to it still lands there (bent pipe, local only)
|
||||
term(ev, 'pz', 'cbr');
|
||||
assert.equal(ev('R.pie.gs.pz'), 'syd');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue