Rent low-orbit satellite capacity from Starblink (#83)
A Starblink gateway on a teleport at a POP on your fiber (level 5, within 56 degrees of the equator) rents LEO circuits of 5 to 50 Gbps to small islands and remote towns within 1,200 km: a bent pipe 550 km up, about 30 ms round trip, 3% of the service counted as bad, and no selective network refuses it. LEO puts GEO and MEO circuits on the same pair on standby and waits beside a cable. The gateway's Infra section shows its POP's forwarding load and the fiber out of the city, the islands' bottleneck. A rare solar storm (and Pie's own) puts LEO in safe mode for a day or two. Once your own crust carries traffic Starblink sells nothing new. Rule O8. Hooks for island Wi-Fi: leoReachLL, leoKmLL, leoMsLL.
This commit is contained in:
parent
08eb349d87
commit
7967a29083
25 changed files with 692 additions and 46 deletions
|
|
@ -2,8 +2,9 @@
|
|||
// A server-run network's page loads the server's state with migrate() (it never trusts state it did not check), and
|
||||
// the server checks every action against the save path; both need migrate(live S) to change nothing. A year of a big
|
||||
// network with everything on (DDoS, failures, events, the intern on every order, the sales desk on auto, IPv6-only, and
|
||||
// once before the year everything else a network can own: an own exchange, scrubbing centers, teleports, satellites,
|
||||
// dark fiber, an own cable, a subsea seat, exchange points, the backbone core, the redundancy kit, the bulk orders),
|
||||
// once before the year everything else a network can own: an own exchange, scrubbing centers, teleports, LEO gateways,
|
||||
// satellites, dark fiber, an own cable, a subsea seat, exchange points, the backbone core, the redundancy kit, the bulk
|
||||
// orders),
|
||||
// checked every day. T1_BASE=<git ref> also plays the same year on the page at that ref: the same money, customers,
|
||||
// incidents, dice and ids every day, so making the state canonical changed no play.
|
||||
const test = require('node:test');
|
||||
|
|
@ -29,6 +30,8 @@ function open(file) {
|
|||
for(const c of pops.slice(0,40)){if(Object.keys(S.myIx).length)break;tryA('foundIx',{city:c});}
|
||||
for(const c of pops.slice(0,6))tryA('buildScrub',{city:c});
|
||||
for(const c of pops.slice(0,4))tryA('teleBuild',{city:c});
|
||||
for(const c of pops.slice(0,4))tryA('teleLeo',{city:c});
|
||||
{let n=0;for(const a of pops.slice(0,4))for(const b of satTargets(a)){if(n>=1)break;if(!satWhy(a,b,LEO_BIRD,5)){tryA('buySat',{a,b,bird:LEO_BIRD,g:5});n++;}}}
|
||||
{let n=0;for(const a of pops.slice(0,12))for(const b of pops.slice(12,30)){if(n>=2)break;for(const bird of Object.keys(SATS))for(const g of [1,2,5,10]){if(n>=2)break;if(!satWhy(a,b,bird,g)){tryA('buySat',{a,b,bird,g});n++;}}}}
|
||||
{let n=0;for(const a of pops.slice(0,10))for(const b of pops.slice(10,40)){if(n>=2)break;if(kmBetween(a,b)<900&&!noTalk(a,b)){UI.pending={a,b};UI.dfSrc='build';const k=S.links.length;tryA('orderDf');if(S.links.length>k)n++;}}}
|
||||
{let n=0;for(const a of pops.slice(0,30))for(const b of Object.keys(CITY)){if(n>=1)break;if(S.pops[b]||a===b)continue;UI.pending={a,b};const k=S.links.length;if(!ownCabWhy(a,b)){tryA('orderCable');if(S.links.length>k)n++;}}}
|
||||
|
|
@ -41,7 +44,7 @@ function open(file) {
|
|||
UI.pending=null;closeModal();compute();`);
|
||||
return h;
|
||||
}
|
||||
const BUILT = ['foundIx', 'buildScrub', 'teleBuild', 'buySat', 'orderDf', 'orderCable', 'seatBuy', 'coreUp', 'xpBuild', 'utilityKit', 'pniAll', 'bstdApply'];
|
||||
const BUILT = ['foundIx', 'buildScrub', 'teleBuild', 'teleLeo', 'buySat', 'orderDf', 'orderCable', 'seatBuy', 'coreUp', 'xpBuild', 'utilityKit', 'pniAll', 'bstdApply'];
|
||||
|
||||
// In the page: every top-level key whose JSON differs between live S and what a reload makes of it, both ways a reload
|
||||
// happens (the full state a page takes, and the save text). uidN and the dice are put back: a reload may draw ids.
|
||||
|
|
@ -82,6 +85,7 @@ test(`a year of a big network with everything on: live state is what a reload ma
|
|||
const did = JSON.parse(head.ev('JSON.stringify(__did)'));
|
||||
assert.deepEqual(did.filter((x) => / threw /.test(x)), [], 'nothing threw while building');
|
||||
for (const a of BUILT) assert.ok(did.includes(a), `${a} built something before the year (${did.join(', ')})`);
|
||||
assert.ok(head.ev('S.links.some(l=>l.bird===LEO_BIRD)'), 'a LEO circuit before the year');
|
||||
assert.equal(head.ev('S.slAuto.on'), true);
|
||||
assert.ok(head.ev("Object.values(S.pops).filter(p=>p.bb&&(p.bb.v6||p.bb.v6e)).length") >= 3, 'IPv6-only homes on the way');
|
||||
const seen = { ddos: 0, inc: 0, starts: 0 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue