Dark fiber leases cost half as much again (#203)
A leased pair was $400 + $1/km a month, so a single 400G wave on the same route cost two to three times the whole fiber. It is now $600 + $1.50/km (amplifiers as before): a lease pays off at a couple of 400G waves, as dark fiber does. Leases already signed keep their price (l.mo). Alien-wave rent follows, since it is priced against the fiber. The differential route fuzz now also compares link prices, so a deliberate price change compares this checkout with itself, as a change to the world already does.
This commit is contained in:
parent
8841fdacb9
commit
b9860edc77
4 changed files with 23 additions and 5 deletions
|
|
@ -16,10 +16,11 @@ function pages() {
|
|||
let base = head;
|
||||
try { const b = path.join(os.tmpdir(), `tubes-fuzz-test-${process.pid}-base.html`); fs.writeFileSync(b, page.assembleRef('origin/main')); base = b; } catch (e) {}
|
||||
let P = { base: openPage(base, 'base'), head: openPage(head, 'head') };
|
||||
// A change to the world itself (cities, networks, cables) cannot route like main: there is no same game to compare.
|
||||
// Then the base is this checkout too, and the cache on/off check still runs; equivalence with main resumes once it lands.
|
||||
const world = (p) => p.ev("JSON.stringify([CITIES.map(c=>[c.id,c.land,c.P]),NETS.map(n=>[n.id,n.pops,n.ix,n.share,n.price,n.up]),CABLES.map(c=>[c.id,c.pairs.map(q=>[q[0],q[1]])])])");
|
||||
if (base !== head && world(P.base) !== world(P.head)) { console.log('# route fuzz: the world differs from main, so both pages are this checkout'); P = { base: openPage(head, 'base'), head: P.head }; }
|
||||
// A change to the world itself (cities, networks, cables) or to what links cost cannot route like main: there is no
|
||||
// same game to compare. Then the base is this checkout too, and the cache on/off check still runs; equivalence with
|
||||
// main resumes once it lands.
|
||||
const world = (p) => p.ev("JSON.stringify([CITIES.map(c=>[c.id,c.land,c.P]),NETS.map(n=>[n.id,n.pops,n.ix,n.share,n.price,n.up]),CABLES.map(c=>[c.id,c.pairs.map(q=>[q[0],q[1]])]),[1,300,3000].map(k=>[dfLeaseMo(k),waveMo(k,false,2),dfBuildCost(k)])])");
|
||||
if (base !== head && world(P.base) !== world(P.head)) { console.log('# route fuzz: the world or its prices differ from main, so both pages are this checkout'); P = { base: openPage(head, 'base'), head: P.head }; }
|
||||
return P;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue