- #113: the goal was a Marseille-Singapore path and 300 Gbps served anywhere, which broadband with local transit reached on day 0. It is now the path plus 80 Gbps on your links between Asia and the rest of your network for 30 days in a row (S.stats.asiaRun). A 100G route around Africa gets there in about two months and costs about 590k a month against 2.5M of starting cash, so it is a real challenge. The scenario card shows today's traffic and the streak. - #84: Poste Restante, Luxembourg's eyeball network, at LU-SICK in Bettembourg (selective, buys transit from Tier 1s, so Tier 1 reach holds). Citrus Belgium's blurb now says it is Tangerine's Belgian daughter. - The wave seller and wholesale customer 'GTT (Got Tangled Twice)' used a real company name; it is now 'G&T (Gin and Transit)'. - The scenario start toast puts a full stop after the goal.
This commit is contained in:
parent
086502b782
commit
42b3e95386
6 changed files with 69 additions and 12 deletions
|
|
@ -6,6 +6,8 @@ All notable changes to this project are documented here. The project follows
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
- Red Sea Crisis now asks you to keep 80 Gbps flowing between Asia and the rest of your network for 30 days in a row, instead of 300 Gbps served anywhere, which broadband alone could reach on day 0 (#113). The scenario card shows today's traffic to and from Asia and how many days in a row you have held it.
|
||||
- Luxembourg gets its own eyeball network, Poste Restante, at LU-SICK in Bettembourg, so there is a reason to peer there (#84).
|
||||
- You can now run a scrubbing center in every POP, not just one (#117). An attack goes to the nearest working center and spills to the next when it is full. A center in another city means the flood rides your backbone there and back: it fills your links, adds latency, and whatever your links cannot carry is not scrubbed. DDoS protection customers mind when their attacks are hauled across an ocean, some new customers ask for a center on their own continent, and the NOC shows where each attack is being cleaned.
|
||||
- A new Road to Tier 1 card in Goals shows what still stands between you and Tier 1 (#111, #121, #12). It counts the transit ports left to cancel, names the Tier 1s you still need a PNI with and what they want from you first, and shows how much of the internet you would still reach without transit. The Networks tab can list just the networks you reach only through transit, biggest first, each with why it is not peering with you yet and where to meet it: the cities for a PNI and the exchanges it sits on, your POPs first, then the nearest. Who your transit carries, in the NOC, names the nearest city when a network is not in yours and takes you straight to it.
|
||||
- Your own subsea cables now come in three designs, from the budget route to one as fast as the fastest cable on the map, and two upgrades carry faster channels further (#65). Each design shows its latency, price and build time before you order: optimized costs three times as much and low latency seven times, and both take months longer. Premium terminals and optical engineering light longer routes at higher speeds, so a cable as long as New York to Sydney can now carry traffic, and the order screen tells you which upgrade a route needs. Calling off a cable while it is being laid refunds what you actually paid for it.
|
||||
|
|
|
|||
|
|
@ -491,7 +491,6 @@
|
|||
"Reach 45% of the internet and serve 300 Gbps":"Couvre 45 % d’internet et sers 300 Gbps",
|
||||
"Red Sea Crisis":"Crise en mer Rouge",
|
||||
"Every cable through the Red Sea is cut, and so is the hop to Egypt. Get Marseille talking to Singapore anyway: round Africa, overland, or the other way round the planet.":"Tous les câbles de la mer Rouge sont coupés, tout comme le saut vers l’Égypte. Fais quand même parler Marseille et Singapore : par le tour de l’Afrique, par voie terrestre, ou par l’autre côté de la planète.",
|
||||
"A path from Marseille to Singapore, and 300 Gbps served":"Un chemin de Marseille à Singapore, et 300 Gbps servis",
|
||||
"The Cogentle Spat":"La brouille Cogentle",
|
||||
"Cogentle and Goggle are not speaking, and this time it is permanent. Buy the cheap transit if you dare.":"Cogentle et Goggle ne se parlent plus, et cette fois c’est définitif. Achète le transit pas cher, si tu l’oses.",
|
||||
"99% reach and 150 Gbps served":"99 % de couverture et 150 Gbps servis",
|
||||
|
|
@ -2410,7 +2409,6 @@
|
|||
"Half of the Flanders duopoly, on coax. Keeps a tiny port at Frites-IX and hides behind its international parent, so bring a PNI.":"La moitié du duopole flamand, sur coax. Garde un minuscule port à Frites-IX et se cache derrière sa maison mère internationale : prévois un PNI.",
|
||||
"The other half of the duopoly, on copper and fiber. Strictly domestic: the world reaches it through its wholesale arm.":"L’autre moitié du duopole, sur cuivre et fibre. Strictement national : le monde l’atteint via sa branche de gros.",
|
||||
"Proxyminus’s wholesale arm. Present at nearly every exchange on Earth, and Belgian about it.":"La branche de gros de Proxyminus. Présente sur presque tous les IX de la planète, et à la belge.",
|
||||
"Mobile, cable and a lot of Walloon highway dark fiber. Zesty.":"Mobile, câble et plein de fibre noire le long des autoroutes wallonnes. Avec du zeste.",
|
||||
"Private 5G and business fiber from Oostkamp. Its traffic arrives in sudden industrial bursts.":"5G privée et fibre pro depuis Oostkamp. Son trafic arrive par rafales industrielles soudaines.",
|
||||
"A forestry strike stopped the waste-wood deliveries to the power plant that cools {dc}. No steam, no chillers: your routers in {city} run at half capacity.":"Une grève forestière a stoppé les livraisons de déchets de bois à la centrale qui refroidit {dc}. Pas de vapeur, pas de groupes froids : tes routeurs de {city} tournent à mi-capacité.",
|
||||
"A trawler off Ostend dragged its gear straight through your {a}–{b} cable. The North Sea is about thirty metres deep and full of boats.":"Un chalutier au large d’Ostende a traîné son chalut en plein sur ton câble {a}–{b}. La mer du Nord fait une trentaine de mètres de fond et grouille de bateaux.",
|
||||
|
|
@ -2620,4 +2618,9 @@
|
|||
"attacks on {city} are hauled to {to} for scrubbing: +{ms} ms":"les attaques sur {city} sont acheminées vers {to} pour le scrubbing : +{ms} ms",
|
||||
"Scrubbing centers":"Centres de scrubbing",
|
||||
"Build one in as many POPs as you like. An attack goes to the nearest working center, and what it cannot take spills to the next. A far center means the flood rides your backbone there and the victim’s traffic comes back the long way: it fills your links, adds latency, and whatever the links cannot carry is not scrubbed. Customers who buy DDoS protection notice when their attacks cross an ocean.":"Construis-en dans autant de POP que tu veux. Une attaque va vers le centre en service le plus proche, et ce qu’il ne peut pas absorber passe au suivant. Un centre lointain veut dire que le flot traverse ton backbone jusque-là et que le trafic de la victime revient par le chemin long : ça remplit tes liens, ça ajoute de la latence, et ce que les liens ne peuvent pas porter n’est pas nettoyé. Les clients qui achètent une protection DDoS le remarquent quand leurs attaques traversent un océan.",
|
||||
"Tangerine’s Belgian daughter: mobile, cable and a lot of Walloon highway dark fiber. Zesty.":"La fille belge de Tangerine : mobile, câble et beaucoup de fibre noire le long des autoroutes wallonnes. Acidulé.",
|
||||
"Luxembourg’s post office, which also runs the phones and most of the fiber. Your packets wait at the counter until somebody collects them.":"La poste du Luxembourg, qui gère aussi le téléphone et presque toute la fibre. Tes paquets attendent au guichet que quelqu’un vienne les chercher.",
|
||||
"A path from Marseille to Singapore, and 80 Gbps between Asia and the rest of your network for 30 days in a row":"Un chemin de Marseille à Singapour, et 80 Gbps entre l’Asie et le reste de ton réseau pendant 30 jours d’affilée",
|
||||
"Your traffic to and from Asia":"Ton trafic vers et depuis l’Asie",
|
||||
"Days in a row at {g} or more":"Jours d’affilée à {g} ou plus",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -490,7 +490,6 @@
|
|||
"Start in Stuttgart, where nobody sells transit. Reach the internet through peering, PNIs, caches and your own fiber only. No transit anywhere, ever.":"Parti da Stuttgart, dove nessuno vende transit. Raggiungi internet solo con peering, PNI, cache e la tua fibra. Niente transit, da nessuna parte, mai.",
|
||||
"Red Sea Crisis":"Crisi nel Mar Rosso",
|
||||
"Every cable through the Red Sea is cut, and so is the hop to Egypt. Get Marseille talking to Singapore anyway: round Africa, overland, or the other way round the planet.":"Ogni cavo nel Mar Rosso è tagliato, e anche il salto verso l’Egitto. Fai parlare Marseille con Singapore lo stesso: girando intorno all’Africa, via terra o dall’altra parte del pianeta.",
|
||||
"A path from Marseille to Singapore, and 300 Gbps served":"Un percorso da Marseille a Singapore e 300 Gbps serviti",
|
||||
"The Cogentle Spat":"La lite Cogentle",
|
||||
"Cogentle and Goggle are not speaking, and this time it is permanent. Buy the cheap transit if you dare.":"Cogentle e Goggle non si parlano, e stavolta è per sempre. Compra il transit economico, se hai il coraggio.",
|
||||
"99% reach and 150 Gbps served":"99% di copertura e 150 Gbps serviti",
|
||||
|
|
@ -2409,7 +2408,6 @@
|
|||
"Half of the Flanders duopoly, on coax. Keeps a tiny port at Frites-IX and hides behind its international parent, so bring a PNI.":"Metà del duopolio fiammingo, su cavo coassiale. Tiene una porta minuscola a Frites-IX e si nasconde dietro la sua capogruppo internazionale: porta un PNI.",
|
||||
"The other half of the duopoly, on copper and fiber. Strictly domestic: the world reaches it through its wholesale arm.":"L'altra metà del duopolio, su rame e fibra. Strettamente nazionale: il mondo la raggiunge tramite il suo ramo wholesale.",
|
||||
"Proxyminus’s wholesale arm. Present at nearly every exchange on Earth, and Belgian about it.":"Il ramo wholesale di Proxyminus. Presente in quasi tutti gli exchange della Terra, e molto belga al riguardo.",
|
||||
"Mobile, cable and a lot of Walloon highway dark fiber. Zesty.":"Mobile, cavo e tanta dark fiber lungo le autostrade vallone. Frizzante.",
|
||||
"Private 5G and business fiber from Oostkamp. Its traffic arrives in sudden industrial bursts.":"5G privato e fibra per le aziende da Oostkamp. Il suo traffico arriva a improvvise raffiche industriali.",
|
||||
"A forestry strike stopped the waste-wood deliveries to the power plant that cools {dc}. No steam, no chillers: your routers in {city} run at half capacity.":"Uno sciopero forestale ha fermato le consegne di scarti di legno alla centrale che raffredda {dc}. Niente vapore, niente chiller: i tuoi router a {city} vanno a metà capacità.",
|
||||
"A trawler off Ostend dragged its gear straight through your {a}–{b} cable. The North Sea is about thirty metres deep and full of boats.":"Un peschereccio al largo di Ostenda ha trascinato le reti dritte sul tuo cavo {a}–{b}. Il Mare del Nord è profondo una trentina di metri e pieno di barche.",
|
||||
|
|
@ -2620,4 +2618,9 @@
|
|||
"attacks on {city} are hauled to {to} for scrubbing: +{ms} ms":"gli attacchi su {city} vengono portati a {to} per lo scrubbing: +{ms} ms",
|
||||
"Scrubbing centers":"Centri di scrubbing",
|
||||
"Build one in as many POPs as you like. An attack goes to the nearest working center, and what it cannot take spills to the next. A far center means the flood rides your backbone there and the victim’s traffic comes back the long way: it fills your links, adds latency, and whatever the links cannot carry is not scrubbed. Customers who buy DDoS protection notice when their attacks cross an ocean.":"Costruiscine uno in tutti i POP che vuoi. Un attacco va al centro funzionante più vicino, e quello che non riesce a gestire passa al successivo. Un centro lontano vuol dire che il flusso viaggia sul tuo backbone fin lì e il traffico della vittima torna per la strada lunga: riempie i tuoi link, aggiunge latenza, e quello che i link non riescono a portare non viene pulito. I clienti che comprano protezione DDoS se ne accorgono quando i loro attacchi attraversano un oceano.",
|
||||
"Tangerine’s Belgian daughter: mobile, cable and a lot of Walloon highway dark fiber. Zesty.":"La figlia belga di Tangerine: mobile, cavo e un bel po’ di dark fiber lungo le autostrade della Vallonia. Frizzante.",
|
||||
"Luxembourg’s post office, which also runs the phones and most of the fiber. Your packets wait at the counter until somebody collects them.":"Le poste del Lussemburgo, che gestiscono anche i telefoni e quasi tutta la fibra. I tuoi pacchetti aspettano allo sportello finché qualcuno non passa a ritirarli.",
|
||||
"A path from Marseille to Singapore, and 80 Gbps between Asia and the rest of your network for 30 days in a row":"Un percorso da Marsiglia a Singapore, e 80 Gbps tra l’Asia e il resto della tua rete per 30 giorni di fila",
|
||||
"Your traffic to and from Asia":"Il tuo traffico da e per l’Asia",
|
||||
"Days in a row at {g} or more":"Giorni di fila con almeno {g}",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -490,7 +490,6 @@
|
|||
"Start in Stuttgart, where nobody sells transit. Reach the internet through peering, PNIs, caches and your own fiber only. No transit anywhere, ever.":"Comece em Stuttgart, onde ninguém vende transit. Alcance a internet só com peering, PNIs, caches e sua própria fibra. Nada de transit, em lugar nenhum, nunca.",
|
||||
"Red Sea Crisis":"Crise no Mar Vermelho",
|
||||
"Every cable through the Red Sea is cut, and so is the hop to Egypt. Get Marseille talking to Singapore anyway: round Africa, overland, or the other way round the planet.":"Todos os cabos pelo Mar Vermelho foram cortados, e o salto para o Egito também. Faça Marseille falar com Singapore mesmo assim: contornando a África, por terra ou pelo outro lado do planeta.",
|
||||
"A path from Marseille to Singapore, and 300 Gbps served":"Um caminho de Marseille a Singapore, e 300 Gbps servidos",
|
||||
"The Cogentle Spat":"A briga da Cogentle",
|
||||
"Cogentle and Goggle are not speaking, and this time it is permanent. Buy the cheap transit if you dare.":"Cogentle e Goggle não se falam, e desta vez é pra sempre. Compre o transit barato, se tiver coragem.",
|
||||
"99% reach and 150 Gbps served":"99% de alcance e 150 Gbps servidos",
|
||||
|
|
@ -2408,7 +2407,6 @@
|
|||
"Half of the Flanders duopoly, on coax. Keeps a tiny port at Frites-IX and hides behind its international parent, so bring a PNI.":"Metade do duopólio de Flandres, no coaxial. Mantém uma porta minúscula no Frites-IX e se esconde atrás da matriz internacional, então leve um PNI.",
|
||||
"The other half of the duopoly, on copper and fiber. Strictly domestic: the world reaches it through its wholesale arm.":"A outra metade do duopólio, em cobre e fibra. Estritamente doméstica: o mundo chega nela pelo seu braço de atacado.",
|
||||
"Proxyminus’s wholesale arm. Present at nearly every exchange on Earth, and Belgian about it.":"O braço de atacado da Proxyminus. Presente em quase todo exchange da Terra, e bem belga quanto a isso.",
|
||||
"Mobile, cable and a lot of Walloon highway dark fiber. Zesty.":"Móvel, cabo e muita dark fiber nas rodovias da Valônia. Cítrica.",
|
||||
"Private 5G and business fiber from Oostkamp. Its traffic arrives in sudden industrial bursts.":"5G privado e fibra empresarial de Oostkamp. O tráfego chega em rajadas industriais repentinas.",
|
||||
"A forestry strike stopped the waste-wood deliveries to the power plant that cools {dc}. No steam, no chillers: your routers in {city} run at half capacity.":"Uma greve florestal parou as entregas de resíduos de madeira para a usina que refrigera o {dc}. Sem vapor, sem chillers: seus routers em {city} rodam a meia capacidade.",
|
||||
"A trawler off Ostend dragged its gear straight through your {a}–{b} cable. The North Sea is about thirty metres deep and full of boats.":"Um barco de arrasto ao largo de Ostende arrastou as redes bem em cima do seu cabo {a}–{b}. O Mar do Norte tem uns trinta metros de profundidade e é cheio de barcos.",
|
||||
|
|
@ -2620,4 +2618,9 @@
|
|||
"attacks on {city} are hauled to {to} for scrubbing: +{ms} ms":"os ataques em {city} são levados a {to} para scrubbing: +{ms} ms",
|
||||
"Scrubbing centers":"Centros de scrubbing",
|
||||
"Build one in as many POPs as you like. An attack goes to the nearest working center, and what it cannot take spills to the next. A far center means the flood rides your backbone there and the victim’s traffic comes back the long way: it fills your links, adds latency, and whatever the links cannot carry is not scrubbed. Customers who buy DDoS protection notice when their attacks cross an ocean.":"Construa um em quantos POPs quiser. Um ataque vai para o centro ativo mais próximo, e o que ele não aguenta transborda para o seguinte. Um centro distante significa que a enxurrada viaja pelo seu backbone até lá e o tráfego da vítima volta pelo caminho longo: enche seus links, aumenta a latência, e o que os links não conseguem levar não é limpo. Clientes que compram proteção DDoS percebem quando os ataques deles atravessam um oceano.",
|
||||
"Tangerine’s Belgian daughter: mobile, cable and a lot of Walloon highway dark fiber. Zesty.":"A filha belga da Tangerine: celular, cabo e muita dark fiber ao longo das rodovias da Valônia. Cítrica.",
|
||||
"Luxembourg’s post office, which also runs the phones and most of the fiber. Your packets wait at the counter until somebody collects them.":"Os correios de Luxemburgo, que também cuidam dos telefones e de quase toda a fibra. Seus pacotes esperam no balcão até alguém vir buscar.",
|
||||
"A path from Marseille to Singapore, and 80 Gbps between Asia and the rest of your network for 30 days in a row":"Um caminho de Marselha a Singapura, e 80 Gbps entre a Ásia e o resto da sua rede por 30 dias seguidos",
|
||||
"Your traffic to and from Asia":"Seu tráfego de e para a Ásia",
|
||||
"Days in a row at {g} or more":"Dias seguidos com {g} ou mais",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -705,7 +705,7 @@ const dfBuildCost=km=>Math.round(25000+km*120);
|
|||
const dfBuildDays=km=>Math.round(120+km*0.25);
|
||||
const ampCount=km=>Math.max(0,Math.floor(km/AMP_EVERY));
|
||||
const fmtCap=g=>g>=1000?(+(g/1000).toFixed(1))+'T':g+'G';
|
||||
const WAVECO=['Zay-No Fiber','Loomin’ Technologies','Clown Castle Fiber','Bolt Technology','youNetworks','GTT (Got Tangled Twice)'];
|
||||
const WAVECO=['Zay-No Fiber','Loomin’ Technologies','Clown Castle Fiber','Bolt Technology','youNetworks','G&T (Gin and Transit)'];
|
||||
const MONTHS=[tr('Jan'),tr('Feb'),tr('Mar'),tr('Apr'),tr('May'),tr('Jun'),tr('Jul'),tr('Aug'),tr('Sep'),tr('Oct'),tr('Nov'),tr('Dec')];
|
||||
const REG={AM:tr('Americas'),SA:tr('South America'),EU:tr('Europe'),AF:tr('Africa'),AS:tr('Asia'),OC:tr('Oceania')};
|
||||
const waveMo=(km,sub,tier)=>Math.round((300+km*1.2)*LT[tier].m*(sub?1.8:1));
|
||||
|
|
@ -1185,7 +1185,8 @@ NETS.push(
|
|||
{id:'tny',name:'Telenyet',asn:6848,type:'eye',pol:'selective',minIx:10,minPni:30,share:.008,up:['lvl'],col:'#FFC421',pops:['bru','oos','ams','fra','lon'],ix:['bru'],blurb:tr('Half of the Flanders duopoly, on coax. Keeps a tiny port at Frites-IX and hides behind its international parent, so bring a PNI.')},
|
||||
{id:'pxm',name:'Proxyminus',asn:5432,type:'eye',pol:'selective',minIx:15,minPni:40,share:.008,up:['bgs','lvl'],col:'#5C2D91',pops:['bru','oos','ams'],ix:['bru'],blurb:tr('The other half of the duopoly, on copper and fiber. Strictly domestic: the world reaches it through its wholesale arm.')},
|
||||
{id:'bgs',name:'B.I.G.S.',asn:6774,type:'t2',pol:'selective',minIx:10,minPni:30,share:.005,price:5,up:['lvl'],col:'#7B2D8E',pops:['bru','bet','ams','fra','lon','par','mrs','nyc','sin'],ix:['bru','bet','ams','fra','lon','par'],blurb:tr('Proxyminus’s wholesale arm. Present at nearly every exchange on Earth, and Belgian about it.')},
|
||||
{id:'cit',name:'Citrus Belgium',asn:47377,type:'eye',pol:'selective',minIx:10,minPni:30,share:.005,up:['lvl'],col:'#FF7900',pops:['bru','par'],ix:['bru'],blurb:tr('Mobile, cable and a lot of Walloon highway dark fiber. Zesty.')},
|
||||
{id:'cit',name:'Citrus Belgium',asn:47377,type:'eye',pol:'selective',minIx:10,minPni:30,share:.005,up:['lvl'],col:'#FF7900',pops:['bru','par'],ix:['bru'],blurb:tr('Tangerine’s Belgian daughter: mobile, cable and a lot of Walloon highway dark fiber. Zesty.')},
|
||||
{id:'pst',name:'Poste Restante',asn:6663,type:'eye',pol:'selective',minIx:4,minPni:15,share:.001,up:['lvl','tly'],col:'#FFCC00',pops:['bet','fra','ams'],ix:['bet','fra'],blurb:tr('Luxembourg’s post office, which also runs the phones and most of the fiber. Your packets wait at the counter until somebody collects them.')},
|
||||
{id:'cms',name:'CityMess',asn:199095,type:'eye',pol:'open',share:.002,up:['cog'],col:'#00B2A9',pops:['oos','bru'],ix:['bru'],blurb:tr('Private 5G and business fiber from Oostkamp. Its traffic arrives in sudden industrial bursts.')});
|
||||
NETS.push({id:'kys',name:'Kyiv Superstar',asn:15859,type:'eye',pol:'selective',minIx:5,minPni:20,share:.006,col:'#0055B8',pops:['kyv','waw','fra'],ix:['kyv'],blurb:tr('Ukraine’s biggest mobile network. Has kept working through things most networks never have to plan for.')});
|
||||
NETS.push({id:'stc',name:'Sticky Telecom',asn:39368,type:'t2',pol:'selective',minIx:10,minPni:30,share:.01,price:8,col:'#4F008C',pops:['ruh','jed','dxb','fra','lon','cai'],ix:['ruh'],blurb:tr('The Kingdom’s incumbent. Once you are in, you stay in.')},
|
||||
|
|
@ -1354,7 +1355,7 @@ const BIZ_T={
|
|||
bulk:{l:tr('Bulk backup transfer (latency does not matter)'),opts:[100,200,400],rate:0,l2:true,scenic:true,km:0.1,lv:2,names:['Glacier Slow Storage','Tape Backup Tortoise','Scenic Route Archives','Cold Storage Cold Cuts','Sloth Sync','Eventually Consistent Inc.','Snail Mail Data Co.']},
|
||||
event:{l:tr('Event network'),opts:[100,200,400,800,1600,3200],rate:0,event:true,lv:2,names:['Carnaval Parade','Diwali Streaming Night','The Big Football Final','NANOG 99','Burning Router Festival','Euro-Pop Song Contest','Formula Ping Grand Prix','The Big Game','Olympic Pings','A Pop Megastar Stadium Tour','LAN Party of the Century','The Keynote (One More Thing)','Gamer-Con Expo','Oktoberfest Livestream']},
|
||||
sdwan:{l:tr('SD-WAN for a chain'),opts:[1,2,5,10],rate:0,l2:true,sdwan:true,km:0,lv:2,names:['Kebab Kingdom','Pretzel Palace','Burger Router Inc.','Café Latte-ncy','Hardware Hut Stores','Pharma-See Pharmacies','Bank of Tiny Branches','Supermarket Superhighway','Fitness Pings Gyms','Hotel Hops Group','Doughnut Data Diners']},
|
||||
wwave:{l:tr('Wholesale wave'),opts:[1],rate:0,fiber:true,lv:2,names:['Zay-No Fiber','Loomin’ Technologies','Clown Castle Fiber','GTT (Got Tangled Twice)','A Hyperscaler Who Shall Not Be Named','Megapork','youNetworks']},
|
||||
wwave:{l:tr('Wholesale wave'),opts:[1],rate:0,fiber:true,lv:2,names:['Zay-No Fiber','Loomin’ Technologies','Clown Castle Fiber','G&T (Gin and Transit)','A Hyperscaler Who Shall Not Be Named','Megapork','youNetworks']},
|
||||
dfpair:{l:tr('Dark fiber pair lease'),opts:[1],rate:0,fiber:true,lv:3,names:['A Hyperscaler Who Shall Not Be Named','Goggle Fiber Division','Faceplant Infra','Amazin’ Backbone Team','A Very Secretive Trading Firm']},
|
||||
scrub:{l:tr('DDoS protection + DIA'),opts:[1,5,10,20],rate:900},
|
||||
aiwan:{l:tr('AI WAN between two AI factories'),opts:[3200,6400,12800],rate:0,l2:true,div:true,mega:true,km:0.45,lv:4,names:['Fairweather AI WAN','Planet-Scale Superfactory Link','Two Brains One Model Inc.','Distributed Godlike Compute','The Gigawatt Handshake']},
|
||||
|
|
@ -1546,7 +1547,7 @@ const scnName=()=>S.scn.id==='weekly'?tr('Weekly {key}',{key:S.scn.key}):SCN.fin
|
|||
const brIxN=()=>CITIES.filter(c=>c.br&&S.ixp[c.id]!==undefined).length;
|
||||
const SCN=[
|
||||
{id:'stg',n:tr('Only Spätzle-IX'),city:'stg',cash:400000,days:730,rules:{noTransit:true,local:true},d:tr('Start in Stuttgart, where nobody sells transit. Reach the internet through peering, PNIs, caches and your own fiber only. No transit anywhere, ever.'),goal:tr('Reach 45% of the internet and serve 300 Gbps'),ok:()=>R.reach>=0.45&&R.served>=300},
|
||||
{id:'redsea',n:tr('Red Sea Crisis'),city:'mrs',cash:2500000,days:540,rules:{banCities:['cai','jed'],banPairs:['eig:dxb-mrs','gbi:fuj-mrs','smw4:khi-mrs','smw6:mrs-bom','smw6:mrs-sin','peace:mrs-sin','aae:mrs-hkg','twoaf:mrs-bom','medn:cai-mrs','medn:ist-mrs','twoaf:jnb-mrs','eassy:nbo-mrs']},d:tr('Every cable through the Red Sea is cut, and so is the hop to Egypt. Get Marseille talking to Singapore anyway: round Africa, overland, or the other way round the planet.'),goal:tr('A path from Marseille to Singapore, and 300 Gbps served'),ok:()=>pathExists('mrs','sin')&&R.served>=300},
|
||||
{id:'redsea',n:tr('Red Sea Crisis'),city:'mrs',cash:2500000,days:540,rules:{banCities:['cai','jed'],banPairs:['eig:dxb-mrs','gbi:fuj-mrs','smw4:khi-mrs','smw6:mrs-bom','smw6:mrs-sin','peace:mrs-sin','aae:mrs-hkg','twoaf:mrs-bom','medn:cai-mrs','medn:ist-mrs','twoaf:jnb-mrs','eassy:nbo-mrs']},d:tr('Every cable through the Red Sea is cut, and so is the hop to Egypt. Get Marseille talking to Singapore anyway: round Africa, overland, or the other way round the planet.'),goal:tr('A path from Marseille to Singapore, and 80 Gbps between Asia and the rest of your network for 30 days in a row'),ok:()=>pathExists('mrs','sin')&&(S.stats.asiaRun||0)>=RS_DAYS},
|
||||
{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},
|
||||
|
|
@ -1568,7 +1569,7 @@ function beginGame(nm,city,o={}){if(needPitch()&&!UI.pitched){UI.pendGame=[nm,ci
|
|||
if(sc.cash)S.cash=sc.cash;if(sc.setup)sc.setup();
|
||||
for(const m of S.scn.mods){if(m==='pricey')S.priceMul=1.3;if(m==='poor')S.cash=100000;if(m==='chaos')S.scn.rules.chaos=true;if(m==='boom')S.scn.rules.boom=true;if(m==='dk')S.scn.rules.dkAll=true;if(m==='sharks')S.scn.rules.sharks=true;}}
|
||||
track('game_new');UI.started=true;closeModal();compute();cam.x=CITY[city].x;cam.y=CITY[city].y;cam.z=innerWidth<760?1.1:1.4;selectCity(city);
|
||||
toast(S.scn?`<b>${esc(S.scn.name)}</b><br>${esc(o.scn.goal||tr('Serve as much traffic as you can in one year.'))} ${tr('You have {n} days.',{n:S.scn.days})}`:S.mode==='sandbox'?tr('<b>Sandbox mode</b><br>A billion dollars, every unlock, and nothing ever breaks. Build the internet you always wanted.'):tr('<b>Welcome, {name}!</b><br>The RIPE NCC assigned you AS{asn}. Your first router is humming in {city}.',{name:esc(nm),asn:S.asn,city:CITY[city].name}),'goal');
|
||||
toast(S.scn?`<b>${esc(S.scn.name)}</b><br>${o.scn.goal?esc(o.scn.goal)+'.':tr('Serve as much traffic as you can in one year.')} ${tr('You have {n} days.',{n:S.scn.days})}`:S.mode==='sandbox'?tr('<b>Sandbox mode</b><br>A billion dollars, every unlock, and nothing ever breaks. Build the internet you always wanted.'):tr('<b>Welcome, {name}!</b><br>The RIPE NCC assigned you AS{asn}. Your first router is humming in {city}.',{name:esc(nm),asn:S.asn,city:CITY[city].name}),'goal');
|
||||
renderAll();save();if(!S.scn&&S.mode!=='sandbox')tutorialStart();}
|
||||
/* ---------- conference season ---------- */
|
||||
const CONFS=[{n:'NANOG',c:'chi',m:1},{n:'APRICOT',c:'sin',m:1},{n:'Peering Days',c:'waw',m:2},{n:'DKNOG',c:'cph',m:2,j:N_('The hallway track moved to a bar by the harbour, where the woman behind the bar kept pouring aquavit long past midnight and asked nobody about their AS path. Back at the hotel bar, someone said “just one more drink”. Your BGP sessions stayed up all night. So did you.')},{n:'UKNOF',c:'lon',m:3},{n:'MENOG',c:'dxb',m:3},{n:'NZNOG',c:'akl',m:3},{n:'RIPE',c:'ams',m:4},{n:'NANOG',c:'sea',m:5},{n:'IX Forum',c:'tok',m:6},{n:'AfPIF',c:'nbo',m:7},{n:'AusNOG',c:'syd',m:8},{n:'NLNOG Day',c:'ams',m:8},{n:'LACNOG',c:'sao',m:9},{n:'NANOG',c:'ash',m:9},{n:'DENOG',c:'fra',m:10},{n:'RIPE',c:'ber',m:10},{n:'PTT Forum',c:'sao',m:11},{n:'PacNOG',c:'suv',m:11}];
|
||||
|
|
@ -2705,6 +2706,7 @@ function dayTick(){
|
|||
{const a=S.ev.ddos;if(a&&a.until>d&&R&&S.pops[a.city])a.worst=Math.min(a.worst===undefined?1:a.worst,sfOf(R,a.city));}
|
||||
if(scnRule('ddos')&&!(S.scn.done||S.scn.failed)&&d>=(+S.scn.nextDdos||3)&&!(S.ev.ddos&&S.ev.ddos.until>d)){ddosAttack();S.scn.nextDdos=d+3+Math.floor(Math.random()*5);}
|
||||
if(R&&R.demand>0)S.stats.clean=R.served/R.demand>=0.995?(S.stats.clean||0)+1:0;
|
||||
if(S.scn&&S.scn.id==='redsea')S.stats.asiaRun=asiaG()>=RS_G?(S.stats.asiaRun||0)+1:0;
|
||||
if(S.ev.php===d)toast(tr('<b>The internet is back.</b><br>Half of it, anyway. Everything was patched in a hurry and nobody learned anything.'),'good');
|
||||
for(const k in S.peers){const [id,c]=k.split('@'),sn=snub(id,c);if(!sn)continue;delete S.peers[k];S.stats.depeered=(S.stats.depeered||0)+1;
|
||||
toast(tr('<b>{net} de-peered you at {ix} in {city}.</b><br>{why} Traffic falls back to your next best path.',{net:esc(NET[id].name),ix:esc(ixName(c)),city:esc(CITY[ixCity(c)].name),why:esc(sn.why)}),'bad');}
|
||||
|
|
@ -3633,10 +3635,12 @@ function offTransitHint(id,city){const n=NET[id];if(n.type==='t1')return tr('Tie
|
|||
if(pniC.length)return tr('PNI in {city}: {why}',{city:CITY[pniC[0]].name,why:pOk.why});{const x=nearestSpot(id);return x?tr('Not in your cities yet. Nearest: {city}',{city:CITY[x.c].name}):tr('Not present in any of your cities yet');}}
|
||||
function transitTop(ids,k=5){const m={};for(const id of ids)for(const [n,v] of Object.entries(R.tNet[id]||{}))m[n]=(m[n]||0)+v;return Object.entries(m).filter(([,v])=>v>0.01).sort((a,b)=>b[1]-a[1]).slice(0,k);}
|
||||
/* ---------- scenario and level progress (#34) ---------- */
|
||||
// Red Sea Crisis (#113): traffic your links carry into and out of Asia, and how long it has stayed above the goal.
|
||||
const RS_G=80,RS_DAYS=30,asiaG=()=>S.links.reduce((a,l)=>a+((CITY[l.a].reg==='AS')!==(CITY[l.b].reg==='AS')?(R.load[l.id]||0):0),0);
|
||||
const pSrv=g=>({l:tr('Traffic served'),v:R.served,max:g,txt:`${fmtG(R.served)} / ${fmtG(g)}`});
|
||||
const pReach=()=>({l:tr('Reach'),v:R.reach,max:0.99,txt:`${pct(R.reach)} / 99%`});
|
||||
const pChk=(l,ok)=>({l,v:ok?1:0,max:1,txt:ok?'✓':'—'});
|
||||
const SCN_PROG={stg:()=>[{l:tr('Reach'),v:R.reach,max:0.45,txt:`${pct(R.reach)} / 45%`},pSrv(300)],redsea:()=>[pChk(tr('A path from Marseille to Singapore'),pathExists('mrs','sin')),pSrv(300)],spat:()=>[pReach(),pSrv(150)],
|
||||
const SCN_PROG={stg:()=>[{l:tr('Reach'),v:R.reach,max:0.45,txt:`${pct(R.reach)} / 45%`},pSrv(300)],redsea:()=>{const g=asiaG(),n=S.stats.asiaRun||0;return [pChk(tr('A path from Marseille to Singapore'),pathExists('mrs','sin')),{l:tr('Your traffic to and from Asia'),v:Math.min(g,RS_G),max:RS_G,txt:`${fmtG(g)} / ${fmtG(RS_G)}`},{l:tr('Days in a row at {g} or more',{g:fmtG(RS_G)}),v:n,max:RS_DAYS,txt:`${n} / ${RS_DAYS}`}];},spat:()=>[pReach(),pSrv(150)],
|
||||
carnaval:()=>[pChk(tr('Carnaval delivered in full'),(S.stats.evFull||0)>=1)],ixbr:()=>{const n=brIxN();return [{l:tr('IX.brrr ports'),v:n,max:20,txt:`${n} / 20`},pChk(tr('A port on IX.brrr Manaus'),S.ixp.mao!==undefined),pSrv(200)];},
|
||||
c2c:()=>[pChk(tr('A path from Cape Town to Cairo'),pathExists('cpt','cai')),...['lag','nbo'].map(c=>pChk(tr('POP in {city}',{city:CITY[c].name}),!!S.pops[c])),pSrv(150)],
|
||||
pac:()=>[pChk(tr('1.6T on every hop from Los Angeles to Sydney'),fastPath('lax','syd',1600)),pChk(tr('A path from Los Angeles to Tokyo'),pathExists('lax','tok')),pSrv(150)],
|
||||
|
|
|
|||
|
|
@ -1206,3 +1206,45 @@ test('#111 #121 #12 the road to Tier 1: what is missing, and where to meet each
|
|||
dom.window.innerWidth = 360; ev("ACT.netFilter({f:'out'});renderAll&&renderAll()");
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('#113 Red Sea Crisis wants traffic into Asia for a month, not broadband and a thin path on day 0', () => {
|
||||
const { ev, errors } = load();
|
||||
ev("UI.pitched=true;ACT.startScn({id:'redsea',sure:1});closeModal();S.tut=null;S.cash=1e10;S.nextFail=1e9;S.nextEvent=1e9");
|
||||
// the cheapest allowed cable route from Marseille to Singapore
|
||||
const route = JSON.parse(ev(`(()=>{const Rl=SCN.find(x=>x.id==='redsea').rules,bc=new Set(Rl.banCities),bp=new Set(Rl.banPairs),adj={};
|
||||
for(const p of CABLE_PAIRS){if(bp.has(p.cid+':'+p.a+'-'+p.b)||bp.has(p.cid+':'+p.b+'-'+p.a)||bc.has(p.a)||bc.has(p.b))continue;(adj[p.a]=adj[p.a]||[]).push([p.b,p.km]);(adj[p.b]=adj[p.b]||[]).push([p.a,p.km]);}
|
||||
const D={mrs:0},P={},Q=['mrs'],seen=new Set();while(Q.length){Q.sort((x,y)=>D[x]-D[y]);const u=Q.shift();if(seen.has(u))continue;seen.add(u);for(const [v,km] of adj[u]||[]){if(D[v]===undefined||D[u]+km<D[v]){D[v]=D[u]+km;P[v]=u;Q.push(v);}}}
|
||||
const r=['sin'];while(r[0]!=='mrs')r.unshift(P[r[0]]);return JSON.stringify(r);})()`));
|
||||
const build = (tier) => ev(`for(const c of ${JSON.stringify(route)})if(!S.pops[c])ACT.buildPop({city:c});const r=${JSON.stringify(route)};
|
||||
for(let i=1;i<r.length;i++){UI.pending=null;UI.via=null;UI.lmode='wave';UI.route='main';openLinkModal(r[i-1],r[i]);ACT.buildLink({tier:${tier}});closeModal();}`);
|
||||
// the old exploit: broadband with local transit everywhere for 300 Gbps served, and a 10G path
|
||||
build(0);
|
||||
ev("for(const c of ALLC.filter(c=>CITY[c].reg==='EU'&&!CITY[c].cn).slice(0,40)){if(!S.pops[c])ACT.buildPop({city:c});if(!S.pops[c].bb)ACT.launchBB({city:c});S.pops[c].bb.d=CITY[c].P*0.6;const t=NETS.find(n=>n.price&&n.pops.includes(c));if(t)ACT.buyTransit({city:c,net:t.id,tier:1});}for(const n of NETS.filter(n=>n.price&&n.pops.includes('mrs')).slice(0,2))ACT.buyTransit({city:'mrs',net:n.id,tier:1});after();dayTick()");
|
||||
assert.ok(ev('pathExists("mrs","sin")') && ev('R.served') >= 300, 'what used to be enough');
|
||||
assert.ok(!ev('S.scn.done'), 'no longer a win on day 0');
|
||||
assert.ok(ev('asiaG()') <= 10.01, 'a 10G path carries at most 10G into Asia');
|
||||
// a fresh start with a real 100G route and an upstream in Marseille, busy for a month
|
||||
ev("UI.pitched=true;ACT.startScn({id:'redsea',sure:1});closeModal();S.tut=null;S.cash=1e10;S.nextFail=1e9;S.nextEvent=1e9");
|
||||
build(1);
|
||||
ev("for(const n of NETS.filter(n=>n.price&&n.pops.includes('mrs')).slice(0,2))ACT.buyTransit({city:'mrs',net:n.id,tier:1});for(const c of ['sin','bom'])if(!S.pops[c].bb)ACT.launchBB({city:c});after()");
|
||||
assert.ok(!ev('S.scn.done'));
|
||||
let d = 0; while (!ev('S.scn.done') && d < 200) { ev('dayTick()'); d++; }
|
||||
assert.ok(ev('S.scn.done'), 'won once 80 Gbps crossed into Asia for 30 days in a row');
|
||||
assert.ok(d >= 30, `took ${d} days`);
|
||||
assert.match(ev("scnProg().items.map(x=>x.l+' '+x.txt).join(' | ')"), /Days in a row at 80(\.0)? Gbps or more 30 \/ 30/);
|
||||
// the streak only counts days in a row
|
||||
ev("S.stats.asiaRun=12;for(const l of S.links)l.cut=S.day+5;after();dayTick()");
|
||||
assert.equal(ev('S.stats.asiaRun'), 0);
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('#84 Luxembourg has its own eyeball ISP at LU-SICK; no real company names among wave sellers', () => {
|
||||
const { ev, errors } = load();
|
||||
ev("ACT.start({});S.cash=1e9;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'});S.transit=[];S.ixp={};S.pni=[];for(const n of t1Need())S.pni.push({id:n.id,net:n.id,city:'fra',tier:0});compute()");
|
||||
assert.equal(ev("NET.pst.type"), 'eye');
|
||||
assert.ok(ev("NET.pst.pops.includes('bet')&&ixMembers('bet').includes('pst')"), 'at Bettembourg and on LU-SICK');
|
||||
assert.ok(ev('R.reachable.pst'), 'a Tier 1 still reaches it through the carriers it buys from');
|
||||
assert.match(ev("peerOk('pst','ix','bet').why||''"), /Gbps/, 'selective: it wants some traffic first');
|
||||
assert.ok(ev("!WAVECO.some(n=>/GTT/.test(n))&&!BIZ_T.wwave.names.some(n=>/GTT/.test(n))"));
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue