diff --git a/CHANGELOG.md b/CHANGELOG.md index c736e69..ea5d320 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ All notable changes to this project are documented here. The project follows ## [Unreleased] +- Pick a peering policy in the peering inbox: Open to all, Selective or Closed. Open accepts every request and keeps the route servers; Selective gets fewer requests but you answer them yourself and request peers at each exchange, without route servers; Closed gets no requests, and customers hear you are hard to reach. The inbox also gets a button to raise all max-prefix limits at once. - Brazil is slimmer: 15 small cities that sat right next to bigger ones are gone from new games, leaving 25 in Brazil. A small city no longer crowds a bigger one in the same country unless it is a cable landing or a capital. Saved games keep their POPs in those cities, and the Order and Progress scenario now asks for 15 IX.brrr ports instead of 20. ## [1.33.0] — 2026-10-27 diff --git a/site/i18n/fr.js b/site/i18n/fr.js index af569c6..d0e3768 100644 --- a/site/i18n/fr.js +++ b/site/i18n/fr.js @@ -164,6 +164,9 @@ "Price war in {city}!
{ix} cut its port prices 10% to stop members drifting to {rival}. Your invoice just got smaller.":"Guerre des prix à {city} !
{ix} a baissé ses prix de port de 10 % pour empêcher ses membres de filer chez {rival}. Ta facture vient de maigrir.", "Prices locked until {date}.
Your vendor’s account manager is delighted. He gets a bonus for this.":"Prix bloqués jusqu’au {date}.
L’account manager de votre fournisseur est ravi. Il touche une prime pour ça.", "RTBH announced.
You blackholed the target in {city}. The flood stops, and so does everyone there.":"RTBH annoncé.
Tu as blackholé la cible à {city}. Le flood s’arrête, et tout le monde là-bas aussi.", +"Raised {n} max-prefix limits.
All growth, no leaks. Lucky.":"{n} limites max-prefix relevées.
Que de la croissance, aucune fuite. Chanceux.", +"Raised {n} max-prefix limits.
One of them was a route leak. It is in the NOC now.":"{n} limites max-prefix relevées.
L’une d’elles était une fuite de routes. Elle est dans le NOC maintenant.", +"Raised {n} max-prefix limits.
{k} of them were route leaks. They are in the NOC now.":"{n} limites max-prefix relevées.
{k} d’entre elles étaient des fuites de routes. Elles sont dans le NOC maintenant.", "Regen site removed.":"Site de régénération retiré.", "Regen site {n} is up.
Optical spans on {a}–{b} are now {km} km.":"Le site de régénération {n} est opérationnel.
Les portées optiques sur {a}–{b} font maintenant {km} km.", "Registered.
Flights booked, badge printed, business cards ordered in the wrong font.":"Inscrit.
Vols réservés, badge imprimé, cartes de visite commandées dans la mauvaise police.", @@ -724,6 +727,7 @@ "Click to tear down":"Clique pour couper la session", "Close":"Fermer", "Close site B":"Fermer le site B", +"Closed":"Fermée", "Cloud gaming platform":"Plateforme de cloud gaming", "Cloud gaming platforms, and the cloud gaming era: eyeballs want another 15%. A free PNI with Tel-Mess. Gear: Sienna WaveMagic 3.2T transponders.":"Plateformes de cloud gaming, et l’ère du cloud gaming : les eyeballs veulent encore 15 % de plus. Un PNI gratuit avec Tel-Mess. Matos : transpondeurs Sienna WaveMagic 3.2T.", "Cloud on-ramp":"On-ramp cloud", @@ -921,6 +925,7 @@ "Every port that connects you to another network, and where it is. Filter by type, city or network, and tap Open to go to it.":"Chaque port qui te relie à un autre réseau, et où il se trouve. Filtre par type, ville ou réseau, et touche Ouvrir pour y aller.", "Every session comes with a coffee break. Strictly enforced.":"Chaque session inclut une pause café. Strictement obligatoire.", "Every wave, fabric circuit and dark fiber IRU you rent between two of your POPs, next to what leased dark fiber or your own fiber would cost. Estimates include the line system, amplifiers and enough optics for today’s capacity. Build first, move the traffic, then cancel the lease.":"Chaque longueur d’onde, circuit fabric et IRU de fibre noire que tu loues entre deux de tes POP, à côté de ce que coûterait une fibre noire louée ou ta propre fibre. Les estimations incluent le système de ligne, les amplificateurs et assez d’optiques pour la capacité actuelle. Construis d’abord, déplace le trafic, puis résilie la location.", +"Everyone who asks gets a session, and the route servers work. Lots of tiny peers, and lots of max-prefix alerts.":"Quiconque demande obtient une session, et les route servers fonctionnent. Beaucoup de minuscules peers, et beaucoup d’alertes max-prefix.", "Everyone who pays you, happiest last. Below 60% they start to grumble, below 30% they are furious, and at 0% they cancel.":"Tous ceux qui te paient, les plus contents en dernier. Sous 60 % ils commencent à râler, sous 30 % ils sont furieux, et à 0 % ils résilient.", "Everything is in one building. Move some uplinks to the other site from the Transit and Peering tabs.":"Tout est dans un seul bâtiment. Déplace des uplinks vers l’autre site depuis les onglets Transit et Peering.", "Everywhere at Once":"Partout à la fois", @@ -947,6 +952,7 @@ "Fat-fingered ROADM":"Gros doigt sur le ROADM", "Fat-fingered wave":"Gros doigt sur une onde", "Feb":"févr", +"Fewer requests, and you answer them yourself. No route servers: go to each exchange and request the networks you want.":"Moins de demandes, et vous y répondez vous-même. Pas de route servers : allez sur chaque exchange demander les réseaux que vous voulez.", "Fiber across the sertão of the Northeast, one dirt road at a time.":"De la fibre à travers le sertão du Nordeste, une piste en terre à la fois.", "Fiber cut":"Coupure de fibre", "Fiber from {city}":"Fibre depuis {city}", @@ -1474,6 +1480,7 @@ "No subsea cable lands in {city}. The nearest landing station is {near}: run fiber there first, then take a cable from it.":"Aucun câble sous-marin n’atterrit à {city}. La station d’atterrissement la plus proche est {near} : amène d’abord la fibre jusque-là, puis prends un câble depuis là-bas.", "No thanks":"Non merci", "No traffic right now.":"Aucun trafic pour l’instant.", +"Nobody asks, and no route servers. Customers hear that you are hard to reach, so fewer of them call, and your reputation sinks.":"Personne ne demande, et pas de route servers. Les clients entendent dire que vous êtes difficile à joindre, donc moins d’entre eux appellent, et votre réputation coule.", "Nobody gives a foreign network a landing licence in mainland China.":"Personne ne donne de licence d’atterrissement à un réseau étranger en Chine continentale.", "Nobody is unhappy. Enjoy it while it lasts.":"Personne n’est mécontent. Profites-en tant que ça dure.", "Nobody lets you dig on this route. Borders and licences are in the way, so keep leasing.":"Personne ne te laisse creuser sur ce parcours. Frontières et licences font obstacle, alors continue de louer.", @@ -1517,6 +1524,7 @@ "Oceania":"Océanie", "Oct":"oct", "Off":"Inactif", +"Off while your peering policy is {pol}":"Désactivé tant que votre politique de peering est {pol}", "Offers":"Offres", "Offers here":"Offres ici", "Oil, gas and hurricanes. The generators here are sized for a week, and they have needed it.":"Pétrole, gaz et ouragans. Ici, les groupes électrogènes sont dimensionnés pour une semaine, et ça a déjà servi.", @@ -1566,6 +1574,7 @@ "Open peer: join the route server at {ix}":"Peer ouvert : rejoins le route server de {ix}", "Open peer: join the route server at {ix} ({city})":"Peer ouvert : rejoins le route server de {ix} ({city})", "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.":"Ouverte : peering avec tout le monde. Sélective : veut d’abord voir du trafic. Restrictive (les Tier 1) : peering uniquement avec les géants, via PNI. Payante : tout est dans le nom. Les gros réseaux sélectifs ont aussi leurs humeurs : dans certaines villes, ils refusent les nouveaux peers pendant quelques mois, ou n’acceptent que des PNI, et de temps en temps ils coupent une session que tu avais déjà. Essaie une autre ville ou un PNI, et redemande plus tard.", +"Open to all":"Ouverte à tous", "Open to work":"Open to work", "Open your browser menu (⋮).":"Ouvre le menu du navigateur (⋮).", "Open your dark fiber":"Voir ta fibre noire", @@ -1744,6 +1753,7 @@ "RTBH is free and instant, but it drops everything to the victim, attack and customer alike. An IX blackhole keeps the customer up but only about half the members honour it. HackBack 3000™ by Skynot AI sometimes ends it, and sometimes flattens an innocent and earns you a fine.":"Le RTBH est gratuit et instantané, mais il jette tout ce qui va vers la victime, attaque comme client. Un blackhole IX garde le client en ligne, mais seule la moitié environ des membres le respecte. HackBack 3000™ de Skynot AI y met parfois fin, et parfois écrase un innocent et te vaut une amende.", "Racks in the nave, cooling in the crypt. Divine uptime.":"Les racks dans la nef, le refroidissement dans la crypte. Uptime divin.", "Raise a full link’s metric so traffic prefers another path, upgrade it, or install Auto-TE.":"Augmente la métrique d’un lien plein pour que le trafic préfère un autre chemin, mets-le à niveau ou installe Auto-TE.", +"Raise all max-prefix limits":"Relever toutes les limites max-prefix", "Raise the limit":"Relever la limite", "Raised the max-prefix limit for {who} at {ix} to {n}. They seemed nice.":"A relevé la limite max-prefix de {who} à {ix} à {n}. Ils avaient l’air sympas.", "Raised the max-prefix limit for {who} at {ix}. Correctly, this time.":"A relevé la limite max-prefix de {who} à {ix}. À raison, cette fois.", @@ -1903,6 +1913,7 @@ "Second site and metro ring":"Second site et anneau métropolitain", "Security team asks: “are we on PHP?” Everyone: “define we”":"L’équipe sécu demande : « on est sous PHP ? » Tout le monde : « définis “on” »", "See who":"Voir qui", +"Selective":"Sélective", "Selective networks in {region} need half the usual traffic to peer. Now is the time to ask for that PNI.":"Les réseaux sélectifs en {region} demandent deux fois moins de trafic pour peerer. C’est le moment de demander ce PNI.", "Sell internet to homes here. Starts around {start} and grows toward {max} while service is good. Pays {rate} per Gbps served, every month.":"Vends de l’Internet aux foyers d’ici. Démarre vers {start} et grimpe vers {max} tant que le service est bon. Rapporte {rate} par Gbps servi, chaque mois.", "Sell one {price}":"En vendre une {price}", diff --git a/site/i18n/it.js b/site/i18n/it.js index 80bd2ed..85958d1 100644 --- a/site/i18n/it.js +++ b/site/i18n/it.js @@ -164,6 +164,9 @@ "Price war in {city}!
{ix} cut its port prices 10% to stop members drifting to {rival}. Your invoice just got smaller.":"Guerra dei prezzi a {city}!
{ix} ha tagliato del 10% i prezzi delle porte per non farsi scappare i membri verso {rival}. La tua fattura si è appena alleggerita.", "Prices locked until {date}.
Your vendor’s account manager is delighted. He gets a bonus for this.":"Prezzi bloccati fino al {date}.
L’account manager del tuo fornitore è felicissimo. Ci prende un bonus.", "RTBH announced.
You blackholed the target in {city}. The flood stops, and so does everyone there.":"RTBH annunciato.
Hai messo il bersaglio a {city} in buco nero. Il flood si ferma, e con lui tutti quelli lì.", +"Raised {n} max-prefix limits.
All growth, no leaks. Lucky.":"Alzati {n} limiti max-prefix.
Tutta crescita, nessun leak. Fortuna.", +"Raised {n} max-prefix limits.
One of them was a route leak. It is in the NOC now.":"Alzati {n} limiti max-prefix.
Uno era un route leak. Ora è nel NOC.", +"Raised {n} max-prefix limits.
{k} of them were route leaks. They are in the NOC now.":"Alzati {n} limiti max-prefix.
{k} erano route leak. Ora sono nel NOC.", "Regen site removed.":"Sito di rigenerazione rimosso.", "Regen site {n} is up.
Optical spans on {a}–{b} are now {km} km.":"Il sito di rigenerazione {n} è attivo.
Le tratte ottiche su {a}–{b} ora sono di {km} km.", "Registered.
Flights booked, badge printed, business cards ordered in the wrong font.":"Iscritto.
Voli prenotati, badge stampato, biglietti da visita ordinati col font sbagliato.", @@ -724,6 +727,7 @@ "Click to tear down":"Clicca per chiudere la sessione", "Close":"Chiudi", "Close site B":"Chiudi il sito B", +"Closed":"Chiusa", "Cloud gaming platform":"Piattaforma di cloud gaming", "Cloud gaming platforms, and the cloud gaming era: eyeballs want another 15%. A free PNI with Tel-Mess. Gear: Sienna WaveMagic 3.2T transponders.":"Piattaforme di cloud gaming, e l'era del cloud gaming: gli eyeball vogliono un altro 15%. Un PNI gratuito con Tel-Mess. Gear: transponder Sienna WaveMagic 3.2T.", "Cloud on-ramp":"On-ramp cloud", @@ -921,6 +925,7 @@ "Every port that connects you to another network, and where it is. Filter by type, city or network, and tap Open to go to it.":"Ogni porta che ti collega a un’altra rete, e dove si trova. Filtra per tipo, città o rete, e tocca Apri per andarci.", "Every session comes with a coffee break. Strictly enforced.":"Ogni sessione include una pausa caffè. Obbligatoria.", "Every wave, fabric circuit and dark fiber IRU you rent between two of your POPs, next to what leased dark fiber or your own fiber would cost. Estimates include the line system, amplifiers and enough optics for today’s capacity. Build first, move the traffic, then cancel the lease.":"Ogni wave, circuito fabric e dark fiber IRU che affitti tra due tuoi POP, accanto a quanto costerebbe una dark fiber in affitto o la tua fibra. Le stime includono il sistema di linea, gli amplificatori e abbastanza ottiche per la capacità di oggi. Prima costruisci, poi sposta il traffico, infine disdici l’affitto.", +"Everyone who asks gets a session, and the route servers work. Lots of tiny peers, and lots of max-prefix alerts.":"Chiunque chieda ottiene una sessione, e i route server funzionano. Tanti peer minuscoli, e tanti allarmi max-prefix.", "Everyone who pays you, happiest last. Below 60% they start to grumble, below 30% they are furious, and at 0% they cancel.":"Tutti quelli che ti pagano, i più contenti in fondo. Sotto il 60% iniziano a brontolare, sotto il 30% sono furiosi, e a 0% disdicono.", "Everything is in one building. Move some uplinks to the other site from the Transit and Peering tabs.":"È tutto in un solo edificio. Sposta alcuni uplink sull’altro sito dalle schede Transit e Peering.", "Everywhere at Once":"Ovunque, contemporaneamente", @@ -947,6 +952,7 @@ "Fat-fingered ROADM":"ROADM col dito grosso", "Fat-fingered wave":"Wave col dito grosso", "Feb":"feb", +"Fewer requests, and you answer them yourself. No route servers: go to each exchange and request the networks you want.":"Meno richieste, e rispondi tu. Niente route server: vai su ogni exchange e chiedi le reti che vuoi.", "Fiber across the sertão of the Northeast, one dirt road at a time.":"Fibra attraverso il sertão del Nordest, una strada sterrata alla volta.", "Fiber cut":"Fibra tagliata", "Fiber from {city}":"Fibra da {city}", @@ -1474,6 +1480,7 @@ "No subsea cable lands in {city}. The nearest landing station is {near}: run fiber there first, then take a cable from it.":"Nessun cavo sottomarino approda a {city}. La stazione di approdo più vicina è {near}: porta prima la fibra fin lì, poi prendi un cavo da lì.", "No thanks":"No grazie", "No traffic right now.":"Nessun traffico al momento.", +"Nobody asks, and no route servers. Customers hear that you are hard to reach, so fewer of them call, and your reputation sinks.":"Nessuno chiede, e niente route server. I clienti sentono dire che sei difficile da raggiungere, quindi ne chiamano meno, e la tua reputazione affonda.", "Nobody gives a foreign network a landing licence in mainland China.":"Nessuno dà a una rete straniera una licenza di approdo nella Cina continentale.", "Nobody is unhappy. Enjoy it while it lasts.":"Nessuno è scontento. Goditela finché dura.", "Nobody lets you dig on this route. Borders and licences are in the way, so keep leasing.":"Su questa tratta nessuno ti lascia scavare. Confini e licenze sono d’intralcio, quindi continua ad affittare.", @@ -1517,6 +1524,7 @@ "Oceania":"Oceania", "Oct":"ott", "Off":"Off", +"Off while your peering policy is {pol}":"Spento finché la tua politica di peering è {pol}", "Offers":"Offerte", "Offers here":"Offerte qui", "Oil, gas and hurricanes. The generators here are sized for a week, and they have needed it.":"Petrolio, gas e uragani. I generatori qui sono dimensionati per una settimana, e ce n’è stato bisogno.", @@ -1566,6 +1574,7 @@ "Open peer: join the route server at {ix}":"Peer aperto: entra nel route server di {ix}", "Open peer: join the route server at {ix} ({city})":"Peer aperto: entra nel route server di {ix} ({city})", "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.":"Open: fa peering con chiunque. Selective: vuole prima vedere traffico. Restrictive (i Tier 1): fa peering solo con i giganti, tramite PNI. Paid: esattamente quello che sembra, si paga. Le grandi reti selective hanno anche i loro umori: in certe città rifiutano nuovi peer per qualche mese, o accettano solo PNI, e ogni tanto abbattono una sessione che avevi già. Prova un’altra città o un PNI, e richiedi più avanti.", +"Open to all":"Aperta a tutti", "Open to work":"Open to work", "Open your browser menu (⋮).":"Apri il menu del browser (⋮).", "Open your dark fiber":"Apri la tua dark fiber", @@ -1744,6 +1753,7 @@ "RTBH is free and instant, but it drops everything to the victim, attack and customer alike. An IX blackhole keeps the customer up but only about half the members honour it. HackBack 3000™ by Skynot AI sometimes ends it, and sometimes flattens an innocent and earns you a fine.":"L’RTBH è gratis e immediato, ma scarta tutto ciò che va alla vittima: attacco e cliente insieme. Un blackhole IX tiene su il cliente ma solo circa metà dei membri lo rispetta. HackBack 3000™ di Skynot AI a volte lo ferma, e a volte travolge un innocente e ti becca una multa.", "Racks in the nave, cooling in the crypt. Divine uptime.":"Rack nella navata, raffreddamento nella cripta. Uptime divino.", "Raise a full link’s metric so traffic prefers another path, upgrade it, or install Auto-TE.":"Alza la metrica di un link pieno così il traffico preferisce un altro percorso, potenzialo, oppure installa Auto-TE.", +"Raise all max-prefix limits":"Alza tutti i limiti max-prefix", "Raise the limit":"Alza il limite", "Raised the max-prefix limit for {who} at {ix} to {n}. They seemed nice.":"Ha alzato il limite max-prefix per {who} a {ix} a {n}. Sembravano simpatici.", "Raised the max-prefix limit for {who} at {ix}. Correctly, this time.":"Ha alzato il limite max-prefix per {who} a {ix}. Correttamente, stavolta.", @@ -1903,6 +1913,7 @@ "Second site and metro ring":"Secondo sito e anello metropolitano", "Security team asks: “are we on PHP?” Everyone: “define we”":"Il team security chiede: “siamo su PHP?” Tutti: “definisci siamo”", "See who":"Vedi chi", +"Selective":"Selettiva", "Selective networks in {region} need half the usual traffic to peer. Now is the time to ask for that PNI.":"Alle reti selective in {region} basta metà del solito traffico per fare peering. È il momento di chiedere quel PNI.", "Sell internet to homes here. Starts around {start} and grows toward {max} while service is good. Pays {rate} per Gbps served, every month.":"Vendi internet alle case di qui. Parte da circa {start} e cresce verso {max} finché il servizio è buono. Rende {rate} per Gbps servito, ogni mese.", "Sell one {price}":"Vendine uno {price}", diff --git a/site/i18n/pt.js b/site/i18n/pt.js index a58658c..c043b09 100644 --- a/site/i18n/pt.js +++ b/site/i18n/pt.js @@ -164,6 +164,9 @@ "Price war in {city}!
{ix} cut its port prices 10% to stop members drifting to {rival}. Your invoice just got smaller.":"Guerra de preços em {city}!
{ix} cortou 10% no preço das portas para os membros não fugirem para {rival}. Sua fatura acabou de emagrecer.", "Prices locked until {date}.
Your vendor’s account manager is delighted. He gets a bonus for this.":"Preços congelados até {date}.
O gerente de contas do seu fornecedor está radiante. Ele ganha um bônus por isso.", "RTBH announced.
You blackholed the target in {city}. The flood stops, and so does everyone there.":"RTBH anunciado.
Você mandou o alvo em {city} para o blackhole. O flood para, e todo mundo lá também.", +"Raised {n} max-prefix limits.
All growth, no leaks. Lucky.":"{n} limites de max-prefix aumentados.
Tudo crescimento, nenhum vazamento. Sorte.", +"Raised {n} max-prefix limits.
One of them was a route leak. It is in the NOC now.":"{n} limites de max-prefix aumentados.
Um deles era um vazamento de rotas. Está no NOC agora.", +"Raised {n} max-prefix limits.
{k} of them were route leaks. They are in the NOC now.":"{n} limites de max-prefix aumentados.
{k} deles eram vazamentos de rotas. Estão no NOC agora.", "Regen site removed.":"Site de regeneração removido.", "Regen site {n} is up.
Optical spans on {a}–{b} are now {km} km.":"O site de regeneração {n} está ativo.
Os trechos ópticos em {a}–{b} agora têm {km} km.", "Registered.
Flights booked, badge printed, business cards ordered in the wrong font.":"Inscrito.
Voos reservados, crachá impresso, cartões de visita encomendados na fonte errada.", @@ -724,6 +727,7 @@ "Click to tear down":"Clique para encerrar", "Close":"Fechar", "Close site B":"Fechar site B", +"Closed":"Fechada", "Cloud gaming platform":"Plataforma de cloud gaming", "Cloud gaming platforms, and the cloud gaming era: eyeballs want another 15%. A free PNI with Tel-Mess. Gear: Sienna WaveMagic 3.2T transponders.":"Plataformas de cloud gaming e a era do cloud gaming: os eyeballs querem mais 15%. Um PNI grátis com a Tel-Mess. Gear: transponders Sienna WaveMagic 3.2T.", "Cloud on-ramp":"On-ramp de cloud", @@ -921,6 +925,7 @@ "Every port that connects you to another network, and where it is. Filter by type, city or network, and tap Open to go to it.":"Toda porta que te liga a outra rede, e onde ela fica. Filtre por tipo, cidade ou rede, e toque em Abrir para ir até ela.", "Every session comes with a coffee break. Strictly enforced.":"Toda sessão vem com pausa pro café. Obrigatória.", "Every wave, fabric circuit and dark fiber IRU you rent between two of your POPs, next to what leased dark fiber or your own fiber would cost. Estimates include the line system, amplifiers and enough optics for today’s capacity. Build first, move the traffic, then cancel the lease.":"Cada wave, circuito de fabric e IRU de dark fiber que você aluga entre dois POPs seus, ao lado do que custaria uma dark fiber alugada ou sua própria fibra. As estimativas incluem o line system, amplificadores e ópticos suficientes para a capacidade de hoje. Construa primeiro, mova o tráfego e depois cancele o aluguel.", +"Everyone who asks gets a session, and the route servers work. Lots of tiny peers, and lots of max-prefix alerts.":"Quem pedir ganha uma sessão, e os route servers funcionam. Muitos peers minúsculos, e muitos alertas de max-prefix.", "Everyone who pays you, happiest last. Below 60% they start to grumble, below 30% they are furious, and at 0% they cancel.":"Todo mundo que te paga, os mais felizes por último. Abaixo de 60% começam a reclamar, abaixo de 30% ficam furiosos, e em 0% cancelam.", "Everything is in one building. Move some uplinks to the other site from the Transit and Peering tabs.":"Está tudo num prédio só. Mova alguns uplinks para o outro site nas abas Transit e Peering.", "Everywhere at Once":"Em todo lugar ao mesmo tempo", @@ -947,6 +952,7 @@ "Fat-fingered ROADM":"ROADM com dedo gordo", "Fat-fingered wave":"Wave com dedo gordo", "Feb":"fev", +"Fewer requests, and you answer them yourself. No route servers: go to each exchange and request the networks you want.":"Menos pedidos, e você mesmo responde. Sem route servers: vá a cada exchange e peça as redes que quiser.", "Fiber across the sertão of the Northeast, one dirt road at a time.":"Fibra pelo sertão do Nordeste, uma estrada de terra de cada vez.", "Fiber cut":"Fibra cortada", "Fiber from {city}":"Fibra de {city}", @@ -1474,6 +1480,7 @@ "No subsea cable lands in {city}. The nearest landing station is {near}: run fiber there first, then take a cable from it.":"Nenhum cabo submarino chega a {city}. A estação de chegada mais próxima é {near}: leve fibra até lá primeiro e depois pegue um cabo de lá.", "No thanks":"Não, obrigado", "No traffic right now.":"Sem tráfego no momento.", +"Nobody asks, and no route servers. Customers hear that you are hard to reach, so fewer of them call, and your reputation sinks.":"Ninguém pede, e sem route servers. Os clientes ficam sabendo que você é difícil de alcançar, então menos deles ligam, e sua reputação afunda.", "Nobody gives a foreign network a landing licence in mainland China.":"Ninguém dá licença de ancoragem a uma rede estrangeira na China continental.", "Nobody is unhappy. Enjoy it while it lasts.":"Ninguém está insatisfeito. Aproveite enquanto dura.", "Nobody lets you dig on this route. Borders and licences are in the way, so keep leasing.":"Ninguém deixa você cavar nesta rota. Fronteiras e licenças atrapalham, então continue alugando.", @@ -1517,6 +1524,7 @@ "Oceania":"Oceania", "Oct":"out", "Off":"Off", +"Off while your peering policy is {pol}":"Desligado enquanto sua política de peering for {pol}", "Offers":"Ofertas", "Offers here":"Ofertas aqui", "Oil, gas and hurricanes. The generators here are sized for a week, and they have needed it.":"Petróleo, gás e furacões. Os geradores aqui são dimensionados para uma semana, e já precisaram disso.", @@ -1566,6 +1574,7 @@ "Open peer: join the route server at {ix}":"Peer aberto: entre no route server do {ix}", "Open peer: join the route server at {ix} ({city})":"Peer aberto: entre no route server do {ix} ({city})", "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.":"Open faz peering com qualquer um. Selective quer ver tráfego antes. Restrictive (Tier 1s) só faz peering com gigantes, via PNI. Paid é exatamente isso. Redes seletivas grandes também têm seus humores: em algumas cidades recusam novos peers por alguns meses, ou só aceitam PNI, e de vez em quando derrubam uma sessão que você já tinha. Tente outra cidade ou um PNI, e peça de novo mais tarde.", +"Open to all":"Aberta a todos", "Open to work":"Open to work", "Open your browser menu (⋮).":"Abra o menu do navegador (⋮).", "Open your dark fiber":"Abrir sua dark fiber", @@ -1744,6 +1753,7 @@ "RTBH is free and instant, but it drops everything to the victim, attack and customer alike. An IX blackhole keeps the customer up but only about half the members honour it. HackBack 3000™ by Skynot AI sometimes ends it, and sometimes flattens an innocent and earns you a fine.":"RTBH é grátis e instantâneo, mas descarta tudo que vai para a vítima, ataque e cliente juntos. Um blackhole no IX mantém o cliente no ar, mas só cerca de metade dos membros respeita. O HackBack 3000™ da Skynot AI às vezes resolve, e às vezes derruba um inocente e te rende uma multa.", "Racks in the nave, cooling in the crypt. Divine uptime.":"Racks na nave, refrigeração na cripta. Uptime divino.", "Raise a full link’s metric so traffic prefers another path, upgrade it, or install Auto-TE.":"Aumente a métrica de um link cheio para o tráfego preferir outra rota, faça upgrade nele ou instale o Auto-TE.", +"Raise all max-prefix limits":"Aumentar todos os limites de max-prefix", "Raise the limit":"Aumentar o limite", "Raised the max-prefix limit for {who} at {ix} to {n}. They seemed nice.":"Aumentou o limite de max-prefix de {who} no {ix} para {n}. Pareciam simpáticos.", "Raised the max-prefix limit for {who} at {ix}. Correctly, this time.":"Aumentou o limite de max-prefix de {who} no {ix}. Corretamente, desta vez.", @@ -1903,6 +1913,7 @@ "Second site and metro ring":"Segundo site e anel metro", "Security team asks: “are we on PHP?” Everyone: “define we”":"O time de segurança pergunta: “a gente usa PHP?” Todo mundo: “define a gente”", "See who":"Ver quem", +"Selective":"Seletiva", "Selective networks in {region} need half the usual traffic to peer. Now is the time to ask for that PNI.":"Redes seletivas em {region} pedem metade do tráfego de sempre para fazer peering. Agora é a hora de pedir aquele PNI.", "Sell internet to homes here. Starts around {start} and grows toward {max} while service is good. Pays {rate} per Gbps served, every month.":"Venda internet para as casas daqui. Começa em uns {start} e cresce até {max} enquanto o serviço for bom. Paga {rate} por Gbps servido, todo mês.", "Sell one {price}":"Vender um {price}", diff --git a/src/game/70-rules/20-exchanges.js b/src/game/70-rules/20-exchanges.js index 434cd53..5e376d7 100644 --- a/src/game/70-rules/20-exchanges.js +++ b/src/game/70-rules/20-exchanges.js @@ -16,7 +16,7 @@ function ixSessions(c){ const s=new Set(); if(S.ixp[c]===undefined)return s; for(const id of ixMembers(c)){const n=NET[id]; if(S.peers[id+'@'+c]&&!snub(id,c)&&!(isRemote(c)&&noRemote(id))&&!mpDown(id,c))s.add(id); - else if(S.rs[c]&&n.pol==='open')s.add(id); + else if(S.rs[c]&&n.pol==='open'&&ppol()==='open')s.add(id); else if(S.myIx[c]&&(n.pol==='open'||n.pol==='selective'))s.add(id);} return s; } diff --git a/src/game/70-rules/40-peering-inbox.js b/src/game/70-rules/40-peering-inbox.js index b72cb32..9e2c630 100644 --- a/src/game/70-rules/40-peering-inbox.js +++ b/src/game/70-rules/40-peering-inbox.js @@ -1,12 +1,17 @@ /* ---------- The peering inbox ---------- Every exchange port brings mail: peering requests from networks nobody has heard of, and sessions that drop because someone's PeeringDB says 50 prefixes and they now send 400 (or a full table). Answer it, or hire an AI. */ +const PPOL_N={open:N_('Open to all'),selective:N_('Selective'),closed:N_('Closed')},PPOL_D={open:N_('Everyone who asks gets a session, and the route servers work. Lots of tiny peers, and lots of max-prefix alerts.'),selective:N_('Fewer requests, and you answer them yourself. No route servers: go to each exchange and request the networks you want.'),closed:N_('Nobody asks, and no route servers. Customers hear that you are hard to reach, so fewer of them call, and your reputation sinks.')}; const AI_MO=Math.round(20e6/12),INBOX_MAX=80,IBX_LEAKS=['nfx','ggl','fbk','amz','msf']; const TINY=['Basement Broadband','Uncle Dave’s WISP','Fibre Fiesta','Raspberry Pi Transit','Vanity ASN Ltd','Moonshot Crypto Hosting','Minecraft Collective','Bob’s Bits','Homelab Heroes','Hackerspace Uplink','Tiny Tower Networks','Pigeon Post IP','Retro BBS Revival','Overkill Home Network','Two Guys and a Rack','Big Dreams Small Prefix','Mesh-y Business','Garden Shed Datacenter','Carrier-Grade NAT Fan Club','LIR in a Box','Yet Another VPN','Grandma’s Fibre Co-op','Seedbox Society','The /24 That Could']; const REQ_SAY=[N_('Hi! We would like to peer with you at {ix}. Our PeeringDB record is up to date.'),N_('Dear Sir or Madam, please peer. We have three prefixes and very big plans.'),N_('We noticed you are at {ix}. So are we. Shall we?'),N_('Hello, please find attached our peering request as a Word document, scanned from a printout.'),N_('Peering request, fifth attempt. Is anyone there?'),N_('Hey, quick one: can you peer with us at {ix}? We have a very important Minecraft server.'),N_('Greetings. We are a fast-growing network. Last year we had one customer; this year we have two.'),N_('Please configure sessions with us at {ix}. We will do ours next week, or the week after.')]; const IBX_AI=[N_('Replied to a peering request with a haiku about BGP. No answer yet.'),N_('Signed you up for a webinar on “Peering in the Age of AI”.'),N_('Opened a ticket with itself to review its own decisions. It approved them.'),N_('Wrote a thousand-word apology to a network you never peered with.'),N_('Updated your PeeringDB record. Your NOC phone number is now a pizza place.'),N_('Asked NetChill’s peering team to “please provide more Netchill”.')]; function ibx(){if(!S.inbox||typeof S.inbox!=='object')S.inbox={items:[],down:{},tiny:{},rep:0,bot:false,log:[],seq:0};return S.inbox;} // Reputation nudges selective networks by up to 10% either way: worth caring about, never a wall. +// Your peering policy. Open: everyone who asks gets a session and the route servers work. Selective: fewer requests, +// you answer them yourself, and no route servers, so you go and ask networks at each exchange. Closed: nobody asks, +// and customers hear that you are hard to reach. +const PPOL=['open','selective','closed'],ppol=()=>(S&&S.inbox&&PPOL.includes(S.inbox.pol))?S.inbox.pol:'open'; const repMul=()=>1-clamp((S.inbox&&S.inbox.rep)||0,-10,5)*0.01; const repName=r=>r>=1?tr('Responsive'):r>=-2?tr('Average'):r>=-6?tr('Mostly ignores email'):tr('Black hole'); const ibxOpen=()=>S.inbox?S.inbox.items.length:0,ibxUrgent=()=>S.inbox?S.inbox.items.filter(x=>x.k==='mp').length:0; @@ -15,11 +20,12 @@ const ibxWho=x=>x.net?NET[x.net].name:x.nm,ibxAsn=x=>x.net?NET[x.net].asn:x.asn; function ibxLog(m,a){const I=ibx();I.log.unshift({d:S.day,m,a:a||{}});I.log.length=Math.min(I.log.length,40);} function inboxDay(d){const I=ibx(),ixs=Object.keys(S.ixp); // new peering requests: more exchange ports, more mail - if(ixs.length&&Math.random(){const n=NET[id];return !set.has(id)&&n.type!=='t1'&&n.type!=='cdn'&&n.pol!=='paid'&&n.share<=0.006&&!I.items.some(x=>x.net===id&&x.ix===c);}); const it={id:++I.seq,k:'req',ix:c,day:d,stale:Math.random()<0.6,yrs:1+Math.floor(Math.random()*9),say:Math.floor(Math.random()*REQ_SAY.length)}; if(real.length&&Math.random()<0.4)it.net=pick(real);else{it.nm=pick(TINY);it.asn=Math.random()<0.05?64512+Math.floor(Math.random()*1000):200000+Math.floor(Math.random()*200000);} - I.items.push(it);} + I.items.push(it);if(ppol()==='open')ibxAnswer(it.id,'accept',true);} + if(ppol()==='closed')I.rep=Math.max(-6,I.rep-0.05); // max-prefix: someone grew past what their PeeringDB says, or leaked a full table const ses=Object.keys(S.peers).filter(k=>{const n=NET[k.split('@')[0]];return n&&n.type!=='cdn'&&n.type!=='t1'&&!mpDown(...k.split('@'));}).map(k=>({key:k,net:k.split('@')[0],ix:k.split('@')[1]})) .concat(Object.keys(I.tiny).map(a=>({key:'t'+a,nm:I.tiny[a].nm,asn:+a,ix:I.tiny[a].ix,stale:I.tiny[a].stale}))); @@ -58,7 +64,7 @@ function inboxBot(){const I=ibx();let acc=0,dec=0; if(acc||dec)ibxLog(N_('Answered your mail: {a} accepted, {d} declined.'),{a:acc,d:dec}); if(Math.random()<0.01){const ks=Object.keys(S.peers);if(ks.length){const k=pick(ks),[id,c]=k.split('@');delete S.peers[k];ibxLog(N_('Tidied up a session it decided was unused: de-peered {who} at {ix}.'),{who:NET[id].name,ix:ixName(c)});}} if(Math.random()<0.08)ibxLog(pick(IBX_AI),{});} -function inboxModal(){const I=ibx(),items=I.items.slice().sort((a,b)=>(b.k==='mp')-(a.k==='mp')||b.day-a.day),reqs=items.filter(x=>x.k==='req').length; +function inboxModal(){const I=ibx(),items=I.items.slice().sort((a,b)=>(b.k==='mp')-(a.k==='mp')||b.day-a.day),reqs=items.filter(x=>x.k==='req').length,mps=items.length-reqs; const age=x=>{const n=S.day-x.day;return n?trn('{n} day ago','{n} days ago',n):tr('today');}; const pdb=x=>x.stale?trn('PeeringDB last updated {n} year ago','PeeringDB last updated {n} years ago',x.yrs):tr('PeeringDB updated last month'); const card=x=>x.k==='mp'?`
⚠️ ${tr('Max-prefix limit hit: {who} at {ix}',{who:esc(ibxWho(x)),ix:esc(ixName(x.ix))})}
@@ -69,8 +75,9 @@ function inboxModal(){const I=ibx(),items=I.items.slice().sort((a,b)=>(b.k==='mp openModal(`
${tr('Peering inbox')}

📬 ${trn('{n} unanswered','{n} unanswered',items.length)}

${tr('Every exchange port brings mail. Answer peering requests, and look at sessions that hit their max-prefix limit: is it growth, or a route leak? Unanswered mail gets you a reputation, and selective networks hear about it.')}

${tr('Your reputation')}${repName(I.rep)}
+
${tr('Peering policy')}${tr(PPOL_N[ppol()])}
${PPOL.map(p=>btn(tr(PPOL_N[p]),'inboxPol',{p},ppol()===p?'sm':'ghost sm')).join('')}

${tr(PPOL_D[ppol()])}

${I.bot?`
🤖 ${tr('Large Peering Model is answering your mail')}
${tr('{price}/year. It never sleeps, never complains and is often wrong.',{price:fmt$(20e6)})}
${I.log.length?`
${I.log.slice(0,8).map(e=>esc(tr('Day {d}',{d:e.d})+': '+tr(e.m,e.a))).join('\n')}
`:''}
${btn(tr('Fire the AI'),'inboxBot',{on:0},'ghost sm')}
` :`
🤖 ${tr('Large Peering Model')}
${tr('An AI agent that answers every peering request and max-prefix alert for you, every day. {price}/year. Trained on twenty years of peering mailing lists.',{price:fmt$(20e6)})}
${btn(tr('Hire it {mo}/mo',{mo:fmt$(AI_MO)}),'inboxBot',{on:1},'aibtn sm',S.cash`}
- ${reqs>1?`
${btn(tr('Accept all requests'),'inboxAll',{a:'accept'},'sm')}${btn(tr('Decline all requests'),'inboxAll',{a:'decline'},'ghost sm')}
`:''} + ${reqs>1||mps>1?`
${reqs>1?btn(tr('Accept all requests'),'inboxAll',{a:'accept'},'sm')+btn(tr('Decline all requests'),'inboxAll',{a:'decline'},'ghost sm'):''}${mps>1?btn(tr('Raise all max-prefix limits'),'inboxRaiseAll',{},'sm'):''}
`:''} ${items.length?items.slice(0,40).map(card).join(''):`

${Object.keys(S.ixp).length?tr('Inbox zero. Enjoy it while it lasts.'):tr('No mail yet. Buy an IX port and it will come.')}

`}`);} diff --git a/src/game/80-simulation/50-sanitize.js b/src/game/80-simulation/50-sanitize.js index f863596..4c9d608 100644 --- a/src/game/80-simulation/50-sanitize.js +++ b/src/game/80-simulation/50-sanitize.js @@ -30,7 +30,7 @@ function sanitize(s){ const down={};for(const [k,v] of Object.entries(o(I.down)))if(typeof k==='string'&&k.length<80)down[k]=num(v,0); const tiny={};for(const [k,v] of Object.entries(o(I.tiny)).slice(0,200))if(/^\d{1,10}$/.test(k)&&v&&typeof v==='object'&&isIx(v.ix))tiny[k]={nm:str(v.nm,40),ix:v.ix,stale:!!v.stale}; const log=(Array.isArray(I.log)?I.log:[]).filter(e=>e&&typeof e==='object'&&typeof e.m==='string').slice(0,40).map(e=>{const a={};for(const [k,v] of Object.entries(o(e.a)).slice(0,6))a[str(k,12)]=typeof v==='number'?v:str(v,60);return {d:num(e.d,0),m:str(e.m,200),a};}); - s.inbox={items,down,tiny,rep:clamp(num(I.rep,0),-10,5),bot:!!I.bot,log,seq:Math.max(int(I.seq,0,1e9,0),...items.map(x=>x.id))};} + s.inbox={items,down,tiny,rep:clamp(num(I.rep,0),-10,5),bot:!!I.bot,pol:PPOL.includes(I.pol)?I.pol:'open',log,seq:Math.max(int(I.seq,0,1e9,0),...items.map(x=>x.id))};} {const sp={};if(s.spares&&typeof s.spares==='object')for(const k in s.spares)if(own(OPT,k)){const v=Math.floor(+s.spares[k]);if(v>0)sp[k]=Math.min(999,v);}s.spares=sp;} s.caches=s.caches.filter(x=>x&&isCity(x.city)&&isNet(x.net)&&NET[x.net].cache).map(x=>(x.id=sid(x.id),x.site=x.site==='b'&&s.pops[x.city]&&s.pops[x.city].site2?'b':'a',x)); for(const c of Object.keys(s.ixp)){if(!isIx(c))delete s.ixp[c];else s.ixp[c]=tier(s.ixp[c]);} diff --git a/src/game/88-days/10-day-tick.js b/src/game/88-days/10-day-tick.js index 234d111..4623118 100644 --- a/src/game/88-days/10-day-tick.js +++ b/src/game/88-days/10-day-tick.js @@ -56,7 +56,7 @@ function dayTick(){ if(S.mode==='sandbox'&&S.cash<1e8)S.cash=1e9; // offers S.offers=S.offers.filter(o=>o.exp>d); - if(S.offers.length<5&&Math.random()<0.05+0.01*(S.lvl||1))spawnOffer(); + if(S.offers.length<5&&Math.random()<(0.05+0.01*(S.lvl||1))*(ppol()==='closed'?0.6:1))spawnOffer(); // failures & events let dirty=false; if(d>=S.nextFail){dirty=true;fireFailure();const size=S.links.length+Object.keys(S.pops).length;S.nextFail=d+Math.round((Math.max(22,50-size*1.5)+Math.floor(Math.random()*25))*(scnRule('chaos')?0.5:1));} diff --git a/src/game/90-actions/40-sites-peering-caches.js b/src/game/90-actions/40-sites-peering-caches.js index bceade6..8c35c8d 100644 --- a/src/game/90-actions/40-sites-peering-caches.js +++ b/src/game/90-actions/40-sites-peering-caches.js @@ -24,6 +24,9 @@ Object.assign(ACT,{ else toast(pick([tr('“It is with the provisioning team.”
Nobody has ever met the provisioning team.'),tr('“We are waiting on the colo for the cross-connect.”
The colo says it is waiting on them.'),tr('Your ticket was merged into another ticket.
That ticket was closed as a duplicate of yours.'),tr('“Could you resend the LOA?”
You have sent it four times.'),tr('Your account manager is on paternity leave.
His replacement is also on paternity leave.')]));after();}, inbox:()=>{inboxModal();}, inboxAct:({id,a})=>{if(!['accept','decline','raise','keep'].includes(a))return;ibxAnswer(+id,a);after();inboxModal();}, + inboxPol:({p})=>{if(!PPOL.includes(p))return;ibx().pol=p;after();inboxModal();}, + inboxRaiseAll:()=>{const I=ibx(),mp=I.items.filter(x=>x.k==='mp');if(!mp.length)return;const leaks=mp.filter(x=>x.leak).length;for(const x of mp)ibxAnswer(x.id,'raise',true); + toast(leaks?trn('Raised {n} max-prefix limits.
One of them was a route leak. It is in the NOC now.','Raised {n} max-prefix limits.
{k} of them were route leaks. They are in the NOC now.',leaks,{n:mp.length,k:leaks}):tr('Raised {n} max-prefix limits.
All growth, no leaks. Lucky.',{n:mp.length}),leaks?'bad':'good');after();inboxModal();}, inboxAll:({a})=>{if(a!=='accept'&&a!=='decline')return;const I=ibx();for(const x of I.items.filter(x=>x.k==='req'))ibxAnswer(x.id,a,true);after();inboxModal();}, inboxBot:({on})=>{const I=ibx();if(+on){if(I.bot||!spend(AI_MO))return;I.bot=true;ibxLog(N_('Hello! I am Large Peering Model. I have read your inbox and I already have opinions.'),{});toast(tr('Large Peering Model is hired.
Your inbox is its problem now. {price} a year, billed monthly.',{price:fmt$(20e6)}),'good');}else{I.bot=false;toast(tr('The AI is gone.
It left a 40-page handover document. It is mostly about itself.'));}after();inboxModal();}, cancelPni:({id,ok})=>{if(!ok&&UI.confirm!==id){UI.confirm=id;renderPanel();return;}S.pni=S.pni.filter(p=>p.id!==id);UI.confirm=null;after();}, diff --git a/src/game/93-ui/70-link-panels.js b/src/game/93-ui/70-link-panels.js index a9b152a..014cbb8 100644 --- a/src/game/93-ui/70-link-panels.js +++ b/src/game/93-ui/70-link-panels.js @@ -13,7 +13,7 @@ function ixBlock(c,multi){const city=ixCity(c),C=CITY[city],ix=ixName(c),X=XIXM[ for(const x of ad)h+=`
${esc(x.n)}
${esc(x.blurb)} · ${tr('{price}/mo',{price:fmt$(x.mo)})}
${btn(UI.confirm==='dk'+c+x.n?tr('Lose exclusive benefits?'):tr('Opt out'),'dkOptOut',{city:c,n:x.n},'ghost sm')}
`;} if(isRemote(c))h+=`

${trn('Remote port via a reseller: 1.5× price, 80% usable, and {n} member here refuse remote peers.','Remote port via a reseller: 1.5× price, 80% usable, and {n} members here refuse remote peers.',ixMembers(c).filter(noRemote).length)}

`; if(mine){const f=S.myIx[c].fab|0,N=MYIX_FAB[f+1];h+=`
${tr('Members paying you')}${tr('{n} of up to {max} · {price}/mo',{n:S.myIx[c].members.length,max:myFab(c).max,price:fmt$(S.myIx[c].members.length*MYIX_FEE)})}
${N?`
${btn(N.lvl>lvl()?tr('{name} fabric level {lv}',{name:N.n,lv:N.lvl}):tr('Upgrade fabric to {name} {cost} + {mo}/mo',{name:N.n,cost:fmt$(N.cost),mo:fmt$(N.mo)}),'myIxUp',{city:c},'pink sm',N.lvl>lvl()||S.cash

${tr('A bigger fabric carries more traffic and has room for more members. Your router here still has to keep up.')}

`:'

'+tr('Biggest fabric money can buy.')+'

'}`;} - else h+=`
${PORT.map((P2,i)=>i>S.ixp[c]&&portShown(i)?btn(tr('Upgrade {port} {price}',{port:P2.n,price:portMo(ixPortMo(c,i)*((S.ixn||{})[c]||1))}),'buyIx',{city:c,tier:i},'sm',(!!S.pops[city]&&!portOk(city,i))||(!S.pops[city]&&i>1)):'').join('')}${S.pops[city]&&((S.ixn||{})[c]||1){price}',{price:portMo(ixPortMo(c,S.ixp[c]))}),'lagIx',{city:c,d:1},'sm',S.cash1?btn(tr('− member'),'lagIx',{city:c,d:-1},'ghost sm'):''}${btn(S.rs[c]?tr('Leave route server'):tr('Join route server'),'rs',{city:c},S.rs[c]?'ghost sm':'pink sm')}${btn(UI.confirm==='ix'+c?tr('Really leave?'):tr('Leave IX'),'cancelIx',{city:c},'ghost sm')}
`; + else h+=`
${PORT.map((P2,i)=>i>S.ixp[c]&&portShown(i)?btn(tr('Upgrade {port} {price}',{port:P2.n,price:portMo(ixPortMo(c,i)*((S.ixn||{})[c]||1))}),'buyIx',{city:c,tier:i},'sm',(!!S.pops[city]&&!portOk(city,i))||(!S.pops[city]&&i>1)):'').join('')}${S.pops[city]&&((S.ixn||{})[c]||1){price}',{price:portMo(ixPortMo(c,S.ixp[c]))}),'lagIx',{city:c,d:1},'sm',S.cash1?btn(tr('− member'),'lagIx',{city:c,d:-1},'ghost sm'):''}${btn(S.rs[c]?tr('Leave route server'):tr('Join route server'),'rs',{city:c},S.rs[c]?'ghost sm':'pink sm')}${S.rs[c]&&ppol()!=='open'?`${tr('Off while your peering policy is {pol}',{pol:tr(PPOL_N[ppol()])})}`:''}${btn(UI.confirm==='ix'+c?tr('Really leave?'):tr('Leave IX'),'cancelIx',{city:c},'ghost sm')}
`; h+=`
`; {const elig=mine?[]:ixMembers(c).filter(id=>!set.has(id)&&peerOk(id,'ix',c).ok);if(elig.length>1)h+=`
${btn(tr('Request all {n} willing peers',{n:elig.length}),'peerAll',{city:c},'pink sm')}
`;} for(const id of ixMembers(c).sort((a,b)=>NSH[b]-NSH[a])){const n=NET[id],on=set.has(id),viaRs=on&&!S.peers[id+'@'+c]&&!mine,chk=peerOk(id,'ix',c); diff --git a/tests/inbox.test.js b/tests/inbox.test.js index 65e0f56..4146bfa 100644 --- a/tests/inbox.test.js +++ b/tests/inbox.test.js @@ -94,7 +94,7 @@ test('Microsnoft has no capacity on the US east coast, at any price', () => { test('the peering inbox fills up, wants answers, and max-prefix alerts are growth or a leak', () => { const { ev, errors } = load(); setup(ev); - ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=3;ACT.buyIx({city:'ams',tier:1});compute()"); + ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=3;ACT.buyIx({city:'ams',tier:1});S.inbox.pol='selective';compute()"); ev('for(let i=0;i<60;i++)dayTick()'); assert.ok(ev('S.inbox.items.length') >= 2, 'mail arrives with an exchange port'); assert.ok(ev('S.inbox.rep') < 0, 'and ignoring it has a price'); @@ -213,3 +213,40 @@ test('now and then a route is sold out of a wave size, for a while, and asking a assert.match(ev("document.getElementById('toasts').textContent"), /No 400G capacity on this route/); assert.deepEqual(errors, []); }); + +test('peering policy: open accepts everyone, selective is quieter but manual, closed scares customers; raise all limits at once', () => { + const { ev, errors } = load(); + setup(ev); + ev("S.nextFail=S.nextEvent=1e9;ACT.buildPop({city:'ams'});S.pops.ams.rgen=3;ACT.buyIx({city:'ams',tier:1});ACT.rs({city:'ams'});compute()"); + assert.equal(ev("ppol()"), 'open', 'open by default, as before'); + const rsOpen = ev("ixSessions('ams').size"); + assert.ok(rsOpen > 0, 'the route server works'); + // open: requests are accepted as they come in + ev("Math.random=()=>0.01;inboxDay(S.day+1)"); + assert.equal(ev("S.inbox.items.filter(x=>x.k==='req').length"), 0); + assert.ok(ev("Object.keys(S.inbox.tiny).length+Object.keys(S.peers).length") > 0, 'and they become sessions'); + // selective: the route server stops counting, you ask yourself, and requests wait for you + ev("ACT.inboxPol({p:'selective'});compute()"); + assert.ok(ev("ixSessions('ams').size") < rsOpen, 'no route server sessions'); + ev("selectCity('ams');ACT.tab({t:'peer'})"); + assert.match(ev("document.getElementById('panelBody').textContent"), /Off while your peering policy is Selective/); + ev("closeModal();S.inbox.items=[];inboxDay(S.day+1)"); + assert.equal(ev("S.inbox.items.filter(x=>x.k==='req').length"), 1, 'it waits for an answer'); + // closed: no requests, a sinking reputation, fewer customers calling + ev("ACT.inboxPol({p:'closed'});S.inbox.items=[];S.inbox.rep=0;for(let i=0;i<10;i++)inboxDay(S.day+1)"); + assert.equal(ev("S.inbox.items.filter(x=>x.k==='req').length"), 0); + assert.ok(ev('S.inbox.rep') < 0); + // raise all: every alert at once, leaks included + const net = ev("ixMembers('ams').find(id=>{const n=NET[id];return n.type!=='cdn'&&n.type!=='t1'&&n.pol!=='paid'&&n.share<=0.006;})"); + ev(`S.peers['${net}@ams']=true;S.inbox.items=[{id:71,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:50,got:80,leak:false,yrs:2},{id:72,k:'mp',key:'t9',nm:'X',asn:9,ix:'ams',day:S.day,lim:50,got:990000,leak:true,yrs:2}];S.inbox.down['${net}@ams']=1e9;ACT.inbox()`); + assert.match(ev("document.getElementById('modalCard').textContent"), /Raise all max-prefix limits/); + ev('ACT.inboxRaiseAll()'); + assert.equal(ev("S.inbox.items.length"), 0); + assert.equal(ev(`!!S.inbox.down['${net}@ams']`), false); + assert.ok(ev('S.ev.leak&&S.ev.leak.until>S.day'), 'one was a leak'); + assert.match(ev("document.getElementById('toasts').textContent"), /One of them was a route leak/); + // saves keep the policy + ev("const o=JSON.parse(JSON.stringify(S));o.inbox.pol='weird';sanitize(o);window.__o=o"); + assert.equal(ev('__o.inbox.pol'), 'open'); + assert.deepEqual(errors, []); +});