RouteScript optimizer: smarter tips after #96
Suggest protect customers only where IP customers would get unhappy (under 95% served): it costs a second routing pass, about +65% on a big network. Point at the exchange the network actually peers at, where you have no port yet, instead of the city's main IX. And the draft admits it has never been paged at 3 a.m.
This commit is contained in:
parent
1858098a4d
commit
1473fb0627
4 changed files with 12 additions and 6 deletions
|
|
@ -201,6 +201,10 @@ test('RouteScript BGP: local-pref and prepending move transit, protected custome
|
|||
assert.match(draft, /prefer transit cogentle/);
|
||||
assert.match(draft, /peers at DE-KICKS/);
|
||||
assert.equal(ev('teParse(teOptimize()).errors.length'), 0, 'the draft is a valid script');
|
||||
// With room to spare, protecting customers would only cost a second routing pass, so it is not suggested.
|
||||
ev("S.pops.fra.bb.d=5;S.te.script='';compute()");
|
||||
assert.ok(ev("sfOf(R,'fra')") >= 0.95);
|
||||
assert.doesNotMatch(ev('teOptimize()'), /protect customers/);
|
||||
ev("S.te.script='';ACT.teEdit();ACT.teOpt()");
|
||||
assert.match(ev("document.getElementById('teSrc').value"), /Suggested by the optimizer/);
|
||||
assert.deepEqual(errors, []);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue