diff --git a/CHANGELOG.md b/CHANGELOG.md
index a5e796b..3531294 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,12 +6,25 @@ All notable changes to this project are documented here. The project follows
## [Unreleased]
+## [1.12.0] — 2026-10-24
+
+- Korea's "sender pays" market. Transit into Seoul costs four times the
+ usual price, and the three incumbents, Kay-Tea, SK Broadbandit and LG
+ You-Pay-Plus, only peer over paid PNIs billed per gigabit you send them.
+ Glitch may quit Korea over the fees, Faceplant may quietly reroute Korean
+ users via Hong Kong, and the new Gangnam Style Peering scenario starts you
+ in Seoul. Collect all three PNIs for the Sender Pays badge.
+- Sparkly Seabone is a Tier 1 now (#23), with a backbone across the
+ Mediterranean, Europe and the Americas. New games need a PNI with all six
+ Tier 1s to go transit-free; saves from before this release keep the five.
+- Optical control plane meltdown: one bad update at your wave supplier, and
+ every wave you lease from it in a region goes dark at once. Your own dark
+ fiber carries on.
- New ways for things to go subtly wrong: LACP trouble (hash polarisation,
timer mismatches, a member in the wrong switch, min-links set a little too
keen), partial packet loss from dirty connectors, CRC errors and
microbursts (deep-buffer routers shrug those off), and PMTUD black holes
where pages to one network load halfway and stop.
-
- The top bar fits itself to the screen in every language: when labels get
long, the less important readouts step aside instead of wrapping over the
side panels.
diff --git a/package-lock.json b/package-lock.json
index 618dc2e..94a9678 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "seriesoftubes",
- "version": "1.11.0",
+ "version": "1.12.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "seriesoftubes",
- "version": "1.11.0",
+ "version": "1.12.0",
"devDependencies": {
"jsdom": "24.1.3"
},
diff --git a/package.json b/package.json
index 494cba4..942ee5b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "seriesoftubes",
- "version": "1.11.0",
+ "version": "1.12.0",
"description": "A cartoon browser game about building the internet.",
"private": true,
"homepage": "https://seriesoftub.es/",
diff --git a/site/i18n/it.js b/site/i18n/it.js
index b901175..a32f676 100644
--- a/site/i18n/it.js
+++ b/site/i18n/it.js
@@ -100,7 +100,6 @@
"Almost every Europe–Asia cable crosses Egypt. The tolls are legendary.":"Quasi ogni cavo Europa–Asia attraversa l’Egitto. I pedaggi sono leggendari.",
"Cars, engineers and Kehrwoche: every rack is swept on a strict rota. Nobody sells transit here, there is only the Spätzle-IX. Peer locally or haul your traffic to Frankfurt.":"Auto, ingegneri e Kehrwoche: ogni rack viene spazzato secondo turni rigorosi. Qui nessuno vende transit, c’è solo lo Spätzle-IX. Fai peering in loco o porta il tuo traffico fino a Frankfurt.",
"Asia's hub. Expensive, humid, very well connected.":"L’hub dell’Asia. Caro, umido, collegatissimo.",
-"Some of the fastest home broadband on the planet. The eyeballs here expect a lot.":"Alcune delle connessioni domestiche più veloci del pianeta. Gli eyeball qui pretendono molto.",
"Mainland China. Behind the Great Firewall, with its own rules for foreign networks.":"Cina continentale. Dietro il Great Firewall, con regole tutte sue per le reti straniere.",
"Mainland China. Enormous market, strict rules, and a famously congested border.":"Cina continentale. Mercato enorme, regole rigide e un confine notoriamente congestionato.",
"Where South America’s cables actually land. Europe, Africa and the US come ashore here, then ride a long backhaul south.":"Dove i cavi del Sud America approdano davvero. Europa, Africa e USA arrivano a riva qui, poi fanno un lungo backhaul verso sud.",
@@ -282,7 +281,6 @@
"The Kingdom’s incumbent. Once you are in, you stay in.":"L’incumbent del Regno. Una volta dentro, ci resti.",
"Qatar’s big operator. Paid peering only, and it sings the price list to you.":"Il grande operatore del Qatar. Solo peering a pagamento, e ti canta il listino prezzi.",
"Italy’s incumbent. Sweet on the outside, very firm about peering ratios.":"L’incumbent d’Italia. Dolce fuori, rigidissimo sui rapporti di peering.",
-"Italy’s carrier. Born in Sicily and still very proud of Palermo.":"Il carrier d’Italia. Nato in Sicilia e ancora fierissimo di Palermo.",
"Fiber to the Italian home, with a website from 2003.":"Fibra nelle case italiane, con un sito web del 2003.",
"Portugal’s incumbent. Purrs when you send it traffic.":"L’incumbent del Portogallo. Fa le fusa quando gli mandi traffico.",
"Peers with anyone, and wants to know everything about your routes.":"Fa peering con chiunque, e vuole sapere tutto delle tue rotte.",
@@ -449,7 +447,6 @@
"Serve 10 Tbps":"Servi 10 Tbps",
"Ten terabits per second of happy traffic. The giants will notice.":"Dieci terabit al secondo di traffico felice. I giganti se ne accorgeranno.",
"Go transit-free: Tier 1!":"Liberati dal transit: Tier 1!",
-"Peer with all five Tier 1s over PNIs and cancel every transit port. Then nobody charges you to reach the internet.":"Fai peering con tutti e cinque i Tier 1 via PNI e disdici ogni porta di transit. Così nessuno ti fa pagare per raggiungere internet.",
"Only lends to people who do not need it.":"Presta soldi solo a chi non ne ha bisogno.",
"Very solid. Mostly.":"Solidissima. Più o meno.",
"Lends you money and also a little bit of their own.":"Ti presta soldi, e ogni tanto pure un po’ dei suoi.",
@@ -1808,7 +1805,6 @@
"Wave markets":"Mercati delle wave",
"What a wave costs depends on where it runs. Europe is cheap (lots of competing fiber), North America is average, Asia and South America are pricier, and anything into Africa is several times the price. Every route has its own going rate, and new leases get about 8% cheaper each year, so waiting can pay. The link planner tells you how a route compares.":"Quanto costa una wave dipende da dove passa. L’Europa è economica (tanta fibra in concorrenza), il Nord America nella media, Asia e Sud America più care, e qualsiasi cosa verso l’Africa costa diverse volte tanto. Ogni rotta ha il suo prezzo di mercato, e i nuovi contratti costano circa l’8% in meno ogni anno, quindi aspettare può convenire. Il pianificatore di link ti dice come si piazza una rotta.",
"Regional quirks":"Stranezze regionali",
-"In the Gulf, Saudi POPs need a local telecom licence and data on Saudi users stays in the Kingdom; gigaprojects ask for huge demo networks; and now and then the neighbours fall out and every link between Qatar and Saudi Arabia or the UAE goes dark for months, so keep a sea route. South America hangs off Miami: transit is pricier, nothing crosses the Darién Gap by land, and fiber over the Andes costs double and breaks often. IX.brrr in Brazil is run by a nonprofit with cheap public prices, and small Brazilian provedores buy transit in bulk. Inside the UAE only the duopoly may run fiber, so no dark fiber and 3× waves. Taiwan’s cables meet a lot of anchors, Indian fiber meets road widening and the monsoon, and South Africa has load shedding: bring a generator.":"Nel Golfo, i POP sauditi richiedono una licenza telecom locale e i dati degli utenti sauditi restano nel Regno; i gigaprogetti chiedono enormi reti dimostrative; e ogni tanto i vicini litigano e ogni link tra Qatar e Arabia Saudita o Emirati va al buio per mesi, quindi tieniti una rotta via mare. Il Sud America è appeso a Miami: il transit costa di più, niente attraversa il Darién Gap via terra, e la fibra sulle Ande costa il doppio e si rompe spesso. IX.brrr in Brasile è gestito da un ente non profit con prezzi pubblici bassi, e i piccoli provedores brasiliani comprano transit all’ingrosso. Negli Emirati solo il duopolio può posare fibra, quindi niente dark fiber e wave a 3×. I cavi di Taiwan incontrano un sacco di ancore, la fibra indiana incontra allargamenti stradali e monsoni, e il Sudafrica ha il load shedding: porta un generatore.",
"Boot times":"Tempi di boot",
"Some routers take forever to boot. The Infra tab shows how long yours takes. Slow booters make crashes last longer and turn a one-router swap into a three-day outage. Bigger chassis, especially anything with a PacketOinker™ inside, are slow more often. Twin routers make it someone else’s problem.":"Alcuni router ci mettono una vita ad avviarsi. La scheda Infra mostra quanto ci mette il tuo. I router lenti al boot allungano i crash e trasformano la sostituzione di un router singolo in un disservizio di tre giorni. Gli chassis più grandi, soprattutto quelli con dentro un PacketOinker™, sono lenti più spesso. Con due router diventa un problema di qualcun altro.",
"Failures":"Guasti",
@@ -1930,4 +1926,25 @@
"LACP trouble":"Problemi LACP",
"Packet loss":"Perdita di pacchetti",
"PMTUD black hole":"Buco nero PMTUD",
+"Some of the fastest home broadband on the planet, and the strangest peering market. Under “sender pays”, the big three ISPs charge for every gigabit handed to them, and transit here is among the priciest anywhere.":"Una delle bande larghe domestiche più veloci del pianeta, e il mercato del peering più strano. Con il “sender pays”, i tre grandi ISP fanno pagare ogni gigabit che gli consegni, e qui il transit è tra i più cari al mondo.",
+"Korea’s incumbent. Sender pays: every gigabit you hand it is billed, on top of the port.":"L’incumbent coreano. Sender pays: ogni gigabit che gli consegni si paga, oltre alla porta.",
+"Took a streaming giant to court over who pays for the traffic its own customers asked for. Paid peering, per gigabit.":"Ha portato in tribunale un gigante dello streaming per decidere chi paga il traffico richiesto dai suoi stessi clienti. Peering a pagamento, a gigabit.",
+"The plus is a usage fee. Paid peering, per gigabit.":"Il plus è una tariffa d’uso. Peering a pagamento, a gigabit.",
+"Sender pays: a paid PNI only, {fee}/mo plus {g} per Gbps you send":"Sender pays: solo PNI a pagamento, {fee}/mese più {g} per ogni Gbps che invii",
+"Glitch is leaving Korea.
The game-streaming site says Korean network fees are “prohibitively expensive” and shuts down there. Its Seoul traffic drops by half, for good. Local streamers have already moved on.":"Glitch lascia la Corea.
Il sito di streaming di videogiochi dice che le tariffe di rete coreane sono “proibitive” e chiude lì. Il suo traffico a Seoul si dimezza, per sempre. Gli streamer locali sono già passati ad altro.",
+"Faceplant got tired of Korean usage fees and quietly moved Korean users to its Hong Kong servers. Pages crawl in for everyone in Seoul. The regulator is drafting a fine.":"Faceplant si è stancata delle tariffe d’uso coreane e ha spostato in silenzio gli utenti coreani sui server di Hong Kong. Le pagine arrivano a passo d’uomo per tutti a Seoul. Il regolatore sta preparando una multa.",
+"Faceplant rerouted Korea via Hong Kong.
Seoul users get a fifth less of it for 20 days, however you connect.":"Faceplant ha instradato la Corea via Hong Kong.
Gli utenti di Seoul ne ricevono un quinto in meno per 20 giorni, comunque tu sia connesso.",
+"Rerouted via Hong Kong":"Instradato via Hong Kong",
+"Gangnam Style Peering":"Gangnam Style Peering",
+"Seoul. The fastest, hungriest eyeballs on Earth, transit at four times the price, and three incumbents who bill you for every gigabit you send them.":"Seoul. Gli eyeball più veloci e affamati della Terra, transit a quattro volte il prezzo, e tre incumbent che ti fatturano ogni gigabit che gli mandi.",
+"99% reach and 200 Gbps served without going broke":"99% di copertura e 200 Gbps serviti senza andare in rovina",
+"Sender Pays":"Sender Pays",
+"Paid PNIs with all three Korean incumbents.":"PNI a pagamento con tutti e tre gli incumbent coreani.",
+"The Tier 1 that grew up in Sicily. Its Seabone backbone owns the Mediterranean and reaches deep into the Americas, and it still calls Palermo home.":"Il Tier 1 cresciuto in Sicilia. La sua dorsale Seabone domina il Mediterraneo e arriva in profondità nelle Americhe, e chiama ancora casa Palermo.",
+"Peer with every Tier 1 over PNIs and cancel every transit port. Then nobody charges you to reach the internet.":"Fai peering con ogni Tier 1 via PNI e disdici ogni porta di transit. Così nessuno ti fa pagare per raggiungere internet.",
+"In the Gulf, Saudi POPs need a local telecom licence and data on Saudi users stays in the Kingdom; gigaprojects ask for huge demo networks; and now and then the neighbours fall out and every link between Qatar and Saudi Arabia or the UAE goes dark for months, so keep a sea route. South America hangs off Miami: transit is pricier, nothing crosses the Darién Gap by land, and fiber over the Andes costs double and breaks often. IX.brrr in Brazil is run by a nonprofit with cheap public prices, and small Brazilian provedores buy transit in bulk. Inside the UAE only the duopoly may run fiber, so no dark fiber and 3× waves. Korea runs on “sender pays”: transit into Seoul costs about four times the usual price and the three incumbents only peer over paid PNIs, billed per gigabit you send them. Taiwan’s cables meet a lot of anchors, Indian fiber meets road widening and the monsoon, and South Africa has load shedding: bring a generator.":"Nel Golfo, i POP sauditi richiedono una licenza telecom locale e i dati degli utenti sauditi restano nel Regno; i gigaprogetti chiedono enormi reti dimostrative; e ogni tanto i vicini litigano e ogni link tra Qatar e Arabia Saudita o Emirati va al buio per mesi, quindi tieniti una rotta via mare. Il Sud America è appeso a Miami: il transit costa di più, niente attraversa il Darién Gap via terra, e la fibra sulle Ande costa il doppio e si rompe spesso. IX.brrr in Brasile è gestito da un ente non profit con prezzi pubblici bassi, e i piccoli provedores brasiliani comprano transit all’ingrosso. Negli Emirati solo il duopolio può posare fibra, quindi niente dark fiber e wave a 3×. La Corea funziona con il “sender pays”: il transit verso Seoul costa circa quattro volte il normale e i tre incumbent fanno peering solo con PNI a pagamento, fatturati per ogni gigabit che gli invii. I cavi di Taiwan incontrano un sacco di ancore, la fibra indiana incontra allargamenti stradali e monsoni, e il Sudafrica ha il load shedding: porta un generatore.",
+"Your wave supplier pushed one malformed update to its optical control plane, and it flooded every node. All {n} leased waves you have in {reg} are dark. Their status page says “degraded”.":"Il tuo fornitore di wave ha spinto un solo aggiornamento malformato sul suo control plane ottico, e ha inondato ogni nodo. Tutte le {n} wave in affitto che hai in {reg} sono spente. La loro status page dice “prestazioni ridotte”.",
+"Escalate to their CTO":"Scala al loro CTO",
+"Optical control plane meltdown!
Every leased wave in {reg} just went dark at once. Your own dark fiber is fine. This is why people own fiber.":"Meltdown del control plane ottico!
Tutte le wave in affitto in {reg} si sono spente insieme. La tua dark fiber va benissimo. Ecco perché la gente si compra la fibra.",
+"Control plane meltdown":"Meltdown del control plane",
};
diff --git a/site/index.html b/site/index.html
index 2df51fc..54a8b06 100644
--- a/site/index.html
+++ b/site/index.html
@@ -503,6 +503,8 @@ const POP_COST=20000, POP_MO=1500, EYE_RATE=150, CACHE_CAP=100, CACHE_MO=400;
const DAY_MS=2500, ROUTER_COST=15000, ROUTER_MO=1500, GEN_COST=12000, GEN_MO=600, DIVERSE=1.4;
const RU_BOX=40000, RU_BOX_MO=2000;
const UAE_LIC=15000,KSA_LIC=25000;
+// Korea: "sender pays" interconnection makes transit into Seoul about four times the usual price.
+const KR_TRANSIT=4;
const SITE2_COST=45000,SITE2_MO=3000,TE_COST=60000,TE_MO=4000;
const SITE2_N=[tr('The Other Building'),tr('Campus B (the one with parking)'),tr('Across-the-River DC'),tr('The Annex'),tr('Suburban Mega-shed'),tr('The Cheaper One'),tr('Formerly a Shopping Mall'),tr('Bunker Two')];
const siteName=(c,s)=>s==='b'?SITE2_N[hstr(c)%SITE2_N.length]:CITY[c].dc;
@@ -657,7 +659,7 @@ const CITIES=[
{id:'bom',name:'Mumbai',x:1385,y:488,land:'eu',reg:'AS',P:1100,india:true,ix:'Mumb-IX',dc:'Goregaon Tech Park'},
{id:'sin',name:'Singapore',x:1556,y:568,land:'eu',reg:'AS',P:450,ix:'Lah-IX',dc:'Equinox SG',note:tr('Asia\'s hub. Expensive, humid, very well connected.')},
{id:'hkg',name:'Hong Kong',x:1645,y:440,land:'eu',reg:'AS',P:600,ix:'HK-Kicks',dc:'Mega-Eye Plus'},
- {id:'icn',name:'Seoul',x:1722,y:302,land:'eu',reg:'AS',P:900,ix:'Kimch-IX',dc:'Gasan Digital Complex',note:tr('Some of the fastest home broadband on the planet. The eyeballs here expect a lot.')},
+ {id:'icn',name:'Seoul',x:1722,y:302,land:'eu',reg:'AS',P:900,kr:true,ix:'Kimch-IX',dc:'Gasan Digital Complex',note:tr('Some of the fastest home broadband on the planet, and the strangest peering market. Under “sender pays”, the big three ISPs charge for every gigabit handed to them, and transit here is among the priciest anywhere.')},
{id:'pek',name:'Beijing',x:1652,y:318,land:'eu',reg:'AS',P:1800,cn:true,arpu:0.6,ix:'',dc:'Zhongguancun DC',note:tr('Mainland China. Behind the Great Firewall, with its own rules for foreign networks.')},
{id:'sha',name:'Shanghai',x:1680,y:388,land:'eu',reg:'AS',P:2200,cn:true,arpu:0.6,ix:'',dc:'Lujiazui Data Center',note:tr('Mainland China. Enormous market, strict rules, and a famously congested border.')},
{id:'tok',name:'Tokyo',x:1795,y:320,land:'jp',reg:'AS',P:1400,ix:'JP-Naptime',dc:'Otemachi Tower'},
@@ -872,7 +874,7 @@ NETS.push({id:'stc',name:'Sticky Telecom',asn:39368,type:'t2',pol:'selective',mi
{id:'ord',name:'Ooh-redoo',asn:8871,type:'eye',pol:'paid',paidFee:5000,share:.004,col:'#ED1C24',pops:['doh','dxb','jkt'],ix:[],blurb:tr('Qatar’s big operator. Paid peering only, and it sings the price list to you.')});
NETS.push(
{id:'tim',name:'TIM-Tam Italia',asn:3269,type:'eye',pol:'selective',minIx:8,minPni:25,share:.008,col:'#004691',pops:['mil','rom','pmo'],ix:['mil','rom'],blurb:tr('Italy’s incumbent. Sweet on the outside, very firm about peering ratios.')},
- {id:'skl',name:'Sparkly Seabone',asn:6762,type:'t2',pol:'selective',minIx:12,minPni:35,share:.006,price:5,col:'#5B2C83',pops:['pmo','mil','rom','ath','mrs','fra','lon','ist','cai','nyc','mia','sao'],ix:['pmo','mil'],blurb:tr('Italy’s carrier. Born in Sicily and still very proud of Palermo.')},
+ {id:'skl',name:'Sparkly Seabone',asn:6762,type:'t1',pol:'restrictive',share:.04,price:6,col:'#5B2C83',pops:['pmo','mil','rom','ath','mrs','bcn','mad','lis','par','lon','ams','fra','zrh','vie','bud','prg','waw','buh','sof','ist','ber','sto','nyc','ash','mia','atn','dal','chi','lax','sjc','tor','mex','pan','bog','lim','scl','bue','sao','rio','for','cai','jed','dxb','bom','sin','hkg','tok'],ix:[],blurb:tr('The Tier 1 that grew up in Sicily. Its Seabone backbone owns the Mediterranean and reaches deep into the Americas, and it still calls Palermo home.')},
{id:'fwb',name:'Fast-Webby',asn:12874,type:'eye',pol:'open',share:.004,col:'#FDC300',pops:['mil','rom'],ix:['mil','rom'],blurb:tr('Fiber to the Italian home, with a website from 2003.')},
{id:'meo',name:'MEO-w Portugal',asn:3243,type:'eye',pol:'selective',minIx:5,minPni:20,share:.004,col:'#00A3E0',pops:['lis','mad'],ix:['lis'],blurb:tr('Portugal’s incumbent. Purrs when you send it traffic.')},
{id:'nos',name:'NOS-y Neighbour',asn:2860,type:'eye',pol:'open',share:.003,col:'#111111',pops:['lis'],ix:['lis'],blurb:tr('Peers with anyone, and wants to know everything about your routes.')},
@@ -978,9 +980,15 @@ TAIL.forEach(([name,type,home,blurb,sh],i)=>{const h=hstr(name),cand=home.flatMa
if(cand.length){ix.push(cand[h%cand.length]);if(cand.length>1&&(h>>>8)%100<40){const o=cand[(h>>>12)%cand.length];if(!ix.includes(o))ix.push(o);}}
const sel=(h>>>4)%10>=8;
NETS.push({id:'tail'+i,name,asn:200000+(h%190000),type,tail:true,pol:sel?'selective':'open',...(sel?{minIx:1+(h>>>16)%3,minPni:6+(h>>>18)%8}:{}),share:sh||+(0.0006+((h>>>20)%15)*0.0001).toFixed(4),col:`hsl(${h%360} 55% 46%)`,pops:home.slice(),ix,blurb});});
+NETS.push(
+ {id:'ktt',name:'Kay-Tea',asn:4766,type:'eye',pol:'paid',paidFee:5000,perG:90,kr:true,share:.012,col:'#E4002B',pops:['icn','hkg','tok','lax'],ix:[],blurb:tr('Korea’s incumbent. Sender pays: every gigabit you hand it is billed, on top of the port.')},
+ {id:'skb',name:'SK Broadbandit',asn:9318,type:'eye',pol:'paid',paidFee:4000,perG:110,kr:true,share:.01,col:'#EA002C',pops:['icn','hkg','sjc'],ix:[],blurb:tr('Took a streaming giant to court over who pays for the traffic its own customers asked for. Paid peering, per gigabit.')},
+ {id:'lgu',name:'LG You-Pay-Plus',asn:3786,type:'eye',pol:'paid',paidFee:3000,perG:80,kr:true,share:.008,col:'#E6007E',pops:['icn','tok'],ix:[],blurb:tr('The plus is a usage fee. Paid peering, per gigabit.')});
const NET=Object.fromEntries(NETS.map(n=>[n.id,n]));
for(const X of XIX){X.members=NETS.filter(n=>Array.isArray(n.ix)&&n.ix.includes(X.id)||!n.tail&&(X.core?X.core.includes(n.id):(n.ix==='ALL'||Array.isArray(n.ix)&&n.ix.includes(X.c))&&hstr(n.id+'|'+X.id)%100<(n.ix==='ALL'?72:X.take*100))).map(n=>n.id);}
const NSH={}; {const t=NETS.reduce((a,n)=>a+n.share,0); NETS.forEach(n=>NSH[n.id]=n.share/t);}
+// After Glitch leaves Korea, Seoul viewers watch half as much of it and the rest moves to everyone else.
+const NSH_KRX={}; {const w=id=>NSH[id]*(id==='amz'?0.5:1),t=NETS.reduce((a,n)=>a+w(n.id),0); NETS.forEach(n=>NSH_KRX[n.id]=w(n.id)/t);}
const CN_W={ctc:.2,cun:.14,cmb:.08,tcs:.22,abc:.14,byd:.08,bdc:.08,akm:.02,msf:.02,amz:.01,drz:.01};
const RU_W={ydx:.24,vkl:.12,rtc:.14,ggl:.12,bdc:.08,akm:.05,cfl:.06,msf:.04,amz:.03,tly:.02,cog:.02,drz:.01};
const NSH_RU={}; {const t=Object.values(RU_W).reduce((a,b)=>a+b,0); for(const k in RU_W)NSH_RU[k]=RU_W[k]/t;}
@@ -1044,7 +1052,7 @@ const GOALS=[
{id:'c5',t:tr('Five continents'),d:tr('POPs in five of the six regions on the map.'),r:100000,ok:()=>regionsCount()>=5},
{id:'gi',t:tr('Sign a giant'),d:tr('Land an AI WAN, a multi-site training run or a fiber-pairs deal with a hyperscaler. Customer level 4 and a POP near their campus required.'),r:150000,ok:()=>S.biz.some(b=>BIZ_T[b.type]&&BIZ_T[b.type].mega&&!BIZ_T[b.type].event)},
{id:'t10',t:tr('Serve 10 Tbps'),d:tr('Ten terabits per second of happy traffic. The giants will notice.'),r:250000,ok:()=>R.served>=10000},
- {id:'t1',t:tr('Go transit-free: Tier 1!'),d:tr('Peer with all five Tier 1s over PNIs and cancel every transit port. Then nobody charges you to reach the internet.'),r:0,win:true,ok:()=>isTier1()},
+ {id:'t1',t:tr('Go transit-free: Tier 1!'),d:tr('Peer with every Tier 1 over PNIs and cancel every transit port. Then nobody charges you to reach the internet.'),r:0,win:true,ok:()=>isTier1()},
];
/* ================= STATE ================= */
@@ -1142,6 +1150,7 @@ const SCN=[
{id:'spat',n:tr('The Cogentle Spat'),city:'nyc',cash:700000,days:540,rules:{spat:true},d:tr('Cogentle and Goggle are not speaking, and this time it is permanent. Buy the cheap transit if you dare.'),goal:tr('99% reach and 150 Gbps served'),ok:()=>R.reach>=0.99&&R.served>=150},
{id:'carnaval',n:tr('Carnaval'),city:'rio',cash:600000,days:100,rules:{},setup:()=>{S.biz.push({id:uid(),scripted:true,city:'rio',city2:null,reqs:[],name:'Carnaval Parade in Rio de Janeiro',type:'event',bw:400,rate:0,mood:100,since:0,start:90,dur:5,fee:400*5*70});},d:tr('Rio from scratch. Carnaval starts in 90 days and wants 400 Gbps for five days straight. The whole world is watching.'),goal:tr('Deliver Carnaval in full'),ok:()=>(S.stats.evFull||0)>=1},
{id:'darien',n:tr('Mind the Gap'),city:'pan',cash:900000,days:730,rules:{},d:tr('Start in Panama City. Nothing crosses the Darién Gap by land, and the Andes are in the way of everything else.'),goal:tr('POPs in Bogotá, Lima, Santiago and São Paulo, and 150 Gbps served'),ok:()=>['bog','lim','scl','sao'].every(c=>S.pops[c])&&R.served>=150},
+ {id:'gangnam',n:tr('Gangnam Style Peering'),city:'icn',cash:900000,days:365,rules:{},d:tr('Seoul. The fastest, hungriest eyeballs on Earth, transit at four times the price, and three incumbents who bill you for every gigabit you send them.'),goal:tr('99% reach and 200 Gbps served without going broke'),ok:()=>R.reach>=0.99&&R.served>=200},
{id:'baltic',n:tr('Anchors Away'),city:'tll',cash:500000,days:540,rules:{anchors:3},d:tr('Tallinn. Ships drag their anchors over Baltic cables three times as often as usual.'),goal:tr('90 days in a row with 99.5% of demand served'),ok:()=>(S.stats.clean||0)>=90},
];
const WEEK_CITIES=['fra','ams','lon','nyc','ash','sjc','sin','tok','syd','sao','jnb','bom','waw','ist','scl','hkg'];
@@ -1268,7 +1277,7 @@ function scenarioModal(){const wk=weekly(),h=scnHof();let best=null;try{best=JSO
${SCN.map(x=>`
${esc(x.n)} ${h[x.id]?`${tr('done in {d} days',{d:h[x.id].days})}`:''}
${esc(x.d)}
${tr('Goal: {goal} · Time: {d} days · start in {city}',{goal:esc(x.goal),d:x.days,city:esc(CITY[x.city].name)})}
${btn(tr('Play'),'startScn',{id:x.id},'')}
`).join('')}`);}
function newGame(name,home){
S={v:1,name,asn:200000+Math.floor(_rand()*15000),home,day:0,cash:START_CASH,
- ltv:2,pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},
+ ltv:2,t1v:2,pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},
done:{},inc:[],ev:{},priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubAt:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0};
}
@@ -1380,7 +1389,7 @@ function peerOk(id,via,city){
if(via==='ix'&&city&&isRemote(city)&&noRemote(id))return {ok:false,remote:true,why:REMOTE_WHY[hstr(id)%REMOTE_WHY.length]};
if(n.pol==='open')return {ok:true};
if(n.pol==='selective'){const need=Math.round((via==='pni'?n.minPni:n.minIx)*confBoost(id));return dem>=need?{ok:true}:{ok:false,why:tr('Wants ≥ {need} Gbps of traffic from you (you send {dem})',{need,dem:dem.toFixed(1)})};}
- if(n.pol==='paid')return via==='pni'?{ok:true,fee:n.paidFee}:{ok:false,why:tr('Paid peering only, over a PNI')};
+ if(n.pol==='paid')return via==='pni'?{ok:true,fee:n.paidFee}:{ok:false,why:n.perG?tr('Sender pays: a paid PNI only, {fee}/mo plus {g} per Gbps you send',{fee:fmt$(n.paidFee),g:fmt$(n.perG)}):tr('Paid peering only, over a PNI')};
if(n.type!=='t1'){if(via!=='pni')return {ok:false,why:tr('Only peers over PNIs, and only with networks it considers important')};const need=Math.round(60*confBoost(id));return dem>=need||isTier2()?{ok:true}:{ok:false,why:tr('Wants you to be a Tier 2, or send ≥ {need} Gbps to it (you send {dem})',{need,dem:dem.toFixed(1)})};}
if(via!=='pni')return {ok:false,why:tr('Tier 1s never peer at IXs')};
const c=t1Club();return c.ok?{ok:true}:{ok:false,why:tr('Not big enough yet: {list}',{list:c.missing.join(', ')})};
@@ -1397,7 +1406,9 @@ function hotPorts(){const out=[];if(!R||!S)return out;
return out.sort((a,b)=>b.u-a.u);}
function hotByCity(){const m={};for(const h of hotPorts())(m[h.city]=m[h.city]||{})[h.k]=Math.max((m[h.city]||{})[h.k]||0,h.u);return m;}
function isTier2(){return Object.keys(S.pops).length>=5&&Object.keys(S.ixp).length>=3&&R.sessions>=15;}
-function isTier1(){return NETS.filter(n=>n.type==='t1').every(n=>S.pni.some(p=>p.net===n.id))&&S.transit.length===0&&R.reach>0.999;}
+// Sparkly Seabone joined the Tier 1s in 1.12. Older saves keep the five they were playing for.
+const t1Need=()=>NETS.filter(n=>n.type==='t1'&&(n.id!=='skl'||(S&&S.t1v>=2)));
+function isTier1(){return t1Need().every(n=>S.pni.some(p=>p.net===n.id))&&S.transit.length===0&&R.reach>0.999;}
function tierLabel(){return S.won?'Tier 1':isTier2()?'Tier 2':'Tier 3';}
/* ================= SIMULATION ================= */
@@ -1478,15 +1489,15 @@ function compute(){
const viral=(ev.viral>day?1.25:1)*(ev.php&&ev.php>day?0.7:1);
const flows=[];
for(const c of Object.keys(S.pops)){
- const p=S.pops[c],SH=cnCity(c)?NSH_CN:ruCity(c)?NSH_RU:NSH;const eye=(p.bb?p.bb.d:0)*viral*(cnCity(c)&&ev.golden>day?1.4:1);const biz=S.biz.filter(b=>b.city===c&&!BIZ_T[b.type].l2&&!BIZ_T[b.type].fiber&&(!BIZ_T[b.type].event||eventLive(b))).reduce((a,b)=>a+b.bw,0);const d=eye+biz;
+ const p=S.pops[c],SH=cnCity(c)?NSH_CN:ruCity(c)?NSH_RU:CITY[c].kr&&S.krExit?NSH_KRX:NSH;const eye=(p.bb?p.bb.d:0)*viral*(cnCity(c)&&ev.golden>day?1.4:1);const biz=S.biz.filter(b=>b.city===c&&!BIZ_T[b.type].l2&&!BIZ_T[b.type].fiber&&(!BIZ_T[b.type].event||eventLive(b))).reduce((a,b)=>a+b.bw,0);const d=eye+biz;
R2.cityEye[c]=eye;R2.cityDem[c]=d;R2.citySrv[c]=0;R2.demand+=d;
for(const n of NETS)R2.demTo[n.id]=(R2.demTo[n.id]||0)+d*(SH[n.id]||0);
if(!popUp(c))continue;
const dd=ev.ddos&&ev.ddos.city===c&&ev.ddos.until>day?d*0.7*(S.scrubAt?0.15:1):0;
const bh=dd&&TRX&&TRX.blackhole;if(dd&&!bh)for(const n of NETS)flows.push({c,n:n.id,rem:dd*NSH[n.id],junk:true});if(bh)R2.teBlack+=dd+d*0.1;
R2.cityBlocked=R2.cityBlocked||{};
- const mtuH=ev.pmtud&&ev.pmtud.until>day?ev.pmtud:null;
- for(const n of NETS){const a=d*(SH[n.id]||0)*(bh?0.9:1)*(mtuH&&mtuH.net===n.id?mtuH.f:1);if(a<=0)continue;
+ const mtuH=ev.pmtud&&ev.pmtud.until>day?ev.pmtud:null,kr=CITY[c].kr;
+ for(const n of NETS){const a=d*(SH[n.id]||0)*(bh?0.9:1)*(mtuH&&mtuH.net===n.id?mtuH.f:1)*(kr&&ev.krroute>day&&n.id==='fbk'?0.8:1);if(a<=0)continue;
if(cacheNets.has(n.id)){flows.push({c,n:n.id,rem:a*0.85,cache:true});flows.push({c,n:n.id,rem:a*0.15});}
else flows.push({c,n:n.id,rem:a});}
}
@@ -1582,7 +1593,7 @@ function compute(){
C.nni=(S.nni||[]).reduce((a,x)=>a+NNI[x.tier].mo,0);
C.transit=S.transit.reduce((a,t)=>{const q=p95(t,R2.useT[t.id]||0);R2.p95[t.id]=q;const n=t.n||1;return a+Math.max(q,PORT[t.tier].g*n*0.2)*NET[t.net].price*(t.premium&&t.city==='hkg'?NET[t.net].premium:1)*pm*regionMult(t.city)+PORT[t.tier].tmo*n;},0);
C.ix=Object.keys(S.ixp).reduce((a,c)=>a+(S.myIx[c]?myFab(c).mo:ixPortMo(c,S.ixp[c])*((S.ixn||{})[c]||1)+dkAddonMo(c)),0);
- C.pni=S.pni.reduce((a,p)=>a+PORT[p.tier].pni*(p.n||1)+(NET[p.net].pol==='paid'?NET[p.net].paidFee:0),0);
+ C.pni=S.pni.reduce((a,p)=>a+PORT[p.tier].pni*(p.n||1)+(NET[p.net].pol==='paid'?NET[p.net].paidFee:0)+(NET[p.net].perG?Math.round(NET[p.net].perG*(R2.usePni[p.id]||0)):0),0);
C.caches=S.caches.length*CACHE_MO;
C.loans=(S.loans||[]).reduce((a,l)=>a+(BANKS[l.bank].equity?0:l.pay),0);
C.extras=(S.cnLic&&S.cnLic.state==='ok'?CN_JV_MO:0)+(S.scrubAt?SCRUB_MO:0)+Object.keys(S.pops).filter(ruCity).length*RU_BOX_MO+Object.values(S.pops).filter(p=>p.site2).length*SITE2_MO+(S.te?TE_MO:0);
@@ -1715,7 +1726,7 @@ function spawnSpecial(t){const T=BIZ_T[t],mine=Object.keys(S.pops),lv=S.lvl||1;
S.offers.push({id:uid(),city:l.a,city2:l.b,link:l.id,what:tr('a spare fiber pair in your {a}–{b} trench',{a:CITY[l.a].name,b:CITY[l.b].name}),name:nm(),type:t,bw:1,rate:Math.round(dfLeaseMo(l.km)*0.9),reqs:[],exp:S.day+30});}
}
function cnOk(){return S.cnLic&&S.cnLic.state==='ok';}
-function regionMult(c){const C=CITY[c];if(!C||C.cn)return 1;return C.reg==='AS'?2.5:C.reg==='AF'?2:C.reg==='OC'?1.8:C.reg==='SA'?1.6:1;}
+function regionMult(c){const C=CITY[c];if(!C||C.cn)return 1;if(C.kr)return KR_TRANSIT;return C.reg==='AS'?2.5:C.reg==='AF'?2:C.reg==='OC'?1.8:C.reg==='SA'?1.6:1;}
const uaePair=(a,b)=>!!CITY[a].uae&&!!CITY[b].uae;
const andesPair=(a,b)=>!!CITY[a].andes&&!!CITY[b].andes&&CITY[a].andes!==CITY[b].andes;
function landMult(a,b){if(isSub(a,b))return 1;if(uaePair(a,b))return 3;return (CITY[a].reg!==CITY[b].reg?2.5:1)*(andesPair(a,b)?2:1);}
@@ -1907,7 +1918,7 @@ function fireFailure(){
else toast(`${incTitle(type)}
${esc(last.msg)}`,'bad',last.cost?[{l:`${last.fix||tr('Rush repair')} ${fmt$(last.cost)}`,act:'fixInc',args:{id:last.id}}]:[]);
sfx('alert');
}
-function incTitle(t){return {ring:tr('Metro ring cut'),site:tr('Site outage'),cut:tr('Fiber cut'),crash:tr('Router crash'),power:tr('Power outage'),transit:tr('Upstream outage'),ixloop:tr('IX meltdown'),leak:tr('Route leak'),ddos:tr('DDoS attack'),fabric:tr('Fabric outage'),depeer:tr('Peering spat'),fatwave:tr('Fat-fingered wave'),label:tr('Patch panel mishap'),mtu:tr('MTU mismatch'),lacp:tr('LACP trouble'),loss:tr('Packet loss'),pmtud:tr('PMTUD black hole'),oops:tr('Oops'),cleaner:tr('Vacuum incident'),maxpfx:tr('Max-prefix meltdown'),prepend:tr('Prepend-ageddon'),rpki:tr('RPKI invalid'),amp:tr('Amplifier failure'),roadmff:tr('Fat-fingered ROADM'),optic:tr('Dead optic'),maint:tr('Maintenance window'),ac:tr('Cooling failure'),hijack:tr('BGP hijack'),shutdown:tr('Government shutdown'),redsea:tr('Geopolitical cable cut')}[t]||tr('Incident');}
+function incTitle(t){return {ring:tr('Metro ring cut'),site:tr('Site outage'),cut:tr('Fiber cut'),crash:tr('Router crash'),power:tr('Power outage'),transit:tr('Upstream outage'),ixloop:tr('IX meltdown'),leak:tr('Route leak'),ddos:tr('DDoS attack'),fabric:tr('Fabric outage'),depeer:tr('Peering spat'),fatwave:tr('Fat-fingered wave'),label:tr('Patch panel mishap'),mtu:tr('MTU mismatch'),krroute:tr('Rerouted via Hong Kong'),ctrlplane:tr('Control plane meltdown'),lacp:tr('LACP trouble'),loss:tr('Packet loss'),pmtud:tr('PMTUD black hole'),oops:tr('Oops'),cleaner:tr('Vacuum incident'),maxpfx:tr('Max-prefix meltdown'),prepend:tr('Prepend-ageddon'),rpki:tr('RPKI invalid'),amp:tr('Amplifier failure'),roadmff:tr('Fat-fingered ROADM'),optic:tr('Dead optic'),maint:tr('Maintenance window'),ac:tr('Cooling failure'),hijack:tr('BGP hijack'),shutdown:tr('Government shutdown'),redsea:tr('Geopolitical cable cut')}[t]||tr('Incident');}
const LINKCUT_TR=['cut','redsea'],LINKCUT_ID=['fatwave','label'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop','maxpfx'],TDOWN=['transit','prepend'],LINKEQ=['mtu','amp','roadmff','optic'];
function remainUntil(pred){let u=0;for(const x of S.inc)if(pred(x))u=Math.max(u,x.until);return u;}
// Remove an incident, then restore each affected thing to whatever other incidents still hold it down.
@@ -1925,6 +1936,7 @@ function clearInc(i){
else if(T==='mtu'){const l=S.links.find(x=>x.id===i.ref);if(l)l.deg=remainUntil(x=>x.type==='mtu'&&x.ref===i.ref);}
else if(T==='loss'){const l=S.links.find(x=>x.id===i.ref);if(l&&!S.inc.some(x=>x.type==='loss'&&x.ref===i.ref))l.loss=null;}
else if(T==='lacp'){if(!S.inc.some(x=>x.type==='lacp'&&x.ref===i.ref)){const [k,...r]=String(i.ref).split(':'),id=r.join(':');if(k==='ix'){if(S.ev.ixlacp)delete S.ev.ixlacp[id];}else{const o=(k==='t'?S.transit:S.pni).find(x=>x.id===id);if(o)o.lacp=null;}}}
+ else if(T==='ctrlplane'){for(const id of Array.isArray(i.links)?i.links:[]){const l=S.links.find(x=>x.id===id);if(l)l.cut=Math.max(remainUntil(x=>(LINKCUT_TR.includes(x.type)&&x.ref===(l.trench||l.id))||(LINKCUT_ID.includes(x.type)&&x.ref===l.id)||(x.type==='ctrlplane'&&Array.isArray(x.links)&&x.links.includes(l.id))),0);}}
else if(T==='pmtud'){if(!S.inc.some(x=>x.type==='pmtud'))S.ev.pmtud=null;}
else if(T==='ring'){if(S.pops[i.ref])S.pops[i.ref].ringcut=remainUntil(x=>x.type==='ring'&&x.ref===i.ref);}
else if(T==='ac'){if(S.pops[i.ref])S.pops[i.ref].hot=remainUntil(x=>x.type==='ac'&&x.ref===i.ref);}
@@ -1935,15 +1947,29 @@ function purgeInc(){S.inc=S.inc.filter(i=>{const T=i.type;if(LINKCUT_TR.includes
function fireEvent(){
const opts=['viral','price','grant'];
if(S.day>50)opts.push('sanction','tariff','hijack','landban','shutdown','redsea','baltic');
+ if(S.day>90&&S.links.filter(l=>l.kind==='wave'&&!l.sub).length>=3)opts.push('ctrlplane');
if(Object.keys(S.pops).some(ruCity))opts.push('runet','runet');
if(S.pops.doh&&Object.keys(S.pops).some(c=>CITY[c].gcc||CITY[c].uae)&&!(S.ev.gulf>S.day))opts.push('gulf');
if(Object.keys(S.pops).some(c=>CITY[c].saudi))opts.push('mega');
if(['mnl','hkg','tok','icn','sha','jkt'].some(c=>S.pops[c]))opts.push('typhoon');
+ if(S.pops.icn&&!S.krExit)opts.push('krexit');if(S.pops.icn&&!(S.ev.krroute>S.day))opts.push('krroute');
if(Object.keys(S.pops).some(cnCity)||R.gfwCross>1)opts.push('golden','gfw');
if(S.transit.some(t=>t.net==='cog'))opts.push('depeer','depeer');
if(Object.keys(S.peers).some(k=>k.startsWith('drz@'))||Object.keys(S.rs).length)opts.push('cake');
const e=pick(opts);
if(e==='gulf'){const dur=60+Math.floor(Math.random()*60);S.ev.gulf=S.day+dur;toast(tr('The neighbours have fallen out.
A diplomatic spat closes borders and airspace around Qatar. Every link between Doha and Saudi Arabia or the UAE is down for about {n} days. Route the long way round, by sea.',{n:dur}),'bad');sfx('alert');}
+ /* A wave supplier pushes one bad update to its optical control plane, and every wave it sells you in a
+ region goes dark for a day or two. Your own dark fiber, subsea waves and fabric circuits keep working. */
+ if(e==='ctrlplane'){const by={};for(const l of S.links)if(l.kind==='wave'&&!l.sub&&!(l.cut>S.day)){const r=CITY[l.a].reg;(by[r]=by[r]||[]).push(l);}
+ const reg=Object.keys(by).sort((a,b)=>by[b].length-by[a].length)[0];if(!reg)return;const hit=by[reg],until=S.day+2;
+ for(const l of hit)l.cut=Math.max(l.cut||0,until);
+ const RN={EU:tr('Europe'),AM:tr('North America'),SA:tr('South America'),AS:tr('Asia'),OC:tr('Oceania'),AF:tr('Africa')};
+ addInc({type:'ctrlplane',ref:'reg:'+reg,links:hit.map(l=>l.id),until,msg:tr('Your wave supplier pushed one malformed update to its optical control plane, and it flooded every node. All {n} leased waves you have in {reg} are dark. Their status page says “degraded”.',{n:hit.length,reg:RN[reg]||reg}),cost:Math.round(hit.reduce((a,l)=>a+l.mo,0)*0.3),fix:tr('Escalate to their CTO')},'ctrlplane');
+ toast(tr('Optical control plane meltdown!
Every leased wave in {reg} just went dark at once. Your own dark fiber is fine. This is why people own fiber.',{reg:RN[reg]||reg}),'bad');sfx('alert');return;}
+ if(e==='krexit'){S.krExit=S.day+1;S.stats.incidents++;S.stats.survived++;
+ toast(tr('Glitch is leaving Korea.
The game-streaming site says Korean network fees are “prohibitively expensive” and shuts down there. Its Seoul traffic drops by half, for good. Local streamers have already moved on.'),'bad');sfx('alert');return;}
+ if(e==='krroute'){S.ev.krroute=S.day+20;addInc({type:'krroute',ref:'icn',until:S.day+20,msg:tr('Faceplant got tired of Korean usage fees and quietly moved Korean users to its Hong Kong servers. Pages crawl in for everyone in Seoul. The regulator is drafting a fine.'),cost:0},'krroute');
+ toast(tr('Faceplant rerouted Korea via Hong Kong.
Seoul users get a fifth less of it for 20 days, however you connect.'),'bad');sfx('alert');return;}
if(e==='mega'){const c=pick(Object.keys(S.pops).filter(x=>CITY[x].saudi)),bw=pick([800,1600,3200]),start=S.day+15;S.offers.push({id:uid(),city:c,city2:null,name:tr('A futuristic city that is not built yet, demo day in {city}',{city:CITY[c].name}),type:'event',bw,rate:0,reqs:[],start,dur:4,fee:bw*4*90,exp:start-2});toast(tr('A gigaproject wants a demo.
{bw} for four days in {city}, to show off a city that is still mostly renderings. Check the Deals tab.',{bw:fmtG(bw),city:CITY[c].name}),'goal');}
if(e==='sanction'){S.ev.sanction=S.day+60;toast(tr('Sanctions!
The Republic of Paperworkistan sanctioned your router vendor’s favorite screw supplier. Spare parts are slow: router crashes take twice as long to fix for 60 days.'),'bad');sfx('alert');return;}
if(e==='tariff'){S.ev.tariff=S.day+90;toast(tr('Trade war on optics
Two governments slapped tariffs on each other’s lasers. Optics cost 40% more for 90 days.'),'bad');sfx('alert');return;}
@@ -2073,6 +2099,7 @@ const BADGES=[
{id:'unsub',i:'📭',t:tr('Unsubscribed'),d:tr('Opt out of 3 auto-enrolled add-ons.'),r:'r',ok:()=>(st().optouts||0)>=3},
{id:'read',i:'💔',t:tr('Left on Read'),d:tr('Get de-peered by a big network.'),r:'r',ok:()=>(st().depeered||0)>=1},
{id:'couch',i:'🛋️',t:tr('Peering From the Couch'),d:tr('Peer at an IX remotely.'),r:'r',ok:()=>Object.keys(S.ixp).some(c=>isRemote(c)&&ixSessions(c).size>0)},
+ {id:'sender',i:'🇰🇷',t:tr('Sender Pays'),d:tr('Paid PNIs with all three Korean incumbents.'),r:'e',ok:()=>['ktt','skb','lgu'].every(n=>S.pni.some(p=>p.net===n))},
{id:'oink',i:'🐖',t:tr('Pig Whisperer'),d:tr('Run a slow-booting PacketOinker chassis.'),r:'r',ok:()=>Object.keys(S.pops).some(c=>/Oinker/.test(RG[S.pops[c].rgen||0].chip)&&slowBoot(c))},
{id:'gap',i:'🌴',t:tr('Mind the Gap'),d:tr('Link Panama City and Bogotá.'),r:'r',ok:()=>S.links.some(l=>[l.a,l.b].includes('pan')&&[l.a,l.b].includes('bog'))},
{id:'andes',i:'🏔️',t:tr('Over the Mountains'),d:tr('Build fiber across the Andes.'),r:'r',ok:()=>S.links.some(l=>!l.sub&&andesPair(l.a,l.b))},
@@ -2813,7 +2840,7 @@ function showHelp(){
${tr('Embedded cache')}${tr('A CDN\'s server in your rack. Serves most of that CDN\'s traffic locally, for the price of power.')}
DE-KICKS${tr('The group behind several big exchanges (Frankfurt, Madrid, Marseille, Dubai, Mumbai, New York) treats price lists as a state secret. Ports are quoted per customer and go up the bigger you look. Haggling can work, backfire or stall for a week. Prices get "harmonised" upwards once a year, add-ons appear on your invoice until you opt out, and trying to leave earns you a retention discount that ends with a fee.')}${tr('Remote peering')}${tr('Reach an IX over a fabric circuit without a POP there. It works, and the route server still gets you every open network, but it is discouraged: the reseller charges 1.5× for the port and oversubscribes it to 80%, latency rides the fabric, one fabric outage drops every session, and many selective networks refuse remote members outright.')}${tr('Peering policy')}${tr('Open peers with anyone. Selective wants to see traffic first. Restrictive (Tier 1s) only peers with giants, over PNIs. Paid means exactly that. Big selective networks also have moods: in some cities they refuse new peers for a few months, or only take PNIs, and now and then they tear down a session you already had. Try another city or a PNI, and ask again later.')}
${tr('Waves')}${tr('Your fiber links are leased waves at a flat monthly rate. Longer and bigger costs more (10G → 6.4T), and subsea is 1.8× the price.')}${tr('95th percentile')}${tr('Transit bills sample your usage every day and charge the 95th percentile of the last 30 days, so short spikes are forgiven but long ones are not.')}${tr('Routers')}${tr('Each POP\'s router model caps its fastest port (100G, 400G, 800G, 1.6T) and how much it can forward. Bigger waves and ports need better routers at both ends. Better models unlock with your customer level. With one router, upgrades mean a day of downtime.')}${tr('Dark fiber')}${tr('Lease an IRU or build your own (slow, with delays), then buy a line system with amplifiers and light channels with 400ZR+, 800ZR+ or 1.6T transponders. Much cheaper than waves at scale, but the gear can fail. A spares kit speeds up repairs.')}${tr('Subsea cables')}${tr('Subsea waves can only follow cable systems modelled on real ones, drawn faintly on the map (tap a city to highlight its cables). Teal ones are new and cheap, purple ones pricey, dashed ones old and cut-prone. All your waves on one cable die together when it is cut. Between continents on land, you can often choose overland (2.5×, many borders) or a cable.')}${tr('Latency')}${tr('Every link has latency. High-frequency traders pay a fortune for a circuit within their latency budget; route them “Lowest latency”. Bulk backup customers do not care, so route them “Scenic” over your quiet links to keep busy ones free.')}${tr('NOC dashboard')}${tr('The chart button at the top opens traffic graphs by exit (caches, PNIs, IX, transit), money over time, per-ASN traffic with how it reaches you and what its transit costs, plus your busiest links and routers.')}${tr('Asia')}${tr('A weird, underserved market. Transit costs 2.5× what it does in Europe (Africa 2×, Oceania 1.8×), local incumbents mostly peer only for pay, and IXs are fragmented. But demand is enormous and users sign up 60% faster than anywhere else. Peering and caches pay off most here.')}${tr('Russia')}${tr('Moscow needs a mandatory government box in every POP, Western CDNs are mostly gone, Goggle video is throttled to half speed, and the sovereign internet drills now and then cut Moscow off for a day.')}${tr('Events, chains and wholesale')}${tr('Event networks (a final, a festival, a keynote) need a burst of capacity in one city for a few days and pay once at the end, prorated by how much of the crowd you served; below 70% you pay a penalty. SD-WAN chains connect 3–6 of your POPs hub-and-spoke, so one broken spoke upsets the whole contract. Once you run your own dark fiber, carriers want to rent spare channels as alien waves, and on fiber you built yourself, a spare pair.')}${tr('Bank')}${tr('Tap your cash to open the bank. Lenders make offers now and then, and much more often when you are in the red. Each loan has a monthly payment and some odd conditions; break one and you pay a penalty. Your credit rating decides which banks talk to you. The loan shark is always there. Do not be late.')}${tr('LAGs')}${tr('Out of port speed? Bundle up to 8 identical ports to the same transit provider, IX or PNI into a LAG. Each member costs a full port; flow hashing is never perfectly even, so a bundle carries about 95% of the sum.')}${tr('Traffic engineering')}${tr('Tap a link to see which networks, which entry points and which customer cities fill it. Raise a link\'s metric to steer traffic around it, or set an egress (transit, IX, PNI) to Prefer or Backup only.')}${tr('China')}${tr('Mainland China needs a license and a local joint venture. Many foreign services are blocked there, and traffic crossing the border loses packets unless you pay for premium routes.')}${tr('Weird requirements')}${tr('Some customers come with conditions: no Cogentle anywhere, no subsea cables because of sharks, two routers, a generator, NetChill on-net, low-loss China reach and more. Each pays a bonus. Unmet ones make them grumpy until you fix it or they leave.')}${tr('Customer levels')}${tr('As your peak traffic and footprint grow, bigger customers show up: streaming startups and universities, then AI GPU data centers and cloud on-ramps, then AI training interconnects and hyperscaler DCI deals measured in terabits. Pink $$ bubbles mark the big ones.')}${tr('L2VPN & DDoS protection')}${tr('Businesses may want a private circuit between two of your POPs (it rides your backbone), or DDoS protection (needs your own scrubbing center).')}${tr('NNI fabrics')}${tr('Megapork, PocketFabric and Consolation Connect sell a port plus virtual circuits between cities. Great for small links and remote peering at an IX where you have no POP.')}
- ${tr('Conferences')}${tr('NANOG, RIPE, DENOG and friends come round every year. Register in the Deals tab for $8k. For 45 days after, selective networks with a presence in that region need only half the usual traffic before they peer with you. Sometimes you also win the raffle.')}${tr('Modes')}${tr('Sandbox gives you a billion dollars, every unlock and no failures, but no badges. Scenarios are hand-built challenges with a goal and a deadline, and the weekly challenge gives everyone the same world for a week. Share your result with the card in the menu.')}${tr('Traceroute')}${tr('Tap 🔍 Traceroute on any of your cities, or open it from the NOC tab, to see the exact path to a network or POP, hop by hop, with latency, the exit and the AS path.')}${tr('Badges')}${tr('Below your goals sits a wall of badges, from common to legendary. Some take luck, some take years, and a couple are secret. Badges you earned in earlier games stay on this device with a dashed outline.')}${tr('The giants')}${tr('At customer level 3 and 4, hyperscalers and AI clouds show up with deals only they would ask for: terabit AI WANs between gigawatt campuses, training runs spread over several sites, week-long dataset ingests, and hundreds of fiber pairs in a trench you dug yourself. They pay like nobody else, and they want diverse paths, two sites per metro and zero excuses. Cities near their campuses list them under “Who’s here”.')}RouteScript${tr('Once Auto-TE is installed, you can program it from the NOC tab. Rules include spill at 80%, prefer pni for goggle, avoid transit for netchill, cap transit cogentle at 20 gbps, drain paris, avoid link fra-ams and blackhole ddos. Check runs a dry run against live traffic; Deploy makes it real, mistakes included.')}Auto-TE${tr('Traffic follows the shortest path by distance and link metric, and reroutes by itself when links fail. When a path is merely full, the overflow is dropped, just like a real IGP. From customer level 3 you can install Auto-TE in the NOC tab: it spills overflow onto up to two alternate paths with free capacity, as long as they are no more than twice as long.')}${tr('Metro diversity')}${tr('A POP is one building until you add a second site in the Infra tab. Then a power cut, cleaner or A/C failure only takes out half the city, and you choose which site each transit, PNI and IX port plugs into, or pick Both to split a LAG across the two buildings. Spread them out, or both halves of your redundancy will sit in the same dark room. Watch out for metro ring cuts, which cut site B off.')}${tr('Wave markets')}${tr('What a wave costs depends on where it runs. Europe is cheap (lots of competing fiber), North America is average, Asia and South America are pricier, and anything into Africa is several times the price. Every route has its own going rate, and new leases get about 8% cheaper each year, so waiting can pay. The link planner tells you how a route compares.')}${tr('Regional quirks')}${tr('In the Gulf, Saudi POPs need a local telecom licence and data on Saudi users stays in the Kingdom; gigaprojects ask for huge demo networks; and now and then the neighbours fall out and every link between Qatar and Saudi Arabia or the UAE goes dark for months, so keep a sea route. South America hangs off Miami: transit is pricier, nothing crosses the Darién Gap by land, and fiber over the Andes costs double and breaks often. IX.brrr in Brazil is run by a nonprofit with cheap public prices, and small Brazilian provedores buy transit in bulk. Inside the UAE only the duopoly may run fiber, so no dark fiber and 3× waves. Taiwan’s cables meet a lot of anchors, Indian fiber meets road widening and the monsoon, and South Africa has load shedding: bring a generator.')}${tr('Boot times')}${tr('Some routers take forever to boot. The Infra tab shows how long yours takes. Slow booters make crashes last longer and turn a one-router swap into a three-day outage. Bigger chassis, especially anything with a PacketOinker™ inside, are slow more often. Twin routers make it someone else’s problem.')}${tr('Failures')}${tr('Things break all the time: fiber cuts, router crashes, power cuts, IX loops, fabric outages, route leaks, DDoS, fat fingers, cooling failures, and geopolitics: sanctions, tariffs, BGP hijacks, landing permit disputes, exam-day shutdowns and Red Sea cable cuts. Traffic reroutes automatically over other paths and upstreams. Parallel links on diverse routes, a second router and a backup generator all help. Or pay to rush repairs.')}
+ ${tr('Conferences')}${tr('NANOG, RIPE, DENOG and friends come round every year. Register in the Deals tab for $8k. For 45 days after, selective networks with a presence in that region need only half the usual traffic before they peer with you. Sometimes you also win the raffle.')}${tr('Modes')}${tr('Sandbox gives you a billion dollars, every unlock and no failures, but no badges. Scenarios are hand-built challenges with a goal and a deadline, and the weekly challenge gives everyone the same world for a week. Share your result with the card in the menu.')}${tr('Traceroute')}${tr('Tap 🔍 Traceroute on any of your cities, or open it from the NOC tab, to see the exact path to a network or POP, hop by hop, with latency, the exit and the AS path.')}${tr('Badges')}${tr('Below your goals sits a wall of badges, from common to legendary. Some take luck, some take years, and a couple are secret. Badges you earned in earlier games stay on this device with a dashed outline.')}${tr('The giants')}${tr('At customer level 3 and 4, hyperscalers and AI clouds show up with deals only they would ask for: terabit AI WANs between gigawatt campuses, training runs spread over several sites, week-long dataset ingests, and hundreds of fiber pairs in a trench you dug yourself. They pay like nobody else, and they want diverse paths, two sites per metro and zero excuses. Cities near their campuses list them under “Who’s here”.')}RouteScript${tr('Once Auto-TE is installed, you can program it from the NOC tab. Rules include spill at 80%, prefer pni for goggle, avoid transit for netchill, cap transit cogentle at 20 gbps, drain paris, avoid link fra-ams and blackhole ddos. Check runs a dry run against live traffic; Deploy makes it real, mistakes included.')}Auto-TE${tr('Traffic follows the shortest path by distance and link metric, and reroutes by itself when links fail. When a path is merely full, the overflow is dropped, just like a real IGP. From customer level 3 you can install Auto-TE in the NOC tab: it spills overflow onto up to two alternate paths with free capacity, as long as they are no more than twice as long.')}${tr('Metro diversity')}${tr('A POP is one building until you add a second site in the Infra tab. Then a power cut, cleaner or A/C failure only takes out half the city, and you choose which site each transit, PNI and IX port plugs into, or pick Both to split a LAG across the two buildings. Spread them out, or both halves of your redundancy will sit in the same dark room. Watch out for metro ring cuts, which cut site B off.')}${tr('Wave markets')}${tr('What a wave costs depends on where it runs. Europe is cheap (lots of competing fiber), North America is average, Asia and South America are pricier, and anything into Africa is several times the price. Every route has its own going rate, and new leases get about 8% cheaper each year, so waiting can pay. The link planner tells you how a route compares.')}${tr('Regional quirks')}${tr('In the Gulf, Saudi POPs need a local telecom licence and data on Saudi users stays in the Kingdom; gigaprojects ask for huge demo networks; and now and then the neighbours fall out and every link between Qatar and Saudi Arabia or the UAE goes dark for months, so keep a sea route. South America hangs off Miami: transit is pricier, nothing crosses the Darién Gap by land, and fiber over the Andes costs double and breaks often. IX.brrr in Brazil is run by a nonprofit with cheap public prices, and small Brazilian provedores buy transit in bulk. Inside the UAE only the duopoly may run fiber, so no dark fiber and 3× waves. Korea runs on “sender pays”: transit into Seoul costs about four times the usual price and the three incumbents only peer over paid PNIs, billed per gigabit you send them. Taiwan’s cables meet a lot of anchors, Indian fiber meets road widening and the monsoon, and South Africa has load shedding: bring a generator.')}${tr('Boot times')}${tr('Some routers take forever to boot. The Infra tab shows how long yours takes. Slow booters make crashes last longer and turn a one-router swap into a three-day outage. Bigger chassis, especially anything with a PacketOinker™ inside, are slow more often. Twin routers make it someone else’s problem.')}${tr('Failures')}${tr('Things break all the time: fiber cuts, router crashes, power cuts, IX loops, fabric outages, route leaks, DDoS, fat fingers, cooling failures, and geopolitics: sanctions, tariffs, BGP hijacks, landing permit disputes, exam-day shutdowns and Red Sea cable cuts. Traffic reroutes automatically over other paths and upstreams. Parallel links on diverse routes, a second router and a backup generator all help. Or pay to rush repairs.')}
${tr('Want to know how it really works?')}
${plugHtml(true)}${btn(UI.started?tr('Back to the map'):tr('Got it'),'helpClose',{},'big')}${RELEASE_NOTES.length?btn(tr('What’s new in {v}',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}${UI.started&&S&&!S.lost?btn(tr('Start a new network'),'resetAsk',{},'ghost sm'):''}
${UI.started&&S&&!S.lost?btn(tr('Export save'),'exportSave',{},'ghost sm'):''}${btn(tr('Import a save'),'importPick',{},'ghost sm')}
${settingsRow()}`);
}
function showWin(){setTimeout(()=>{const m=$('modalCard');if(m&&!m.querySelector('[data-act=share]'))m.insertAdjacentHTML('beforeend',`${btn(tr('Share my network'),'share',{},'pink')}
${tr('You built a cartoon internet. Now see how the real one works:')}
${plugHtml(true)}`);},0);openModal(`${tr(`You're a Tier 1!`)}
${tr('{name} (AS{asn}) is transit-free. You peer with every giant on the planet and pay nobody to reach the internet. Took you {days} days and {n} incidents.',{name:esc(S.name),asn:S.asn,days:S.day,n:S.stats.incidents})}
${btn(tr('Keep building'),'keepPlaying',{},'pink big')}`);sfx('coin');}
diff --git a/tests/i18n.test.js b/tests/i18n.test.js
index c9ca2ac..f30709b 100644
--- a/tests/i18n.test.js
+++ b/tests/i18n.test.js
@@ -42,6 +42,8 @@ function tour(ev) {
assert.ok(patched.includes(`['${kind}',1]`) && patched.includes(`f.includes('${t}')`), 'fireFailure still has the hooks this tour forces');
step('failure ' + t, `window.__ff=${patched};S.links.forEach(l=>{l.cut=0;l.eqDown=0;l.chFail=null});S.transit.forEach(t=>t.down=0);for(const c in S.pops)S.pops[c].down=0;compute();__ff();dayTick();ACT.leftTab({t:'noc'})`);
}
+ // A cable the Baltic event can hit, so the anchor badge does not depend on what the random days built.
+ step('baltic cable', "if(!S.pops.hel)ACT.buildPop({city:'hel'});UI.via='clion';openLinkModal('fra','hel');ACT.buildLink({tier:0});closeModal();UI.via=null");
const evSrc = ev('fireEvent.toString()');
for (const e of ['viral', 'price', 'grant', 'sanction', 'tariff', 'hijack', 'landban', 'shutdown', 'redsea', 'baltic', 'runet', 'typhoon', 'golden', 'gfw', 'gulf']) {
const patched = evSrc.replace(/^function fireEvent/, 'function').replace('const e=pick(opts);', `const e='${e}';`);
diff --git a/tests/issues.test.js b/tests/issues.test.js
index 7e14857..00b4366 100644
--- a/tests/issues.test.js
+++ b/tests/issues.test.js
@@ -270,3 +270,18 @@ test('LACP trouble, partial packet loss and PMTUD black holes fire, hurt and cle
assert.equal(ev("!!(S.transit[0].lacp||S.ev.pmtud||S.links.some(l=>l.loss)||(S.ev.ixlacp&&Object.keys(S.ev.ixlacp).length))"), false, 'everything clears');
assert.deepEqual(errors, []);
});
+
+test('an optical control plane meltdown darkens every leased wave in a region, not your own fiber', () => {
+ const { ev, errors } = load();
+ ev("ACT.start({});S.cash=1e9;S.lvl=4;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'})");
+ ev("for(const c of ['ams','par','ber'])ACT.buildPop({city:c});const L=(a,b)=>{UI.via=null;openLinkModal(a,b);ACT.buildLink({tier:1});closeModal();};L('fra','ams');L('fra','par');L('fra','ber');S.links.push({id:'dfx',a:'ams',b:'ber',kind:'df',km:580,sys:'lite',ch:['zr4'],ready:0,mo:500,day:0,cut:0});S.day=120;compute()");
+ const src = ev('fireEvent.toString()').replace(/^function fireEvent/, 'function').replace('const e=pick(opts);', "const e='ctrlplane';");
+ ev('window.__fe=' + src + ';__fe();compute()');
+ assert.equal(ev("S.links.filter(l=>l.kind==='wave').every(l=>linkDown(l))"), true, 'all leased waves in Europe are dark');
+ assert.equal(ev("linkDown(S.links.find(l=>l.id==='dfx'))"), false, 'own dark fiber keeps working');
+ const inc = "S.inc.find(i=>i.type==='ctrlplane')";
+ assert.ok(ev(`${inc}.cost>0`));
+ ev(`ACT.fixInc({id:${inc}.id});compute()`);
+ assert.equal(ev("S.links.filter(l=>l.kind==='wave').some(l=>linkDown(l))"), false, 'escalating brings them back');
+ assert.deepEqual(errors, []);
+});
diff --git a/tests/regions.test.js b/tests/regions.test.js
index 36d76f9..defce85 100644
--- a/tests/regions.test.js
+++ b/tests/regions.test.js
@@ -331,3 +331,35 @@ test('Barcelona is wired up: a coastal cable, CDNs and a proper Tokyo challenger
assert.ok(ev("ixMul('tok~2')<1"), 'challengers undercut the incumbent');
assert.deepEqual(errors, []);
});
+
+test('Korea: sender pays, pricey transit, Glitch leaves and Faceplant detours', () => {
+ const { ev, errors } = load();
+ ev("ACT.start({});S.cash=1e9;S.lvl=4;for(const g of GOALS)S.done[g.id]=0;ACT.buildPop({city:'icn'});ACT.buildPop({city:'sin'})");
+ assert.ok(ev("regionMult('icn')>regionMult('sin')"), 'Seoul transit costs more than the rest of Asia');
+ for (const n of ['ktt', 'skb', 'lgu']) {
+ assert.equal(ev(`NET.${n}.pol`), 'paid');
+ assert.match(ev(`peerOk('${n}','ix','icn').why`), /Sender pays/);
+ }
+ ev("S.pops.icn.bb={d:400};ACT.buyTransit({city:'icn',net:'ntt',tier:1});ACT.pni({city:'icn',net:'ktt',tier:1});compute()");
+ const used = ev("R.usePni[S.pni[0].id]||0");
+ assert.ok(used > 0, 'traffic flows over the Kay-Tea PNI');
+ assert.equal(ev("R.cost.pni"), ev(`PORT[1].pni+NET.ktt.paidFee+Math.round(NET.ktt.perG*${used})`), 'billed per gigabit sent');
+ const amz0 = ev("R.demTo.amz"); ev("S.krExit=S.day+1;compute()");
+ assert.ok(ev("R.demTo.amz") < amz0, 'Glitch leaving cuts its Seoul traffic');
+ const evSrc = ev('fireEvent.toString()').replace(/^function fireEvent/, 'function').replace('const e=pick(opts);', "const e='krroute';");
+ ev('window.__fe=' + evSrc + ';__fe();compute()');
+ assert.ok(ev("S.ev.krroute>S.day&&S.inc.some(i=>i.type==='krroute')"));
+ assert.ok(ev("SCN.some(s=>s.id==='gangnam'&&s.city==='icn')"));
+ assert.deepEqual(errors, []);
+});
+
+test('Sparkly Seabone is a Tier 1 now, but old saves keep the five they played for', () => {
+ const { ev, errors } = load();
+ ev("ACT.start({})");
+ assert.equal(ev("NET.skl.type"), 't1');
+ assert.ok(ev("NET.skl.pops.includes('nyc')&&NET.skl.pops.includes('sao')&&NET.skl.pops.includes('pmo')"));
+ assert.equal(ev("t1Need().length"), 6, 'new games need all six');
+ ev("delete S.t1v");
+ assert.equal(ev("t1Need().length"), 5, 'older saves keep five');
+ assert.deepEqual(errors, []);
+});