Selective peers will not meet you where a satellite is your only way out (#83)
An island or remote town that only satellite circuits join to the rest of your network (satOnly: no built wave, fiber, cable or pie dish there, its fastest circuit otherwise) is a place many selective networks will not peer: they would hand you traffic for your whole network to haul through orbit. Like remote peering, the verdict is stable per network (a hash): 60 in 100 selective networks refuse a GEO hop, 15 in 100 a MEO one, and every network that minds MEO minds GEO too. It is judged on what is built, never on today's cuts, so the single-spur trap does not also pause your peering mid-outage. peerOk refuses new IX sessions and PNIs there with one line naming the orbit and the circuit's round trip; ixSessions leaves an existing session out while the island is satellite-only, without deleting it from S.peers, so it carries again once a wave or cable is lit. Existing PNIs stay. No new state, nothing for saves.
This commit is contained in:
parent
ae78e82ddb
commit
1f76639b8f
12 changed files with 77 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ function peerOk(id,via,city){
|
|||
const sn=snub(id,city);if(sn&&(via==='ix'||sn.all))return {ok:false,snub:true,why:snubWhy(sn)};
|
||||
if(msfNope(id,city))return {ok:false,why:tr(MSF_NOPE[hstr(ixCity(city)+S.day)%MSF_NOPE.length])};
|
||||
if(via==='ix'&&city&&isRemote(city)&&noRemote(id))return {ok:false,remote:true,why:REMOTE_WHY[hstr(id)%REMOTE_WHY.length]};
|
||||
if(city&&(via==='ix'||via==='pni')){const w=satPeerWhy(id,ixCity(city));if(w)return {ok:false,sat:true,why:w};}
|
||||
if(n.pol==='open')return {ok:true};
|
||||
// In the Cogentle Spat, Goggle's peering desk wants eight times the usual traffic first, so cheap Cogentle-only transit really costs you Goggle (playtest).
|
||||
if(n.pol==='selective'){const need=Math.round((via==='pni'?n.minPni:n.minIx)*confBoost(id)*salesPeerMul()*(id==='ggl'&&scnRule('spat')?8:1));return dem>=need?{ok:true}:{ok:false,why:tr('sold_out.wants_need_gbps_of_traffic_from',{need,dem:dem.toFixed(1)})};}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue