From 4ebe8418a0ca9af6ee962902aaa4155bdc61ff9b Mon Sep 17 00:00:00 2001 From: Frederic Jung Date: Thu, 29 Oct 2026 21:37:05 +0100 Subject: [PATCH 1/3] Peering desk: incoming requests answered by policy; inbox, max-prefix and the Large Peering Model removed --- site/i18n/de.js | 100 +++--------------- site/i18n/es.js | 100 +++--------------- site/i18n/fr.js | 100 +++--------------- site/i18n/it.js | 100 +++--------------- site/i18n/pt.js | 100 +++--------------- src/game/40-progress/30-rules.js | 16 +-- src/game/60-features/80-new-game.js | 2 +- src/game/70-rules/20-exchanges.js | 2 +- src/game/70-rules/40-peering-desk.js | 30 ++++++ src/game/70-rules/40-peering-inbox.js | 83 --------------- src/game/70-rules/70-sold-out.js | 2 +- src/game/80-simulation/30-compute.js | 2 +- src/game/80-simulation/50-sanitize.js | 14 ++- src/game/85-incidents/20-failures.js | 9 +- src/game/88-days/10-day-tick.js | 2 +- src/game/90-actions/10-interface.js | 2 +- .../90-actions/40-sites-peering-caches.js | 8 +- src/game/93-ui/20-phone.js | 2 +- src/game/93-ui/40-hud-and-panels.js | 4 +- src/game/93-ui/55-utilities.js | 2 +- src/game/93-ui/57-ops-panel.js | 3 +- src/game/95-modals/20-notifications.js | 4 +- src/game/95-modals/45-slots.js | 2 +- src/game/95-modals/60-help.js | 4 +- src/i18n/en.js | 100 +++--------------- src/styles/40-modal.css | 2 +- tests/i18n.test.js | 4 +- 27 files changed, 151 insertions(+), 648 deletions(-) create mode 100644 src/game/70-rules/40-peering-desk.js delete mode 100644 src/game/70-rules/40-peering-inbox.js diff --git a/site/i18n/de.js b/site/i18n/de.js index c05ddcb..cafa5db 100644 --- a/site/i18n/de.js +++ b/site/i18n/de.js @@ -809,7 +809,6 @@ "common.aug":"Aug", "common.auto":"Auto", "common.auto_enrolled":"automatisch gebucht", -"common.average":"Durchschnitt", "common.avoid":"Meiden", "common.back":"Zurück", "common.back_to_the_map":"Zurück zur Karte", @@ -825,7 +824,6 @@ "common.bgp_hijack":"BGP-Hijack", "common.bgp_sessions":"BGP-Sessions", "common.big_league":"Erste Liga", -"common.black_hole":"Schwarzes Loch", "common.blitz":"Blitz", "common.boot_time":"Bootzeit", "common.boot_times":"Bootzeiten", @@ -833,7 +831,6 @@ "common.box_6ee3":"− Box", "common.build_time":"Bauzeit", "common.building":"im Bau", -"common.bumped":"verdrängt", "common.bunker_two":"Bunker Zwei", "common.busiest_links":"Meistgenutzte Links", "common.business_customers":"Geschäftskunden", @@ -995,8 +992,6 @@ "common.import_a_save":"Spielstand importieren", "common.in_progress":"läuft", "common.in_use":"Belegt", -"common.inbox":"Posteingang", -"common.inbox_zero":"Inbox Zero.", "common.incident":"Störung", "common.incidents":"Störungen", "common.incidents_survived":"Überstandene Störungen", @@ -1124,7 +1119,6 @@ "common.oops":"Hoppla", "common.open":"Öffnen", "common.open_bank":"Bank öffnen", -"common.open_inbox":"Posteingang öffnen", "common.open_infra":"Infra öffnen", "common.open_lease":"Miete öffnen", "common.open_noc":"NOC öffnen", @@ -1149,7 +1143,6 @@ "common.peered_ce2f":"Gepeert ✓", "common.peering":"Peering", "common.peering_first":"Peering First", -"common.peering_inbox":"Peering-Posteingang", "common.peering_policy":"Peering-Policy", "common.peering_ratio":"Peering-Quote", "common.peering_spat":"Peering-Streit", @@ -1198,7 +1191,6 @@ "common.remove_port":"Port entfernen", "common.remove_script":"Skript entfernen", "common.request":"Anfragen", -"common.responsive":"Reagiert", "common.resume":"Fortsetzen", "common.retention_offer":"Halteangebot", "common.revenue":"Umsatz", @@ -1304,7 +1296,6 @@ "common.to":"Nach", "common.toaster_wrangler":"Toaster-Bändiger", "common.today":"Heute", -"common.today_4203":"heute", "common.toggle_sound":"Sound an/aus", "common.too_far_for_this_cable":"zu weit für dieses Kabel", "common.traceroute":"Traceroute", @@ -1366,7 +1357,6 @@ "common.your_network":"Dein Netz", "common.your_pop":"Dein POP", "common.your_pops":"Deine POPs", -"common.your_reputation":"Dein Ruf", "common.zombie_route":"Zombie-Route", "compute.attack_hauled_to_scrubbing_in_city":"Angriff zum Scrubbing nach {city} geschleppt", "compute.courtesy_route_to_new_networks":"Gefälligkeits-Route zu neuen Netzen", @@ -1613,8 +1603,6 @@ "failures.a_kilometre_of_copper_went_missing":"Ein Kilometer „Kupfer“ ist aus deinem Graben {a}–{b} verschwunden. Es war deine Glasfaser. Der Schrotthändler hat sie mit einem Zettel zurückgeschickt.", "failures.a_landslide_in_the_andes_buried":"Ein Erdrutsch in den Anden hat deine Glasfaser {a}–{b} verschüttet.", "failures.a_llama_herd_trampled_the_fiber":"Eine Lamaherde hat die Glasfasermarkierung an {a}–{b} niedergetrampelt. Dann hat ein Bagger die Glasfaser gefunden.", -"failures.a_member_at_ix_leaked_the":"Ein Mitglied am {ix} hat die komplette Routing-Tabelle in den Route Server geleakt. Überall haben Max-Prefix-Limits ausgelöst. Dein Peering dort ist down.", -"failures.a_member_at_ix_leaked_the_5563":"Ein Mitglied am {ix} hat die komplette Routing-Tabelle in den Route Server geleakt. Überall haben Max-Prefix-Limits ausgelöst. Dein Peering dort, in {city}, ist down.", "failures.a_new_tech_in_a_tidied":"Ein neuer Techniker in {a} hat das Kabelchaos „aufgeräumt“. Dein Link {a}–{b} gehörte zum Chaos.", "failures.a_new_tech_in_city_used":"Ein neuer Techniker in {city} hat Vegemite als Wärmeleitpaste benutzt. Es leitet Geschmack, nicht Wärme, und dein Router ist gar geworden.", "failures.a_optic_on_a_b_overheated":"Eine {optic} auf {a}–{b} ist überhitzt und jetzt ein sehr teurer Schlüsselanhänger.", @@ -1681,7 +1669,6 @@ "failures.load_shedding_stage_n_in_city":"Lastabwurf Stufe {n} in {city}, und du hast keinen Generator. Kauf einen: Hier ist das nicht optional.", "failures.load_shedding_took_out_site_in":"Lastabwurf hat {site} in {city} lahmgelegt. {other} lief weiter, also arbeitet der POP mit halber Kapazität. Alles, was nur am dunklen Standort angeschlossen ist, ist offline.", "failures.magpie_swooping_season_the_field":"Elstern-Angriffssaison: Die Techniker an {a}–{b} verlassen den Transporter nicht, und deine Glasfaser bleibt durchtrennt.", -"failures.max_prefix_meltdown":"Max-Prefix-Kernschmelze", "failures.metro_ring_cut":"Metro-Ring gekappt", "failures.microbursts_on_a_b_overflow_shallow":"Microbursts auf {a}–{b} lassen flache Router-Buffer überlaufen: 0,5 % Verlust zur Spitzenzeit, und jeder Videocall merkt es.", "failures.microbursts_on_a_b_your_deep":"Microbursts auf {a}–{b}.
Deine Router mit tiefen Buffern haben sie aufgesaugt. Niemand hat was gemerkt.", @@ -1796,11 +1783,8 @@ "fiber_modals.your_pop_needs_a_fabric_port":"Dein POP · braucht dort einen Fabric-Port", "game_and_settings.delete_and_start_over":"Löschen und neu anfangen", "game_and_settings.export_save_download_a_file":"Spielstand exportieren Datei herunterladen", -"game_and_settings.import_a_save_from_a_file":"Spielstand importieren aus einer Datei", "game_and_settings.import_failed_that_save_is_damaged":"Import fehlgeschlagen.
Dieser Spielstand ist beschädigt und konnte nicht geladen werden. Dein aktuelles Spiel ist unberührt.", "game_and_settings.name_and_everything_it_owns_will":"{name} und alles, was dazugehört, wird gelöscht. Das lässt sich nicht rückgängig machen.", -"game_and_settings.scenarios_amp_weekly_challenge":"Szenarien & Wochen-Challenge", -"game_and_settings.share_your_network_image_card":"Dein Netz teilen Bildkarte", "game_and_settings.start_a_new_network":"Ein neues Netz starten?", "game_and_settings.welcome_back_name_imported_and_saved":"Willkommen zurück, {name}.
Importiert und auf diesem Gerät gespeichert.", "game_and_settings.your_game_saves_itself_every_few":"Dein Spiel speichert sich alle paar Sekunden auf diesem Gerät.", @@ -1871,7 +1855,7 @@ "help.each_pop_s_router_model_caps":"Das Router-Modell eines POPs begrenzt seinen schnellsten Port (100G, 400G, 800G, 1.6T) und wie viel er weiterleiten kann. Größere Waves und Ports brauchen an beiden Enden bessere Router. Bessere Modelle werden mit deinem Kundenlevel freigeschaltet. Mit nur einem Router heißen Upgrades einen Tag Ausfallzeit.", "help.event_networks_a_final_a_festival":"Event-Netze (ein Finale, ein Festival, eine Keynote) brauchen für ein paar Tage einen Kapazitätsschub in einer Stadt und zahlen einmal am Ende, anteilig danach, wie viel der Menge du bedient hast; unter 70 % zahlst du eine Vertragsstrafe. SD-WAN-Ketten verbinden 3–6 deiner POPs als Hub-and-Spoke, also verärgert eine kaputte Speiche den ganzen Vertrag. Sobald du eigene Dark Fiber betreibst, wollen Carrier freie Kanäle als Alien Waves mieten, und auf selbst gebauter Glasfaser ein freies Paar.", "help.events_chains_and_wholesale":"Events, Ketten und Wholesale", -"help.every_ix_port_brings_peering":"Jeder IX-Port bringt Peering-Anfragen und Max-Prefix-Alarme mit, im Tab Netze. Eine Session, die ihr Limit sprengt, bleibt down, bis du nachsiehst: Heb das Limit bei Wachstum an, lass sie bei einem Leak down. Ignorierst du deine Post, werden selektive Netze wählerischer.", +"help.every_ix_port_brings_requests":"Jeder IX-Port bringt Peering-Anfragen, und deine Peering-Policy im Netze-Tab beantwortet sie: Offen nimmt alle an, Selektiv nimmt die Netze, mit denen sich Peering lohnt, und lehnt den Rest still ab, Geschlossen lehnt alle ab. Einmal pro Woche fasst das NOC-Log es zusammen.", "help.every_link_has_latency_high":"Jeder Link hat Latenz. Hochfrequenzhändler zahlen ein Vermögen für eine Verbindung innerhalb ihres Latenzbudgets; route sie über „Niedrigste Latenz“. Backup-Kunden ist das egal, also route sie „Landschaftlich“ über deine ruhigen Links, damit die vollen frei bleiben.", "help.home_broadband_users_they_mostly":"Heim-Breitband-Nutzer. Sie laden meist von CDNs herunter und zahlen dir pro ausgeliefertem Gbps. Bedien sie gut, und sie vermehren sich.", "help.how_the_internet_works_here":"So funktioniert das Internet hier", @@ -1885,7 +1869,7 @@ "help.name_as_asn_is_transit_free":"{name} (AS{asn}) ist transitfrei. Du peerst mit jedem Riesen auf dem Planeten und zahlst niemandem etwas, um das Internet zu erreichen. Hat dich {days} Tage und {n} Störungen gekostet.", "help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG und Co. kommen jedes Jahr vorbei. Melde dich im Tab Deals für $8k an. In den 45 Tagen danach brauchen selektive Netze mit Präsenz in dieser Region nur halb so viel Traffic wie sonst, bevor sie mit dir peeren. Manchmal gewinnst du auch die Tombola.", "help.once_auto_te_is_installed_you":"Sobald Auto-TE installiert ist, kannst du es im Tab NOC programmieren. Zu den Regeln gehören spill at 80%, prefer pni for goggle, avoid transit for netchill, cap transit cogentle at 20 gbps, drain paris, avoid link fra-ams und blackhole ddos. Prüfen spielt einen Probelauf mit dem Live-Traffic durch; Deployen macht es echt, Fehler inklusive.", -"help.one_game_four_doors_puzzles_are":"Ein Spiel, vier Türen, und die Regeln wählst du beim Start eines Netzes, danach sind sie festgelegt. Rätsel sind kleine Knoten zum Entwirren, ohne Uhr. Sandbox gibt dir eine Milliarde Dollar, alle Freischaltungen (dein eigenes Seekabel inklusive) und so viel Chaos, wie du willst, aber keine Abzeichen. Normal gibt es dreifach: Change Freeze (wenige Ausfälle, Lieferungen in Tagen, kein Postfach, keine Engpässe), Rufbereitschaft (das klassische Spiel) und BGP um 3 Uhr nachts (mehr und längere Ausfälle, mehr DDoS). Szenarien sind handgebaute Herausforderungen mit Ziel und Frist, und die Wochen-Challenge gibt allen eine Woche lang dieselbe Welt. Teile dein Ergebnis mit der Karte im Menü.", +"help.one_game_four_doors_and_the":"Ein Spiel, vier Türen, und die Regeln wählst du beim Start eines Netzes, danach sind sie festgelegt. Rätsel sind kleine Knoten zum Entwirren, ohne Uhr. Sandbox gibt dir eine Milliarde Dollar, alle Freischaltungen (dein eigenes Seekabel inklusive) und so viel Chaos, wie du willst, aber keine Abzeichen. Normal gibt es dreifach: Change Freeze (wenige Ausfälle, Lieferungen in Tagen, keine Engpässe), Rufbereitschaft (das klassische Spiel) und BGP um 3 Uhr nachts (mehr und längere Ausfälle, mehr DDoS). Szenarien sind handgebaute Herausforderungen mit Ziel und Frist, und die Wochen-Challenge gibt allen eine Woche lang dieselbe Welt. Teile dein Ergebnis mit der Karte im Menü.", "help.open_peers_with_anyone_selective":"Offene Netze peeren mit allen. Selektive wollen erst Traffic sehen. Restriktive (Tier 1s) peeren nur mit Riesen, über PNIs. Paid Peering heißt genau das: Du zahlst. Große selektive Netze haben auch Launen: In manchen Städten lehnen sie ein paar Monate lang neue Peers ab oder nehmen nur PNIs, und ab und zu bauen sie eine Session ab, die du schon hattest. Versuch es in einer anderen Stadt oder mit einem PNI und frag später nochmal.", "help.out_of_port_speed_bundle_up":"Port zu langsam? Bündle bis zu 8 identische Ports zum selben Transit-Anbieter, IX oder PNI zu einem LAG. Jedes Mitglied kostet einen vollen Port; Flow-Hashing ist nie perfekt gleichmäßig, also trägt ein Bündel etwa 95 % der Summe.", "help.pni_lead_times":"PNI-Lieferzeiten", @@ -2010,15 +1994,12 @@ "hud_and_panels.has_errors_not_running":"hat Fehler, läuft nicht", "hud_and_panels.incidents_so_far":"Bisherige Störungen", "hud_and_panels.install_auto_te_cost_mo_mo":"Auto-TE installieren {cost} + {mo}/Monat", -"hud_and_panels.large_peering_model_is_on_it":"Das Large Peering Model kümmert sich drum.", "hud_and_panels.lv_n":"Lv {n}", "hud_and_panels.n_incident":{"one":"{n} Störung","other":"{n} Störungen"}, -"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} Nachricht wartet auf eine Antwort.","other":"{n} Nachrichten warten auf eine Antwort."}, "hud_and_panels.n_more_networks":{"one":"+{n} weiteres Netz","other":"+{n} weitere Netze"}, "hud_and_panels.n_networks_d_days_left":"{n} Netze · noch {d} Tage", "hud_and_panels.n_new_notification":{"one":"{n} neue Benachrichtigung","other":"{n} neue Benachrichtigungen"}, "hud_and_panels.n_rules_live":"{n} Regeln aktiv", -"hud_and_panels.n_session_is_down_on_its":{"one":"{n} Session ist wegen ihres Max-Prefix-Limits down.","other":"{n} Sessions sind wegen ihres Max-Prefix-Limits down."}, "hud_and_panels.n_small_networks":"{n} kleine Netze", "hud_and_panels.n_special_requirement":{"one":"{n} Sonderwunsch","other":"{n} Sonderwünsche"}, "hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} unzufriedener Kunde, {price}/Monat gefährdet","other":"{n} unzufriedene Kunden, {price}/Monat gefährdet"}, @@ -2594,6 +2575,7 @@ "ops.by_hand_note":"Für den Moment, in dem alles sofort erledigt sein soll: jeder Peer an jedem Exchange, ein Redundanz-Kit, PNIs mit allen.", "ops.caches_rent":"Kostenlos ins Rack, aber jede Box kostet {price}/Monat für Platz und Strom.", "ops.cheapest":"Günstigster", +"ops.day_d":"Tag {d}", "ops.ff_desc":"hat einen Port in {city} „TODO: später fixen (nicht fixen)“ beschriftet", "ops.ff_hostname":"hat den Router in {city} in router-final-FINAL-v2 umbenannt", "ops.ff_lag":"hat in {city} ein Transit-LAG-Member zu viel bestellt. Läuft, also bleibt es.", @@ -2632,8 +2614,6 @@ "ops.l_snag":{"one":"ist bei {where} hängen geblieben und hat den Auftrag pausiert, bis du draufschaust","other":"ist bei {n} Aufträgen hängen geblieben ({where}) und hat sie pausiert, bis du draufschaust"}, "ops.l_transit":{"one":"hat Transit in {where} aufgestockt","other":"hat {n}-mal Transit aufgestockt ({where})"}, "ops.locked":"Das NOC stellt ab Kundenlevel {lv} Praktikanten ein.", -"ops.lpm_off":"Die Peering-Inbox bleibt deine Sache. Dafür gibt es das Large Peering Model; {name} macht keine E-Mails.", -"ops.lpm_on":"Das Large Peering Model beantwortet die Peering-Inbox. {name} geht ihm aus dem Weg.", "ops.mood_annie":"Annie hat drei Fragen beantwortet, bevor du sie gestellt hast, vom nächstgelegenen Schreibtisch aus.", "ops.mood_broke":"{name} hat schon eine Einkaufsliste für das Budget des nächsten Monats.", "ops.mood_busy":"{name} hatte eine volle Woche und ist beim dritten Energydrink.", @@ -2746,61 +2726,14 @@ "page.series_of_tubes_build_the_internet":"Series of Tubes: Bau das Internet, eine Röhre nach der anderen", "page.world_map_of_your_network":"Weltkarte deines Netzes", "page.x":"", -"peering_inbox.accept_all_requests":"Alle Anfragen annehmen", -"peering_inbox.an_ai_agent_that_answers_every":"Ein KI-Agent, der jeden Tag jede Peering-Anfrage und jeden Max-Prefix-Alarm für dich beantwortet. {price}/Jahr. Trainiert mit zwanzig Jahren Peering-Mailinglisten.", -"peering_inbox.answered_your_mail_a_accepted_d":"Hat deine Mails beantwortet: {a} angenommen, {d} abgelehnt.", -"peering_inbox.asked_netchill_s_peering_team_to":"Hat das Peering-Team von NetChill gebeten, „bitte mehr Netchill bereitzustellen“.", -"peering_inbox.configured_lim_prefixes_received_got":"Konfiguriert: {lim} Präfixe. Empfangen: {got}.", -"peering_inbox.day_d":"Tag {d}", -"peering_inbox.dear_sir_or_madam_please_peer":"Sehr geehrte Damen und Herren, bitte peeren Sie. Wir haben drei Präfixe und sehr große Pläne.", -"peering_inbox.decline_all_requests":"Alle Anfragen ablehnen", -"peering_inbox.declined_who_at_ix_not_a":"{who} am {ix} abgelehnt: „passt strategisch nicht“. Hat es aber.", -"peering_inbox.every_exchange_port_brings_mail":"Jeder Exchange-Port bringt Post. Beantworte Peering-Anfragen und sieh dir Sessions an, die ihr Max-Prefix-Limit erreicht haben: Ist das Wachstum oder ein Route Leak? Unbeantwortete Mails bringen dir einen schlechten Ruf ein, und selektive Netze bekommen das mit.", -"peering_inbox.everyone_who_asks_gets_a_session":"Jeder, der fragt, bekommt eine Session, und die Route Server laufen. Viele winzige Peers und viele Max-Prefix-Alarme.", -"peering_inbox.fewer_requests_and_you_answer_them":"Weniger Anfragen, und du beantwortest sie selbst. Keine Route Server: Geh zu jedem Exchange und frag die Netze an, die du willst.", -"peering_inbox.fire_the_ai":"KI feuern", -"peering_inbox.good_call_it_was_a_route":"Gut erkannt: Es war ein Route Leak.
{who} hat eine vertippte Route-Map gefunden. Die Session kommt in ein paar Tagen von selbst zurück.", -"peering_inbox.greetings_we_are_a_fast_growing":"Grüße. Wir sind ein schnell wachsendes Netz. Letztes Jahr hatten wir einen Kunden, dieses Jahr sind es zwei.", -"peering_inbox.hello_please_find_attached_our":"Hallo, anbei unsere Peering-Anfrage als Word-Dokument, eingescannt von einem Ausdruck.", -"peering_inbox.hey_quick_one_can_you_peer":"Hey, kurze Frage: Kannst du mit uns am {ix} peeren? Wir haben einen sehr wichtigen Minecraft-Server.", -"peering_inbox.hi_we_would_like_to_peer":"Hi! Wir würden gern mit dir am {ix} peeren. Unser PeeringDB-Eintrag ist aktuell.", -"peering_inbox.hire_it_mo_mo":"Anheuern {mo}/Monat", -"peering_inbox.inbox_zero_enjoy_it_while_it":"Inbox Zero. Genieß es, solange es anhält.", -"peering_inbox.keep_it_down":"Down lassen", -"peering_inbox.kept_who_down_at_ix_for":"{who} am {ix} wegen „verdächtigen Wachstums“ down gelassen. Sie waren um einen Kunden gewachsen.", -"peering_inbox.kept_who_down_at_ix_it":"{who} am {ix} down gelassen: Es war ein Route Leak. Volltreffer.", -"peering_inbox.large_peering_model":"Large Peering Model", -"peering_inbox.large_peering_model_is_answering":"Das Large Peering Model beantwortet deine Mails", -"peering_inbox.max_prefix_limit_hit_who_at":"Max-Prefix-Limit erreicht: {who} am {ix}.
Die Session bleibt down, bis du sie dir ansiehst.", -"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Max-Prefix-Limit erreicht: {who} am {ix}", -"peering_inbox.mostly_ignores_email":"Ignoriert Mails meistens", -"peering_inbox.n_day_ago":{"one":"vor {n} Tag","other":"vor {n} Tagen"}, -"peering_inbox.n_unanswered":{"one":"{n} unbeantwortet","other":"{n} unbeantwortet"}, -"peering_inbox.no_mail_yet_buy_an_ix":"Noch keine Post. Kauf einen IX-Port, dann kommt sie.", -"peering_inbox.nobody_asks_and_no_route_servers":"Niemand fragt, und keine Route Server. Kunden hören, dass du schwer erreichbar bist, also rufen weniger an, und dein Ruf sinkt.", -"peering_inbox.open_to_all":"Offen für alle", -"peering_inbox.opened_a_ticket_with_itself_to":"Hat bei sich selbst ein Ticket eröffnet, um die eigenen Entscheidungen zu prüfen. Es hat sie genehmigt.", -"peering_inbox.peering_request_fifth_attempt_is":"Peering-Anfrage, fünfter Versuch. Ist da jemand?", -"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB zuletzt vor {n} Jahr aktualisiert","other":"PeeringDB zuletzt vor {n} Jahren aktualisiert"}, -"peering_inbox.peeringdb_updated_last_month":"PeeringDB letzten Monat aktualisiert", -"peering_inbox.please_configure_sessions_with_us_at":"Bitte konfiguriere Sessions mit uns am {ix}. Wir machen unsere nächste Woche, oder die Woche danach.", -"peering_inbox.price_year_it_never_sleeps_never":"{price}/Jahr. Schläft nie, beschwert sich nie und liegt oft falsch.", -"peering_inbox.raise_all_max_prefix_limits":"Alle Max-Prefix-Limits anheben", -"peering_inbox.raise_the_limit":"Limit anheben", -"peering_inbox.raised_the_max_prefix_limit_for":"Hat das Max-Prefix-Limit für {who} am {ix} auf {n} angehoben. Sie wirkten nett.", -"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Hat das Max-Prefix-Limit für {who} am {ix} angehoben. Diesmal zu Recht.", -"peering_inbox.replied_to_a_peering_request_with":"Hat eine Peering-Anfrage mit einem Haiku über BGP beantwortet. Noch keine Antwort.", -"peering_inbox.session_with_who_is_back_up":"Die Session mit {who} ist wieder up.
Neues Limit: {n} Präfixe. Sie versprechen, PeeringDB zu aktualisieren.", -"peering_inbox.signed_you_up_for_a_webinar":"Hat dich für ein Webinar über „Peering im Zeitalter der KI“ angemeldet.", -"peering_inbox.that_was_a_route_leak_who":"Das war ein Route Leak.
{who} hat {n} Präfixe announced: eine volle Tabelle. Lass die Session nächstes Mal down.", -"peering_inbox.the_session_stays_down_who_will":"Die Session bleibt down.
{who} aktualisiert PeeringDB und fragt nochmal. Irgendwann.", -"peering_inbox.their_peeringdb_says_lim_last":{"one":"Laut ihrer PeeringDB {lim}, zuletzt vor {n} Jahr aktualisiert.","other":"Laut ihrer PeeringDB {lim}, zuletzt vor {n} Jahren aktualisiert."}, -"peering_inbox.tidied_up_a_session_it_decided":"Hat eine Session aufgeräumt, die es für ungenutzt hielt: {who} am {ix} de-peert.", -"peering_inbox.updated_your_peeringdb_record_your":"Hat deinen PeeringDB-Eintrag aktualisiert. Deine NOC-Telefonnummer gehört jetzt einer Pizzeria.", -"peering_inbox.we_noticed_you_are_at_ix":"Wir haben gesehen, dass du am {ix} bist. Wir auch. Wollen wir?", -"peering_inbox.who_asked_a_mailing_list_whether":"{who} hat auf einer Mailingliste gefragt, ob jemand einen funktionierenden Kontakt bei {me} hat.
Ihre Peering-Anfrage lag einen Monat in deinem Postfach.", -"peering_inbox.who_at_ix_was_sending_a":"{who} am {ix} hat eine volle Tabelle geschickt, und das Max-Prefix-Limit war das Einzige, was das aufgehalten hat. Mit angehobenem Limit zeigen die Präfixe von {net} jetzt in deren Keller. Traffic zu {net} über Transit wird ein paar Tage lang geblackholt.", -"peering_inbox.wrote_a_thousand_word_apology_to":"Hat eine tausend Wörter lange Entschuldigung an ein Netz geschrieben, mit dem du nie gepeert hast.", +"peering_desk.closed_desc":"Jede Peering-Anfrage wird abgelehnt, und keine Route Server. Kunden hören, dass du schwer erreichbar bist, also rufen weniger an.", +"peering_desk.n_more_exchanges":{"one":"{n} weiterer Exchange","other":"{n} weitere Exchanges"}, +"peering_desk.n_new_sessions_at_ix":{"one":"Peering-Desk: {n} neue Session an {ix} ({pol}).","other":"Peering-Desk: {n} neue Sessions an {ix} ({pol})."}, +"peering_desk.n_new_sessions_at_ix_declined":{"one":"Peering-Desk: {n} neue Session an {ix}, {d} abgelehnt ({pol}).","other":"Peering-Desk: {n} neue Sessions an {ix}, {d} abgelehnt ({pol})."}, +"peering_desk.n_requests_declined":{"one":"Peering-Desk: {n} Anfrage abgelehnt ({pol}).","other":"Peering-Desk: {n} Anfragen abgelehnt ({pol})."}, +"peering_desk.open_desc":"Jedes Netz, das fragt, bekommt eine Session, und die Route Server laufen.", +"peering_desk.open_to_all":"Offen für alle", +"peering_desk.selective_desc":"Kleine Netze am Exchange und Neulinge mit aktueller PeeringDB bekommen eine Session, der Rest wird still abgelehnt. Keine Route Server: Frag an jedem Exchange die Netze an, die du willst.", "peering_policy.a_new_vp_wants_to_monetise":"Ein neuer VP will in diesem Markt „Interconnection monetarisieren“.", "peering_policy.already_reach_you_through_your":"Erreichen dich hier schon über deinen Transit-Provider und finden das in Ordnung.", "peering_policy.moved_everything_in_this_city_to":"Haben in dieser Stadt alles auf PNIs umgestellt. Bitte lies ihre PearingDB-Seite, alle 40 Seiten davon.", @@ -3311,7 +3244,7 @@ "routing_and_routers.unplug_something_first_used_ports":"Steck zuerst etwas aus.
{used} Ports sind belegt, und mit einem Router weniger gibt es nur {max}.", "rules.a_billion_dollars_every_unlock_your":"Eine Milliarde Dollar, alles freigeschaltet, dein eigenes Seekabel.", "rules.a_cut_now_and_then":"Ab und zu ein Bagger.", -"rules.a_third_of_the_outages_no_ddos":"Ein Drittel der Ausfälle, kein DDoS. PNIs und Bauten in Tagen. Kein Postfach, keine Lieferengpässe, keine ausverkauften Routen, kein De-Peering.", +"rules.a_third_of_the_outages_no_ddos_pnis":"Ein Drittel der Ausfälle, kein DDoS. PNIs und Bauten in Tagen. Keine Lieferengpässe, keine ausverkauften Routen, kein De-Peering.", "rules.bgp_at_3_a_m":"BGP um 3 Uhr nachts", "rules.change_freeze":"Change Freeze", "rules.chaos_calm":"Ruhig", @@ -3328,7 +3261,7 @@ "rules.on_call":"Rufbereitschaft", "rules.one_small_network_one_tricky_goal":"Ein kleines Netz, ein kniffliges Ziel.", "rules.puzzle":"Rätsel", -"rules.real_lead_times_real_outages_a":"Echte Lieferzeiten, echte Ausfälle, ein volles Peering-Postfach. Das klassische Spiel.", +"rules.real_lead_times_real_outages_a_real":"Echte Lieferzeiten, echte Ausfälle, ein echter Markt. Das klassische Spiel.", "rules.rules_are_locked_for_this_network":"{rules}: Die Regeln sind für dieses Netz festgelegt.", "rules.the_real_thing_your_pager_has":"Das echte Spiel. Dein Pager hat Meinungen.", "rules.your_pager_never_sleeps":"Dein Pager schläft nie.", @@ -3462,9 +3395,7 @@ "sites_peering_caches.bgp_session_established":"BGP-Session aufgebaut.", "sites_peering_caches.cache_installed_in_city_net_shipped":"{cache} in {city} installiert!
{net} hat ihn kostenlos geliefert. Du zahlst {mo}/Monat für Strom.", "sites_peering_caches.could_you_resend_the_loa_you":"„Könntest du die LOA nochmal schicken?“
Du hast sie schon viermal geschickt.", -"sites_peering_caches.hello_i_am_large_peering_model":"Hallo! Ich bin das Large Peering Model. Ich habe dein Postfach gelesen und habe schon eine Meinung dazu.", "sites_peering_caches.it_is_with_the_provisioning_team":"„Das liegt beim Provisioning-Team.“
Niemand hat das Provisioning-Team je getroffen.", -"sites_peering_caches.large_peering_model_is_hired_your":"Das Large Peering Model ist angeheuert.
Dein Postfach ist jetzt sein Problem. {price} pro Jahr, monatlich abgerechnet.", "sites_peering_caches.n_new_session_at_ix_small":{"one":"{n} neue Session am {ix}.
Kleine Netze, aber das summiert sich, und alle zählen für den Club.","other":"{n} neue Sessions am {ix}.
Kleine Netze, aber das summiert sich, und alle zählen für den Club."}, "sites_peering_caches.net_accepted":"{net} hat angenommen!", "sites_peering_caches.net_declined_the_pni_why":"{net} hat den PNI abgelehnt.
{why}", @@ -3472,11 +3403,8 @@ "sites_peering_caches.net_does_not_do_port_pnis":"{net} macht keine {port}-PNIs.
Nichts unter 100G. Komm mit mehr Traffic wieder, oder mit einer größeren Optik.", "sites_peering_caches.net_says_not_yet_send_them":"{net} sagt: noch nicht.
Schick ihnen erst {min}+ Gbps.", "sites_peering_caches.pni_with_net_ordered_eta_a":"PNI mit {net} bestellt.
{eta}. Ein Cross-Connect im {dc}, sobald jemand die LOA findet.", -"sites_peering_caches.raised_n_max_prefix_limits_all":"{n} Max-Prefix-Limits angehoben.
Alles Wachstum, keine Leaks. Glück gehabt.", -"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"{n} Max-Prefix-Limits angehoben.
Eines davon war ein Route Leak. Das liegt jetzt im NOC.","other":"{n} Max-Prefix-Limits angehoben.
{k} davon waren Route Leaks. Die liegen jetzt im NOC."}, "sites_peering_caches.second_lag_member_added_one_member":"Zweites LAG-Mitglied hinzugefügt.
Jetzt ein Mitglied in jedem Gebäude, also legt ein dunkles Gebäude nur den halben Port lahm.", "sites_peering_caches.second_site_live_in_city_b":"Zweiter Standort in {city} live.
{b} ist über deinen eigenen Metro-Ring mit {a} verbunden. Verschieb ein paar Uplinks in den Tabs Transit und Peering dorthin.", -"sites_peering_caches.the_ai_is_gone_it_left":"Die KI ist weg.
Sie hat ein 40-seitiges Übergabedokument hinterlassen. Es geht hauptsächlich um sie selbst.", "sites_peering_caches.they_checked_your_pearingdb_page_and":"Sie haben sich deine PearingDB-Seite angesehen und mochten die Traffic-Zahlen.", "sites_peering_caches.we_are_waiting_on_the_colo":"„Wir warten beim Colo auf den Cross-Connect.“
Das Colo sagt, es wartet auf sie.", "sites_peering_caches.your_account_manager_found_the_order":"Dein Account Manager hat die Bestellung unter einem Schreibtisch gefunden.
Die Lieferung rückt einen Monat näher.", @@ -3498,6 +3426,7 @@ "slots.last_played_ago":"Zuletzt gespielt: {ago}", "slots.load_the_newest_version":"Neueste Version laden", "slots.more_for_name":"Mehr zu {name}", +"slots.n_day_ago":{"one":"vor {n} Tag","other":"vor {n} Tagen"}, "slots.n_h_ago":{"one":"vor {n} Std.","other":"vor {n} Std."}, "slots.name_is_open_in_another_window":"{name} ist in einem anderen Fenster offen", "slots.name_is_waiting_in_your_other":"{name} wartet in deinem anderen Fenster.
Wechsle dorthin, um weiterzuspielen.", @@ -3521,7 +3450,6 @@ "slots.this_window_stopped_saving_so_it":"In einem anderen Fenster wurde eine neuere Version gespeichert, also speichert dieses nicht mehr, statt sie zu überschreiben.", "slots.two_windows_one_network":"Zwei Fenster, ein Netz", "slots.your_networks":"Deine Netze", -"slots.your_networks_switch_or_start_another":"Deine Netze wechseln oder ein neues starten", "slots.your_other_networks_share_this_browser":"Deine anderen Netze teilen sich den Speicher dieses Browsers. Exportiere die, die du behalten willst, und lösche sie dann hier, um Platz zu schaffen.", "sold_out.a_hyperscaler_bought_every_wave_of":"Ein Hyperscaler hat letzte Woche jede Wave dieser Größe auf dieser Route gekauft.", "sold_out.not_big_enough_yet_list":"Noch nicht groß genug: {list}", diff --git a/site/i18n/es.js b/site/i18n/es.js index c4dd964..00fd43e 100644 --- a/site/i18n/es.js +++ b/site/i18n/es.js @@ -807,7 +807,6 @@ "common.aug":"Ago", "common.auto":"Auto", "common.auto_enrolled":"alta automática", -"common.average":"Media", "common.avoid":"Evitar", "common.back":"Atrás", "common.back_to_the_map":"Volver al mapa", @@ -823,7 +822,6 @@ "common.bgp_hijack":"Secuestro de BGP", "common.bgp_sessions":"Sesiones BGP", "common.big_league":"Primera división", -"common.black_hole":"Agujero negro", "common.blitz":"Blitz", "common.boot_time":"Tiempo de arranque", "common.boot_times":"Tiempos de arranque", @@ -831,7 +829,6 @@ "common.box_6ee3":"− caja", "common.build_time":"Tiempo de construcción", "common.building":"construyendo", -"common.bumped":"desplazado", "common.bunker_two":"Búnker Dos", "common.busiest_links":"Enlaces más ocupados", "common.business_customers":"Clientes empresariales", @@ -993,8 +990,6 @@ "common.import_a_save":"Importar una partida", "common.in_progress":"en curso", "common.in_use":"En uso", -"common.inbox":"Bandeja de entrada", -"common.inbox_zero":"Bandeja a cero.", "common.incident":"Incidente", "common.incidents":"Incidentes", "common.incidents_survived":"Incidentes superados", @@ -1122,7 +1117,6 @@ "common.oops":"Ups", "common.open":"Abrir", "common.open_bank":"Abrir banco", -"common.open_inbox":"Abrir bandeja", "common.open_infra":"Abrir Infra", "common.open_lease":"Abrir alquiler", "common.open_noc":"Abrir NOC", @@ -1147,7 +1141,6 @@ "common.peered_ce2f":"Con peering ✓", "common.peering":"Peering", "common.peering_first":"Peering primero", -"common.peering_inbox":"Bandeja de peering", "common.peering_policy":"Política de peering", "common.peering_ratio":"Ratio de peering", "common.peering_spat":"Riña de peering", @@ -1196,7 +1189,6 @@ "common.remove_port":"Quitar puerto", "common.remove_script":"Quitar script", "common.request":"Solicitar", -"common.responsive":"Responsivo", "common.resume":"Reanudar", "common.retention_offer":"Oferta de retención", "common.revenue":"Ingresos", @@ -1302,7 +1294,6 @@ "common.to":"Hasta", "common.toaster_wrangler":"Domador de tostadoras", "common.today":"Hoy", -"common.today_4203":"hoy", "common.toggle_sound":"Alternar sonido", "common.too_far_for_this_cable":"demasiado lejos para este cable", "common.traceroute":"Traceroute", @@ -1364,7 +1355,6 @@ "common.your_network":"Tu red", "common.your_pop":"Tu POP", "common.your_pops":"Tus POPs", -"common.your_reputation":"Tu reputación", "common.zombie_route":"Ruta zombi", "compute.attack_hauled_to_scrubbing_in_city":"Ataque desviado a depuración en {city}", "compute.courtesy_route_to_new_networks":"Ruta de cortesía a redes nuevas", @@ -1611,8 +1601,6 @@ "failures.a_kilometre_of_copper_went_missing":"Desapareció un kilómetro de «cobre» de tu zanja {a}–{b}. Era tu fibra. El desguace la devolvió con una nota.", "failures.a_landslide_in_the_andes_buried":"Un deslizamiento de tierra en los Andes enterró tu fibra {a}–{b}.", "failures.a_llama_herd_trampled_the_fiber":"Una manada de llamas pisoteó el hito de la fibra en {a}–{b}. Luego una retroexcavadora encontró la fibra.", -"failures.a_member_at_ix_leaked_the":"Un miembro de {ix} filtró la tabla de rutas completa al route server. Los límites de max-prefix saltaron por todas partes. Tu peering allí está caído.", -"failures.a_member_at_ix_leaked_the_5563":"Un miembro de {ix} filtró la tabla de rutas completa al route server. Los límites de max-prefix saltaron por todas partes. Tu peering allí, en {city}, está caído.", "failures.a_new_tech_in_a_tidied":"Un técnico nuevo en {a} «ordenó» el lío de cables. Tu enlace {a}–{b} era parte del lío.", "failures.a_new_tech_in_city_used":"Un técnico nuevo en {city} usó Vegemite como pasta térmica. Conduce sabor, no calor, y tu router se cocinó.", "failures.a_optic_on_a_b_overheated":"Una {optic} en {a}–{b} se sobrecalentó y ahora es un llavero muy caro.", @@ -1679,7 +1667,6 @@ "failures.load_shedding_stage_n_in_city":"Cortes programados de fase {n} en {city}, y no tienes generador. Compra uno: aquí no es opcional.", "failures.load_shedding_took_out_site_in":"Los cortes programados tumbaron {site} en {city}. {other} siguió funcionando, así que el POP trabaja a media capacidad. Lo que solo esté conectado en la sede a oscuras está fuera de línea.", "failures.magpie_swooping_season_the_field":"Temporada de urracas en picado: los técnicos de campo de {a}–{b} no salen de la furgoneta, y tu corte sigue cortado.", -"failures.max_prefix_meltdown":"Colapso de max-prefix", "failures.metro_ring_cut":"Anillo metropolitano cortado", "failures.microbursts_on_a_b_overflow_shallow":"Microrráfagas en {a}–{b} desbordan los buffers poco profundos del router: 0,5 % de pérdida en hora punta, y todas las videollamadas lo notan.", "failures.microbursts_on_a_b_your_deep":"Microrráfagas en {a}–{b}.
Tus routers de buffer profundo las absorbieron. Nadie lo notó.", @@ -1794,11 +1781,8 @@ "fiber_modals.your_pop_needs_a_fabric_port":"Tu POP · necesita un puerto de fabric allí", "game_and_settings.delete_and_start_over":"Borrar y empezar de nuevo", "game_and_settings.export_save_download_a_file":"Exportar partida descargar un archivo", -"game_and_settings.import_a_save_from_a_file":"Importar una partida desde un archivo", "game_and_settings.import_failed_that_save_is_damaged":"Falló la importación.
Esa partida está dañada y no se pudo cargar. Tu partida actual sigue intacta.", "game_and_settings.name_and_everything_it_owns_will":"{name} y todo lo que posee se borrarán. No se puede deshacer.", -"game_and_settings.scenarios_amp_weekly_challenge":"Escenarios y desafío semanal", -"game_and_settings.share_your_network_image_card":"Comparte tu red tarjeta de imagen", "game_and_settings.start_a_new_network":"¿Empezar una red nueva?", "game_and_settings.welcome_back_name_imported_and_saved":"Bienvenido de nuevo, {name}.
Importada y guardada en este dispositivo.", "game_and_settings.your_game_saves_itself_every_few":"Tu partida se guarda sola cada pocos segundos en este dispositivo.", @@ -1869,7 +1853,7 @@ "help.each_pop_s_router_model_caps":"El modelo de router de cada POP limita su puerto más rápido (100G, 400G, 800G, 1.6T) y cuánto puede reenviar. Las ondas y puertos mayores necesitan mejores routers en ambos extremos. Los mejores modelos se desbloquean con tu nivel de cliente. Con un solo router, mejorar implica un día de inactividad.", "help.event_networks_a_final_a_festival":"Las redes de eventos (una final, un festival, una keynote) necesitan una ráfaga de capacidad en una ciudad durante unos días y pagan una vez al final, prorrateado según cuánto de la multitud serviste; por debajo del 70 % pagas una penalización. Las cadenas SD-WAN conectan 3–6 de tus POPs en hub-and-spoke, así que un radio roto altera todo el contrato. Cuando operes tu propia fibra oscura, los operadores querrán alquilar canales libres como ondas alien, y en la fibra que construiste tú, un par libre.", "help.events_chains_and_wholesale":"Eventos, cadenas y mayorista", -"help.every_ix_port_brings_peering":"Cada puerto IX trae solicitudes de peering y alertas de max-prefix, en la pestaña Redes. Una sesión que supera su límite está caída hasta que la mires: sube el límite si es por crecimiento, déjala caída si es una fuga. Si ignoras el correo, las redes selectivas se ponen más quisquillosas.", +"help.every_ix_port_brings_requests":"Cada puerto de IX trae solicitudes de peering, y tu política de peering, en la pestaña Redes, las responde: Abierta acepta a todos, Selectiva acepta las redes con las que vale la pena hacer peering y rechaza en silencio al resto, Cerrada las rechaza todas. Una vez por semana el registro del NOC lo resume.", "help.every_link_has_latency_high":"Cada enlace tiene latencia. Los traders de alta frecuencia pagan una fortuna por un circuito dentro de su presupuesto de latencia; enrútalos con «Menor latencia». A los clientes de copias masivas no les importa, así que enrútalos por «Panorámica» sobre tus enlaces tranquilos para dejar libres los ocupados.", "help.home_broadband_users_they_mostly":"Usuarios de banda ancha doméstica. Sobre todo descargan de CDN y te pagan por cada Gbps que entregas. Sírvelos bien y se multiplican.", "help.how_the_internet_works_here":"Cómo funciona internet aquí", @@ -1883,7 +1867,7 @@ "help.name_as_asn_is_transit_free":"{name} (AS{asn}) es libre de tránsito. Haces peering con todos los gigantes del planeta y no pagas a nadie por llegar a internet. Te llevó {days} días y {n} incidentes.", "help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG y compañía vienen cada año. Regístrate en la pestaña Tratos por $8k. Durante 45 días después, las redes selectivas con presencia en esa región solo piden la mitad del tráfico habitual antes de hacer peering contigo. A veces también ganas la rifa.", "help.once_auto_te_is_installed_you":"Una vez instalado Auto-TE, puedes programarlo desde la pestaña NOC. Las reglas incluyen spill at 80%, prefer pni for goggle, avoid transit for netchill, cap transit cogentle at 20 gbps, drain paris, avoid link fra-ams y blackhole ddos. Check hace una prueba en seco con tráfico real; Deploy lo hace de verdad, errores incluidos.", -"help.one_game_four_doors_puzzles_are":"Un juego, cuatro puertas, y las reglas se eligen al empezar una red y quedan fijadas después. Los puzles son pequeños nudos que deshacer, sin reloj. Sandbox te da mil millones de dólares, todo desbloqueado (tu propio cable submarino incluido) y el caos que elijas, pero sin insignias. Normal viene de tres maneras: Congelación de cambios (pocas caídas, entregas en días, sin bandeja ni escasez), De guardia (el juego clásico) y BGP a las 3 de la mañana (más caídas y más largas, más DDoS). Los escenarios son retos hechos a mano con un objetivo y un plazo, y el reto semanal da a todos el mismo mundo durante una semana. Comparte tu resultado con la tarjeta del menú.", +"help.one_game_four_doors_and_the":"Un juego, cuatro puertas, y las reglas se eligen al empezar una red y quedan fijadas después. Los puzles son pequeños nudos que deshacer, sin reloj. Sandbox te da mil millones de dólares, todo desbloqueado (tu propio cable submarino incluido) y el caos que elijas, pero sin insignias. Normal viene de tres maneras: Congelación de cambios (pocas caídas, entregas en días, sin escasez), De guardia (el juego clásico) y BGP a las 3 de la mañana (más caídas y más largas, más DDoS). Los escenarios son retos hechos a mano con un objetivo y un plazo, y el reto semanal da a todos el mismo mundo durante una semana. Comparte tu resultado con la tarjeta del menú.", "help.open_peers_with_anyone_selective":"Open hace peering con cualquiera. Selective quiere ver tráfico primero. Restrictive (los Tier 1) solo hace peering con gigantes, por PNIs. Paid significa justo eso. Las grandes redes selectivas también tienen sus rachas: en algunas ciudades rechazan peers nuevos durante unos meses, o solo aceptan PNIs, y de vez en cuando tumban una sesión que ya tenías. Prueba otra ciudad o un PNI, y vuelve a preguntar más tarde.", "help.out_of_port_speed_bundle_up":"¿Te quedas sin velocidad de puerto? Agrupa hasta 8 puertos idénticos al mismo proveedor de tránsito, IX o PNI en un LAG. Cada miembro cuesta un puerto entero; el hash de flujos nunca es perfectamente uniforme, así que un paquete transporta cerca del 95 % de la suma.", "help.pni_lead_times":"Plazos de los PNI", @@ -2008,15 +1992,12 @@ "hud_and_panels.has_errors_not_running":"tiene errores, no funciona", "hud_and_panels.incidents_so_far":"Incidentes hasta ahora", "hud_and_panels.install_auto_te_cost_mo_mo":"Instalar Auto-TE {cost} + {mo}/mes", -"hud_and_panels.large_peering_model_is_on_it":"El Gran Modelo de Peering está en ello.", "hud_and_panels.lv_n":"Nv {n}", "hud_and_panels.n_incident":{"one":"{n} incidente","other":"{n} incidentes"}, -"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} mensaje esperando respuesta.","other":"{n} mensajes esperando respuesta."}, "hud_and_panels.n_more_networks":{"one":"+{n} red más","other":"+{n} redes más"}, "hud_and_panels.n_networks_d_days_left":"{n} redes · quedan {d} días", "hud_and_panels.n_new_notification":{"one":"{n} notificación nueva","other":"{n} notificaciones nuevas"}, "hud_and_panels.n_rules_live":"{n} reglas activas", -"hud_and_panels.n_session_is_down_on_its":{"one":"{n} sesión está caída por su límite de max-prefix.","other":"{n} sesiones están caídas por su límite de max-prefix."}, "hud_and_panels.n_small_networks":"{n} redes pequeñas", "hud_and_panels.n_special_requirement":{"one":"{n} requisito especial","other":"{n} requisitos especiales"}, "hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} cliente descontento, {price}/mes en riesgo","other":"{n} clientes descontentos, {price}/mes en riesgo"}, @@ -2592,6 +2573,7 @@ "ops.by_hand_note":"Para cuando lo quieres todo hecho ya: cada peer en cada exchange, un kit de redundancia, PNIs con todos.", "ops.caches_rent":"Instalarla es gratis, pero cada caja cuesta {price}/mes en espacio y energía.", "ops.cheapest":"El más barato", +"ops.day_d":"Día {d}", "ops.ff_desc":"etiquetó un puerto en {city} como «TODO: arreglar luego (no arreglar)»", "ops.ff_hostname":"renombró el router de {city} a router-final-FINAL-v2", "ops.ff_lag":"añadió un miembro LAG de tránsito de más en {city}. Funciona, así que se queda.", @@ -2630,8 +2612,6 @@ "ops.l_snag":{"one":"se atascó con {where} y la pausó hasta que le eches un vistazo","other":"se atascó con {n} órdenes ({where}) y las pausó hasta que les eches un vistazo"}, "ops.l_transit":{"one":"amplió el tránsito en {where}","other":"amplió el tránsito {n} veces ({where})"}, "ops.locked":"El NOC contrata becarios a partir del nivel de clientes {lv}.", -"ops.lpm_off":"La bandeja de peering sigue siendo cosa tuya. Para eso está el Large Peering Model; {name} no contesta correos.", -"ops.lpm_on":"El Large Peering Model contesta la bandeja de peering. {name} no se mete en su camino.", "ops.mood_annie":"Annie respondió tres preguntas antes de que las hicieras, desde la mesa más cercana.", "ops.mood_broke":"{name} ya tiene la lista de la compra para cuando llegue el presupuesto del mes que viene.", "ops.mood_busy":"{name} ha tenido una semana movida y va por la tercera bebida energética.", @@ -2744,61 +2724,14 @@ "page.series_of_tubes_build_the_internet":"Series of Tubes: construye internet, un tubo a la vez", "page.world_map_of_your_network":"Mapa del mundo de tu red", "page.x":"", -"peering_inbox.accept_all_requests":"Aceptar todas las solicitudes", -"peering_inbox.an_ai_agent_that_answers_every":"Un agente de IA que responde por ti todas las solicitudes de peering y alertas de max-prefix, todos los días. {price}/año. Entrenado con veinte años de listas de correo de peering.", -"peering_inbox.answered_your_mail_a_accepted_d":"Respondió tu correo: {a} aceptadas, {d} rechazadas.", -"peering_inbox.asked_netchill_s_peering_team_to":"Pidió al equipo de peering de NetChill que «por favor aporte más Netchill».", -"peering_inbox.configured_lim_prefixes_received_got":"Configurado: {lim} prefijos. Recibido: {got}.", -"peering_inbox.day_d":"Día {d}", -"peering_inbox.dear_sir_or_madam_please_peer":"Estimado señor o señora: por favor, hagamos peering. Tenemos tres prefijos y planes muy grandes.", -"peering_inbox.decline_all_requests":"Rechazar todas las solicitudes", -"peering_inbox.declined_who_at_ix_not_a":"Rechazó a {who} en {ix}: «no encaja estratégicamente». Sí encajaba.", -"peering_inbox.every_exchange_port_brings_mail":"Cada puerto de intercambio trae correo. Responde las solicitudes de peering y mira las sesiones que alcanzan su límite de max-prefix: ¿es crecimiento o una fuga de rutas? El correo sin responder te da fama, y las redes selectivas se enteran.", -"peering_inbox.everyone_who_asks_gets_a_session":"Todo el que pregunta recibe una sesión, y los route servers funcionan. Muchos peers diminutos y muchas alertas de max-prefix.", -"peering_inbox.fewer_requests_and_you_answer_them":"Menos solicitudes, y las respondes tú mismo. Sin route servers: ve a cada intercambio y solicita las redes que quieras.", -"peering_inbox.fire_the_ai":"Despedir a la IA", -"peering_inbox.good_call_it_was_a_route":"Buena decisión: era una fuga de rutas.
{who} encontró un route-map con un dedazo. La sesión vuelve sola en unos días.", -"peering_inbox.greetings_we_are_a_fast_growing":"Saludos. Somos una red en rápido crecimiento. El año pasado teníamos un cliente; este año tenemos dos.", -"peering_inbox.hello_please_find_attached_our":"Hola, adjuntamos nuestra solicitud de peering como documento de Word, escaneado de una impresión.", -"peering_inbox.hey_quick_one_can_you_peer":"Hola, una rápida: ¿podéis hacer peering con nosotros en {ix}? Tenemos un servidor de Minecraft importantísimo.", -"peering_inbox.hi_we_would_like_to_peer":"¡Hola! Nos gustaría hacer peering contigo en {ix}. Nuestro registro de PeeringDB está al día.", -"peering_inbox.hire_it_mo_mo":"Contratarla {mo}/mes", -"peering_inbox.inbox_zero_enjoy_it_while_it":"Bandeja a cero. Disfrútalo mientras dure.", -"peering_inbox.keep_it_down":"Mantenerla caída", -"peering_inbox.kept_who_down_at_ix_for":"Mantuvo caído a {who} en {ix} por «crecimiento sospechoso». Había crecido en un cliente.", -"peering_inbox.kept_who_down_at_ix_it":"Mantuvo caído a {who} en {ix}: era una fuga de rutas. Acertó de lleno.", -"peering_inbox.large_peering_model":"Gran Modelo de Peering", -"peering_inbox.large_peering_model_is_answering":"El Gran Modelo de Peering está respondiendo tu correo", -"peering_inbox.max_prefix_limit_hit_who_at":"Límite de max-prefix alcanzado: {who} en {ix}.
La sesión está caída hasta que la mires.", -"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Límite de max-prefix alcanzado: {who} en {ix}", -"peering_inbox.mostly_ignores_email":"Casi nunca contesta el correo", -"peering_inbox.n_day_ago":{"one":"hace {n} día","other":"hace {n} días"}, -"peering_inbox.n_unanswered":{"one":"{n} sin responder","other":"{n} sin responder"}, -"peering_inbox.no_mail_yet_buy_an_ix":"Aún no hay correo. Compra un puerto IX y llegará.", -"peering_inbox.nobody_asks_and_no_route_servers":"Nadie pregunta, y no hay route servers. Los clientes oyen que eres difícil de contactar, así que te llaman menos, y tu reputación se hunde.", -"peering_inbox.open_to_all":"Abierto a todos", -"peering_inbox.opened_a_ticket_with_itself_to":"Abrió un ticket consigo mismo para revisar sus propias decisiones. Las aprobó.", -"peering_inbox.peering_request_fifth_attempt_is":"Solicitud de peering, quinto intento. ¿Hay alguien ahí?", -"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB actualizado por última vez hace {n} año","other":"PeeringDB actualizado por última vez hace {n} años"}, -"peering_inbox.peeringdb_updated_last_month":"PeeringDB actualizado el mes pasado", -"peering_inbox.please_configure_sessions_with_us_at":"Por favor, configura sesiones con nosotros en {ix}. Nosotros haremos las nuestras la semana que viene, o la otra.", -"peering_inbox.price_year_it_never_sleeps_never":"{price}/año. Nunca duerme, nunca se queja y a menudo se equivoca.", -"peering_inbox.raise_all_max_prefix_limits":"Subir todos los límites de max-prefix", -"peering_inbox.raise_the_limit":"Subir el límite", -"peering_inbox.raised_the_max_prefix_limit_for":"Subió el límite de max-prefix de {who} en {ix} a {n}. Parecían simpáticos.", -"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Subió el límite de max-prefix de {who} en {ix}. Bien, esta vez.", -"peering_inbox.replied_to_a_peering_request_with":"Respondió a una solicitud de peering con un haiku sobre BGP. Aún sin respuesta.", -"peering_inbox.session_with_who_is_back_up":"La sesión con {who} vuelve a estar activa.
Nuevo límite: {n} prefijos. Prometen actualizar PeeringDB.", -"peering_inbox.signed_you_up_for_a_webinar":"Te apuntó a un seminario web sobre «El peering en la era de la IA».", -"peering_inbox.that_was_a_route_leak_who":"Era una fuga de rutas.
{who} anunciaba {n} prefijos: una tabla completa. La próxima vez, mantenla caída.", -"peering_inbox.the_session_stays_down_who_will":"La sesión sigue caída.
{who} actualizará PeeringDB y volverá a preguntar. Con el tiempo.", -"peering_inbox.their_peeringdb_says_lim_last":{"one":"Su PeeringDB dice {lim}, actualizado por última vez hace {n} año.","other":"Su PeeringDB dice {lim}, actualizado por última vez hace {n} años."}, -"peering_inbox.tidied_up_a_session_it_decided":"Ordenó una sesión que decidió que estaba sin uso: quitó el peering a {who} en {ix}.", -"peering_inbox.updated_your_peeringdb_record_your":"Actualizó tu registro de PeeringDB. Tu teléfono del NOC ahora es una pizzería.", -"peering_inbox.we_noticed_you_are_at_ix":"Notamos que estás en {ix}. Nosotros también. ¿Probamos?", -"peering_inbox.who_asked_a_mailing_list_whether":"{who} preguntó en una lista de correo si alguien tiene un contacto que funcione en {me}.
Su solicitud de peering lleva un mes en tu bandeja.", -"peering_inbox.who_at_ix_was_sending_a":"{who} en {ix} enviaba una tabla completa, y el límite de max-prefix era lo único que lo frenaba. Con el límite subido, los prefijos de {net} apuntan a su sótano. El tráfico hacia {net} por tránsito cae en un agujero negro unos días.", -"peering_inbox.wrote_a_thousand_word_apology_to":"Escribió una disculpa de mil palabras a una red con la que nunca hiciste peering.", +"peering_desk.closed_desc":"Se rechaza toda solicitud de peering, y no hay route servers. Los clientes oyen que eres difícil de contactar, así que te llaman menos.", +"peering_desk.n_more_exchanges":{"one":"{n} intercambio más","other":"{n} intercambios más"}, +"peering_desk.n_new_sessions_at_ix":{"one":"Mesa de peering: {n} sesión nueva en {ix} ({pol}).","other":"Mesa de peering: {n} sesiones nuevas en {ix} ({pol})."}, +"peering_desk.n_new_sessions_at_ix_declined":{"one":"Mesa de peering: {n} sesión nueva en {ix}, {d} rechazadas ({pol}).","other":"Mesa de peering: {n} sesiones nuevas en {ix}, {d} rechazadas ({pol})."}, +"peering_desk.n_requests_declined":{"one":"Mesa de peering: {n} solicitud rechazada ({pol}).","other":"Mesa de peering: {n} solicitudes rechazadas ({pol})."}, +"peering_desk.open_desc":"Toda red que lo pide recibe una sesión, y los route servers funcionan.", +"peering_desk.open_to_all":"Abierto a todos", +"peering_desk.selective_desc":"Las redes pequeñas del intercambio y los recién llegados con PeeringDB al día reciben una sesión; el resto se rechaza en silencio. Sin route servers: solicita las redes que quieras en cada intercambio.", "peering_policy.a_new_vp_wants_to_monetise":"Un nuevo vicepresidente quiere «monetizar la interconexión» en este mercado.", "peering_policy.already_reach_you_through_your":"Ya llegan a ti a través de tu proveedor de tránsito aquí y creen que eso está bien.", "peering_policy.moved_everything_in_this_city_to":"Movieron todo en esta ciudad a PNIs. Lee su página de PearingDB, las 40 páginas.", @@ -3309,7 +3242,7 @@ "routing_and_routers.unplug_something_first_used_ports":"Desconecta algo primero.
Hay {used} puertos en uso, y con un router menos solo hay {max}.", "rules.a_billion_dollars_every_unlock_your":"Mil millones de dólares, todo desbloqueado, tu propio cable submarino.", "rules.a_cut_now_and_then":"Algún corte de vez en cuando.", -"rules.a_third_of_the_outages_no_ddos":"Un tercio de las caídas, sin DDoS. PNI y obras en días. Sin bandeja de entrada, sin escasez, sin rutas agotadas, sin de-peering.", +"rules.a_third_of_the_outages_no_ddos_pnis":"Un tercio de las caídas, sin DDoS. PNI y obras en días. Sin escasez, sin rutas agotadas, sin de-peering.", "rules.bgp_at_3_a_m":"BGP a las 3 de la mañana", "rules.change_freeze":"Congelación de cambios", "rules.chaos_calm":"Tranquilo", @@ -3326,7 +3259,7 @@ "rules.on_call":"De guardia", "rules.one_small_network_one_tricky_goal":"Una red pequeña, un objetivo con truco.", "rules.puzzle":"Puzle", -"rules.real_lead_times_real_outages_a":"Plazos reales, caídas reales, una bandeja de peering llena. El juego clásico.", +"rules.real_lead_times_real_outages_a_real":"Plazos reales, caídas reales, un mercado real. El juego clásico.", "rules.rules_are_locked_for_this_network":"{rules}: las reglas están fijadas para esta red.", "rules.the_real_thing_your_pager_has":"El juego de verdad. Tu busca tiene opiniones.", "rules.your_pager_never_sleeps":"Tu busca no duerme nunca.", @@ -3460,9 +3393,7 @@ "sites_peering_caches.bgp_session_established":"Sesión BGP establecida.", "sites_peering_caches.cache_installed_in_city_net_shipped":"¡{cache} instalada en {city}!
{net} la envió gratis. Pagas {mo}/mes de energía.", "sites_peering_caches.could_you_resend_the_loa_you":"«¿Podrías reenviar la LOA?»
Ya la has enviado cuatro veces.", -"sites_peering_caches.hello_i_am_large_peering_model":"¡Hola! Soy el Gran Modelo de Peering. He leído tu bandeja de entrada y ya tengo opiniones.", "sites_peering_caches.it_is_with_the_provisioning_team":"«Está con el equipo de aprovisionamiento.»
Nadie ha conocido nunca al equipo de aprovisionamiento.", -"sites_peering_caches.large_peering_model_is_hired_your":"El Gran Modelo de Peering está contratado.
Tu bandeja de entrada es ahora problema suyo. {price} al año, facturado mensualmente.", "sites_peering_caches.n_new_session_at_ix_small":{"one":"{n} sesión nueva en {ix}.
Redes pequeñas, pero suman, y todas cuentan para el club.","other":"{n} sesiones nuevas en {ix}.
Redes pequeñas, pero suman, y todas cuentan para el club."}, "sites_peering_caches.net_accepted":"¡{net} aceptó!", "sites_peering_caches.net_declined_the_pni_why":"{net} rechazó el PNI.
{why}", @@ -3470,11 +3401,8 @@ "sites_peering_caches.net_does_not_do_port_pnis":"{net} no hace PNIs de {port}.
Nada menor de 100G. Vuelve con más tráfico, o una óptica mayor.", "sites_peering_caches.net_says_not_yet_send_them":"{net} dice que todavía no.
Mándale primero {min}+ Gbps.", "sites_peering_caches.pni_with_net_ordered_eta_a":"PNI con {net} pedido.
{eta}. Una interconexión cruzada en {dc}, cuando alguien encuentre la LOA.", -"sites_peering_caches.raised_n_max_prefix_limits_all":"Subidos {n} límites de max-prefix.
Todo crecimiento, ninguna fuga. Qué suerte.", -"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"Subidos {n} límites de max-prefix.
Uno de ellos era una fuga de rutas. Ahora está en el NOC.","other":"Subidos {n} límites de max-prefix.
{k} de ellos eran fugas de rutas. Ahora están en el NOC."}, "sites_peering_caches.second_lag_member_added_one_member":"Segundo miembro LAG añadido.
Ahora hay un miembro en cada edificio, así que un edificio a oscuras solo tumba la mitad del puerto.", "sites_peering_caches.second_site_live_in_city_b":"Segunda sede activa en {city}.
{b} está unida a {a} por tu propio anillo metropolitano. Mueve algunos uplinks allí desde las pestañas Tránsito y Peering.", -"sites_peering_caches.the_ai_is_gone_it_left":"La IA se fue.
Dejó un documento de traspaso de 40 páginas. Trata sobre todo de sí misma.", "sites_peering_caches.they_checked_your_pearingdb_page_and":"Revisaron tu página de PearingDB y les gustaron las cifras de tráfico.", "sites_peering_caches.we_are_waiting_on_the_colo":"«Estamos esperando al colo para la interconexión cruzada.»
El colo dice que está esperando por ellos.", "sites_peering_caches.your_account_manager_found_the_order":"Tu gestor de cuenta encontró el pedido bajo un escritorio.
Está un mes más cerca.", @@ -3496,6 +3424,7 @@ "slots.last_played_ago":"Última partida: {ago}", "slots.load_the_newest_version":"Cargar la versión más nueva", "slots.more_for_name":"Más de {name}", +"slots.n_day_ago":{"one":"hace {n} día","other":"hace {n} días"}, "slots.n_h_ago":{"one":"hace {n} h","other":"hace {n} h"}, "slots.name_is_open_in_another_window":"{name} está abierta en otra ventana", "slots.name_is_waiting_in_your_other":"{name} te espera en tu otra ventana.
Cambia a ella para seguir jugando.", @@ -3519,7 +3448,6 @@ "slots.this_window_stopped_saving_so_it":"Se guardó una versión más nueva en otra ventana, así que esta dejó de guardar en vez de sobrescribirla.", "slots.two_windows_one_network":"Dos ventanas, una red", "slots.your_networks":"Tus redes", -"slots.your_networks_switch_or_start_another":"Tus redes cambia o empieza otra", "slots.your_other_networks_share_this_browser":"Tus otras redes comparten el almacenamiento de este navegador. Exporta las que quieras conservar y bórralas aquí para hacer sitio.", "sold_out.a_hyperscaler_bought_every_wave_of":"Un hiperescalador compró la semana pasada todas las ondas de ese tamaño en esta ruta.", "sold_out.not_big_enough_yet_list":"Aún no es lo bastante grande: {list}", diff --git a/site/i18n/fr.js b/site/i18n/fr.js index c6c08b6..3cf10fb 100644 --- a/site/i18n/fr.js +++ b/site/i18n/fr.js @@ -807,7 +807,6 @@ "common.aug":"août", "common.auto":"Auto", "common.auto_enrolled":"inscrit d’office", -"common.average":"Dans la moyenne", "common.avoid":"Éviter", "common.back":"Retour", "common.back_to_the_map":"Retour à la carte", @@ -823,7 +822,6 @@ "common.bgp_hijack":"Détournement BGP", "common.bgp_sessions":"Sessions BGP", "common.big_league":"Cour des grands", -"common.black_hole":"Trou noir", "common.blitz":"Blitz", "common.boot_time":"Temps de boot", "common.boot_times":"Temps de boot", @@ -831,7 +829,6 @@ "common.box_6ee3":"− cache", "common.build_time":"Durée des travaux", "common.building":"en construction", -"common.bumped":"relancé", "common.bunker_two":"Bunker 2", "common.busiest_links":"Liens les plus chargés", "common.business_customers":"Clients entreprises", @@ -993,8 +990,6 @@ "common.import_a_save":"Importer une sauvegarde", "common.in_progress":"en cours", "common.in_use":"Utilisé", -"common.inbox":"Boîte", -"common.inbox_zero":"Inbox zéro.", "common.incident":"Incident", "common.incidents":"Incidents", "common.incidents_survived":"Incidents surmontés", @@ -1122,7 +1117,6 @@ "common.oops":"Oups", "common.open":"Ouvrir", "common.open_bank":"Ouvrir la banque", -"common.open_inbox":"Ouvrir la boîte", "common.open_infra":"Ouvrir Infra", "common.open_lease":"Voir la location", "common.open_noc":"Ouvrir le NOC", @@ -1147,7 +1141,6 @@ "common.peered_ce2f":"En peering ✓", "common.peering":"Peering", "common.peering_first":"Le peering d’abord", -"common.peering_inbox":"Boîte de peering", "common.peering_policy":"Politique de peering", "common.peering_ratio":"Ratio de peering", "common.peering_spat":"Brouille de peering", @@ -1196,7 +1189,6 @@ "common.remove_port":"Retirer le port", "common.remove_script":"Supprimer le script", "common.request":"Demander", -"common.responsive":"Réactif", "common.resume":"Reprendre", "common.retention_offer":"Offre de fidélisation", "common.revenue":"Chiffre d’affaires", @@ -1302,7 +1294,6 @@ "common.to":"Vers", "common.toaster_wrangler":"Dompteur de grille-pain", "common.today":"Aujourd’hui", -"common.today_4203":"aujourd’hui", "common.toggle_sound":"Activer/couper le son", "common.too_far_for_this_cable":"trop loin pour ce câble", "common.traceroute":"Traceroute", @@ -1364,7 +1355,6 @@ "common.your_network":"Ton réseau", "common.your_pop":"Ton POP", "common.your_pops":"Tes POP", -"common.your_reputation":"Votre réputation", "common.zombie_route":"Route zombie", "compute.attack_hauled_to_scrubbing_in_city":"Attaque acheminée vers le scrubbing de {city}", "compute.courtesy_route_to_new_networks":"Route de courtoisie vers les nouveaux réseaux", @@ -1611,8 +1601,6 @@ "failures.a_kilometre_of_copper_went_missing":"Un kilomètre de « cuivre » a disparu de ta tranchée {a}–{b}. C’était ta fibre. Le ferrailleur l’a renvoyée avec un petit mot.", "failures.a_landslide_in_the_andes_buried":"Un glissement de terrain dans les Andes a enseveli ta fibre {a}–{b}.", "failures.a_llama_herd_trampled_the_fiber":"Un troupeau de lamas a piétiné la balise de fibre sur {a}–{b}. Puis un tractopelle a trouvé la fibre.", -"failures.a_member_at_ix_leaked_the":"Un membre de {ix} a fait fuiter la table de routage complète dans le route server. Les limites max-prefix ont sauté partout. Ton peering là-bas est tombé.", -"failures.a_member_at_ix_leaked_the_5563":"Un membre de {ix} a fait fuiter la table de routage complète dans le route server. Les limites max-prefix ont sauté partout. Ton peering là-bas, à {city}, est tombé.", "failures.a_new_tech_in_a_tidied":"Un nouveau technicien à {a} a « rangé » le sac de nœuds de câbles. Ton lien {a}–{b} faisait partie du sac de nœuds.", "failures.a_new_tech_in_city_used":"Un nouveau technicien à {city} a utilisé de la Vegemite comme pâte thermique. Elle conduit le goût, pas la chaleur, et ton routeur a cuit.", "failures.a_optic_on_a_b_overheated":"Une optique {optic} sur {a}–{b} a surchauffé et n’est plus qu’un porte-clés hors de prix.", @@ -1679,7 +1667,6 @@ "failures.load_shedding_stage_n_in_city":"Délestage niveau {n} à {city}, et tu n’as pas de groupe électrogène. Achètes-en un : ici, ce n’est pas optionnel.", "failures.load_shedding_took_out_site_in":"Le délestage a mis {site} hors service à {city}. {other} a tenu, donc le POP tourne à mi-capacité. Tout ce qui n’est branché que sur le site éteint est hors ligne.", "failures.magpie_swooping_season_the_field":"Saison des attaques de pies : les techniciens sur {a}–{b} refusent de sortir de la camionnette, et ta coupure reste coupée.", -"failures.max_prefix_meltdown":"Max-prefix en vrac", "failures.metro_ring_cut":"Anneau métro coupé", "failures.microbursts_on_a_b_overflow_shallow":"Les microbursts sur {a}–{b} débordent les buffers peu profonds des routeurs : 0,5 % de perte en pointe, et chaque visio le remarque.", "failures.microbursts_on_a_b_your_deep":"Microbursts sur {a}–{b}.
Tes routeurs à buffers profonds les ont absorbés. Personne n’a rien remarqué.", @@ -1794,11 +1781,8 @@ "fiber_modals.your_pop_needs_a_fabric_port":"Ton POP · il y faut un port fabric", "game_and_settings.delete_and_start_over":"Supprimer et recommencer", "game_and_settings.export_save_download_a_file":"Exporter la sauvegarde télécharger un fichier", -"game_and_settings.import_a_save_from_a_file":"Importer une sauvegarde depuis un fichier", "game_and_settings.import_failed_that_save_is_damaged":"Échec de l’import.
Cette sauvegarde est endommagée et n’a pas pu être chargée. Ta partie en cours est intacte.", "game_and_settings.name_and_everything_it_owns_will":"{name} et tout ce qu’il possède seront supprimés. Impossible de revenir en arrière.", -"game_and_settings.scenarios_amp_weekly_challenge":"Scénarios & défi de la semaine", -"game_and_settings.share_your_network_image_card":"Partager ton réseau carte image", "game_and_settings.start_a_new_network":"Créer un nouveau réseau ?", "game_and_settings.welcome_back_name_imported_and_saved":"Bon retour, {name}.
Partie importée et sauvegardée sur cet appareil.", "game_and_settings.your_game_saves_itself_every_few":"Ta partie se sauvegarde toute seule sur cet appareil, toutes les quelques secondes.", @@ -1869,7 +1853,7 @@ "help.each_pop_s_router_model_caps":"Le modèle de routeur de chaque POP plafonne son port le plus rapide (100G, 400G, 800G, 1.6T) et ce qu’il peut acheminer. Des longueurs d’onde et des ports plus gros exigent de meilleurs routeurs aux deux bouts. Les meilleurs modèles se débloquent avec ton niveau clients. Avec un seul routeur, chaque upgrade coûte une journée d’indisponibilité.", "help.event_networks_a_final_a_festival":"Les réseaux événementiels (une finale, un festival, une keynote) veulent un pic de capacité dans une ville pendant quelques jours et paient en une fois à la fin, au prorata de la part du public servie ; en dessous de 70 %, tu paies une pénalité. Les chaînes SD-WAN relient 3–6 de tes POP en hub-and-spoke, donc un seul spoke cassé fâche tout le contrat. Dès que tu exploites ta propre fibre noire, les opérateurs veulent louer tes canaux libres en alien waves et, sur la fibre que tu as construite toi-même, une paire libre.", "help.events_chains_and_wholesale":"Événements, chaînes et vente en gros", -"help.every_ix_port_brings_peering":"Chaque port IX amène des demandes de peering et des alertes max-prefix, dans l’onglet Réseaux. Une session qui dépasse sa limite reste coupée tant que vous n’y regardez pas : relevez la limite si c’est de la croissance, laissez-la coupée si c’est une fuite. Ignorez votre courrier et les réseaux sélectifs deviennent plus exigeants.", +"help.every_ix_port_brings_requests":"Chaque port d’IX apporte des demandes de peering, et ta politique de peering, dans l’onglet Réseaux, y répond : Ouverte accepte tout le monde, Sélective accepte les réseaux qui valent le coup et décline discrètement les autres, Fermée les décline toutes. Une fois par semaine, le journal du NOC fait le bilan.", "help.every_link_has_latency_high":"Chaque lien a une latence. Les traders haute fréquence paient une fortune pour un circuit qui tient dans leur budget de latence ; achemine-les en « Latence minimale ». Les clients de sauvegarde en masse s’en fichent, alors achemine-les en « Chemin des écoliers » sur tes liens calmes pour garder les chargés libres.", "help.home_broadband_users_they_mostly":"Abonnés haut débit résidentiels. Ils téléchargent surtout depuis des CDN et te paient par Gbps livré. Sers-les bien et ils se multiplient.", "help.how_the_internet_works_here":"Comment marche Internet ici", @@ -1883,7 +1867,7 @@ "help.name_as_asn_is_transit_free":"{name} (AS{asn}) est transit-free. Tu fais du peering avec tous les géants de la planète et tu ne paies personne pour atteindre Internet. Il t’a fallu {days} jours et {n} incidents.", "help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG et compagnie reviennent chaque année. Inscris-toi dans l’onglet Offres pour $8k. Pendant les 45 jours suivants, les réseaux sélectifs présents dans cette région ne demandent que la moitié du trafic habituel avant de faire du peering avec toi. Parfois, tu gagnes aussi la tombola.", "help.once_auto_te_is_installed_you":"Une fois Auto-TE installé, tu peux le programmer depuis l’onglet NOC. Parmi les règles : spill at 80%, prefer pni for goggle, avoid transit for netchill, cap transit cogentle at 20 gbps, drain paris, avoid link fra-ams et blackhole ddos. Vérifier fait un essai à blanc sur le trafic réel ; Déployer le rend réel, erreurs comprises.", -"help.one_game_four_doors_puzzles_are":"Un jeu, quatre portes, et les règles se choisissent au démarrage d’un réseau puis restent verrouillées. Les casse-têtes sont de petits nœuds à défaire, sans horloge. Le bac à sable te donne un milliard de dollars, tout débloqué (ton propre câble sous-marin compris) et autant de chaos que tu veux, mais pas de badges. Normal existe en trois versions : Gel des changements (peu de pannes, livraisons en quelques jours, ni boîte de réception ni pénurie), D’astreinte (le jeu classique) et BGP à 3 h du matin (plus de pannes, plus longues, plus de DDoS). Les scénarios sont des défis faits main avec un objectif et une échéance, et le défi de la semaine donne à tous le même monde pendant une semaine. Partage ton résultat avec la carte du menu.", +"help.one_game_four_doors_and_the":"Un jeu, quatre portes, et les règles se choisissent au démarrage d’un réseau puis restent verrouillées. Les casse-têtes sont de petits nœuds à défaire, sans horloge. Le bac à sable te donne un milliard de dollars, tout débloqué (ton propre câble sous-marin compris) et autant de chaos que tu veux, mais pas de badges. Normal existe en trois versions : Gel des changements (peu de pannes, livraisons en quelques jours, pas de pénurie), D’astreinte (le jeu classique) et BGP à 3 h du matin (plus de pannes, plus longues, plus de DDoS). Les scénarios sont des défis faits main avec un objectif et une échéance, et le défi de la semaine donne à tous le même monde pendant une semaine. Partage ton résultat avec la carte du menu.", "help.open_peers_with_anyone_selective":"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.", "help.out_of_port_speed_bundle_up":"Port trop petit ? Regroupe jusqu’à 8 ports identiques vers le même fournisseur de transit, IX ou PNI en un LAG. Chaque membre coûte un port complet ; le hachage des flux n’est jamais parfaitement équilibré, donc un bundle transporte environ 95 % de la somme.", "help.pni_lead_times":"Délais des PNI", @@ -2008,15 +1992,12 @@ "hud_and_panels.has_errors_not_running":"contient des erreurs, à l’arrêt", "hud_and_panels.incidents_so_far":"Incidents jusqu’ici", "hud_and_panels.install_auto_te_cost_mo_mo":"Installer Auto-TE {cost} + {mo}/mois", -"hud_and_panels.large_peering_model_is_on_it":"Large Peering Model s’en occupe.", "hud_and_panels.lv_n":"Niv. {n}", "hud_and_panels.n_incident":{"one":"{n} incident","other":"{n} incidents"}, -"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} message attend une réponse.","other":"{n} messages attendent une réponse."}, "hud_and_panels.n_more_networks":{"one":"+{n} autre réseau","other":"+{n} autres réseaux"}, "hud_and_panels.n_networks_d_days_left":"{n} réseaux · {d} j restants", "hud_and_panels.n_new_notification":{"one":"{n} nouvelle notification","other":"{n} nouvelles notifications"}, "hud_and_panels.n_rules_live":"{n} règles actives", -"hud_and_panels.n_session_is_down_on_its":{"one":"{n} session est coupée par sa limite max-prefix.","other":"{n} sessions sont coupées par leur limite max-prefix."}, "hud_and_panels.n_small_networks":"{n} petits réseaux", "hud_and_panels.n_special_requirement":{"one":"{n} exigence spéciale","other":"{n} exigences spéciales"}, "hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} client mécontent, {price}/mois en jeu","other":"{n} clients mécontents, {price}/mois en jeu"}, @@ -2592,6 +2573,7 @@ "ops.by_hand_note":"Pour quand tu veux tout, tout de suite : chaque peer sur chaque exchange, un kit de redondance, des PNI avec tout le monde.", "ops.caches_rent":"Gratuit à installer, mais chaque boîtier coûte {price}/mois en espace et en électricité.", "ops.cheapest":"Le moins cher", +"ops.day_d":"Jour {d}", "ops.ff_desc":"a étiqueté un port à {city} « TODO : corriger plus tard (ne pas corriger) »", "ops.ff_hostname":"a renommé le routeur de {city} en router-final-FINAL-v2", "ops.ff_lag":"a ajouté un membre LAG de transit en trop à {city}. Ça marche, donc ça reste.", @@ -2630,8 +2612,6 @@ "ops.l_snag":{"one":"a calé sur {where} et l'a mis en pause en attendant que tu jettes un œil","other":"a calé sur {n} ordres ({where}) et les a mis en pause en attendant que tu jettes un œil"}, "ops.l_transit":{"one":"a renforcé le transit à {where}","other":"a renforcé le transit {n} fois ({where})"}, "ops.locked":"Le NOC recrute des stagiaires à partir du niveau clients {lv}.", -"ops.lpm_off":"La boîte de peering reste à toi. Pour ça, il y a le Large Peering Model ; {name} ne fait pas les mails.", -"ops.lpm_on":"Le Large Peering Model répond à la boîte de peering. {name} reste hors de son chemin.", "ops.mood_annie":"Annie a répondu à trois questions avant que tu les poses, depuis le bureau le plus proche.", "ops.mood_broke":"{name} a déjà sa liste de courses pour le budget du mois prochain.", "ops.mood_busy":"{name} a eu une semaine chargée et en est à sa troisième boisson énergisante.", @@ -2744,61 +2724,14 @@ "page.series_of_tubes_build_the_internet":"Series of Tubes : construis Internet, un tuyau à la fois", "page.world_map_of_your_network":"Carte du monde de ton réseau", "page.x":"", -"peering_inbox.accept_all_requests":"Accepter toutes les demandes", -"peering_inbox.an_ai_agent_that_answers_every":"Un agent IA qui répond pour vous à chaque demande de peering et à chaque alerte max-prefix, tous les jours. {price}/an. Entraîné sur vingt ans de listes de diffusion sur le peering.", -"peering_inbox.answered_your_mail_a_accepted_d":"A répondu à votre courrier : {a} acceptées, {d} refusées.", -"peering_inbox.asked_netchill_s_peering_team_to":"A demandé à l’équipe peering de NetChill de « fournir plus de Netchill, svp ».", -"peering_inbox.configured_lim_prefixes_received_got":"Configuré : {lim} préfixes. Reçus : {got}.", -"peering_inbox.day_d":"Jour {d}", -"peering_inbox.dear_sir_or_madam_please_peer":"Madame, Monsieur, merci de bien vouloir peerer. Nous avons trois préfixes et de très grands projets.", -"peering_inbox.decline_all_requests":"Refuser toutes les demandes", -"peering_inbox.declined_who_at_ix_not_a":"A refusé {who} à {ix} : « pas stratégique ». Ils l’étaient.", -"peering_inbox.every_exchange_port_brings_mail":"Chaque port IX amène du courrier. Répondez aux demandes de peering et regardez les sessions qui dépassent leur limite max-prefix : croissance ou fuite de routes ? Le courrier sans réponse vous fait une réputation, et les réseaux sélectifs en entendent parler.", -"peering_inbox.everyone_who_asks_gets_a_session":"Quiconque demande obtient une session, et les route servers fonctionnent. Beaucoup de minuscules peers, et beaucoup d’alertes max-prefix.", -"peering_inbox.fewer_requests_and_you_answer_them":"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.", -"peering_inbox.fire_the_ai":"Licencier l’IA", -"peering_inbox.good_call_it_was_a_route":"Bien vu : c’était une fuite de routes.
{who} a trouvé une route-map mal tapée. La session revient toute seule dans quelques jours.", -"peering_inbox.greetings_we_are_a_fast_growing":"Salutations. Nous sommes un réseau en pleine croissance. L’an dernier nous avions un client ; cette année, deux.", -"peering_inbox.hello_please_find_attached_our":"Bonjour, veuillez trouver ci-joint notre demande de peering au format Word, scannée depuis une impression.", -"peering_inbox.hey_quick_one_can_you_peer":"Salut, petite question : vous pouvez peerer avec nous à {ix} ? On a un serveur Minecraft très important.", -"peering_inbox.hi_we_would_like_to_peer":"Bonjour ! Nous aimerions faire du peering avec vous à {ix}. Notre fiche PeeringDB est à jour.", -"peering_inbox.hire_it_mo_mo":"L’embaucher {mo}/mois", -"peering_inbox.inbox_zero_enjoy_it_while_it":"Inbox zéro. Profitez-en tant que ça dure.", -"peering_inbox.keep_it_down":"La laisser coupée", -"peering_inbox.kept_who_down_at_ix_for":"A laissé {who} coupé à {ix} pour « croissance suspecte ». Ils avaient gagné un client.", -"peering_inbox.kept_who_down_at_ix_it":"A laissé {who} coupé à {ix} : c’était une fuite de routes. Dans le mille.", -"peering_inbox.large_peering_model":"Large Peering Model", -"peering_inbox.large_peering_model_is_answering":"Large Peering Model répond à votre courrier", -"peering_inbox.max_prefix_limit_hit_who_at":"Limite max-prefix atteinte : {who} à {ix}.
La session reste coupée tant que vous n’y avez pas regardé.", -"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Limite max-prefix atteinte : {who} à {ix}", -"peering_inbox.mostly_ignores_email":"Ignore presque tous les e-mails", -"peering_inbox.n_day_ago":{"one":"il y a {n} jour","other":"il y a {n} jours"}, -"peering_inbox.n_unanswered":{"one":"{n} sans réponse","other":"{n} sans réponse"}, -"peering_inbox.no_mail_yet_buy_an_ix":"Pas encore de courrier. Achetez un port IX, il viendra.", -"peering_inbox.nobody_asks_and_no_route_servers":"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.", -"peering_inbox.open_to_all":"Ouverte à tous", -"peering_inbox.opened_a_ticket_with_itself_to":"S’est ouvert un ticket pour revoir ses propres décisions. Il les a approuvées.", -"peering_inbox.peering_request_fifth_attempt_is":"Demande de peering, cinquième tentative. Il y a quelqu’un ?", -"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB mis à jour il y a {n} an","other":"PeeringDB mis à jour il y a {n} ans"}, -"peering_inbox.peeringdb_updated_last_month":"PeeringDB mis à jour le mois dernier", -"peering_inbox.please_configure_sessions_with_us_at":"Merci de configurer les sessions avec nous à {ix}. Nous ferons les nôtres la semaine prochaine, ou celle d’après.", -"peering_inbox.price_year_it_never_sleeps_never":"{price}/an. Ne dort jamais, ne se plaint jamais et se trompe souvent.", -"peering_inbox.raise_all_max_prefix_limits":"Relever toutes les limites max-prefix", -"peering_inbox.raise_the_limit":"Relever la limite", -"peering_inbox.raised_the_max_prefix_limit_for":"A relevé la limite max-prefix de {who} à {ix} à {n}. Ils avaient l’air sympas.", -"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"A relevé la limite max-prefix de {who} à {ix}. À raison, cette fois.", -"peering_inbox.replied_to_a_peering_request_with":"A répondu à une demande de peering par un haïku sur BGP. Pas de réponse pour l’instant.", -"peering_inbox.session_with_who_is_back_up":"La session avec {who} est rétablie.
Nouvelle limite : {n} préfixes. Ils promettent de mettre PeeringDB à jour.", -"peering_inbox.signed_you_up_for_a_webinar":"Vous a inscrit à un webinaire sur « Le peering à l’ère de l’IA ».", -"peering_inbox.that_was_a_route_leak_who":"C’était une fuite de routes.
{who} annonçait {n} préfixes : une table complète. La prochaine fois, laissez-la coupée.", -"peering_inbox.the_session_stays_down_who_will":"La session reste coupée.
{who} va mettre PeeringDB à jour et redemander. Un jour.", -"peering_inbox.their_peeringdb_says_lim_last":{"one":"Leur PeeringDB indique {lim}, mis à jour il y a {n} an.","other":"Leur PeeringDB indique {lim}, mis à jour il y a {n} ans."}, -"peering_inbox.tidied_up_a_session_it_decided":"A fait le ménage dans les sessions qu’il jugeait inutiles : a dépeeré {who} à {ix}.", -"peering_inbox.updated_your_peeringdb_record_your":"A mis à jour votre fiche PeeringDB. Le numéro de votre NOC est maintenant celui d’une pizzeria.", -"peering_inbox.we_noticed_you_are_at_ix":"Nous avons remarqué que vous êtes à {ix}. Nous aussi. On y va ?", -"peering_inbox.who_asked_a_mailing_list_whether":"{who} a demandé sur une liste de diffusion si quelqu’un avait un contact qui marche chez {me}.
Leur demande de peering a dormi un mois dans votre boîte.", -"peering_inbox.who_at_ix_was_sending_a":"{who} à {ix} envoyait une table complète, et la limite max-prefix était la seule chose qui la retenait. Limite relevée, les préfixes de {net} pointent vers leur cave. Le trafic vers {net} via le transit part dans un trou noir pendant quelques jours.", -"peering_inbox.wrote_a_thousand_word_apology_to":"A écrit mille mots d’excuses à un réseau avec qui vous n’avez jamais peeré.", +"peering_desk.closed_desc":"Toute demande de peering est déclinée, et pas de route servers. Les clients entendent dire que tu es difficile à joindre, donc moins d’entre eux appellent.", +"peering_desk.n_more_exchanges":{"one":"{n} autre exchange","other":"{n} autres exchanges"}, +"peering_desk.n_new_sessions_at_ix":{"one":"Bureau du peering : {n} nouvelle session à {ix} ({pol}).","other":"Bureau du peering : {n} nouvelles sessions à {ix} ({pol})."}, +"peering_desk.n_new_sessions_at_ix_declined":{"one":"Bureau du peering : {n} nouvelle session à {ix}, {d} déclinées ({pol}).","other":"Bureau du peering : {n} nouvelles sessions à {ix}, {d} déclinées ({pol})."}, +"peering_desk.n_requests_declined":{"one":"Bureau du peering : {n} demande déclinée ({pol}).","other":"Bureau du peering : {n} demandes déclinées ({pol})."}, +"peering_desk.open_desc":"Tout réseau qui demande obtient une session, et les route servers fonctionnent.", +"peering_desk.open_to_all":"Ouverte à tous", +"peering_desk.selective_desc":"Les petits réseaux de l’exchange et les nouveaux venus avec un PeeringDB à jour obtiennent une session ; les autres sont discrètement déclinés. Pas de route servers : va demander les réseaux que tu veux sur chaque exchange.", "peering_policy.a_new_vp_wants_to_monetise":"Un nouveau VP veut « monétiser l’interconnexion » sur ce marché.", "peering_policy.already_reach_you_through_your":"Te joignent déjà via ton fournisseur de transit ici et trouvent que ça suffit.", "peering_policy.moved_everything_in_this_city_to":"Ont tout migré en PNI dans cette ville. Merci de lire leur page PearingDB, les 40 pages.", @@ -3309,7 +3242,7 @@ "routing_and_routers.unplug_something_first_used_ports":"Débranche d’abord quelque chose.
{used} ports sont utilisés, et avec un routeur de moins tu n’en aurais que {max}.", "rules.a_billion_dollars_every_unlock_your":"Un milliard de dollars, tout débloqué, ton propre câble sous-marin.", "rules.a_cut_now_and_then":"Une coupure de temps en temps.", -"rules.a_third_of_the_outages_no_ddos":"Un tiers des pannes, pas de DDoS. PNI et chantiers en quelques jours. Pas de boîte de réception, pas de pénurie, pas de routes épuisées, pas de dépeering.", +"rules.a_third_of_the_outages_no_ddos_pnis":"Un tiers des pannes, pas de DDoS. PNI et chantiers en quelques jours. Pas de pénurie, pas de routes épuisées, pas de dépeering.", "rules.bgp_at_3_a_m":"BGP à 3 h du matin", "rules.change_freeze":"Gel des changements", "rules.chaos_calm":"Calme", @@ -3326,7 +3259,7 @@ "rules.on_call":"D’astreinte", "rules.one_small_network_one_tricky_goal":"Un petit réseau, un objectif retors.", "rules.puzzle":"Casse-tête", -"rules.real_lead_times_real_outages_a":"De vrais délais, de vraies pannes, une boîte de peering pleine. Le jeu classique.", +"rules.real_lead_times_real_outages_a_real":"De vrais délais, de vraies pannes, un vrai marché. Le jeu classique.", "rules.rules_are_locked_for_this_network":"{rules} : les règles sont verrouillées pour ce réseau.", "rules.the_real_thing_your_pager_has":"Le vrai jeu. Ton bipeur a des opinions.", "rules.your_pager_never_sleeps":"Ton bipeur ne dort jamais.", @@ -3460,9 +3393,7 @@ "sites_peering_caches.bgp_session_established":"Session BGP établie.", "sites_peering_caches.cache_installed_in_city_net_shipped":"{cache} installé à {city} !
{net} te l’a envoyé gratuitement. Tu paies {mo}/mois d’électricité.", "sites_peering_caches.could_you_resend_the_loa_you":"« Pourriez-vous renvoyer la LOA ? »
Vous l’avez envoyée quatre fois.", -"sites_peering_caches.hello_i_am_large_peering_model":"Bonjour ! Je suis Large Peering Model. J’ai lu votre boîte et j’ai déjà des avis.", "sites_peering_caches.it_is_with_the_provisioning_team":"« C’est chez l’équipe de provisioning. »
Personne n’a jamais rencontré l’équipe de provisioning.", -"sites_peering_caches.large_peering_model_is_hired_your":"Large Peering Model est embauché.
Votre boîte, c’est son problème maintenant. {price} par an, facturés chaque mois.", "sites_peering_caches.n_new_session_at_ix_small":{"one":"{n} nouvelle session sur {ix}.
Des petits réseaux, mais ça s’additionne, et tout compte pour le club.","other":"{n} nouvelles sessions sur {ix}.
Des petits réseaux, mais ça s’additionne, et tout compte pour le club."}, "sites_peering_caches.net_accepted":"{net} a accepté !", "sites_peering_caches.net_declined_the_pni_why":"{net} a refusé le PNI.
{why}", @@ -3470,11 +3401,8 @@ "sites_peering_caches.net_does_not_do_port_pnis":"{net} ne fait pas de PNI en {port}.
Rien en dessous de 100G. Revenez avec plus de trafic, ou une optique plus grosse.", "sites_peering_caches.net_says_not_yet_send_them":"{net} dit : pas encore.
Envoie-leur d’abord {min}+ Gbps.", "sites_peering_caches.pni_with_net_ordered_eta_a":"PNI avec {net} commandée.
{eta}. Un cross-connect chez {dc}, dès que quelqu’un aura retrouvé la LOA.", -"sites_peering_caches.raised_n_max_prefix_limits_all":"{n} limites max-prefix relevées.
Que de la croissance, aucune fuite. Chanceux.", -"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"{n} limites max-prefix relevées.
L’une d’elles était une fuite de routes. Elle est dans le NOC maintenant.","other":"{n} limites max-prefix relevées.
{k} d’entre elles étaient des fuites de routes. Elles sont dans le NOC maintenant."}, "sites_peering_caches.second_lag_member_added_one_member":"Second membre de LAG ajouté.
Un membre dans chaque bâtiment désormais : un bâtiment éteint ne coupe plus que la moitié du port.", "sites_peering_caches.second_site_live_in_city_b":"Second site actif à {city}.
{b} est relié à {a} par ton propre anneau métropolitain. Déplaces-y quelques uplinks depuis les onglets Transit et Peering.", -"sites_peering_caches.the_ai_is_gone_it_left":"L’IA est partie.
Elle a laissé un document de passation de 40 pages. Il parle surtout d’elle.", "sites_peering_caches.they_checked_your_pearingdb_page_and":"Ils ont consulté ta page PearingDB et ont aimé tes chiffres de trafic.", "sites_peering_caches.we_are_waiting_on_the_colo":"« Nous attendons le colo pour le cross-connect. »
Le colo dit qu’il les attend.", "sites_peering_caches.your_account_manager_found_the_order":"Votre account manager a retrouvé la commande sous un bureau.
Elle a un mois d’avance.", @@ -3496,6 +3424,7 @@ "slots.last_played_ago":"Dernière partie : {ago}", "slots.load_the_newest_version":"Charger la version la plus récente", "slots.more_for_name":"Plus pour {name}", +"slots.n_day_ago":{"one":"il y a {n} jour","other":"il y a {n} jours"}, "slots.n_h_ago":{"one":"il y a {n} h","other":"il y a {n} h"}, "slots.name_is_open_in_another_window":"{name} est ouvert dans une autre fenêtre", "slots.name_is_waiting_in_your_other":"{name} t'attend dans ton autre fenêtre.
Passe dessus pour continuer à jouer.", @@ -3519,7 +3448,6 @@ "slots.this_window_stopped_saving_so_it":"Une version plus récente a été sauvegardée dans une autre fenêtre, alors celle-ci a arrêté de sauvegarder au lieu de l'écraser.", "slots.two_windows_one_network":"Deux fenêtres, un réseau", "slots.your_networks":"Tes réseaux", -"slots.your_networks_switch_or_start_another":"Tes réseaux changer, ou en lancer un autre", "slots.your_other_networks_share_this_browser":"Tes autres réseaux partagent le stockage de ce navigateur. Exporte ceux que tu veux garder, puis supprime-les ici pour faire de la place.", "sold_out.a_hyperscaler_bought_every_wave_of":"Un hyperscaler a acheté la semaine dernière toutes les ondes de cette taille sur cette route.", "sold_out.not_big_enough_yet_list":"Pas encore assez gros : {list}", diff --git a/site/i18n/it.js b/site/i18n/it.js index f27837c..cd54bf0 100644 --- a/site/i18n/it.js +++ b/site/i18n/it.js @@ -807,7 +807,6 @@ "common.aug":"ago", "common.auto":"Auto", "common.auto_enrolled":"iscritto d’ufficio", -"common.average":"Nella media", "common.avoid":"Evita", "common.back":"Indietro", "common.back_to_the_map":"Torna alla mappa", @@ -823,7 +822,6 @@ "common.bgp_hijack":"BGP hijack", "common.bgp_sessions":"Sessioni BGP", "common.big_league":"Serie A", -"common.black_hole":"Buco nero", "common.blitz":"Blitz", "common.boot_time":"Tempo di boot", "common.boot_times":"Tempi di boot", @@ -831,7 +829,6 @@ "common.box_6ee3":"− box", "common.build_time":"Tempo di costruzione", "common.building":"in costruzione", -"common.bumped":"sollecitata", "common.bunker_two":"Bunker Due", "common.busiest_links":"Link più carichi", "common.business_customers":"Clienti aziendali", @@ -993,8 +990,6 @@ "common.import_a_save":"Importa un salvataggio", "common.in_progress":"in corso", "common.in_use":"In uso", -"common.inbox":"Posta", -"common.inbox_zero":"Inbox zero.", "common.incident":"Incidente", "common.incidents":"Incidenti", "common.incidents_survived":"Incidenti superati", @@ -1122,7 +1117,6 @@ "common.oops":"Ops", "common.open":"Apri", "common.open_bank":"Apri la banca", -"common.open_inbox":"Apri la casella", "common.open_infra":"Apri Infra", "common.open_lease":"Apri l’affitto", "common.open_noc":"Apri il NOC", @@ -1147,7 +1141,6 @@ "common.peered_ce2f":"In peering ✓", "common.peering":"Peering", "common.peering_first":"Prima il peering", -"common.peering_inbox":"Casella di peering", "common.peering_policy":"Policy di peering", "common.peering_ratio":"Quota peering", "common.peering_spat":"Lite di peering", @@ -1196,7 +1189,6 @@ "common.remove_port":"Rimuovi porta", "common.remove_script":"Rimuovi script", "common.request":"Richiedi", -"common.responsive":"Reattivo", "common.resume":"Riprendi", "common.retention_offer":"Offerta di fidelizzazione", "common.revenue":"Ricavi", @@ -1302,7 +1294,6 @@ "common.to":"A", "common.toaster_wrangler":"Domatore di tostapane", "common.today":"Oggi", -"common.today_4203":"oggi", "common.toggle_sound":"Attiva/disattiva suono", "common.too_far_for_this_cable":"troppo lontano per questo cavo", "common.traceroute":"Traceroute", @@ -1364,7 +1355,6 @@ "common.your_network":"La tua rete", "common.your_pop":"Il tuo POP", "common.your_pops":"I tuoi POP", -"common.your_reputation":"La tua reputazione", "common.zombie_route":"Route zombie", "compute.attack_hauled_to_scrubbing_in_city":"Attacco portato allo scrubbing di {city}", "compute.courtesy_route_to_new_networks":"Percorso di cortesia verso le nuove reti", @@ -1611,8 +1601,6 @@ "failures.a_kilometre_of_copper_went_missing":"Un chilometro di “rame” è sparito dal tuo scavo {a}–{b}. Era la tua fibra. Lo sfasciacarrozze l’ha rispedita indietro con un biglietto.", "failures.a_landslide_in_the_andes_buried":"Una frana nelle Ande ha sepolto la tua fibra {a}–{b}.", "failures.a_llama_herd_trampled_the_fiber":"Una mandria di lama ha calpestato il segnalatore della fibra su {a}–{b}. Poi una ruspa ha trovato la fibra.", -"failures.a_member_at_ix_leaked_the":"Un membro di {ix} ha fatto leak dell’intera tabella di routing nel route server. I limiti max-prefix sono scattati ovunque. Il tuo peering lì è giù.", -"failures.a_member_at_ix_leaked_the_5563":"Un membro di {ix} ha fatto leak dell’intera tabella di routing nel route server. I limiti max-prefix sono scattati ovunque. Il tuo peering lì, a {city}, è giù.", "failures.a_new_tech_in_a_tidied":"Un nuovo tecnico a {a} ha “messo in ordine” il groviglio di cavi. Il tuo link {a}–{b} faceva parte del groviglio.", "failures.a_new_tech_in_city_used":"Un nuovo tecnico a {city} ha usato la Vegemite come pasta termica. Conduce il sapore, non il calore, e il tuo router si è cotto.", "failures.a_optic_on_a_b_overheated":"Un {optic} su {a}–{b} si è surriscaldato e ora è un portachiavi molto costoso.", @@ -1679,7 +1667,6 @@ "failures.load_shedding_stage_n_in_city":"Distacchi a rotazione stage {n} a {city}, e non hai un generatore. Compralo: qui non è facoltativo.", "failures.load_shedding_took_out_site_in":"I distacchi a rotazione hanno spento {site} a {city}. {other} ha retto, quindi il POP gira a metà capacità. Tutto ciò che è collegato solo al sito al buio è offline.", "failures.magpie_swooping_season_the_field":"Stagione delle gazze in picchiata: i tecnici su {a}–{b} non escono dal furgone, e il tuo taglio resta tagliato.", -"failures.max_prefix_meltdown":"Max-prefix in tilt", "failures.metro_ring_cut":"Anello metro tagliato", "failures.microbursts_on_a_b_overflow_shallow":"I microburst su {a}–{b} riempiono i buffer poco profondi dei router: 0,5% di perdita al picco, e ogni videochiamata se ne accorge.", "failures.microbursts_on_a_b_your_deep":"Microburst su {a}–{b}.
I tuoi router con buffer profondi li hanno assorbiti. Nessuno se n’è accorto.", @@ -1794,11 +1781,8 @@ "fiber_modals.your_pop_needs_a_fabric_port":"Il tuo POP · serve una porta fabric lì", "game_and_settings.delete_and_start_over":"Cancella e ricomincia", "game_and_settings.export_save_download_a_file":"Esporta salvataggio scarica un file", -"game_and_settings.import_a_save_from_a_file":"Importa un salvataggio da un file", "game_and_settings.import_failed_that_save_is_damaged":"Importazione fallita.
Quel salvataggio è danneggiato e non si può caricare. La partita in corso non è stata toccata.", "game_and_settings.name_and_everything_it_owns_will":"{name} e tutto ciò che possiede verranno cancellati. Non si torna indietro.", -"game_and_settings.scenarios_amp_weekly_challenge":"Scenari e sfida settimanale", -"game_and_settings.share_your_network_image_card":"Condividi la tua rete come immagine", "game_and_settings.start_a_new_network":"Vuoi creare una nuova rete?", "game_and_settings.welcome_back_name_imported_and_saved":"Bentornato, {name}.
Importato e salvato su questo dispositivo.", "game_and_settings.your_game_saves_itself_every_few":"La partita si salva da sola ogni pochi secondi su questo dispositivo.", @@ -1869,7 +1853,7 @@ "help.each_pop_s_router_model_caps":"Il modello di router di ogni POP limita la sua porta più veloce (100G, 400G, 800G, 1.6T) e quanto traffico può inoltrare. Wave e porte più grandi richiedono router migliori a entrambe le estremità. I modelli migliori si sbloccano con il tuo livello clienti. Con un solo router, ogni upgrade vuol dire un giorno di downtime.", "help.event_networks_a_final_a_festival":"Le reti per eventi (una finale, un festival, un keynote) vogliono un picco di capacità in una città per qualche giorno e pagano una volta sola alla fine, in proporzione a quanta folla hai servito; sotto il 70% paghi una penale. Le catene SD-WAN collegano 3–6 dei tuoi POP in hub-and-spoke, quindi uno spoke rotto fa arrabbiare tutto il contratto. Quando gestisci la tua dark fiber, i carrier vogliono affittare i canali liberi come alien wave e, sulla fibra che hai costruito tu, una coppia libera.", "help.events_chains_and_wholesale":"Eventi, catene e wholesale", -"help.every_ix_port_brings_peering":"Ogni porta IX porta richieste di peering e allarmi max-prefix, nella scheda Reti. Una sessione che supera il limite resta giù finché non ci guardi: alza il limite se è crescita, tienila giù se è un leak. Ignora la posta e le reti selettive diventano più esigenti.", +"help.every_ix_port_brings_requests":"Ogni porta IX porta richieste di peering, e la tua policy di peering, nella scheda Reti, risponde per te: Aperta accetta tutti, Selettiva accetta le reti con cui conviene fare peering e declina in silenzio le altre, Chiusa le declina tutte. Una volta a settimana il log del NOC fa il riassunto.", "help.every_link_has_latency_high":"Ogni link ha una latenza. I trader HFT pagano una fortuna per un circuito dentro il loro budget di latenza: instradali su “Latenza minima”. Ai clienti di backup massivo non importa, quindi instradali sul “Panoramico” lungo i tuoi link tranquilli, per lasciare liberi quelli trafficati.", "help.home_broadband_users_they_mostly":"Utenti di banda larga domestica. Scaricano soprattutto dalle CDN e ti pagano per ogni Gbps che consegni. Servili bene e si moltiplicano.", "help.how_the_internet_works_here":"Come funziona internet qui", @@ -1883,7 +1867,7 @@ "help.name_as_asn_is_transit_free":"{name} (AS{asn}) è transit-free. Fai peering con ogni gigante del pianeta e non paghi nessuno per raggiungere internet. Ci hai messo {days} giorni e {n} incidenti.", "help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG e compagnia tornano ogni anno. Iscriviti nella scheda Offerte per $8k. Nei 45 giorni successivi, le reti selective presenti in quella regione chiedono solo metà del traffico abituale prima di fare peering con te. A volte vinci pure la lotteria.", "help.once_auto_te_is_installed_you":"Una volta installato Auto-TE, puoi programmarlo dalla scheda NOC. Tra le regole ci sono spill at 80%, prefer pni for goggle, avoid transit for netchill, cap transit cogentle at 20 gbps, drain paris, avoid link fra-ams e blackhole ddos. Check fa una prova a secco sul traffico reale; Deploy la rende vera, errori compresi.", -"help.one_game_four_doors_puzzles_are":"Un gioco, quattro porte, e le regole si scelgono quando nasce una rete e poi restano bloccate. I rompicapi sono piccoli nodi da sciogliere, senza orologio. La sandbox ti dà un miliardo di dollari, tutto sbloccato (compreso il tuo cavo sottomarino) e tutto il caos che scegli, ma niente medaglie. Normale ha tre varianti: Change freeze (pochi guasti, consegne in pochi giorni, niente posta né carenze), Reperibile (il gioco classico) e BGP alle 3 di notte (guasti più frequenti e più lunghi, più DDoS). Gli scenari sono sfide fatte a mano con un obiettivo e una scadenza, e la sfida settimanale dà a tutti lo stesso mondo per una settimana. Condividi il risultato con la scheda nel menu.", +"help.one_game_four_doors_and_the":"Un gioco, quattro porte, e le regole si scelgono quando nasce una rete e poi restano bloccate. I rompicapi sono piccoli nodi da sciogliere, senza orologio. La sandbox ti dà un miliardo di dollari, tutto sbloccato (compreso il tuo cavo sottomarino) e tutto il caos che scegli, ma niente medaglie. Normale ha tre varianti: Change freeze (pochi guasti, consegne in pochi giorni, niente carenze), Reperibile (il gioco classico) e BGP alle 3 di notte (guasti più frequenti e più lunghi, più DDoS). Gli scenari sono sfide fatte a mano con un obiettivo e una scadenza, e la sfida settimanale dà a tutti lo stesso mondo per una settimana. Condividi il risultato con la scheda nel menu.", "help.open_peers_with_anyone_selective":"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.", "help.out_of_port_speed_bundle_up":"Porte al limite? Raggruppa fino a 8 porte identiche verso lo stesso provider di transit, IX o PNI in un LAG. Ogni membro costa una porta intera; il flow hashing non è mai perfettamente uniforme, quindi un bundle trasporta circa il 95% della somma.", "help.pni_lead_times":"Tempi di consegna delle PNI", @@ -2008,15 +1992,12 @@ "hud_and_panels.has_errors_not_running":"ha errori, non gira", "hud_and_panels.incidents_so_far":"Incidenti finora", "hud_and_panels.install_auto_te_cost_mo_mo":"Installa Auto-TE {cost} + {mo}/mese", -"hud_and_panels.large_peering_model_is_on_it":"Ci pensa Large Peering Model.", "hud_and_panels.lv_n":"Liv. {n}", "hud_and_panels.n_incident":{"one":"{n} incidente","other":"{n} incidenti"}, -"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} messaggio aspetta una risposta.","other":"{n} messaggi aspettano una risposta."}, "hud_and_panels.n_more_networks":{"one":"+{n} altra rete","other":"+{n} altre reti"}, "hud_and_panels.n_networks_d_days_left":"{n} reti · {d} giorni rimasti", "hud_and_panels.n_new_notification":{"one":"{n} nuova notifica","other":"{n} nuove notifiche"}, "hud_and_panels.n_rules_live":"{n} regole attive", -"hud_and_panels.n_session_is_down_on_its":{"one":"{n} sessione è giù per il limite max-prefix.","other":"{n} sessioni sono giù per il limite max-prefix."}, "hud_and_panels.n_small_networks":"{n} piccole reti", "hud_and_panels.n_special_requirement":{"one":"{n} requisito speciale","other":"{n} requisiti speciali"}, "hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} cliente scontento, {price}/mese a rischio","other":"{n} clienti scontenti, {price}/mese a rischio"}, @@ -2592,6 +2573,7 @@ "ops.by_hand_note":"Per quando vuoi tutto fatto subito: ogni peer su ogni exchange, un kit di ridondanza, PNI con tutti.", "ops.caches_rent":"Gratis da montare, ma ogni box costa {price}/mese di spazio e corrente.", "ops.cheapest":"Il più economico", +"ops.day_d":"Giorno {d}", "ops.ff_desc":"ha etichettato una porta a {city} «TODO: sistemare dopo (non sistemare)»", "ops.ff_hostname":"ha rinominato il router di {city} in router-final-FINAL-v2", "ops.ff_lag":"ha aggiunto un membro LAG di transit di troppo a {city}. Funziona, quindi resta.", @@ -2630,8 +2612,6 @@ "ops.l_snag":{"one":"si è bloccato su {where} e l'ha messo in pausa finché non dai un'occhiata","other":"si è bloccato su {n} ordini ({where}) e li ha messi in pausa finché non dai un'occhiata"}, "ops.l_transit":{"one":"ha aumentato il transit a {where}","other":"ha aumentato il transit {n} volte ({where})"}, "ops.locked":"Il NOC assume stagisti dal livello clienti {lv}.", -"ops.lpm_off":"La casella del peering resta tua. Per quella c'è il Large Peering Model; {name} non risponde alle email.", -"ops.lpm_on":"Il Large Peering Model risponde alla casella del peering. {name} gli sta alla larga.", "ops.mood_annie":"Annie ha risposto a tre domande prima che tu le facessi, dalla scrivania più vicina.", "ops.mood_broke":"{name} ha già la lista della spesa per quando arriva il budget del mese prossimo.", "ops.mood_busy":"{name} ha avuto una settimana piena ed è alla terza bevanda energetica.", @@ -2744,61 +2724,14 @@ "page.series_of_tubes_build_the_internet":"Series of Tubes: costruisci internet, un tubo alla volta", "page.world_map_of_your_network":"Mappa del mondo della tua rete", "page.x":"", -"peering_inbox.accept_all_requests":"Accetta tutte le richieste", -"peering_inbox.an_ai_agent_that_answers_every":"Un agente IA che risponde per te a ogni richiesta di peering e allarme max-prefix, ogni giorno. {price}/anno. Addestrato su vent’anni di mailing list sul peering.", -"peering_inbox.answered_your_mail_a_accepted_d":"Ha risposto alla tua posta: {a} accettate, {d} rifiutate.", -"peering_inbox.asked_netchill_s_peering_team_to":"Ha chiesto al team di peering di NetChill di “fornire più Netchill, per favore”.", -"peering_inbox.configured_lim_prefixes_received_got":"Configurato: {lim} prefissi. Ricevuti: {got}.", -"peering_inbox.day_d":"Giorno {d}", -"peering_inbox.dear_sir_or_madam_please_peer":"Gentile Signore o Signora, per favore fate peering. Abbiamo tre prefissi e progetti molto grandi.", -"peering_inbox.decline_all_requests":"Rifiuta tutte le richieste", -"peering_inbox.declined_who_at_ix_not_a":"Ha rifiutato {who} a {ix}: “non strategico”. Lo era.", -"peering_inbox.every_exchange_port_brings_mail":"Ogni porta IX porta posta. Rispondi alle richieste di peering e guarda le sessioni che superano il limite max-prefix: è crescita o un route leak? La posta senza risposta ti fa una reputazione, e le reti selettive lo vengono a sapere.", -"peering_inbox.everyone_who_asks_gets_a_session":"Chiunque chieda ottiene una sessione, e i route server funzionano. Tanti peer minuscoli, e tanti allarmi max-prefix.", -"peering_inbox.fewer_requests_and_you_answer_them":"Meno richieste, e rispondi tu. Niente route server: vai su ogni exchange e chiedi le reti che vuoi.", -"peering_inbox.fire_the_ai":"Licenzia l’IA", -"peering_inbox.good_call_it_was_a_route":"Ben fatto: era un route leak.
{who} ha trovato una route map scritta male. La sessione torna da sola tra qualche giorno.", -"peering_inbox.greetings_we_are_a_fast_growing":"Saluti. Siamo una rete in rapida crescita. L’anno scorso avevamo un cliente; quest’anno ne abbiamo due.", -"peering_inbox.hello_please_find_attached_our":"Salve, in allegato la nostra richiesta di peering come documento Word, scansionato da una stampa.", -"peering_inbox.hey_quick_one_can_you_peer":"Ehi, domanda veloce: potete fare peering con noi a {ix}? Abbiamo un server Minecraft molto importante.", -"peering_inbox.hi_we_would_like_to_peer":"Ciao! Vorremmo fare peering con voi a {ix}. Il nostro record su PeeringDB è aggiornato.", -"peering_inbox.hire_it_mo_mo":"Assumilo {mo}/mese", -"peering_inbox.inbox_zero_enjoy_it_while_it":"Inbox zero. Goditela finché dura.", -"peering_inbox.keep_it_down":"Tienila giù", -"peering_inbox.kept_who_down_at_ix_for":"Ha tenuto giù {who} a {ix} per “crescita sospetta”. Erano cresciuti di un cliente.", -"peering_inbox.kept_who_down_at_ix_it":"Ha tenuto giù {who} a {ix}: era un route leak. Centrato.", -"peering_inbox.large_peering_model":"Large Peering Model", -"peering_inbox.large_peering_model_is_answering":"Large Peering Model risponde alla tua posta", -"peering_inbox.max_prefix_limit_hit_who_at":"Limite max-prefix superato: {who} a {ix}.
La sessione resta giù finché non ci guardi.", -"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Limite max-prefix superato: {who} a {ix}", -"peering_inbox.mostly_ignores_email":"Ignora quasi tutte le email", -"peering_inbox.n_day_ago":{"one":"{n} giorno fa","other":"{n} giorni fa"}, -"peering_inbox.n_unanswered":{"one":"{n} senza risposta","other":"{n} senza risposta"}, -"peering_inbox.no_mail_yet_buy_an_ix":"Ancora niente posta. Compra una porta IX e arriverà.", -"peering_inbox.nobody_asks_and_no_route_servers":"Nessuno chiede, e niente route server. I clienti sentono dire che sei difficile da raggiungere, quindi ne chiamano meno, e la tua reputazione affonda.", -"peering_inbox.open_to_all":"Aperta a tutti", -"peering_inbox.opened_a_ticket_with_itself_to":"Ha aperto un ticket a se stesso per rivedere le proprie decisioni. Le ha approvate.", -"peering_inbox.peering_request_fifth_attempt_is":"Richiesta di peering, quinto tentativo. C’è qualcuno?", -"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB aggiornato {n} anno fa","other":"PeeringDB aggiornato {n} anni fa"}, -"peering_inbox.peeringdb_updated_last_month":"PeeringDB aggiornato il mese scorso", -"peering_inbox.please_configure_sessions_with_us_at":"Per favore configurate le sessioni con noi a {ix}. Noi faremo le nostre la settimana prossima, o quella dopo.", -"peering_inbox.price_year_it_never_sleeps_never":"{price}/anno. Non dorme mai, non si lamenta mai e sbaglia spesso.", -"peering_inbox.raise_all_max_prefix_limits":"Alza tutti i limiti max-prefix", -"peering_inbox.raise_the_limit":"Alza il limite", -"peering_inbox.raised_the_max_prefix_limit_for":"Ha alzato il limite max-prefix per {who} a {ix} a {n}. Sembravano simpatici.", -"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Ha alzato il limite max-prefix per {who} a {ix}. Correttamente, stavolta.", -"peering_inbox.replied_to_a_peering_request_with":"Ha risposto a una richiesta di peering con un haiku sul BGP. Nessuna risposta per ora.", -"peering_inbox.session_with_who_is_back_up":"La sessione con {who} è di nuovo su.
Nuovo limite: {n} prefissi. Promettono di aggiornare PeeringDB.", -"peering_inbox.signed_you_up_for_a_webinar":"Ti ha iscritto a un webinar su “Il peering nell’era dell’IA”.", -"peering_inbox.that_was_a_route_leak_who":"Era un route leak.
{who} annunciava {n} prefissi: una full table. La prossima volta, tienila giù.", -"peering_inbox.the_session_stays_down_who_will":"La sessione resta giù.
{who} aggiornerà PeeringDB e chiederà di nuovo. Prima o poi.", -"peering_inbox.their_peeringdb_says_lim_last":{"one":"Il loro PeeringDB dice {lim}, aggiornato {n} anno fa.","other":"Il loro PeeringDB dice {lim}, aggiornato {n} anni fa."}, -"peering_inbox.tidied_up_a_session_it_decided":"Ha fatto ordine tra le sessioni che riteneva inutili: ha tolto il peering con {who} a {ix}.", -"peering_inbox.updated_your_peeringdb_record_your":"Ha aggiornato il tuo record su PeeringDB. Il numero del tuo NOC ora è una pizzeria.", -"peering_inbox.we_noticed_you_are_at_ix":"Abbiamo notato che siete a {ix}. Anche noi. Che ne dite?", -"peering_inbox.who_asked_a_mailing_list_whether":"{who} ha chiesto su una mailing list se qualcuno ha un contatto funzionante da {me}.
La loro richiesta di peering è rimasta nella tua casella per un mese.", -"peering_inbox.who_at_ix_was_sending_a":"{who} a {ix} stava mandando una full table, e il limite max-prefix era l’unica cosa che la fermava. Col limite alzato, i prefissi di {net} puntano alla loro cantina. Il traffico verso {net} via transito finisce in un buco nero per qualche giorno.", -"peering_inbox.wrote_a_thousand_word_apology_to":"Ha scritto mille parole di scuse a una rete con cui non hai mai fatto peering.", +"peering_desk.closed_desc":"Ogni richiesta di peering viene declinata, e niente route server. I clienti sentono dire che sei difficile da raggiungere, quindi ne chiamano meno.", +"peering_desk.n_more_exchanges":{"one":"{n} altro exchange","other":"altri {n} exchange"}, +"peering_desk.n_new_sessions_at_ix":{"one":"Ufficio peering: {n} nuova sessione a {ix} ({pol}).","other":"Ufficio peering: {n} nuove sessioni a {ix} ({pol})."}, +"peering_desk.n_new_sessions_at_ix_declined":{"one":"Ufficio peering: {n} nuova sessione a {ix}, {d} declinate ({pol}).","other":"Ufficio peering: {n} nuove sessioni a {ix}, {d} declinate ({pol})."}, +"peering_desk.n_requests_declined":{"one":"Ufficio peering: {n} richiesta declinata ({pol}).","other":"Ufficio peering: {n} richieste declinate ({pol})."}, +"peering_desk.open_desc":"Ogni rete che chiede ottiene una sessione, e i route server funzionano.", +"peering_desk.open_to_all":"Aperta a tutti", +"peering_desk.selective_desc":"Le reti piccole dell’exchange e i nuovi arrivati con PeeringDB aggiornato ottengono una sessione; le altre vengono declinate in silenzio. Niente route server: chiedi le reti che vuoi su ogni exchange.", "peering_policy.a_new_vp_wants_to_monetise":"Un nuovo VP vuole “monetizzare l’interconnessione” in questo mercato.", "peering_policy.already_reach_you_through_your":"Ti raggiungono già tramite il tuo provider di transit qui, e per loro va bene così.", "peering_policy.moved_everything_in_this_city_to":"In questa città hanno spostato tutto su PNI. Leggi la loro pagina PearingDB, tutte e 40 le pagine.", @@ -3309,7 +3242,7 @@ "routing_and_routers.unplug_something_first_used_ports":"Prima stacca qualcosa.
Ci sono {used} porte in uso, e con un router in meno ne avresti solo {max}.", "rules.a_billion_dollars_every_unlock_your":"Un miliardo di dollari, tutto sbloccato, il tuo cavo sottomarino.", "rules.a_cut_now_and_then":"Un taglio ogni tanto.", -"rules.a_third_of_the_outages_no_ddos":"Un terzo dei guasti, niente DDoS. PNI e cantieri in pochi giorni. Niente posta, niente carenze, niente rotte esaurite, niente de-peering.", +"rules.a_third_of_the_outages_no_ddos_pnis":"Un terzo dei guasti, niente DDoS. PNI e cantieri in pochi giorni. Niente carenze, niente rotte esaurite, niente de-peering.", "rules.bgp_at_3_a_m":"BGP alle 3 di notte", "rules.change_freeze":"Change freeze", "rules.chaos_calm":"Calmo", @@ -3326,7 +3259,7 @@ "rules.on_call":"Reperibile", "rules.one_small_network_one_tricky_goal":"Una piccola rete, un obiettivo insidioso.", "rules.puzzle":"Rompicapo", -"rules.real_lead_times_real_outages_a":"Tempi di consegna veri, guasti veri, una casella di peering piena. Il gioco classico.", +"rules.real_lead_times_real_outages_a_real":"Tempi di consegna veri, guasti veri, un mercato vero. Il gioco classico.", "rules.rules_are_locked_for_this_network":"{rules}: le regole sono bloccate per questa rete.", "rules.the_real_thing_your_pager_has":"Il gioco vero. Il tuo cercapersone ha delle opinioni.", "rules.your_pager_never_sleeps":"Il tuo cercapersone non dorme mai.", @@ -3460,9 +3393,7 @@ "sites_peering_caches.bgp_session_established":"Sessione BGP stabilita.", "sites_peering_caches.cache_installed_in_city_net_shipped":"{cache} installata a {city}!
{net} te l’ha spedita gratis. Tu paghi {mo}/mese di corrente.", "sites_peering_caches.could_you_resend_the_loa_you":"“Può rimandarci la LOA?”
L’hai mandata quattro volte.", -"sites_peering_caches.hello_i_am_large_peering_model":"Ciao! Sono Large Peering Model. Ho letto la tua casella e ho già delle opinioni.", "sites_peering_caches.it_is_with_the_provisioning_team":"“È in mano al team di provisioning.”
Nessuno ha mai conosciuto il team di provisioning.", -"sites_peering_caches.large_peering_model_is_hired_your":"Large Peering Model è assunto.
La tua casella ora è un problema suo. {price} all’anno, fatturati ogni mese.", "sites_peering_caches.n_new_session_at_ix_small":{"one":"{n} nuova sessione a {ix}.
Reti piccole, ma fanno numero, e contano tutte per il club.","other":"{n} nuove sessioni a {ix}.
Reti piccole, ma fanno numero, e contano tutte per il club."}, "sites_peering_caches.net_accepted":"{net} ha accettato!", "sites_peering_caches.net_declined_the_pni_why":"{net} ha rifiutato il PNI.
{why}", @@ -3470,11 +3401,8 @@ "sites_peering_caches.net_does_not_do_port_pnis":"{net} non fa PNI da {port}.
Niente sotto i 100G. Torna con più traffico, o con un’ottica più grande.", "sites_peering_caches.net_says_not_yet_send_them":"{net} dice: non ancora.
Prima mandagli {min}+ Gbps.", "sites_peering_caches.pni_with_net_ordered_eta_a":"PNI con {net} ordinata.
{eta}. Un cross-connect in {dc}, appena qualcuno trova la LOA.", -"sites_peering_caches.raised_n_max_prefix_limits_all":"Alzati {n} limiti max-prefix.
Tutta crescita, nessun leak. Fortuna.", -"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"Alzati {n} limiti max-prefix.
Uno era un route leak. Ora è nel NOC.","other":"Alzati {n} limiti max-prefix.
{k} erano route leak. Ora sono nel NOC."}, "sites_peering_caches.second_lag_member_added_one_member":"Secondo membro LAG aggiunto.
Ora c’è un membro per edificio, così un edificio al buio si porta via solo metà porta.", "sites_peering_caches.second_site_live_in_city_b":"Secondo sito attivo a {city}.
{b} è collegato a {a} dal tuo anello metro. Sposta lì qualche uplink dalle schede Transit e Peering.", -"sites_peering_caches.the_ai_is_gone_it_left":"L’IA se n’è andata.
Ha lasciato un documento di passaggio di consegne di 40 pagine. Parla soprattutto di sé.", "sites_peering_caches.they_checked_your_pearingdb_page_and":"Hanno controllato la tua pagina PearingDB e i numeri del traffico gli sono piaciuti.", "sites_peering_caches.we_are_waiting_on_the_colo":"“Stiamo aspettando il colo per il cross-connect.”
Il colo dice che sta aspettando loro.", "sites_peering_caches.your_account_manager_found_the_order":"Il tuo account manager ha trovato l’ordine sotto una scrivania.
È un mese più vicino.", @@ -3496,6 +3424,7 @@ "slots.last_played_ago":"Ultima partita: {ago}", "slots.load_the_newest_version":"Carica la versione più recente", "slots.more_for_name":"Altro per {name}", +"slots.n_day_ago":{"one":"{n} giorno fa","other":"{n} giorni fa"}, "slots.n_h_ago":{"one":"{n} h fa","other":"{n} h fa"}, "slots.name_is_open_in_another_window":"{name} è aperta in un'altra finestra", "slots.name_is_waiting_in_your_other":"{name} ti aspetta nell'altra finestra.
Passa lì per continuare a giocare.", @@ -3519,7 +3448,6 @@ "slots.this_window_stopped_saving_so_it":"In un'altra finestra è stata salvata una versione più recente, quindi questa ha smesso di salvare invece di sovrascriverla.", "slots.two_windows_one_network":"Due finestre, una rete", "slots.your_networks":"Le tue reti", -"slots.your_networks_switch_or_start_another":"Le tue reti cambia o iniziane un'altra", "slots.your_other_networks_share_this_browser":"Le tue altre reti condividono lo spazio di questo browser. Esporta quelle che vuoi tenere, poi eliminale qui per fare posto.", "sold_out.a_hyperscaler_bought_every_wave_of":"Un hyperscaler ha comprato la settimana scorsa ogni onda di questa misura su questa tratta.", "sold_out.not_big_enough_yet_list":"Non sei ancora abbastanza grande: {list}", diff --git a/site/i18n/pt.js b/site/i18n/pt.js index d665af3..fa6d14b 100644 --- a/site/i18n/pt.js +++ b/site/i18n/pt.js @@ -807,7 +807,6 @@ "common.aug":"ago", "common.auto":"Auto", "common.auto_enrolled":"inscrito automaticamente", -"common.average":"Na média", "common.avoid":"Evitar", "common.back":"Voltar", "common.back_to_the_map":"Voltar ao mapa", @@ -823,7 +822,6 @@ "common.bgp_hijack":"BGP hijack", "common.bgp_sessions":"Sessões BGP", "common.big_league":"Primeira divisão", -"common.black_hole":"Buraco negro", "common.blitz":"Blitz", "common.boot_time":"Tempo de boot", "common.boot_times":"Tempo de boot", @@ -831,7 +829,6 @@ "common.box_6ee3":"− box", "common.build_time":"Tempo de obra", "common.building":"em obras", -"common.bumped":"cobrado de novo", "common.bunker_two":"Bunker Dois", "common.busiest_links":"Links mais carregados", "common.business_customers":"Clientes empresariais", @@ -993,8 +990,6 @@ "common.import_a_save":"Importar um save", "common.in_progress":"em andamento", "common.in_use":"Em uso", -"common.inbox":"Caixa de entrada", -"common.inbox_zero":"Caixa zerada.", "common.incident":"Incidente", "common.incidents":"Incidentes", "common.incidents_survived":"Incidentes superados", @@ -1122,7 +1117,6 @@ "common.oops":"Ops", "common.open":"Abrir", "common.open_bank":"Abrir banco", -"common.open_inbox":"Abrir a caixa", "common.open_infra":"Abrir Infra", "common.open_lease":"Abrir aluguel", "common.open_noc":"Abrir NOC", @@ -1147,7 +1141,6 @@ "common.peered_ce2f":"Em peering ✓", "common.peering":"Peering", "common.peering_first":"Peering primeiro", -"common.peering_inbox":"Caixa de peering", "common.peering_policy":"Política de peering", "common.peering_ratio":"Taxa de peering", "common.peering_spat":"Briga de peering", @@ -1196,7 +1189,6 @@ "common.remove_port":"Remover porta", "common.remove_script":"Remover script", "common.request":"Pedir", -"common.responsive":"Responde rápido", "common.resume":"Continuar", "common.retention_offer":"Oferta de retenção", "common.revenue":"Receita", @@ -1302,7 +1294,6 @@ "common.to":"Para", "common.toaster_wrangler":"Domador de torradeiras", "common.today":"Hoje", -"common.today_4203":"hoje", "common.toggle_sound":"Ligar/desligar som", "common.too_far_for_this_cable":"longe demais para este cabo", "common.traceroute":"Traceroute", @@ -1364,7 +1355,6 @@ "common.your_network":"Sua rede", "common.your_pop":"Seu POP", "common.your_pops":"Seus POPs", -"common.your_reputation":"Sua reputação", "common.zombie_route":"Rota zumbi", "compute.attack_hauled_to_scrubbing_in_city":"Ataque levado ao scrubbing em {city}", "compute.courtesy_route_to_new_networks":"Rota de cortesia para novas redes", @@ -1611,8 +1601,6 @@ "failures.a_kilometre_of_copper_went_missing":"Um quilômetro de “cobre” sumiu da sua vala {a}–{b}. Era a sua fibra. O ferro-velho devolveu com um bilhete.", "failures.a_landslide_in_the_andes_buried":"Um deslizamento nos Andes soterrou sua fibra {a}–{b}.", "failures.a_llama_herd_trampled_the_fiber":"Um rebanho de lhamas pisoteou o marcador da fibra em {a}–{b}. Depois uma retroescavadeira achou a fibra.", -"failures.a_member_at_ix_leaked_the":"Um membro do {ix} vazou a tabela de roteamento inteira no route server. Limites de max-prefix estouraram em todo lugar. Seu peering lá caiu.", -"failures.a_member_at_ix_leaked_the_5563":"Um membro do {ix} vazou a tabela de roteamento inteira no route server. Limites de max-prefix estouraram em todo lugar. Seu peering lá, em {city}, caiu.", "failures.a_new_tech_in_a_tidied":"Um técnico novo em {a} “arrumou” a bagunça de cabos. Seu link {a}–{b} fazia parte da bagunça.", "failures.a_new_tech_in_city_used":"Um técnico novo em {city} usou Vegemite como pasta térmica. Ela conduz sabor, não calor, e seu roteador cozinhou.", "failures.a_optic_on_a_b_overheated":"Um {optic} em {a}–{b} superaqueceu e agora é um chaveiro caríssimo.", @@ -1679,7 +1667,6 @@ "failures.load_shedding_stage_n_in_city":"Rodízio de energia stage {n} em {city}, e você não tem gerador. Compre um: aqui não é opcional.", "failures.load_shedding_took_out_site_in":"O rodízio de energia derrubou {site} em {city}. {other} aguentou, então o POP roda com metade da capacidade. Tudo que está ligado só no site apagado está offline.", "failures.magpie_swooping_season_the_field":"Temporada dos rasantes das pegas: os técnicos em {a}–{b} não saem da van, e seu corte continua cortado.", -"failures.max_prefix_meltdown":"Pane de max-prefix", "failures.metro_ring_cut":"Anel metro cortado", "failures.microbursts_on_a_b_overflow_shallow":"Microbursts em {a}–{b} estouram os buffers rasos do router: 0,5% de perda no pico, e toda videochamada percebe.", "failures.microbursts_on_a_b_your_deep":"Microbursts em {a}–{b}.
Seus routers de buffer profundo absorveram tudo. Ninguém percebeu.", @@ -1794,11 +1781,8 @@ "fiber_modals.your_pop_needs_a_fabric_port":"Seu POP · precisa de uma porta de fabric lá", "game_and_settings.delete_and_start_over":"Apagar e recomeçar", "game_and_settings.export_save_download_a_file":"Exportar save baixar um arquivo", -"game_and_settings.import_a_save_from_a_file":"Importar um save de um arquivo", "game_and_settings.import_failed_that_save_is_damaged":"Falha na importação.
Esse save está corrompido e não pôde ser carregado. Seu jogo atual não foi mexido.", "game_and_settings.name_and_everything_it_owns_will":"{name} e tudo o que ela possui serão apagados. Não dá para desfazer.", -"game_and_settings.scenarios_amp_weekly_challenge":"Cenários & desafio semanal", -"game_and_settings.share_your_network_image_card":"Compartilhar sua rede card de imagem", "game_and_settings.start_a_new_network":"Começar uma nova rede?", "game_and_settings.welcome_back_name_imported_and_saved":"Bem-vindo de volta, {name}.
Importado e salvo neste dispositivo.", "game_and_settings.your_game_saves_itself_every_few":"Seu jogo se salva sozinho a cada poucos segundos neste dispositivo.", @@ -1869,7 +1853,7 @@ "help.each_pop_s_router_model_caps":"O modelo de router de cada POP limita a porta mais rápida (100G, 400G, 800G, 1.6T) e quanto ele consegue encaminhar. Waves e portas maiores pedem routers melhores nas duas pontas. Modelos melhores desbloqueiam com seu nível de clientes. Com um router só, upgrade significa um dia fora do ar.", "help.event_networks_a_final_a_festival":"Redes de evento (uma final, um festival, uma keynote) precisam de uma rajada de capacidade numa cidade por alguns dias e pagam uma vez no fim, proporcional a quanto do público você atendeu; abaixo de 70% você paga multa. Redes SD-WAN ligam de 3 a 6 POPs seus em hub-and-spoke, então um spoke quebrado azeda o contrato inteiro. Quando você tiver sua própria dark fiber, as operadoras vão querer alugar canais livres como alien waves, e na fibra que você mesmo construiu, um par sobrando.", "help.events_chains_and_wholesale":"Eventos, redes e atacado", -"help.every_ix_port_brings_peering":"Cada porta de IX traz pedidos de peering e alertas de max-prefix, na aba Redes. Uma sessão que estoura o limite fica fora até você olhar: aumente o limite se for crescimento, deixe fora se for vazamento. Ignore seus e-mails e as redes seletivas ficam mais exigentes.", +"help.every_ix_port_brings_requests":"Cada porta de IX traz pedidos de peering, e a sua política de peering, na aba Redes, responde a eles: Aberta aceita todos, Seletiva aceita as redes com que vale a pena fazer peering e recusa o resto em silêncio, Fechada recusa todos. Uma vez por semana o log do NOC resume tudo.", "help.every_link_has_latency_high":"Todo link tem latência. Traders de alta frequência pagam uma fortuna por um circuito dentro do orçamento de latência deles; roteie-os por “Menor latência”. Clientes de backup em massa não ligam, então roteie-os pela “Panorâmica” nos seus links tranquilos para deixar livres os movimentados.", "help.home_broadband_users_they_mostly":"Usuários de banda larga residencial. Eles baixam principalmente de CDNs e te pagam por Gbps entregue. Atenda bem e eles se multiplicam.", "help.how_the_internet_works_here":"Como a internet funciona aqui", @@ -1883,7 +1867,7 @@ "help.name_as_asn_is_transit_free":"{name} (AS{asn}) é transit-free. Você faz peering com todos os gigantes do planeta e não paga ninguém para chegar à internet. Levou {days} dias e {n} incidentes.", "help.nanog_ripe_denog_and_friends_come":"NANOG, RIPE, DENOG e a turma aparecem todo ano. Inscreva-se na aba Negócios por $8k. Nos 45 dias seguintes, redes seletivas presentes naquela região pedem só metade do tráfego de sempre antes de fazer peering com você. Às vezes você ainda ganha o sorteio.", "help.once_auto_te_is_installed_you":"Com o Auto-TE instalado, você pode programá-lo pela aba NOC. As regras incluem spill at 80%, prefer pni for goggle, avoid transit for netchill, cap transit cogentle at 20 gbps, drain paris, avoid link fra-ams e blackhole ddos. Verificar faz um dry run contra o tráfego real; Aplicar torna tudo real, erros incluídos.", -"help.one_game_four_doors_puzzles_are":"Um jogo, quatro portas, e as regras são escolhidas quando uma rede começa e ficam travadas depois. Os quebra-cabeças são pequenos nós para desatar, sem relógio. A sandbox dá um bilhão de dólares, tudo desbloqueado (incluindo o seu próprio cabo submarino) e o caos que você escolher, mas sem medalhas. O Normal vem de três jeitos: Congelamento de mudanças (poucas falhas, entregas em dias, sem caixa de entrada nem escassez), De plantão (o jogo clássico) e BGP às 3 da manhã (mais falhas e mais longas, mais DDoS). Os cenários são desafios feitos à mão com um objetivo e um prazo, e o desafio semanal dá a todos o mesmo mundo durante uma semana. Compartilhe o seu resultado com o cartão no menu.", +"help.one_game_four_doors_and_the":"Um jogo, quatro portas, e as regras são escolhidas quando uma rede começa e ficam travadas depois. Os quebra-cabeças são pequenos nós para desatar, sem relógio. A sandbox dá um bilhão de dólares, tudo desbloqueado (incluindo o seu próprio cabo submarino) e o caos que você escolher, mas sem medalhas. O Normal vem de três jeitos: Congelamento de mudanças (poucas falhas, entregas em dias, sem escassez), De plantão (o jogo clássico) e BGP às 3 da manhã (mais falhas e mais longas, mais DDoS). Os cenários são desafios feitos à mão com um objetivo e um prazo, e o desafio semanal dá a todos o mesmo mundo durante uma semana. Compartilhe o seu resultado com o cartão no menu.", "help.open_peers_with_anyone_selective":"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.", "help.out_of_port_speed_bundle_up":"Sem velocidade de porta? Junte até 8 portas idênticas para o mesmo provedor de transit, IX ou PNI num LAG. Cada membro custa uma porta inteira; o hashing de fluxos nunca é perfeitamente uniforme, então o bundle carrega cerca de 95% da soma.", "help.pni_lead_times":"Prazos de PNI", @@ -2008,15 +1992,12 @@ "hud_and_panels.has_errors_not_running":"tem erros, não está rodando", "hud_and_panels.incidents_so_far":"Incidentes até agora", "hud_and_panels.install_auto_te_cost_mo_mo":"Instalar Auto-TE {cost} + {mo}/mês", -"hud_and_panels.large_peering_model_is_on_it":"Large Peering Model está cuidando disso.", "hud_and_panels.lv_n":"Nv {n}", "hud_and_panels.n_incident":{"one":"{n} incidente","other":"{n} incidentes"}, -"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} mensagem esperando resposta.","other":"{n} mensagens esperando resposta."}, "hud_and_panels.n_more_networks":{"one":"+{n} rede a mais","other":"+{n} redes a mais"}, "hud_and_panels.n_networks_d_days_left":"{n} redes · faltam {d} dias", "hud_and_panels.n_new_notification":{"one":"{n} notificação nova","other":"{n} notificações novas"}, "hud_and_panels.n_rules_live":"{n} regras ativas", -"hud_and_panels.n_session_is_down_on_its":{"one":"{n} sessão está fora pelo limite de max-prefix.","other":"{n} sessões estão fora pelo limite de max-prefix."}, "hud_and_panels.n_small_networks":"{n} redes pequenas", "hud_and_panels.n_special_requirement":{"one":"{n} requisito especial","other":"{n} requisitos especiais"}, "hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} cliente insatisfeito, {price}/mês em risco","other":"{n} clientes insatisfeitos, {price}/mês em risco"}, @@ -2592,6 +2573,7 @@ "ops.by_hand_note":"Para quando você quer tudo feito agora: cada peer em cada exchange, um kit de redundância, PNIs com todo mundo.", "ops.caches_rent":"Instalar é grátis, mas cada caixa custa {price}/mês em espaço e energia.", "ops.cheapest":"O mais barato", +"ops.day_d":"Dia {d}", "ops.ff_desc":"etiquetou uma porta em {city} como “TODO: corrigir depois (não corrigir)”", "ops.ff_hostname":"renomeou o roteador de {city} para router-final-FINAL-v2", "ops.ff_lag":"adicionou um membro LAG de trânsito a mais em {city}. Funciona, então fica.", @@ -2630,8 +2612,6 @@ "ops.l_snag":{"one":"travou em {where} e pausou a ordem até você dar uma olhada","other":"travou em {n} ordens ({where}) e pausou-as até você dar uma olhada"}, "ops.l_transit":{"one":"reforçou o trânsito em {where}","other":"reforçou o trânsito {n} vezes ({where})"}, "ops.locked":"O NOC contrata estagiários a partir do nível de clientes {lv}.", -"ops.lpm_off":"A caixa de peering continua com você. Para isso existe o Large Peering Model; {name} não responde e-mail.", -"ops.lpm_on":"O Large Peering Model responde a caixa de peering. {name} fica fora do caminho dele.", "ops.mood_annie":"Annie respondeu três perguntas antes de você fazê-las, da mesa mais próxima.", "ops.mood_broke":"{name} já tem a lista de compras para quando chegar o orçamento do mês que vem.", "ops.mood_busy":"{name} teve uma semana cheia e está na terceira bebida energética.", @@ -2744,61 +2724,14 @@ "page.series_of_tubes_build_the_internet":"Series of Tubes: construa a internet, um tubo de cada vez", "page.world_map_of_your_network":"Mapa-múndi da sua rede", "page.x":"", -"peering_inbox.accept_all_requests":"Aceitar todos os pedidos", -"peering_inbox.an_ai_agent_that_answers_every":"Um agente de IA que responde por você a cada pedido de peering e alerta de max-prefix, todo dia. {price}/ano. Treinado em vinte anos de listas de e-mails sobre peering.", -"peering_inbox.answered_your_mail_a_accepted_d":"Respondeu seus e-mails: {a} aceitos, {d} recusados.", -"peering_inbox.asked_netchill_s_peering_team_to":"Pediu ao time de peering da NetChill “mais Netchill, por favor”.", -"peering_inbox.configured_lim_prefixes_received_got":"Configurado: {lim} prefixos. Recebidos: {got}.", -"peering_inbox.day_d":"Dia {d}", -"peering_inbox.dear_sir_or_madam_please_peer":"Prezado senhor ou senhora, por favor façam peering. Temos três prefixos e planos enormes.", -"peering_inbox.decline_all_requests":"Recusar todos os pedidos", -"peering_inbox.declined_who_at_ix_not_a":"Recusou {who} no {ix}: “não é estratégico”. Era.", -"peering_inbox.every_exchange_port_brings_mail":"Cada porta de IX traz e-mails. Responda aos pedidos de peering e olhe as sessões que estouraram o limite de max-prefix: é crescimento ou vazamento de rotas? E-mail sem resposta te dá uma reputação, e as redes seletivas ficam sabendo.", -"peering_inbox.everyone_who_asks_gets_a_session":"Quem pedir ganha uma sessão, e os route servers funcionam. Muitos peers minúsculos, e muitos alertas de max-prefix.", -"peering_inbox.fewer_requests_and_you_answer_them":"Menos pedidos, e você mesmo responde. Sem route servers: vá a cada exchange e peça as redes que quiser.", -"peering_inbox.fire_the_ai":"Demitir a IA", -"peering_inbox.good_call_it_was_a_route":"Boa: era um vazamento de rotas.
{who} achou um route map digitado errado. A sessão volta sozinha em alguns dias.", -"peering_inbox.greetings_we_are_a_fast_growing":"Saudações. Somos uma rede em rápido crescimento. Ano passado tínhamos um cliente; este ano temos dois.", -"peering_inbox.hello_please_find_attached_our":"Olá, segue em anexo nosso pedido de peering como documento Word, escaneado de uma impressão.", -"peering_inbox.hey_quick_one_can_you_peer":"E aí, rapidinho: dá pra fazer peering com a gente no {ix}? Temos um servidor de Minecraft muito importante.", -"peering_inbox.hi_we_would_like_to_peer":"Oi! Gostaríamos de fazer peering com vocês no {ix}. Nosso registro no PeeringDB está atualizado.", -"peering_inbox.hire_it_mo_mo":"Contratar {mo}/mês", -"peering_inbox.inbox_zero_enjoy_it_while_it":"Caixa zerada. Aproveite enquanto dura.", -"peering_inbox.keep_it_down":"Deixar fora", -"peering_inbox.kept_who_down_at_ix_for":"Deixou {who} fora no {ix} por “crescimento suspeito”. Eles tinham ganhado um cliente.", -"peering_inbox.kept_who_down_at_ix_it":"Deixou {who} fora no {ix}: era um vazamento de rotas. Acertou em cheio.", -"peering_inbox.large_peering_model":"Large Peering Model", -"peering_inbox.large_peering_model_is_answering":"Large Peering Model está respondendo seus e-mails", -"peering_inbox.max_prefix_limit_hit_who_at":"Limite de max-prefix estourado: {who} no {ix}.
A sessão fica fora até você dar uma olhada.", -"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Limite de max-prefix estourado: {who} no {ix}", -"peering_inbox.mostly_ignores_email":"Ignora quase todos os e-mails", -"peering_inbox.n_day_ago":{"one":"há {n} dia","other":"há {n} dias"}, -"peering_inbox.n_unanswered":{"one":"{n} sem resposta","other":"{n} sem resposta"}, -"peering_inbox.no_mail_yet_buy_an_ix":"Nenhum e-mail ainda. Compre uma porta de IX que eles chegam.", -"peering_inbox.nobody_asks_and_no_route_servers":"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.", -"peering_inbox.open_to_all":"Aberta a todos", -"peering_inbox.opened_a_ticket_with_itself_to":"Abriu um chamado para si mesma para revisar as próprias decisões. Aprovou todas.", -"peering_inbox.peering_request_fifth_attempt_is":"Pedido de peering, quinta tentativa. Tem alguém aí?", -"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB atualizado há {n} ano","other":"PeeringDB atualizado há {n} anos"}, -"peering_inbox.peeringdb_updated_last_month":"PeeringDB atualizado no mês passado", -"peering_inbox.please_configure_sessions_with_us_at":"Por favor configurem as sessões com a gente no {ix}. Nós faremos as nossas semana que vem, ou na outra.", -"peering_inbox.price_year_it_never_sleeps_never":"{price}/ano. Nunca dorme, nunca reclama e erra com frequência.", -"peering_inbox.raise_all_max_prefix_limits":"Aumentar todos os limites de max-prefix", -"peering_inbox.raise_the_limit":"Aumentar o limite", -"peering_inbox.raised_the_max_prefix_limit_for":"Aumentou o limite de max-prefix de {who} no {ix} para {n}. Pareciam simpáticos.", -"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Aumentou o limite de max-prefix de {who} no {ix}. Corretamente, desta vez.", -"peering_inbox.replied_to_a_peering_request_with":"Respondeu a um pedido de peering com um haicai sobre BGP. Nenhuma resposta ainda.", -"peering_inbox.session_with_who_is_back_up":"A sessão com {who} voltou.
Novo limite: {n} prefixos. Eles prometem atualizar o PeeringDB.", -"peering_inbox.signed_you_up_for_a_webinar":"Inscreveu você num webinar sobre “Peering na era da IA”.", -"peering_inbox.that_was_a_route_leak_who":"Era um vazamento de rotas.
{who} anunciava {n} prefixos: uma tabela completa. Da próxima vez, deixe fora.", -"peering_inbox.the_session_stays_down_who_will":"A sessão continua fora.
{who} vai atualizar o PeeringDB e pedir de novo. Algum dia.", -"peering_inbox.their_peeringdb_says_lim_last":{"one":"O PeeringDB deles diz {lim}, atualizado há {n} ano.","other":"O PeeringDB deles diz {lim}, atualizado há {n} anos."}, -"peering_inbox.tidied_up_a_session_it_decided":"Fez uma faxina nas sessões que achou inúteis: desfez o peering com {who} no {ix}.", -"peering_inbox.updated_your_peeringdb_record_your":"Atualizou seu registro no PeeringDB. O telefone do seu NOC agora é de uma pizzaria.", -"peering_inbox.we_noticed_you_are_at_ix":"Vimos que vocês estão no {ix}. Nós também. Vamos?", -"peering_inbox.who_asked_a_mailing_list_whether":"{who} perguntou numa lista de e-mails se alguém tem um contato que funcione na {me}.
O pedido de peering deles ficou um mês na sua caixa de entrada.", -"peering_inbox.who_at_ix_was_sending_a":"{who} no {ix} estava mandando uma tabela completa, e o limite de max-prefix era a única coisa que segurava. Com o limite aumentado, os prefixos da {net} apontam para o porão deles. O tráfego para a {net} via trânsito vai para um buraco negro por alguns dias.", -"peering_inbox.wrote_a_thousand_word_apology_to":"Escreveu um pedido de desculpas de mil palavras para uma rede com quem você nunca fez peering.", +"peering_desk.closed_desc":"Todo pedido de peering é recusado, e sem route servers. Os clientes ficam sabendo que você é difícil de alcançar, então menos deles ligam.", +"peering_desk.n_more_exchanges":{"one":"mais {n} exchange","other":"mais {n} exchanges"}, +"peering_desk.n_new_sessions_at_ix":{"one":"Mesa de peering: {n} sessão nova em {ix} ({pol}).","other":"Mesa de peering: {n} sessões novas em {ix} ({pol})."}, +"peering_desk.n_new_sessions_at_ix_declined":{"one":"Mesa de peering: {n} sessão nova em {ix}, {d} recusados ({pol}).","other":"Mesa de peering: {n} sessões novas em {ix}, {d} recusados ({pol})."}, +"peering_desk.n_requests_declined":{"one":"Mesa de peering: {n} pedido recusado ({pol}).","other":"Mesa de peering: {n} pedidos recusados ({pol})."}, +"peering_desk.open_desc":"Toda rede que pede ganha uma sessão, e os route servers funcionam.", +"peering_desk.open_to_all":"Aberta a todos", +"peering_desk.selective_desc":"Redes pequenas do exchange e recém-chegadas com PeeringDB em dia ganham uma sessão; o resto é recusado em silêncio. Sem route servers: peça as redes que quiser em cada exchange.", "peering_policy.a_new_vp_wants_to_monetise":"Um novo VP quer “monetizar a interconexão” neste mercado.", "peering_policy.already_reach_you_through_your":"Já chegam até você pelo seu provedor de transit aqui e acham que está ótimo.", "peering_policy.moved_everything_in_this_city_to":"Passaram tudo nesta cidade para PNI. Leia a página deles no PearingDB, todas as 40 páginas.", @@ -3309,7 +3242,7 @@ "routing_and_routers.unplug_something_first_used_ports":"Desconecte algo primeiro.
Há {used} portas em uso, e com um router a menos só teria {max}.", "rules.a_billion_dollars_every_unlock_your":"Um bilhão de dólares, tudo desbloqueado, o seu próprio cabo submarino.", "rules.a_cut_now_and_then":"Um corte de vez em quando.", -"rules.a_third_of_the_outages_no_ddos":"Um terço das falhas, sem DDoS. PNIs e obras em dias. Sem caixa de entrada, sem escassez, sem rotas esgotadas, sem de-peering.", +"rules.a_third_of_the_outages_no_ddos_pnis":"Um terço das falhas, sem DDoS. PNIs e obras em dias. Sem escassez, sem rotas esgotadas, sem de-peering.", "rules.bgp_at_3_a_m":"BGP às 3 da manhã", "rules.change_freeze":"Congelamento de mudanças", "rules.chaos_calm":"Calmo", @@ -3326,7 +3259,7 @@ "rules.on_call":"De plantão", "rules.one_small_network_one_tricky_goal":"Uma rede pequena, um objetivo traiçoeiro.", "rules.puzzle":"Quebra-cabeça", -"rules.real_lead_times_real_outages_a":"Prazos reais, falhas reais, uma caixa de peering cheia. O jogo clássico.", +"rules.real_lead_times_real_outages_a_real":"Prazos reais, falhas reais, um mercado real. O jogo clássico.", "rules.rules_are_locked_for_this_network":"{rules}: as regras estão travadas para esta rede.", "rules.the_real_thing_your_pager_has":"O jogo de verdade. O seu pager tem opiniões.", "rules.your_pager_never_sleeps":"O seu pager nunca dorme.", @@ -3460,9 +3393,7 @@ "sites_peering_caches.bgp_session_established":"Sessão BGP estabelecida.", "sites_peering_caches.cache_installed_in_city_net_shipped":"{cache} instalado em {city}!
{net} mandou de graça. Você paga {mo}/mês de energia.", "sites_peering_caches.could_you_resend_the_loa_you":"“Pode reenviar a LOA?”
Você já mandou quatro vezes.", -"sites_peering_caches.hello_i_am_large_peering_model":"Olá! Eu sou o Large Peering Model. Li sua caixa de entrada e já tenho opiniões.", "sites_peering_caches.it_is_with_the_provisioning_team":"“Está com o time de provisionamento.”
Ninguém nunca conheceu o time de provisionamento.", -"sites_peering_caches.large_peering_model_is_hired_your":"Large Peering Model contratado.
Sua caixa de entrada agora é problema dele. {price} por ano, cobrados por mês.", "sites_peering_caches.n_new_session_at_ix_small":{"one":"{n} nova sessão em {ix}.
Redes pequenas, mas somam, e todas contam para o clube.","other":"{n} novas sessões em {ix}.
Redes pequenas, mas somam, e todas contam para o clube."}, "sites_peering_caches.net_accepted":"{net} aceitou!", "sites_peering_caches.net_declined_the_pni_why":"{net} recusou o PNI.
{why}", @@ -3470,11 +3401,8 @@ "sites_peering_caches.net_does_not_do_port_pnis":"{net} não faz PNI de {port}.
Nada abaixo de 100G. Volte com mais tráfego, ou uma óptica maior.", "sites_peering_caches.net_says_not_yet_send_them":"{net} diz: ainda não.
Mande {min}+ Gbps pra eles primeiro.", "sites_peering_caches.pni_with_net_ordered_eta_a":"PNI com {net} encomendada.
{eta}. Um cross-connect em {dc}, assim que alguém achar a LOA.", -"sites_peering_caches.raised_n_max_prefix_limits_all":"{n} limites de max-prefix aumentados.
Tudo crescimento, nenhum vazamento. Sorte.", -"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"{n} limites de max-prefix aumentados.
Um deles era um vazamento de rotas. Está no NOC agora.","other":"{n} limites de max-prefix aumentados.
{k} deles eram vazamentos de rotas. Estão no NOC agora."}, "sites_peering_caches.second_lag_member_added_one_member":"Segundo membro do LAG adicionado.
Agora tem um membro em cada prédio, então um prédio apagado só derruba metade da porta.", "sites_peering_caches.second_site_live_in_city_b":"Segundo site ativo em {city}.
{b} está ligado a {a} pelo seu próprio anel metro. Mova alguns uplinks pra lá nas abas Transit e Peering.", -"sites_peering_caches.the_ai_is_gone_it_left":"A IA foi embora.
Deixou um documento de transição de 40 páginas. Ele fala principalmente dela mesma.", "sites_peering_caches.they_checked_your_pearingdb_page_and":"Eles olharam sua página no PearingDB e curtiram os números de tráfego.", "sites_peering_caches.we_are_waiting_on_the_colo":"“Estamos esperando o colo fazer o cross-connect.”
O colo diz que está esperando por eles.", "sites_peering_caches.your_account_manager_found_the_order":"Seu gerente de contas achou o pedido embaixo de uma mesa.
Está um mês mais perto.", @@ -3496,6 +3424,7 @@ "slots.last_played_ago":"Jogada pela última vez {ago}", "slots.load_the_newest_version":"Carregar a versão mais nova", "slots.more_for_name":"Mais para {name}", +"slots.n_day_ago":{"one":"há {n} dia","other":"há {n} dias"}, "slots.n_h_ago":{"one":"há {n} h","other":"há {n} h"}, "slots.name_is_open_in_another_window":"{name} está aberta em outra janela", "slots.name_is_waiting_in_your_other":"{name} está esperando na sua outra janela.
Vá para ela para continuar jogando.", @@ -3519,7 +3448,6 @@ "slots.this_window_stopped_saving_so_it":"Uma versão mais nova foi salva em outra janela, então esta parou de salvar em vez de sobrescrevê-la.", "slots.two_windows_one_network":"Duas janelas, uma rede", "slots.your_networks":"Suas redes", -"slots.your_networks_switch_or_start_another":"Suas redes trocar ou começar outra", "slots.your_other_networks_share_this_browser":"Suas outras redes dividem o armazenamento deste navegador. Exporte as que quiser manter e apague-as aqui para abrir espaço.", "sold_out.a_hyperscaler_bought_every_wave_of":"Um hyperscaler comprou semana passada todas as ondas desse tamanho nesta rota.", "sold_out.not_big_enough_yet_list":"Você ainda não é grande o bastante: {list}", diff --git a/src/game/40-progress/30-rules.js b/src/game/40-progress/30-rules.js index 656677e..12f7c92 100644 --- a/src/game/40-progress/30-rules.js +++ b/src/game/40-progress/30-rules.js @@ -3,15 +3,15 @@ these rules, not separate code: Normal comes as Change Freeze, On-call (the classic game) and BGP at 3 a.m.; Sandbox and Puzzles are presets too. Saves without rules load as On-call, so nothing changes for them. Scenarios and the weekly challenge run on On-call plus their own S.scn.rules (scnRule()). */ -const RULE_DEF={clock:true,chaos:'normal',lead:'real',market:true,inbox:true,money:'normal',gates:'ladder',mods:[]}; -const RULE_OK={clock:[true,false],chaos:['none','calm','normal','spicy'],lead:['real','quick'],market:[true,false],inbox:[true,false],money:['normal','infinite'],gates:['ladder','open']}; +const RULE_DEF={clock:true,chaos:'normal',lead:'real',market:true,money:'normal',gates:'ladder',mods:[]}; +const RULE_OK={clock:[true,false],chaos:['none','calm','normal','spicy'],lead:['real','quick'],market:[true,false],money:['normal','infinite'],gates:['ladder','open']}; // i: icon, n: name, d: the one-line joke, x: what is different, in small print. const PRESETS={ - freeze:{i:'🧊',n:tr('rules.change_freeze'),d:tr('rules.nobody_touches_prod_even_the_backhoes'),x:tr('rules.a_third_of_the_outages_no_ddos'),clock:true,chaos:'calm',lead:'quick',market:false,inbox:false,money:'normal',gates:'ladder'}, - oncall:{i:'📟',n:tr('rules.on_call'),d:tr('rules.the_real_thing_your_pager_has'),x:tr('rules.real_lead_times_real_outages_a'),clock:true,chaos:'normal',lead:'real',market:true,inbox:true,money:'normal',gates:'ladder'}, - bgp:{i:'🔥',n:tr('rules.bgp_at_3_a_m'),d:tr('rules.everything_is_on_fire_and_it'),x:tr('rules.more_and_longer_outages_more_ddos'),clock:true,chaos:'spicy',lead:'real',market:true,inbox:true,money:'normal',gates:'ladder'}, - sandbox:{i:'🏖️',n:tr('common.sandbox'),d:tr('rules.a_billion_dollars_every_unlock_your'),x:tr('rules.infinite_money_everything_unlocked_quick'),clock:true,chaos:'none',lead:'quick',market:true,inbox:true,money:'infinite',gates:'open'}, - puzzle:{i:'🧩',n:tr('rules.puzzle'),d:tr('rules.one_small_network_one_tricky_goal'),x:tr('rules.no_clock_no_bills_nothing_breaks'),clock:false,chaos:'none',lead:'quick',market:false,inbox:false,money:'normal',gates:'open'}, + freeze:{i:'🧊',n:tr('rules.change_freeze'),d:tr('rules.nobody_touches_prod_even_the_backhoes'),x:tr('rules.a_third_of_the_outages_no_ddos_pnis'),clock:true,chaos:'calm',lead:'quick',market:false,money:'normal',gates:'ladder'}, + oncall:{i:'📟',n:tr('rules.on_call'),d:tr('rules.the_real_thing_your_pager_has'),x:tr('rules.real_lead_times_real_outages_a_real'),clock:true,chaos:'normal',lead:'real',market:true,money:'normal',gates:'ladder'}, + bgp:{i:'🔥',n:tr('rules.bgp_at_3_a_m'),d:tr('rules.everything_is_on_fire_and_it'),x:tr('rules.more_and_longer_outages_more_ddos'),clock:true,chaos:'spicy',lead:'real',market:true,money:'normal',gates:'ladder'}, + sandbox:{i:'🏖️',n:tr('common.sandbox'),d:tr('rules.a_billion_dollars_every_unlock_your'),x:tr('rules.infinite_money_everything_unlocked_quick'),clock:true,chaos:'none',lead:'quick',market:true,money:'infinite',gates:'open'}, + puzzle:{i:'🧩',n:tr('rules.puzzle'),d:tr('rules.one_small_network_one_tricky_goal'),x:tr('rules.no_clock_no_bills_nothing_breaks'),clock:false,chaos:'none',lead:'quick',market:false,money:'normal',gates:'open'}, }; const NORMAL_PRESETS=['freeze','oncall','bgp']; // How often things break, against the classic game. Spicy outages also last half as long again. @@ -42,7 +42,7 @@ function stretchInc(i){if(rule('chaos')!=='spicy'||!i||!(i.until>S.day)||i.start else if(['crash','power','oops','cleaner','maint','shutdown'].includes(T))f(S.pops[r],'down'); else if(T==='ring')f(S.pops[r],'ringcut');else if(T==='ac')f(S.pops[r],'hot'); else if(T==='transit'||T==='prepend')f(S.transit.find(t=>t.id===r),'down'); - else if((T==='ixloop'||T==='maxpfx')&&E.ixdown)f(E.ixdown,r);else if(T==='fabric'&&E.fab)f(E.fab,r); + else if(T==='ixloop'&&E.ixdown)f(E.ixdown,r);else if(T==='fabric'&&E.fab)f(E.fab,r); else if(T==='lacp'){const [k,...x]=String(r).split(':'),id=x.join(':');f(k==='ix'?E.ixlacp&&E.ixlacp[id]:(k==='t'?S.transit:S.pni).find(o=>o.id===id)?.lacp,'until');} else if(T==='rpki'||T==='hijack')f(E.rpki,'until');else if(T==='leak'||T==='pmtud')f(E[T],'until');else if(T==='krroute'||T==='depeer')f(E,T); else if(T==='ddos')f(ddosAll(S,false).find(a=>a.id===i.atk),'until');} diff --git a/src/game/60-features/80-new-game.js b/src/game/60-features/80-new-game.js index a625c42..0bad8cd 100644 --- a/src/game/60-features/80-new-game.js +++ b/src/game/60-features/80-new-game.js @@ -1,6 +1,6 @@ function newGame(name,home){ S={v:1,name,asn:200000+Math.floor(_rand()*15000),home,day:0,cash:START_CASH, ltv:2,t1v:3,auV:1,ops:opsNew(),achP:{},seen:NETS.map(n=>n.id),spares:{},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:{},pairMet:{}, - done:{},inc:[],ev:{ddosMore:[]},ddosStarts:[],priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubs:[],scrubMode:'always',capDeal:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0,inbox:{items:[],down:{},tiny:{},rep:0,bot:false,log:[],seq:0},hw:{},rules:makeRules('oncall'),charter:'global',chartSet:false,demo:{},seatOff:null,solWon:0}; + done:{},inc:[],ev:{ddosMore:[]},ddosStarts:[],priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubs:[],scrubMode:'always',capDeal:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0,ppol:'open',pdesk:null,pdeskRep:null,hw:{},rules:makeRules('oncall'),charter:'global',chartSet:false,demo:{},seatOff:null,solWon:0}; } diff --git a/src/game/70-rules/20-exchanges.js b/src/game/70-rules/20-exchanges.js index 7a27f83..964a129 100644 --- a/src/game/70-rules/20-exchanges.js +++ b/src/game/70-rules/20-exchanges.js @@ -25,7 +25,7 @@ function ixCap(c){return ixLagF(c)*(S.myIx[c]?myFab(c).g*(myIxLive(c)?1:0):liveC 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); + if(S.peers[id+'@'+c]&&!snub(id,c)&&!(isRemote(c)&&noRemote(id)))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-desk.js b/src/game/70-rules/40-peering-desk.js new file mode 100644 index 0000000..e8369bd --- /dev/null +++ b/src/game/70-rules/40-peering-desk.js @@ -0,0 +1,30 @@ +/* ---------- The peering desk ---------- + Every exchange port brings peering requests. Nobody answers them by hand any more: your peering policy does. + Open accepts everyone, Selective accepts the networks worth peering with and quietly declines the rest, Closed + declines them all. Once a week the NOC log gets one folded line about it. */ +const PPOL=['open','selective','closed'],ppol=()=>(S&&PPOL.includes(S.ppol))?S.ppol:'open'; +const PPOL_N={open:N_('peering_desk.open_to_all'),selective:N_('common.selective'),closed:N_('common.closed')}; +const PPOL_D={open:N_('peering_desk.open_desc'),selective:N_('peering_desk.selective_desc'),closed:N_('peering_desk.closed_desc')}; +// How often someone asks, against Open: a selective or closed network gets fewer requests. +const PDESK_ASK={open:1,selective:0.7,closed:0.5},PDESK_IX=12; +const pdeskNew=w=>({w,a:0,d:0,ix:[]}); +// Who is worth it: a real small network on the exchange, or a newcomer whose PeeringDB is up to date. +const pdeskWant=(p,net,fresh)=>p==='open'||(p==='selective'&&(!!net||fresh)); +function peeringDeskDay(d){const w=Math.floor(d/7);let D=S.pdesk; + // A new week: last week's tally becomes one line in the NOC log. + if(!D||D.w!==w){if(D&&D.w=Math.min(0.9,0.15*ixs.length)*PDESK_ASK[p])return; + const c=pick(ixs),real=ixMembers(c).filter(id=>{const n=NET[id];return !S.peers[id+'@'+c]&&!merged(id)&&n.type!=='t1'&&n.type!=='cdn'&&n.pol!=='paid'&&n.share<=0.006;}); + const net=real.length&&Math.random()<0.4?pick(real):null,fresh=Math.random()>=0.6; + if(!pdeskWant(p,net,fresh)){D.d++;return;} + if(net)S.peers[net+'@'+c]=true;D.a++;if(!D.ix.includes(c)&&D.ix.length4?3:4).map(ixName);if(x.ix.length>4)nm.push(trn('peering_desk.n_more_exchanges',x.ix.length-3)); + let ix;try{ix=new Intl.ListFormat(LANG,{type:'conjunction'}).format(nm);}catch(e){ix=nm.join(', ');} + return x.d?trn('peering_desk.n_new_sessions_at_ix_declined',x.a,{ix,d:x.d,pol}):trn('peering_desk.n_new_sessions_at_ix',x.a,{ix,pol});} +// The policy picker, in the Networks tab. +function pdeskCard(){const p=ppol(),r=S.pdeskRep; + return `
🤝 ${tr('common.peering_policy')}: ${tr(PPOL_N[p])}
${PPOL.map(x=>btn(tr(PPOL_N[x]),'peerPol',{p:x},p===x?'sm':'ghost sm')).join('')}
+

${tr(PPOL_D[p])}

${r&&r.w>=Math.floor(S.day/7)-1&&(r.a||r.d)?`

${esc(pdeskLine(r))}

`:''}
`;} diff --git a/src/game/70-rules/40-peering-inbox.js b/src/game/70-rules/40-peering-inbox.js deleted file mode 100644 index d679f32..0000000 --- a/src/game/70-rules/40-peering-inbox.js +++ /dev/null @@ -1,83 +0,0 @@ -/* ---------- 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_('peering_inbox.open_to_all'),selective:N_('common.selective'),closed:N_('common.closed')},PPOL_D={open:N_('peering_inbox.everyone_who_asks_gets_a_session'),selective:N_('peering_inbox.fewer_requests_and_you_answer_them'),closed:N_('peering_inbox.nobody_asks_and_no_route_servers')}; -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_('peering_inbox.hi_we_would_like_to_peer'),N_('peering_inbox.dear_sir_or_madam_please_peer'),N_('peering_inbox.we_noticed_you_are_at_ix'),N_('peering_inbox.hello_please_find_attached_our'),N_('peering_inbox.peering_request_fifth_attempt_is'),N_('peering_inbox.hey_quick_one_can_you_peer'),N_('peering_inbox.greetings_we_are_a_fast_growing'),N_('peering_inbox.please_configure_sessions_with_us_at')]; -const IBX_AI=[N_('peering_inbox.replied_to_a_peering_request_with'),N_('peering_inbox.signed_you_up_for_a_webinar'),N_('peering_inbox.opened_a_ticket_with_itself_to'),N_('peering_inbox.wrote_a_thousand_word_apology_to'),N_('peering_inbox.updated_your_peeringdb_record_your'),N_('peering_inbox.asked_netchill_s_peering_team_to')]; -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('common.responsive'):r>=-2?tr('common.average'):r>=-6?tr('peering_inbox.mostly_ignores_email'):tr('common.black_hole'); -const ibxOpen=()=>S.inbox?S.inbox.items.length:0,ibxUrgent=()=>S.inbox?S.inbox.items.filter(x=>x.k==='mp').length:0; -const mpDown=(id,c)=>{const t=S.inbox&&S.inbox.down[id+'@'+c];return !!t&&t>S.day;}; -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){if(!rule('inbox'))return;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)&&!merged(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);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}))); - if(ses.length&&Math.random()y.k==='mp'&&y.key===x.key)){ - const lim=pick([10,20,50,100,200,500,1000]),leak=Math.random()<0.3,yrs=1+Math.floor(Math.random()*9); - I.items.push({id:++I.seq,k:'mp',key:x.key,net:x.net,nm:x.nm,asn:x.asn,ix:x.ix,day:d,lim,got:leak?940000+Math.floor(Math.random()*90000):Math.ceil(lim*(1.15+Math.random()*1.6)),leak,yrs}); - // A session that blows its limit is down for at most a few weeks: the other side eventually notices too. - if(x.net){I.down[x.key]=d+20+Math.floor(Math.random()*20);toast(tr('peering_inbox.max_prefix_limit_hit_who_at',{who:esc(ibxWho(x)),ix:esc(ixName(x.ix))}),'bad',[{l:tr('common.inbox'),act:'inbox',args:{}}]);}}} - // unanswered mail: requests go stale and people start asking around about you - for(const x of I.items){if(x.k==='mp')I.rep-=0.05;else if(d-x.day===14)x.bump=1;} - // A max-prefix alert nobody answers resolves itself in the end: the other side raises it, or gives up. - I.items=I.items.filter(x=>x.k!=='mp'||(x.net?(I.down[x.key]||0)>d:d-x.day<=30)); - const old=I.items.filter(x=>x.k==='req'&&d-x.day>30);if(old.length){I.rep-=0.25*old.length;I.items=I.items.filter(x=>!old.includes(x)); - if(old.some(x=>x.net))toast(tr('peering_inbox.who_asked_a_mailing_list_whether',{who:esc(ibxWho(old.find(x=>x.net))),me:esc(S.name)}),'bad',[{l:tr('common.inbox'),act:'inbox',args:{}}]);} - while(I.items.length>INBOX_MAX){const i=I.items.findIndex(x=>x.k==='req');if(i<0)break;I.items.splice(i,1);I.rep-=0.5;} - I.rep=clamp(I.rep,-10,5); - if(I.bot)inboxBot();} -// Answer one item. a: accept | decline | raise | keep. Returns false when the item is gone. -function ibxAnswer(id,a,bot){const I=ibx(),i=I.items.findIndex(x=>x.id===id);if(i<0)return false;const x=I.items[i];I.items.splice(i,1);const who=ibxWho(x),ix=ixName(x.ix); - if(x.k==='req'){if(a==='accept'){if(x.net){if(S.ixp[x.ix]!==undefined)S.peers[x.net+'@'+x.ix]=true;}else if(Object.keys(I.tiny).length<200)I.tiny[x.asn]={nm:x.nm,ix:x.ix,stale:!!x.stale};I.rep+=0.3;}else I.rep+=0.2;} - else if(a==='raise'){delete I.down[x.key];if(x.leak){const n=pick(IBX_LEAKS);S.ev.leak={net:n,until:S.day+4}; - addInc({type:'leak',ref:n,until:S.day+4,msg:tr('peering_inbox.who_at_ix_was_sending_a',{who,ix,net:NET[n].name}),cost:0}); - if(!bot)toast(tr('peering_inbox.that_was_a_route_leak_who',{who:esc(who),n:x.got.toLocaleString()}),'bad');I.rep-=1;} - else{I.rep+=0.3;if(!bot)toast(tr('peering_inbox.session_with_who_is_back_up',{who:esc(who),n:Math.ceil(x.got*1.5).toLocaleString()}),'good');}} - else{const back=S.day+(x.leak?3:10)+Math.floor(Math.random()*(x.leak?8:21));if(x.net)I.down[x.key]=back;I.rep+=x.leak?0.3:0.1; - if(!bot)toast(x.leak?tr('peering_inbox.good_call_it_was_a_route',{who:esc(who)}):tr('peering_inbox.the_session_stays_down_who_will',{who:esc(who)}),x.leak?'good':'');} - I.rep=clamp(I.rep,-10,5);return true;} -// The AI agent clears the inbox every day. It is fast, polite and wrong about a third of the time. -function inboxBot(){const I=ibx();let acc=0,dec=0; - for(const x of I.items.slice()){const oops=Math.random()<0.3; - if(x.k==='req'){const want=!x.stale||!!x.net;const a=(want!==oops)?'accept':'decline';ibxAnswer(x.id,a,true);a==='accept'?acc++:dec++;if(oops&&a==='decline'&&x.net)ibxLog(N_('peering_inbox.declined_who_at_ix_not_a'),{who:ibxWho(x),ix:ixName(x.ix)});} - else{const a=(x.leak!==oops)?'keep':'raise';ibxAnswer(x.id,a,true); - if(a==='raise'&&x.leak)ibxLog(N_('peering_inbox.raised_the_max_prefix_limit_for'),{who:ibxWho(x),ix:ixName(x.ix),n:Math.ceil(x.got*1.5).toLocaleString()}); - else if(a==='keep'&&!x.leak)ibxLog(N_('peering_inbox.kept_who_down_at_ix_for'),{who:ibxWho(x),ix:ixName(x.ix)}); - else ibxLog(a==='raise'?N_('peering_inbox.raised_the_max_prefix_limit_for_7b4b'):N_('peering_inbox.kept_who_down_at_ix_it'),{who:ibxWho(x),ix:ixName(x.ix)});}} - if(acc||dec)ibxLog(N_('peering_inbox.answered_your_mail_a_accepted_d'),{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_('peering_inbox.tidied_up_a_session_it_decided'),{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,mps=items.length-reqs; - const age=x=>{const n=S.day-x.day;return n?trn('peering_inbox.n_day_ago',n):tr('common.today_4203');}; - const pdb=x=>x.stale?trn('peering_inbox.peeringdb_last_updated_n_year_ago',x.yrs):tr('peering_inbox.peeringdb_updated_last_month'); - const card=x=>x.k==='mp'?`
⚠️ ${tr('peering_inbox.max_prefix_limit_hit_who_at_5c56',{who:esc(ibxWho(x)),ix:esc(ixName(x.ix))})}
-
AS${ibxAsn(x)} · ${age(x)}

${tr('peering_inbox.configured_lim_prefixes_received_got',{lim:x.lim.toLocaleString(),got:x.got.toLocaleString()})} ${trn('peering_inbox.their_peeringdb_says_lim_last',x.yrs,{lim:x.lim.toLocaleString()})}

-
${btn(tr('peering_inbox.raise_the_limit'),'inboxAct',{id:x.id,a:'raise'},'sm')}${btn(tr('peering_inbox.keep_it_down'),'inboxAct',{id:x.id,a:'keep'},'ghost sm')}
` - :`
${esc(ibxWho(x))} AS${ibxAsn(x)}${x.bump?` ${tr('common.bumped')}`:''}
${esc(ixName(x.ix))} · ${age(x)} · ${pdb(x)}
-

“${esc(tr(REQ_SAY[x.say]||REQ_SAY[0],{ix:ixName(x.ix)}))}”

${btn(tr('common.accept'),'inboxAct',{id:x.id,a:'accept'},'sm')}${btn(tr('common.decline'),'inboxAct',{id:x.id,a:'decline'},'ghost sm')}
`; - openModal(`
${tr('common.peering_inbox')}

📬 ${trn('peering_inbox.n_unanswered',items.length)}

-

${tr('peering_inbox.every_exchange_port_brings_mail')}

-
${tr('common.your_reputation')}${repName(I.rep)}
-
${tr('common.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('peering_inbox.large_peering_model_is_answering')}
${tr('peering_inbox.price_year_it_never_sleeps_never',{price:fmt$(20e6)})}
- ${I.log.length?`
${I.log.slice(0,8).map(e=>esc(tr('peering_inbox.day_d',{d:e.d})+': '+tr(e.m,e.a))).join('\n')}
`:''}
${btn(tr('peering_inbox.fire_the_ai'),'inboxBot',{on:0},'ghost sm')}
` - :`
🤖 ${tr('peering_inbox.large_peering_model')}
${tr('peering_inbox.an_ai_agent_that_answers_every',{price:fmt$(20e6)})}
${btn(tr('peering_inbox.hire_it_mo_mo',{mo:fmt$(AI_MO)}),'inboxBot',{on:1},'aibtn sm',S.cash`}
- ${reqs>1||mps>1?`
${reqs>1?btn(tr('peering_inbox.accept_all_requests'),'inboxAll',{a:'accept'},'sm')+btn(tr('peering_inbox.decline_all_requests'),'inboxAll',{a:'decline'},'ghost sm'):''}${mps>1?btn(tr('peering_inbox.raise_all_max_prefix_limits'),'inboxRaiseAll',{},'sm'):''}
`:''} - ${items.length?items.slice(0,40).map(card).join(''):`

${Object.keys(S.ixp).length?tr('peering_inbox.inbox_zero_enjoy_it_while_it'):tr('peering_inbox.no_mail_yet_buy_an_ix')}

`}`);} diff --git a/src/game/70-rules/70-sold-out.js b/src/game/70-rules/70-sold-out.js index eda5b0c..6ab07bc 100644 --- a/src/game/70-rules/70-sold-out.js +++ b/src/game/70-rules/70-sold-out.js @@ -16,7 +16,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}; // In the Cogentle Spat, Goggle's peering desk wants eight times the usual traffic first, so cheap Cogentle-only transit really costs you Goggle (playtest). - if(n.pol==='selective'){const need=Math.round((via==='pni'?n.minPni:n.minIx)*confBoost(id)*repMul()*(id==='ggl'&&scnRule('spat')?8:1));return dem>=need?{ok:true}:{ok:false,why:tr('sold_out.wants_need_gbps_of_traffic_from',{need,dem:dem.toFixed(1)})};} + if(n.pol==='selective'){const need=Math.round((via==='pni'?n.minPni:n.minIx)*confBoost(id)*(id==='ggl'&&scnRule('spat')?8:1));return dem>=need?{ok:true}:{ok:false,why:tr('sold_out.wants_need_gbps_of_traffic_from',{need,dem:dem.toFixed(1)})};} if(n.pol==='paid'&&paidFree(n))return via==='pni'?{ok:true,free:true}:{ok:false,why:tr('sold_out.peers_with_you_for_free_now')}; if(n.pol==='paid')return via==='pni'?{ok:true,fee:n.paidFee}:{ok:false,why:n.perG?tr('sold_out.sender_pays_a_paid_pni_only',{fee:fmt$(n.paidFee),g:fmt$(n.perG)}):tr('sold_out.paid_peering_only_over_a_pni')}; if(n.type!=='t1'){if(via!=='pni')return {ok:false,why:tr('sold_out.only_peers_over_pnis_and_only')};const need=Math.round(60*confBoost(id));return dem>=need||isTier2()?{ok:true}:{ok:false,why:tr('sold_out.wants_you_to_be_a_tier',{need,dem:dem.toFixed(1)})};} diff --git a/src/game/80-simulation/30-compute.js b/src/game/80-simulation/30-compute.js index f2b08ba..eba967a 100644 --- a/src/game/80-simulation/30-compute.js +++ b/src/game/80-simulation/30-compute.js @@ -291,7 +291,7 @@ function compute(){ C.pni=S.pni.reduce((a,p)=>a+pniMo(p,R2.usePni[p.id]||0),0); C.caches=S.caches.length*CACHE_MO; C.loans=(S.loans||[]).reduce((a,l)=>a+(BANKS[l.bank].equity?0:l.model==='transit'?Math.round((C.transit||0)*(l.cut||0.3)):l.pay)+loanFees(l),0); - C.extras=(S.cnLic&&S.cnLic.state==='ok'?CN_JV_MO:0)+scrubMo()+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)+(S.inbox&&S.inbox.bot?AI_MO:0)+(S.ops&&S.ops.intern?INTERN_MO:0); + C.extras=(S.cnLic&&S.cnLic.state==='ok'?CN_JV_MO:0)+scrubMo()+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)+(S.ops&&S.ops.intern?INTERN_MO:0); V.eyeballs=0;V.business=0;V.ix=0;V.grant=grantOn(R2)?GRANT_MO:0; C.wholesale=0;C.levy=0;const lev=scnRule('levy');for(const c in S.pops){const sf=sfOf(R2,c),v=R2.cityEye[c]*sf*EYE_RATE*arpuOf(c);V.eyeballs+=v;if(CITY[c].au){if(lev)C.levy+=v*AU_LEVY;else C.wholesale+=v*AU_WHOLESALE;}} const ids=linkIds();for(const b of S.biz){if(capPend(b))continue;const sf=BIZ_T[b.type].fiber?(fiberOk(b,ids)?1:0):BIZ_T[b.type].l2?clamp((R2.l2[b.id]||0)/b.bw,0,1):sfOf(R2,b.city);V.business+=b.bw*b.rate*Math.min(1,sf/0.95);} diff --git a/src/game/80-simulation/50-sanitize.js b/src/game/80-simulation/50-sanitize.js index 6ad5602..71cdda4 100644 --- a/src/game/80-simulation/50-sanitize.js +++ b/src/game/80-simulation/50-sanitize.js @@ -35,12 +35,10 @@ function sanitize(s){ {const H=s.hw&&typeof s.hw==='object'&&!Array.isArray(s.hw)?s.hw:{},o={};const sh=H.shock,lk=H.lock; if(sh&&typeof sh==='object'&&own(HW_SHOCK,sh.k))o.shock={k:sh.k,until:num(sh.until,0),mul:clamp(num(sh.mul,1),1,2)}; if(lk&&typeof lk==='object')o.lock={until:num(lk.until,0),mul:clamp(num(lk.mul,1),1,HW_CAP)};s.hw=o;} - {const I=s.inbox&&typeof s.inbox==='object'&&!Array.isArray(s.inbox)?s.inbox:{},o=v=>v&&typeof v==='object'&&!Array.isArray(v)?v:{},str=(v,n)=>String(v==null?'':v).slice(0,n); - const items=(Array.isArray(I.items)?I.items:[]).filter(x=>x&&typeof x==='object'&&(x.k==='req'||x.k==='mp')&&typeof x.ix==='string'&&isIx(x.ix)&&(x.net===undefined||isNet(x.net))&&(x.net!==undefined||typeof x.nm==='string')).slice(0,INBOX_MAX).map(x=>({id:int(x.id,0,1e9,0),k:x.k,ix:x.ix,net:x.net,nm:x.net?undefined:str(x.nm,40),asn:x.net?undefined:int(x.asn,1,4294967294,64512),day:num(x.day,0),stale:!!x.stale,yrs:int(x.yrs,1,30,1),say:int(x.say,0,REQ_SAY.length-1,0),bump:x.bump?1:undefined,key:x.k==='mp'?str(x.key,80):undefined,lim:x.k==='mp'?int(x.lim,1,1e7,100):undefined,got:x.k==='mp'?int(x.got,1,1e7,100):undefined,leak:x.k==='mp'?!!x.leak:undefined})); - 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,pol:PPOL.includes(I.pol)?I.pol:'open',log,seq:Math.max(int(I.seq,0,1e9,0),...items.map(x=>x.id))};} + // 2.0 replaced the peering inbox with the peering desk: keep the policy, drop the mail, max-prefix state and the AI. + {const I=s.inbox&&typeof s.inbox==='object'&&!Array.isArray(s.inbox)?s.inbox:{},pol=s.ppol!==undefined?s.ppol:I.pol;s.ppol=PPOL.includes(pol)?pol:'open';delete s.inbox; + const wk=(x,rep)=>{if(!x||typeof x!=='object'||Array.isArray(x))return null;const o={w:int(x.w,0,1e7,0),a:int(x.a,0,1e5,0),d:int(x.d,0,1e5,0),ix:[...new Set((Array.isArray(x.ix)?x.ix:[]).filter(isIx))].slice(0,PDESK_IX)};if(rep)o.p=PPOL.includes(x.p)?x.p:'open';return o;}; + s.pdesk=wk(s.pdesk);s.pdeskRep=wk(s.pdeskRep,1);} {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]);} @@ -55,9 +53,9 @@ function sanitize(s){ for(const k of Object.keys(s.confReg))s.confReg[k]=s.confReg[k]==='sp'?'sp':!!s.confReg[k]; if(s.conf){const c=s.conf;if(typeof c!=='object'||!own(REG,c.reg))s.conf=null;else s.conf={until:num(c.until,0),reg:c.reg,name:String(c.name||'').slice(0,40),sp:!!c.sp};} s.capDeal=s.capDeal&&typeof s.capDeal==='object'&&own(CAP_ROUTES,s.capDeal.c)?{at:num(s.capDeal.at,0),c:s.capDeal.c}:null; - s.inc=s.inc.filter(i=>i&&typeof i.type==='string').map(i=>(i.id=sid(i.id),i.until=num(i.until,s.day),i.cost=num(i.cost,0),i.msg=String(i.msg||'').slice(0,400),i.fix=i.fix==null?undefined:String(i.fix).slice(0,60),i)); + s.inc=s.inc.filter(i=>i&&typeof i.type==='string').map(i=>(i.type==='maxpfx'&&(i.type='ixloop'),i.id=sid(i.id),i.until=num(i.until,s.day),i.cost=num(i.cost,0),i.msg=String(i.msg||'').slice(0,400),i.fix=i.fix==null?undefined:String(i.fix).slice(0,60),i)); s.loans=s.loans.filter(l=>l&&own(BANKS,l.bank));for(const l of s.loans){if(l.model!==undefined&&!['balloon','storm','transit','astro'].includes(l.model))delete l.model;for(const k of ['apr0','cut','share'])if(l[k]!==undefined&&!isFinite(+l[k]))delete l[k];if(!Array.isArray(l.covs))l.covs=[];l.covs=l.covs.filter(c=>own(COVS,c));}s.loanOffers=s.loanOffers.filter(l=>l&&own(BANKS,l.bank)); - s.usedNames=[...new Set(s.usedNames.filter(x=>typeof x==='string'))];s.log=s.log.filter(e=>e&&typeof e.t==='string').slice(0,LOG_KEEP).map(e=>{const o=e.o&&typeof e.o==='object'&&LOG_OPEN.includes(e.o.a)?(e.o.a==='bank'||e.o.a==='inbox'?{a:e.o.a}:typeof e.o.v==='string'&&e.o.v.length<=64&&(e.o.a!=='city'||isCity(e.o.v))&&(e.o.a!=='tab'||LOG_TABS.includes(e.o.v))?{a:e.o.a,v:e.o.v}:null):null; + s.usedNames=[...new Set(s.usedNames.filter(x=>typeof x==='string'))];s.log=s.log.filter(e=>e&&typeof e.t==='string').slice(0,LOG_KEEP).map(e=>{const o=e.o&&typeof e.o==='object'&&e.o.a==='inbox'?{a:'tab',v:'nets'}:e&&e.o&&typeof e.o==='object'&&LOG_OPEN.includes(e.o.a)?(e.o.a==='bank'?{a:e.o.a}:typeof e.o.v==='string'&&e.o.v.length<=64&&(e.o.a!=='city'||isCity(e.o.v))&&(e.o.a!=='tab'||LOG_TABS.includes(e.o.v))?{a:e.o.a,v:e.o.v}:null):null; return {id:typeof e.id==='string'&&e.id.length<=40?e.id:uid(),d:num(e.d,0),t:e.t.slice(0,600),h:typeof e.h==='string'?e.h.slice(0,200):'',k:LOG_KINDS.includes(e.k)?e.k:'',at:Number.isFinite(+e.at)?+e.at:0,o,n:int(e.n,1,9999,1)};}); // One scrubbing center became a list (#117): older saves carry theirs over. if(!Array.isArray(s.scrubs))s.scrubs=s.scrubAt&&isCity(s.scrubAt)?[{city:s.scrubAt,tier:s.scrubTier}]:[];delete s.scrubAt;delete s.scrubTier; diff --git a/src/game/85-incidents/20-failures.js b/src/game/85-incidents/20-failures.js index dd13d16..c43655e 100644 --- a/src/game/85-incidents/20-failures.js +++ b/src/game/85-incidents/20-failures.js @@ -20,7 +20,7 @@ function fireFailure(only){ let tot=opts.reduce((a,o)=>a+o[1],0),r=Math.random()*tot,type=opts[0][0]; for(const o of opts){r-=o[1];if(r<=0){type=o[0];break;}} if(only)type=only; - if(type==='funny'){const f=['oops','cleaner','harmless','harmless','harmless','ac'];if(live.length)f.push('fatwave','fatwave','mtu','label','loss','loss');if(lagsN().length)f.push('lacp','lacp');if(R.demand>1)f.push('pmtud');if(Object.keys(S.ixp).length)f.push('maxpfx');if(S.transit.length)f.push('prepend');if(S.day>30)f.push('rpki');if(lit.length)f.push('roadmff');type=pick(f);} + if(type==='funny'){const f=['oops','cleaner','harmless','harmless','harmless','ac'];if(live.length)f.push('fatwave','fatwave','mtu','label','loss','loss');if(lagsN().length)f.push('lacp','lacp');if(R.demand>1)f.push('pmtud');if(S.transit.length)f.push('prepend');if(S.day>30)f.push('rpki');if(lit.length)f.push('roadmff');type=pick(f);} const before=R.served; if(type==='harmless'){const m=pick(HARMLESS);S.stats.incidents++;S.stats.survived++;toast(`${m[0]}
${m[1]}`,'goal');sfx('alert');return;} if(type==='ring'){const cs=Object.keys(S.pops).filter(c=>S.pops[c].site2),c=pick(cs),pp=S.pops[c],dur=2+Math.floor(Math.random()*3);pp.ringcut=S.day+dur; @@ -67,9 +67,6 @@ function fireFailure(only){ pp.down=Math.max(pp.down||0,S.day+1); const msg=type==='cleaner'?tr('failures.the_cleaner_at_dc_unplugged_your',{dc:siteName(c,'a')}):pick([tr('failures.your_on_call_engineer_typed_clear',{city:C}),tr('failures.an_intern_pushed_an_acl_in',{city:C}),tr('failures.someone_ran_reload_on_the_city',{city:C}),tr('failures.a_config_template_rendered_router_id',{city:C}),tr('failures.someone_committed_a_config_in_city',{city:C}),tr('failures.someone_deployed_to_city_on_a',{city:C}),tr('failures.a_cosmic_ray_flipped_a_bit',{city:C}),tr('failures.an_automation_script_in_city_ran',{city:C})]); addInc({type,ref:c,until:pp.down,msg:msg+(type==='oops'&&(pp.routers||1)>=2?' '+tr('failures.automation_pushed_it_to_every_router'):''),cost:1500,fix:type==='oops'?tr('failures.roll_back_the_config'):tr('failures.hide_the_vacuum')}); - }else if(type==='maxpfx'){ - const c=pick(Object.keys(S.ixp));S.ev.ixdown=S.ev.ixdown||{};S.ev.ixdown[c]=Math.max(S.ev.ixdown[c]||0,S.day+1+Math.floor(Math.random()*2)); - addInc({type,ref:c,until:S.ev.ixdown[c],msg:ixNamesCity(c)?tr('failures.a_member_at_ix_leaked_the',{ix:ixName(c)}):tr('failures.a_member_at_ix_leaked_the_5563',{ix:ixName(c),city:CITY[ixCity(c)].name}),cost:0}); }else if(type==='prepend'){ const t=pick(S.transit);t.down=Math.max(t.down||0,S.day+2);addInc({type,ref:t.id,until:t.down,msg:tr('failures.net_fat_fingered_a_route_map',{net:NET[t.net].name,n:30+Math.floor(Math.random()*60),city:CITY[t.city].name}),cost:0}); }else if(type==='rpki'){ @@ -175,8 +172,8 @@ function ddosDone(a){if(!a||a.done)return;a.done=1;if(a.worst===undefined&&S.pop // Flood Season: 3 to 7 days apart as before, shrinking with age, level and gamers only when attacks are spicy. const floodGap=()=>!ddosSpicy()?3+Math.floor(Math.random()*5):Math.max(0.05,(3+Math.random()*5)/(Math.sqrt(1+S.day/180)*(1+gamingCount()/10+Math.max(0,(S.lvl||1)-1)/12))); const FLOOD_WHO=[N_('failures.a_botnet_of_40_000_smart'),N_('failures.every_unpatched_baby_monitor_in'),N_('failures.a_gaming_clan_that_lost_one'),N_('failures.a_fridge_that_achieved_sentience_and'),N_('failures.a_crypto_bro_shorting_your_stock'),N_('failures.a_teenager_with_a_stolen_credit'),N_('failures.a_rival_isp_s_stress_test'),N_('failures.ten_thousand_smart_light_bulbs'),N_('failures.a_printer_just_one_printer_nobody'),N_('failures.a_botnet_run_from_a_cloud'),N_('failures.somebody_who_did_not_like_your'),N_('failures.the_internet_connected_kettles_of_a')]; -function incTitle(t){return {ring:tr('failures.metro_ring_cut'),site:tr('common.site_outage'),cut:tr('common.fiber_cut'),crash:tr('common.router_crash'),power:tr('common.power_outage'),transit:tr('common.upstream_outage'),ixloop:tr('common.ix_meltdown'),leak:tr('common.route_leak'),ddos:tr('common.ddos_attack'),fabric:tr('common.fabric_outage'),depeer:tr('common.peering_spat'),fatwave:tr('failures.fat_fingered_wave'),label:tr('failures.patch_panel_mishap'),mtu:tr('common.mtu_mismatch'),krroute:tr('failures.rerouted_via_hong_kong'),ctrlplane:tr('failures.control_plane_meltdown'),lacp:tr('common.lacp_trouble'),loss:tr('common.packet_loss'),pmtud:tr('failures.pmtud_black_hole'),oops:tr('common.oops'),cleaner:tr('common.vacuum_incident'),maxpfx:tr('failures.max_prefix_meltdown'),prepend:tr('common.prepend_ageddon'),rpki:tr('common.rpki_invalid'),amp:tr('common.amplifier_failure'),roadmff:tr('failures.fat_fingered_roadm'),optic:tr('common.dead_optic'),maint:tr('common.maintenance_window_3a92'),ac:tr('common.cooling_failure'),hijack:tr('common.bgp_hijack'),shutdown:tr('common.government_shutdown'),redsea:tr('failures.geopolitical_cable_cut')}[t]||tr('common.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 incTitle(t){return {ring:tr('failures.metro_ring_cut'),site:tr('common.site_outage'),cut:tr('common.fiber_cut'),crash:tr('common.router_crash'),power:tr('common.power_outage'),transit:tr('common.upstream_outage'),ixloop:tr('common.ix_meltdown'),leak:tr('common.route_leak'),ddos:tr('common.ddos_attack'),fabric:tr('common.fabric_outage'),depeer:tr('common.peering_spat'),fatwave:tr('failures.fat_fingered_wave'),label:tr('failures.patch_panel_mishap'),mtu:tr('common.mtu_mismatch'),krroute:tr('failures.rerouted_via_hong_kong'),ctrlplane:tr('failures.control_plane_meltdown'),lacp:tr('common.lacp_trouble'),loss:tr('common.packet_loss'),pmtud:tr('failures.pmtud_black_hole'),oops:tr('common.oops'),cleaner:tr('common.vacuum_incident'),prepend:tr('common.prepend_ageddon'),rpki:tr('common.rpki_invalid'),amp:tr('common.amplifier_failure'),roadmff:tr('failures.fat_fingered_roadm'),optic:tr('common.dead_optic'),maint:tr('common.maintenance_window_3a92'),ac:tr('common.cooling_failure'),hijack:tr('common.bgp_hijack'),shutdown:tr('common.government_shutdown'),redsea:tr('failures.geopolitical_cable_cut')}[t]||tr('common.incident');} +const LINKCUT_TR=['cut','redsea'],LINKCUT_ID=['fatwave','label'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop'],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. function clearInc(i){ diff --git a/src/game/88-days/10-day-tick.js b/src/game/88-days/10-day-tick.js index 84e00f7..59ed88c 100644 --- a/src/game/88-days/10-day-tick.js +++ b/src/game/88-days/10-day-tick.js @@ -3,7 +3,7 @@ function dayTick(){ if(!S||S.lost||!rule('clock'))return; // no clock (puzzles): no days, no bills, nothing fires S.day++; const d=S.day; - dkTick(d);ixPriceWar(d);inboxDay(d);pniDay(d);mergerDay(d); + dkTick(d);ixPriceWar(d);peeringDeskDay(d);pniDay(d);mergerDay(d); if(!S.phpDone&&d>45&&Math.random()<1/400)elephant(); if(R&&R.teMoved)S.stats.teMax=Math.max(S.stats.teMax||0,R.teMoved); {const t1=!!S.won&&isTier1();if(S.t1Now&&!t1)toast(tr('day_tick.you_are_no_longer_tier_1',{why:t1Why()}),'bad');S.t1Now=t1;} diff --git a/src/game/90-actions/10-interface.js b/src/game/90-actions/10-interface.js index 2efcb05..f11bd8f 100644 --- a/src/game/90-actions/10-interface.js +++ b/src/game/90-actions/10-interface.js @@ -43,7 +43,7 @@ const ACT={ if(o.a==='city'&&isCity(o.v)){ACT.focusCity({city:o.v});return;} if(o.a==='link'){if(S.links.some(l=>l.id===o.v)){ACT.selLink({id:o.v});return;}toast(tr('interface.that_link_is_gone_it_was'),'');return;} if(o.a==='cust'){if(S.biz.some(b=>b.id===o.v)){ACT.custGo({id:o.v});return;}toast(tr('interface.that_customer_is_gone_the_contract'),'');return;} - if(o.a==='bank'){ACT.bank({});return;}if(o.a==='inbox'){ACT.inbox({});return;}if(o.a==='tab'&&LOG_TABS.includes(o.v))ACT.leftTab({t:o.v});}, + if(o.a==='bank'){ACT.bank({});return;}if(o.a==='tab'&&LOG_TABS.includes(o.v))ACT.leftTab({t:o.v});}, logAll:()=>{UI.logAll=!UI.logAll;renderLeft();}, focusCity:({city})=>{selectCity(city);const C=CITY[city];cam.x=C.x;cam.y=C.y;cam.z=Math.max(cam.z,1.2);if(innerWidth<760)UI.leftOpen=false;renderLeft();}, selLink:({id})=>selectLink(id), diff --git a/src/game/90-actions/40-sites-peering-caches.js b/src/game/90-actions/40-sites-peering-caches.js index cf4da86..ddc3927 100644 --- a/src/game/90-actions/40-sites-peering-caches.js +++ b/src/game/90-actions/40-sites-peering-caches.js @@ -22,13 +22,7 @@ Object.assign(ACT,{ pniChase:({id})=>{const p=S.pni.find(x=>x.id===id);if(!p||(pniOn(p)&&!p.up))return;const r=Math.random(); if(r<0.15){if(p.up)p.up.ready=Math.max(S.day+1,p.up.ready-30);else p.ready=Math.max(S.day+1,p.ready-30);toast(tr('sites_peering_caches.your_account_manager_found_the_order'),'good');} else toast(pick([tr('sites_peering_caches.it_is_with_the_provisioning_team'),tr('sites_peering_caches.we_are_waiting_on_the_colo'),tr('sites_peering_caches.your_ticket_was_merged_into_another'),tr('sites_peering_caches.could_you_resend_the_loa_you'),tr('sites_peering_caches.your_account_manager_is_on_paternity')]));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('sites_peering_caches.raised_n_max_prefix_limits_one',leaks,{n:mp.length,k:leaks}):tr('sites_peering_caches.raised_n_max_prefix_limits_all',{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_('sites_peering_caches.hello_i_am_large_peering_model'),{});toast(tr('sites_peering_caches.large_peering_model_is_hired_your',{price:fmt$(20e6)}),'good');}else{I.bot=false;toast(tr('sites_peering_caches.the_ai_is_gone_it_left'));}after();inboxModal();}, + peerPol:({p})=>{if(!PPOL.includes(p))return;S.ppol=p;after();}, 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();}, cache:({city,net})=>{const n=NET[net];if(!n||!n.cache||!S.pops[city])return;if((R.demTo[net]||0)x.city===city&&x.net===net),nb=hv.filter(x=>x.site==='b').length;S.caches.push({id:uid(),city,net,site:S.pops[city].site2&&nb``; const h=(rule('clock')?``+ ``:'')+ - (()=>{const P=scnProg();return tab('goals','🎯',tr('common.goals'),P&&!S.scn.done&&!S.scn.failed?`${Math.round(P.f*100)}%`:`${ndone}/${GOALS.length}`);})()+(()=>{const u=custStats().unhappy;return u?tab('deals','💼',tr('common.deals'),u,true):tab('deals','💼',tr('common.deals'),S.offers.length||'');})()+tab('noc','🚨','NOC',S.inc.length||(UI.left==='noc'&&UI.leftOpen?'':logUnread())||'',S.inc.length>0)+tab('nets','🌐',tr('common.networks'),ibxOpen()||'',ibxUrgent()>0); + (()=>{const P=scnProg();return tab('goals','🎯',tr('common.goals'),P&&!S.scn.done&&!S.scn.failed?`${Math.round(P.f*100)}%`:`${ndone}/${GOALS.length}`);})()+(()=>{const u=custStats().unhappy;return u?tab('deals','💼',tr('common.deals'),u,true):tab('deals','💼',tr('common.deals'),S.offers.length||'');})()+tab('noc','🚨','NOC',S.inc.length||(UI.left==='noc'&&UI.leftOpen?'':logUnread())||'',S.inc.length>0)+tab('nets','🌐',tr('common.networks'),''); if(h!==UI._tb){UI._tb=h;tb.innerHTML=h;} document.body.classList.toggle('sheet-open',!!(UI.sel||UI.leftOpen));} function haptic(ms){if(UI.muted)return;try{navigator.vibrate&&navigator.vibrate(ms||12);}catch(e){}} diff --git a/src/game/93-ui/40-hud-and-panels.js b/src/game/93-ui/40-hud-and-panels.js index c2be442..066905c 100644 --- a/src/game/93-ui/40-hud-and-panels.js +++ b/src/game/93-ui/40-hud-and-panels.js @@ -31,7 +31,7 @@ function renderLeft(){checkLayer(); renderTabbar(); if(!S||pzOn()){L.hidden=true;return;}L.hidden=false; const ndone=GOALS.filter(g=>S.done[g.id]!==undefined).length; - const tabs=[['goals',`${tr('common.goals')}${ndone}/${GOALS.length}`],['deals',`${tr('common.deals')}${S.offers.length?`${S.offers.length}`:''}`],['noc',`NOC${S.inc.length?`${S.inc.length}`:''}`],['nets',`${tr('common.networks')}${ibxOpen()?`${ibxOpen()}`:''}`]]; + const tabs=[['goals',`${tr('common.goals')}${ndone}/${GOALS.length}`],['deals',`${tr('common.deals')}${S.offers.length?`${S.offers.length}`:''}`],['noc',`NOC${S.inc.length?`${S.inc.length}`:''}`],['nets',tr('common.networks')]]; $('leftTabs').innerHTML=tabs.map(([k,l])=>``).join('')+(innerWidth<760?``:''); let h=''; if(UI.left==='goals'){ @@ -72,7 +72,7 @@ function renderLeft(){checkLayer(); if(!S.inc.length&&!hot.length&&!hotR.length&&!slow.length)h+=`

${tr('hud_and_panels.all_systems_green_enjoy_it_while')}

`; h+=`
${tr('hud_and_panels.incidents_so_far')}${S.stats.incidents}
${tr('hud_and_panels.survived_with_no_impact')}${S.stats.survived}
`; }else{ - if(rule('inbox')&&(Object.keys(S.ixp).length||ibxOpen()||(S.inbox&&S.inbox.bot))){const n=ibxOpen(),u=ibxUrgent();h+=`
📬 ${tr('common.peering_inbox')} ${n?`${n}`:''}
${S.inbox&&S.inbox.bot?tr('hud_and_panels.large_peering_model_is_on_it'):u?trn('hud_and_panels.n_session_is_down_on_its',u):n?trn('hud_and_panels.n_message_waiting_for_an_answer',n):tr('common.inbox_zero')}
${btn(tr('common.open_inbox'),'inbox',{},'sm')}
`;} + if(Object.keys(S.ixp).length||ppol()!=='open')h+=pdeskCard(); h+=`

${tr('hud_and_panels.every_network_on_the_map_traffic')}

`; {const nc=conns().length;if(nc)h+=`
${btn(tr('hud_and_panels.all_connections_n',{n:nc}),'connOpen',{},'pink sm')}
`;} const where=netWhereIdx(),tl=NETS.filter(n=>n.tail),tlOn=tl.filter(n=>where(n.id).some(x=>x[2]==='ix')).length; diff --git a/src/game/93-ui/55-utilities.js b/src/game/93-ui/55-utilities.js index 3398392..9eb55b0 100644 --- a/src/game/93-ui/55-utilities.js +++ b/src/game/93-ui/55-utilities.js @@ -23,7 +23,7 @@ function utilitiesModal(city,message){if(!S)return;const cities=Object.keys(S.po

${tr('utilities.ix_peering')}

${tr('utilities.peering_note')}

${btn(tr('utilities.join_route_servers',{n:rs}),'utilityRouteServers',{city},'pink',!rs)}${btn(tr('utilities.request_all',{n}),'utilityPeers',{city},'',!n)}

${tr('utilities.route_server_note')}

- ${ppol()!=='open'?`

${tr('link_panels.off_while_your_peering_policy_is',{pol:tr(PPOL_N[ppol()])})}

${btn(tr('common.peering_policy'),'inbox',{},'ghost sm')}`:''} + ${ppol()!=='open'?`

${tr('link_panels.off_while_your_peering_policy_is',{pol:tr(PPOL_N[ppol()])})}

${btn(tr('common.peering_policy'),'leftTab',{t:'nets'},'ghost sm')}`:''} ${rows.map(r=>`
${esc(ixName(r.ix))} · ${tr('utilities.peer_counts',{ready:r.requests.length,existing:r.existing,blocked:r.blocked.length})} ${r.blocked.map(b=>`

${esc(NET[b.id].name)}: ${esc(b.why)}

`).join('')}
`).join('')}
${cities.length?`
${btn(tr('utilities.view_pop'),'utilityPick',{},'sm')}
${utilityKitHtml(city,true)}`:''}`); diff --git a/src/game/93-ui/57-ops-panel.js b/src/game/93-ui/57-ops-panel.js index 711c913..e63fd93 100644 --- a/src/game/93-ui/57-ops-panel.js +++ b/src/game/93-ui/57-ops-panel.js @@ -23,8 +23,7 @@ function opsModal(){if(!S)return;const hired=opsHired();let h=`
${tr(I.n)}
${tr('ops.salary',{price:fmt$(INTERN_MO),d:dateStr(O.hired)})}
${btn(UI.confirm==='opsFire'?tr('ops.really_fire'):tr('ops.fire'),'opsFire',{},'ghost sm')}

${esc(opsMood())}

${opsReportHtml()} - ${O.log.length?`
${O.log.slice(0,6).map(e=>esc(tr('peering_inbox.day_d',{d:e.d})+': '+opsEntry(e))).join('\n')}
`:''} -

${ibx().bot?tr('ops.lpm_on',{name:opsName()}):tr('ops.lpm_off',{name:opsName()})}

+ ${O.log.length?`
${O.log.slice(0,6).map(e=>esc(tr('ops.day_d',{d:e.d})+': '+opsEntry(e))).join('\n')}
`:''}
${btn(`${tr('ops.floor')}: ${O.floor?fmt$(O.floor):tr('ops.no_cap')}`,'opsFloor',{},'ghost sm')}
`; h+=`

${tr('ops.how_it_works',{name:opsName()})}

`+OPS.map(opsOrderHtml).join(''); // Per POP: switch single orders off where the player wants to decide by hand. diff --git a/src/game/95-modals/20-notifications.js b/src/game/95-modals/20-notifications.js index 6062ebb..d0f530a 100644 --- a/src/game/95-modals/20-notifications.js +++ b/src/game/95-modals/20-notifications.js @@ -1,9 +1,9 @@ /* ---------- notifications: the NOC keeps the last ten minutes, readable and openable ---------- */ -const LOG_KEEP=60,LOG_MS=10*60*1000,LOG_KINDS=['','good','bad','goal'],LOG_OPEN=['city','link','cust','bank','tab','inbox'],LOG_TABS=['goals','deals','noc','nets']; +const LOG_KEEP=60,LOG_MS=10*60*1000,LOG_KINDS=['','good','bad','goal'],LOG_OPEN=['city','link','cust','bank','tab'],LOG_TABS=['goals','deals','noc','nets']; // What a notification is about, from the button it came with: the same place its own button would take you. function openOf(actions){for(const a of actions||[]){const g=a.args||{}; if(a.act==='focusCity'&&isCity(g.city))return {a:'city',v:g.city};if(a.act==='selLink'&&g.id)return {a:'link',v:String(g.id)}; - if(a.act==='custGo'&&g.id)return {a:'cust',v:String(g.id)};if(a.act==='bank')return {a:'bank'};if(a.act==='inbox')return {a:'inbox'};if(a.act==='leftTab'&&LOG_TABS.includes(g.t))return {a:'tab',v:g.t};}return null;} + if(a.act==='custGo'&&g.id)return {a:'cust',v:String(g.id)};if(a.act==='bank')return {a:'bank'};if(a.act==='leftTab'&&LOG_TABS.includes(g.t))return {a:'tab',v:g.t};}return null;} // Otherwise from the text: a link between two of your cities it names, or the first of your cities it names. function openFromText(t){const cs=Object.keys(S.pops).map(c=>[c,t.indexOf(CITY[c].name)]).filter(([,i])=>i>=0).sort((a,b)=>a[1]-b[1]).map(([c])=>c); if(cs.length>=2){const l=S.links.find(l=>(l.a===cs[0]&&l.b===cs[1])||(l.a===cs[1]&&l.b===cs[0]));if(l)return {a:'link',v:l.id};}return cs.length?{a:'city',v:cs[0]}:null;} diff --git a/src/game/95-modals/45-slots.js b/src/game/95-modals/45-slots.js index f83693d..0e060c0 100644 --- a/src/game/95-modals/45-slots.js +++ b/src/game/95-modals/45-slots.js @@ -1,6 +1,6 @@ /* "Your networks" on the title screen: drawn from the index alone, so it stays instant however big the saves are. */ function slotAgo(t){const m=Math.max(0,Math.round((Date.now()-t)/60000)); - return m<1?tr('slots.just_now'):m<60?trn('notifications.n_min_ago',m):m<1440?trn('slots.n_h_ago',Math.round(m/60)):trn('peering_inbox.n_day_ago',Math.round(m/1440));} + return m<1?tr('slots.just_now'):m<60?trn('notifications.n_min_ago',m):m<1440?trn('slots.n_h_ago',Math.round(m/60)):trn('slots.n_day_ago',Math.round(m/1440));} const slotIcon=e=>e.broken?'🩹':e.mode==='scenario'?'🏆':e.mode==='sandbox'?'🏖️':(PRESETS[e.preset]||PRESETS.oncall).i; // The network to continue: the most recent one that is not open in another window (or damaged). function slotTop(list){return slotByAt(list).find(e=>!e.broken&&!slotBusy(e.id))||null;} diff --git a/src/game/95-modals/60-help.js b/src/game/95-modals/60-help.js index 76899dc..4f77859 100644 --- a/src/game/95-modals/60-help.js +++ b/src/game/95-modals/60-help.js @@ -12,11 +12,11 @@ function showHelp(){
${tr('help.pni_lead_times')}
${tr('help.a_cross_connect_with_a_small')}
${tr('common.supply_chain')}
${tr('help.routers_optics_and_new_builds_get')}
${tr('common.backhaul_latency')}
${tr('help.users_feel_the_round_trip_to')}
-
${tr('common.peering_inbox')}
${tr('help.every_ix_port_brings_peering')}
+
${tr('common.peering_policy')}
${tr('help.every_ix_port_brings_requests')}
${tr('common.embedded_cache')}
${tr('help.a_cdn_s_server_in_your')}
DE-KICKS
${tr('help.the_group_behind_several_big')}
${tr('common.remote_peering')}
${tr('help.reach_an_ix_over_a_fabric')}
${tr('common.peering_policy')}
${tr('help.open_peers_with_anyone_selective')}
${tr('common.waves')}
${tr('help.your_fiber_links_are_leased_waves')}
${tr('common.95th_percentile')}
${tr('help.transit_bills_sample_your_usage')}
${tr('common.routers')}
${tr('help.each_pop_s_router_model_caps')}
${tr('common.dark_fiber')}
${tr('help.lease_an_iru_or_build_your')}
${tr('common.subsea_cables')}
${tr('help.subsea_waves_can_only_follow_cable')}
${tr('common.latency')}
${tr('help.every_link_has_latency_high')}
${tr('common.noc_dashboard')}
${tr('help.the_chart_button_at_the_top')}
${tr('common.asia')}
${tr('help.a_weird_underserved_market_transit')}
${tr('common.russia')}
${tr('help.moscow_needs_a_mandatory_government')}
${tr('help.events_chains_and_wholesale')}
${tr('help.event_networks_a_final_a_festival')}
${tr('common.bank')}
${tr('help.tap_your_cash_to_open_the')}
${tr('common.lags')}
${tr('help.out_of_port_speed_bundle_up')}
${tr('common.traffic_engineering')}
${tr('help.tap_a_link_to_see_which')}
${tr('common.china')}
${tr('help.mainland_china_needs_a_license_and')}
${tr('common.weird_requirements')}
${tr('help.some_customers_come_with_conditions')}
${tr('common.customer_levels')}
${tr('help.as_your_peak_traffic_and_footprint')}
${tr('help.l2vpn_ddos_protection')}
${tr('help.businesses_may_want_a_private')}
${tr('common.scrubbing_centers')}
${tr('help.build_one_in_as_many_pops')}
${tr('common.nni_fabrics')}
${tr('help.megapork_pocketfabric_and')}
-
${tr('common.conferences')}
${tr('help.nanog_ripe_denog_and_friends_come')}
${tr('common.modes')}
${tr('help.one_game_four_doors_puzzles_are')}
${tr('common.traceroute')}
${tr('help.tap_traceroute_on_any_of_your')}
${tr('common.badges')}
${tr('help.below_your_goals_sits_a_wall')}
${tr('common.the_giants')}
${tr('help.at_customer_level_3_and_4')}
RouteScript
${tr('help.once_auto_te_is_installed_you')}
Auto-TE
${tr('help.traffic_follows_the_shortest_path_by')}
${tr('common.metro_diversity')}
${tr('help.a_pop_is_one_building_until')}
${tr('common.wave_markets')}
${tr('help.what_a_wave_costs_depends_on')}
${tr('common.regional_quirks')}
${tr('help.in_the_gulf_saudi_pops_need')}
${tr('common.boot_times')}
${tr('help.some_routers_take_forever_to_boot')}
${tr('common.failures')}
${tr('help.things_break_all_the_time_fiber')}
+
${tr('common.conferences')}
${tr('help.nanog_ripe_denog_and_friends_come')}
${tr('common.modes')}
${tr('help.one_game_four_doors_and_the')}
${tr('common.traceroute')}
${tr('help.tap_traceroute_on_any_of_your')}
${tr('common.badges')}
${tr('help.below_your_goals_sits_a_wall')}
${tr('common.the_giants')}
${tr('help.at_customer_level_3_and_4')}
RouteScript
${tr('help.once_auto_te_is_installed_you')}
Auto-TE
${tr('help.traffic_follows_the_shortest_path_by')}
${tr('common.metro_diversity')}
${tr('help.a_pop_is_one_building_until')}
${tr('common.wave_markets')}
${tr('help.what_a_wave_costs_depends_on')}
${tr('common.regional_quirks')}
${tr('help.in_the_gulf_saudi_pops_need')}
${tr('common.boot_times')}
${tr('help.some_routers_take_forever_to_boot')}
${tr('common.failures')}
${tr('help.things_break_all_the_time_fiber')}
RouteScript
${tr('help.rules_for_your_auto_te_controller')}

${tr('help.want_to_know_how_it_really')}

${plugHtml(true)}${chatHtml()}${issueHtml()}
${btn(UI.started?tr('common.back_to_the_map'):tr('common.got_it'),'helpClose',{},'big')}${RELEASE_NOTES.length?btn(tr('common.what_s_new_in_v',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}${UI.started&&S&&!S.lost?btn(tr('common.start_a_new_network'),'resetAsk',{},'ghost sm'):''}
${UI.started&&S&&!S.lost?btn(tr('common.export_save'),'exportSave',{},'ghost sm'):''}${btn(tr('common.import_a_save'),'importPick',{},'ghost sm')}${btn(tr('common.settings'),'settings',{},'ghost sm')}
`); } diff --git a/src/i18n/en.js b/src/i18n/en.js index d273e23..223c014 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -808,7 +808,6 @@ "common.aug":"Aug", "common.auto":"Auto", "common.auto_enrolled":"auto-enrolled", -"common.average":"Average", "common.avoid":"Avoid", "common.back":"Back", "common.back_to_the_map":"Back to the map", @@ -824,7 +823,6 @@ "common.bgp_hijack":"BGP hijack", "common.bgp_sessions":"BGP sessions", "common.big_league":"Big league", -"common.black_hole":"Black hole", "common.blitz":"Blitz", "common.boot_time":"Boot time", "common.boot_times":"Boot times", @@ -832,7 +830,6 @@ "common.box_6ee3":"− box", "common.build_time":"Build time", "common.building":"building", -"common.bumped":"bumped", "common.bunker_two":"Bunker Two", "common.busiest_links":"Busiest links", "common.business_customers":"Business customers", @@ -994,8 +991,6 @@ "common.import_a_save":"Import a save", "common.in_progress":"in progress", "common.in_use":"In use", -"common.inbox":"Inbox", -"common.inbox_zero":"Inbox zero.", "common.incident":"Incident", "common.incidents":"Incidents", "common.incidents_survived":"Incidents survived", @@ -1123,7 +1118,6 @@ "common.oops":"Oops", "common.open":"Open", "common.open_bank":"Open bank", -"common.open_inbox":"Open inbox", "common.open_infra":"Open Infra", "common.open_lease":"Open lease", "common.open_noc":"Open NOC", @@ -1148,7 +1142,6 @@ "common.peered_ce2f":"Peered ✓", "common.peering":"Peering", "common.peering_first":"Peering First", -"common.peering_inbox":"Peering inbox", "common.peering_policy":"Peering policy", "common.peering_ratio":"Peering ratio", "common.peering_spat":"Peering spat", @@ -1197,7 +1190,6 @@ "common.remove_port":"Remove port", "common.remove_script":"Remove script", "common.request":"Request", -"common.responsive":"Responsive", "common.resume":"Resume", "common.retention_offer":"Retention offer", "common.revenue":"Revenue", @@ -1303,7 +1295,6 @@ "common.to":"To", "common.toaster_wrangler":"Toaster Wrangler", "common.today":"Today", -"common.today_4203":"today", "common.toggle_sound":"Toggle sound", "common.too_far_for_this_cable":"too far for this cable", "common.traceroute":"Traceroute", @@ -1365,7 +1356,6 @@ "common.your_network":"Your network", "common.your_pop":"Your POP", "common.your_pops":"Your POPs", -"common.your_reputation":"Your reputation", "common.zombie_route":"Zombie route", "compute.attack_hauled_to_scrubbing_in_city":"Attack hauled to scrubbing in {city}", "compute.courtesy_route_to_new_networks":"Courtesy route to new networks", @@ -1612,8 +1602,6 @@ "failures.a_kilometre_of_copper_went_missing":"A kilometre of “copper” went missing from your {a}–{b} trench. It was your fiber. The scrap yard sent it back with a note.", "failures.a_landslide_in_the_andes_buried":"A landslide in the Andes buried your {a}–{b} fiber.", "failures.a_llama_herd_trampled_the_fiber":"A llama herd trampled the fiber marker on {a}–{b}. Then a backhoe found the fiber.", -"failures.a_member_at_ix_leaked_the":"A member at {ix} leaked the full routing table into the route server. Max-prefix limits tripped everywhere. Your peering there is down.", -"failures.a_member_at_ix_leaked_the_5563":"A member at {ix} leaked the full routing table into the route server. Max-prefix limits tripped everywhere. Your peering there, in {city}, is down.", "failures.a_new_tech_in_a_tidied":"A new tech in {a} “tidied up” the cable mess. Your {a}–{b} link was part of the mess.", "failures.a_new_tech_in_city_used":"A new tech in {city} used Vegemite as thermal paste. It conducts flavour, not heat, and your router cooked.", "failures.a_optic_on_a_b_overheated":"A {optic} on {a}–{b} overheated and is now a very expensive keychain.", @@ -1680,7 +1668,6 @@ "failures.load_shedding_stage_n_in_city":"Load shedding stage {n} in {city}, and you have no generator. Buy one: here it is not optional.", "failures.load_shedding_took_out_site_in":"Load shedding took out {site} in {city}. {other} kept going, so the POP runs at half capacity. Anything plugged in only at the dark site is offline.", "failures.magpie_swooping_season_the_field":"Magpie swooping season: the field techs on {a}–{b} will not leave the van, and your cut stays cut.", -"failures.max_prefix_meltdown":"Max-prefix meltdown", "failures.metro_ring_cut":"Metro ring cut", "failures.microbursts_on_a_b_overflow_shallow":"Microbursts on {a}–{b} overflow shallow router buffers: 0.5% loss at peak, and every video call notices.", "failures.microbursts_on_a_b_your_deep":"Microbursts on {a}–{b}.
Your deep-buffer routers soaked them up. Nobody noticed.", @@ -1795,11 +1782,8 @@ "fiber_modals.your_pop_needs_a_fabric_port":"Your POP · needs a fabric port there", "game_and_settings.delete_and_start_over":"Delete and start over", "game_and_settings.export_save_download_a_file":"Export save download a file", -"game_and_settings.import_a_save_from_a_file":"Import a save from a file", "game_and_settings.import_failed_that_save_is_damaged":"Import failed.
That save is damaged and could not be loaded. Your current game is untouched.", "game_and_settings.name_and_everything_it_owns_will":"{name} and everything it owns will be deleted. This cannot be undone.", -"game_and_settings.scenarios_amp_weekly_challenge":"Scenarios & weekly challenge", -"game_and_settings.share_your_network_image_card":"Share your network image card", "game_and_settings.start_a_new_network":"Start a new network?", "game_and_settings.welcome_back_name_imported_and_saved":"Welcome back, {name}.
Imported and saved on this device.", "game_and_settings.your_game_saves_itself_every_few":"Your game saves itself every few seconds on this device.", @@ -1870,7 +1854,7 @@ "help.each_pop_s_router_model_caps":"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.", "help.event_networks_a_final_a_festival":"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.", "help.events_chains_and_wholesale":"Events, chains and wholesale", -"help.every_ix_port_brings_peering":"Every IX port brings peering requests and max-prefix alerts, in the Networks tab. A session that blows past its limit is down until you look: raise the limit for growth, keep it down for a leak. Ignore your mail and selective networks get pickier.", +"help.every_ix_port_brings_requests":"Every IX port brings peering requests, and your peering policy in the Networks tab answers them: Open accepts everyone, Selective accepts the networks worth peering with and quietly declines the rest, Closed declines them all. Once a week the NOC log sums it up.", "help.every_link_has_latency_high":"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.", "help.home_broadband_users_they_mostly":"Home broadband users. They mostly download from CDNs and pay you per Gbps you deliver. Serve them well and they multiply.", "help.how_the_internet_works_here":"How the internet works here", @@ -1884,7 +1868,7 @@ "help.name_as_asn_is_transit_free":"{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.", "help.nanog_ripe_denog_and_friends_come":"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.", "help.once_auto_te_is_installed_you":"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.", -"help.one_game_four_doors_puzzles_are":"One game, four doors, and the rules are picked when a network starts and locked after that. Puzzles are small knots to untie, with no clock. Sandbox gives you a billion dollars, every unlock (your own subsea cable included) and as much chaos as you pick, but no badges. Normal comes three ways: Change Freeze (few outages, deliveries in days, no inbox or shortages), On-call (the classic game) and BGP at 3 a.m. (more and longer outages, more DDoS). 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.", +"help.one_game_four_doors_and_the":"One game, four doors, and the rules are picked when a network starts and locked after that. Puzzles are small knots to untie, with no clock. Sandbox gives you a billion dollars, every unlock (your own subsea cable included) and as much chaos as you pick, but no badges. Normal comes three ways: Change Freeze (few outages, deliveries in days, no shortages), On-call (the classic game) and BGP at 3 a.m. (more and longer outages, more DDoS). 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.", "help.open_peers_with_anyone_selective":"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.", "help.out_of_port_speed_bundle_up":"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.", "help.pni_lead_times":"PNI lead times", @@ -2009,15 +1993,12 @@ "hud_and_panels.has_errors_not_running":"has errors, not running", "hud_and_panels.incidents_so_far":"Incidents so far", "hud_and_panels.install_auto_te_cost_mo_mo":"Install Auto-TE {cost} + {mo}/mo", -"hud_and_panels.large_peering_model_is_on_it":"Large Peering Model is on it.", "hud_and_panels.lv_n":"Lv {n}", "hud_and_panels.n_incident":{"one":"{n} incident","other":"{n} incidents"}, -"hud_and_panels.n_message_waiting_for_an_answer":{"one":"{n} message waiting for an answer.","other":"{n} messages waiting for an answer."}, "hud_and_panels.n_more_networks":{"one":"+{n} more network","other":"+{n} more networks"}, "hud_and_panels.n_networks_d_days_left":"{n} networks · {d} days left", "hud_and_panels.n_new_notification":{"one":"{n} new notification","other":"{n} new notifications"}, "hud_and_panels.n_rules_live":"{n} rules live", -"hud_and_panels.n_session_is_down_on_its":{"one":"{n} session is down on its max-prefix limit.","other":"{n} sessions are down on their max-prefix limit."}, "hud_and_panels.n_small_networks":"{n} small networks", "hud_and_panels.n_special_requirement":{"one":"{n} special requirement","other":"{n} special requirements"}, "hud_and_panels.n_unhappy_customer_price_mo_at":{"one":"{n} unhappy customer, {price}/mo at risk","other":"{n} unhappy customers, {price}/mo at risk"}, @@ -2593,6 +2574,7 @@ "ops.by_hand_note":"For when you want it all done right now: every peer at every exchange, a redundancy kit, PNIs with everyone.", "ops.caches_rent":"Free to rack, but each box costs {price}/mo in space and power.", "ops.cheapest":"Cheapest", +"ops.day_d":"Day {d}", "ops.ff_desc":"labelled a port in {city} “TODO: fix later (do not fix)”", "ops.ff_hostname":"renamed the router in {city} to router-final-FINAL-v2", "ops.ff_lag":"added one transit LAG member too many in {city}. It works, so it stays.", @@ -2631,8 +2613,6 @@ "ops.l_snag":{"one":"got stuck on {where} and paused it until you have a look","other":"got stuck on {n} orders ({where}) and paused them until you have a look"}, "ops.l_transit":{"one":"topped up transit in {where}","other":"topped up transit {n} times ({where})"}, "ops.locked":"The NOC hires interns from customer level {lv}.", -"ops.lpm_off":"The peering inbox is still yours. Hire the Large Peering Model for that; {name} does not do email.", -"ops.lpm_on":"The Large Peering Model answers the peering inbox. {name} keeps out of its way.", "ops.mood_annie":"Annie answered three questions before you asked them, from whichever desk was closest.", "ops.mood_broke":"{name} has a shopping list ready for when next month's budget comes in.", "ops.mood_busy":"{name} has had a busy week and is on their third energy drink.", @@ -2745,61 +2725,14 @@ "page.series_of_tubes_build_the_internet":"Series of Tubes: build the internet, one tube at a time", "page.world_map_of_your_network":"World map of your network", "page.x":"", -"peering_inbox.accept_all_requests":"Accept all requests", -"peering_inbox.an_ai_agent_that_answers_every":"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.", -"peering_inbox.answered_your_mail_a_accepted_d":"Answered your mail: {a} accepted, {d} declined.", -"peering_inbox.asked_netchill_s_peering_team_to":"Asked NetChill’s peering team to “please provide more Netchill”.", -"peering_inbox.configured_lim_prefixes_received_got":"Configured: {lim} prefixes. Received: {got}.", -"peering_inbox.day_d":"Day {d}", -"peering_inbox.dear_sir_or_madam_please_peer":"Dear Sir or Madam, please peer. We have three prefixes and very big plans.", -"peering_inbox.decline_all_requests":"Decline all requests", -"peering_inbox.declined_who_at_ix_not_a":"Declined {who} at {ix}: “not a strategic fit”. They were.", -"peering_inbox.every_exchange_port_brings_mail":"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.", -"peering_inbox.everyone_who_asks_gets_a_session":"Everyone who asks gets a session, and the route servers work. Lots of tiny peers, and lots of max-prefix alerts.", -"peering_inbox.fewer_requests_and_you_answer_them":"Fewer requests, and you answer them yourself. No route servers: go to each exchange and request the networks you want.", -"peering_inbox.fire_the_ai":"Fire the AI", -"peering_inbox.good_call_it_was_a_route":"Good call: it was a route leak.
{who} found a fat-fingered route map. The session comes back on its own in a few days.", -"peering_inbox.greetings_we_are_a_fast_growing":"Greetings. We are a fast-growing network. Last year we had one customer; this year we have two.", -"peering_inbox.hello_please_find_attached_our":"Hello, please find attached our peering request as a Word document, scanned from a printout.", -"peering_inbox.hey_quick_one_can_you_peer":"Hey, quick one: can you peer with us at {ix}? We have a very important Minecraft server.", -"peering_inbox.hi_we_would_like_to_peer":"Hi! We would like to peer with you at {ix}. Our PeeringDB record is up to date.", -"peering_inbox.hire_it_mo_mo":"Hire it {mo}/mo", -"peering_inbox.inbox_zero_enjoy_it_while_it":"Inbox zero. Enjoy it while it lasts.", -"peering_inbox.keep_it_down":"Keep it down", -"peering_inbox.kept_who_down_at_ix_for":"Kept {who} down at {ix} for “suspicious growth”. They had grown by one customer.", -"peering_inbox.kept_who_down_at_ix_it":"Kept {who} down at {ix}: it was a route leak. Nailed it.", -"peering_inbox.large_peering_model":"Large Peering Model", -"peering_inbox.large_peering_model_is_answering":"Large Peering Model is answering your mail", -"peering_inbox.max_prefix_limit_hit_who_at":"Max-prefix limit hit: {who} at {ix}.
The session is down until you look at it.", -"peering_inbox.max_prefix_limit_hit_who_at_5c56":"Max-prefix limit hit: {who} at {ix}", -"peering_inbox.mostly_ignores_email":"Mostly ignores email", -"peering_inbox.n_day_ago":{"one":"{n} day ago","other":"{n} days ago"}, -"peering_inbox.n_unanswered":{"one":"{n} unanswered","other":"{n} unanswered"}, -"peering_inbox.no_mail_yet_buy_an_ix":"No mail yet. Buy an IX port and it will come.", -"peering_inbox.nobody_asks_and_no_route_servers":"Nobody asks, and no route servers. Customers hear that you are hard to reach, so fewer of them call, and your reputation sinks.", -"peering_inbox.open_to_all":"Open to all", -"peering_inbox.opened_a_ticket_with_itself_to":"Opened a ticket with itself to review its own decisions. It approved them.", -"peering_inbox.peering_request_fifth_attempt_is":"Peering request, fifth attempt. Is anyone there?", -"peering_inbox.peeringdb_last_updated_n_year_ago":{"one":"PeeringDB last updated {n} year ago","other":"PeeringDB last updated {n} years ago"}, -"peering_inbox.peeringdb_updated_last_month":"PeeringDB updated last month", -"peering_inbox.please_configure_sessions_with_us_at":"Please configure sessions with us at {ix}. We will do ours next week, or the week after.", -"peering_inbox.price_year_it_never_sleeps_never":"{price}/year. It never sleeps, never complains and is often wrong.", -"peering_inbox.raise_all_max_prefix_limits":"Raise all max-prefix limits", -"peering_inbox.raise_the_limit":"Raise the limit", -"peering_inbox.raised_the_max_prefix_limit_for":"Raised the max-prefix limit for {who} at {ix} to {n}. They seemed nice.", -"peering_inbox.raised_the_max_prefix_limit_for_7b4b":"Raised the max-prefix limit for {who} at {ix}. Correctly, this time.", -"peering_inbox.replied_to_a_peering_request_with":"Replied to a peering request with a haiku about BGP. No answer yet.", -"peering_inbox.session_with_who_is_back_up":"Session with {who} is back up.
New limit: {n} prefixes. They promise to update PeeringDB.", -"peering_inbox.signed_you_up_for_a_webinar":"Signed you up for a webinar on “Peering in the Age of AI”.", -"peering_inbox.that_was_a_route_leak_who":"That was a route leak.
{who} was announcing {n} prefixes: a full table. Next time, keep it down.", -"peering_inbox.the_session_stays_down_who_will":"The session stays down.
{who} will update PeeringDB and ask again. Eventually.", -"peering_inbox.their_peeringdb_says_lim_last":{"one":"Their PeeringDB says {lim}, last updated {n} year ago.","other":"Their PeeringDB says {lim}, last updated {n} years ago."}, -"peering_inbox.tidied_up_a_session_it_decided":"Tidied up a session it decided was unused: de-peered {who} at {ix}.", -"peering_inbox.updated_your_peeringdb_record_your":"Updated your PeeringDB record. Your NOC phone number is now a pizza place.", -"peering_inbox.we_noticed_you_are_at_ix":"We noticed you are at {ix}. So are we. Shall we?", -"peering_inbox.who_asked_a_mailing_list_whether":"{who} asked a mailing list whether anyone has a working contact at {me}.
Their peering request sat in your inbox for a month.", -"peering_inbox.who_at_ix_was_sending_a":"{who} at {ix} was sending a full table, and the max-prefix limit was the only thing stopping it. With the limit raised, {net}’s prefixes point at their basement. Traffic to {net} over transit is black-holed for a few days.", -"peering_inbox.wrote_a_thousand_word_apology_to":"Wrote a thousand-word apology to a network you never peered with.", +"peering_desk.closed_desc":"Every peering request is declined, and no route servers. Customers hear that you are hard to reach, so fewer of them call.", +"peering_desk.n_more_exchanges":{"one":"{n} more exchange","other":"{n} more exchanges"}, +"peering_desk.n_new_sessions_at_ix":{"one":"Peering desk: {n} new session at {ix} ({pol}).","other":"Peering desk: {n} new sessions at {ix} ({pol})."}, +"peering_desk.n_new_sessions_at_ix_declined":{"one":"Peering desk: {n} new session at {ix}, {d} declined ({pol}).","other":"Peering desk: {n} new sessions at {ix}, {d} declined ({pol})."}, +"peering_desk.n_requests_declined":{"one":"Peering desk: {n} request declined ({pol}).","other":"Peering desk: {n} requests declined ({pol})."}, +"peering_desk.open_desc":"Every network that asks gets a session, and the route servers work.", +"peering_desk.open_to_all":"Open to all", +"peering_desk.selective_desc":"Small networks on the exchange and newcomers with an up-to-date PeeringDB get a session; the rest are quietly declined. No route servers: ask the networks you want at each exchange.", "peering_policy.a_new_vp_wants_to_monetise":"A new VP wants to \"monetise interconnection\" in this market.", "peering_policy.already_reach_you_through_your":"Already reach you through your transit provider here and think that is fine.", "peering_policy.moved_everything_in_this_city_to":"Moved everything in this city to PNIs. Please read their PearingDB page, all 40 pages of it.", @@ -3310,7 +3243,7 @@ "routing_and_routers.unplug_something_first_used_ports":"Unplug something first.
{used} ports are in use, and one router fewer only has {max}.", "rules.a_billion_dollars_every_unlock_your":"A billion dollars, every unlock, your own subsea cable.", "rules.a_cut_now_and_then":"A cut now and then.", -"rules.a_third_of_the_outages_no_ddos":"A third of the outages, no DDoS. PNIs and builds in days. No inbox, no shortages, no sold-out routes, no de-peering.", +"rules.a_third_of_the_outages_no_ddos_pnis":"A third of the outages, no DDoS. PNIs and builds in days. No shortages, no sold-out routes, no de-peering.", "rules.bgp_at_3_a_m":"BGP at 3 a.m.", "rules.change_freeze":"Change Freeze", "rules.chaos_calm":"Calm", @@ -3327,7 +3260,7 @@ "rules.on_call":"On-call", "rules.one_small_network_one_tricky_goal":"One small network, one tricky goal.", "rules.puzzle":"Puzzle", -"rules.real_lead_times_real_outages_a":"Real lead times, real outages, a full peering inbox. The classic game.", +"rules.real_lead_times_real_outages_a_real":"Real lead times, real outages, a real market. The classic game.", "rules.rules_are_locked_for_this_network":"{rules}: rules are locked for this network.", "rules.the_real_thing_your_pager_has":"The real thing. Your pager has opinions.", "rules.your_pager_never_sleeps":"Your pager never sleeps.", @@ -3461,9 +3394,7 @@ "sites_peering_caches.bgp_session_established":"BGP session established.", "sites_peering_caches.cache_installed_in_city_net_shipped":"{cache} installed in {city}!
{net} shipped it for free. You pay {mo}/mo power.", "sites_peering_caches.could_you_resend_the_loa_you":"“Could you resend the LOA?”
You have sent it four times.", -"sites_peering_caches.hello_i_am_large_peering_model":"Hello! I am Large Peering Model. I have read your inbox and I already have opinions.", "sites_peering_caches.it_is_with_the_provisioning_team":"“It is with the provisioning team.”
Nobody has ever met the provisioning team.", -"sites_peering_caches.large_peering_model_is_hired_your":"Large Peering Model is hired.
Your inbox is its problem now. {price} a year, billed monthly.", "sites_peering_caches.n_new_session_at_ix_small":{"one":"{n} new session at {ix}.
Small networks, but they add up, and they all count towards the club.","other":"{n} new sessions at {ix}.
Small networks, but they add up, and they all count towards the club."}, "sites_peering_caches.net_accepted":"{net} accepted!", "sites_peering_caches.net_declined_the_pni_why":"{net} declined the PNI.
{why}", @@ -3471,11 +3402,8 @@ "sites_peering_caches.net_does_not_do_port_pnis":"{net} does not do {port} PNIs.
Nothing smaller than 100G. Come back with more traffic, or a bigger optic.", "sites_peering_caches.net_says_not_yet_send_them":"{net} says not yet.
Send them {min}+ Gbps first.", "sites_peering_caches.pni_with_net_ordered_eta_a":"PNI with {net} ordered.
{eta}. A cross-connect in {dc}, once somebody finds the LOA.", -"sites_peering_caches.raised_n_max_prefix_limits_all":"Raised {n} max-prefix limits.
All growth, no leaks. Lucky.", -"sites_peering_caches.raised_n_max_prefix_limits_one":{"one":"Raised {n} max-prefix limits.
One of them was a route leak. It is in the NOC now.","other":"Raised {n} max-prefix limits.
{k} of them were route leaks. They are in the NOC now."}, "sites_peering_caches.second_lag_member_added_one_member":"Second LAG member added.
One member in each building now, so a dark building only takes out half the port.", "sites_peering_caches.second_site_live_in_city_b":"Second site live in {city}.
{b} is joined to {a} by your own metro ring. Move some uplinks there from the Transit and Peering tabs.", -"sites_peering_caches.the_ai_is_gone_it_left":"The AI is gone.
It left a 40-page handover document. It is mostly about itself.", "sites_peering_caches.they_checked_your_pearingdb_page_and":"They checked your PearingDB page and liked the traffic numbers.", "sites_peering_caches.we_are_waiting_on_the_colo":"“We are waiting on the colo for the cross-connect.”
The colo says it is waiting on them.", "sites_peering_caches.your_account_manager_found_the_order":"Your account manager found the order under a desk.
It is a month closer.", @@ -3497,6 +3425,7 @@ "slots.last_played_ago":"Last played {ago}", "slots.load_the_newest_version":"Load the newest version", "slots.more_for_name":"More for {name}", +"slots.n_day_ago":{"one":"{n} day ago","other":"{n} days ago"}, "slots.n_h_ago":{"one":"{n} h ago","other":"{n} h ago"}, "slots.name_is_open_in_another_window":"{name} is open in another window", "slots.name_is_waiting_in_your_other":"{name} is waiting in your other window.
Switch to it to keep playing.", @@ -3520,7 +3449,6 @@ "slots.this_window_stopped_saving_so_it":"A newer version was saved in another window, so this one stopped saving instead of overwriting it.", "slots.two_windows_one_network":"Two windows, one network", "slots.your_networks":"Your networks", -"slots.your_networks_switch_or_start_another":"Your networks switch, or start another", "slots.your_other_networks_share_this_browser":"Your other networks share this browser's storage. Export the ones you want to keep, then delete them here to make room.", "sold_out.a_hyperscaler_bought_every_wave_of":"A hyperscaler bought every wave of that size on this route last week.", "sold_out.not_big_enough_yet_list":"Not big enough yet: {list}", diff --git a/src/styles/40-modal.css b/src/styles/40-modal.css index 5a27215..14a9d4f 100644 --- a/src/styles/40-modal.css +++ b/src/styles/40-modal.css @@ -48,7 +48,7 @@ select.pick:focus-visible{outline:3px solid #FF4F9A;outline-offset:2px} label.f+select.pick{width:100%} .thb{font:inherit;font-weight:900;background:none;border:0;padding:0;cursor:pointer;color:inherit} .ttop{margin:4px 0;padding:4px 8px;border-left:3px solid #FF8A3D;background:#FFF6EC;border-radius:6px} -.ibx{border:2px solid var(--line,#DDE3EE);border-radius:12px;padding:8px 10px;margin:8px 0;background:#fff}.ibx .nm{font-weight:800}.ibx.mp{border-color:#FF5A5F;background:#FFF1F1}.ibx.ai{border-color:#8E5CF7;background:#F7F2FF}.ibx .term{font-size:11.5px;white-space:pre-wrap;max-height:180px;overflow:auto}.ibx .cnt{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:var(--me);color:#fff;font-size:11px;text-align:center}.ibx .cnt.red{background:#FF5A5F} +.ibx{border:2px solid var(--line,#DDE3EE);border-radius:12px;padding:8px 10px;margin:8px 0;background:#fff}.ibx .nm{font-weight:800} .aibtn{background:linear-gradient(90deg,#8E5CF7,#E84FA8);color:#fff}.aisay{background:#F3ECFF;border:2px solid #8E5CF7;border-radius:10px;padding:8px 10px;color:var(--ink)} .tehelp h3{margin:14px 0 4px}.tehelp ul{margin:4px 0;padding-left:18px}.tehelp li{margin:4px 0;font-size:13.5px;line-height:1.4}.tehelp dt{margin-top:8px}.tehelp dd{margin:2px 0 0;font-size:13px;line-height:1.4;color:var(--ink2)}.tehelp code{font:600 12.5px ui-monospace,Menlo,Consolas,monospace;background:#1E2640;color:#E6F0FF;border-radius:6px;padding:1px 6px;word-break:break-word} .terec{display:flex;align-items:center;gap:10px;justify-content:space-between;border-top:2px dashed var(--line,#DDE3EE);padding:8px 0}.terec .btn{flex:none} diff --git a/tests/i18n.test.js b/tests/i18n.test.js index 08b4f74..ef9da0b 100644 --- a/tests/i18n.test.js +++ b/tests/i18n.test.js @@ -82,8 +82,8 @@ test('missing translations fall back to the English, with placeholders filled', assert.equal(ev("tr('test.no_such_label {n}',{n:3})"), 'test.no_such_label 3', 'an unknown label comes back as it is'); assert.equal(ev("trn('test.cats',1)"), '1 cat'); assert.equal(ev("trn('test.cats',2)"), '2 cats'); - assert.equal(ev("trn('peering_inbox.n_day_ago',1)"), '1 giorno fa'); - assert.equal(ev("trn('peering_inbox.n_day_ago',3)"), '3 giorni fa'); + assert.equal(ev("trn('slots.n_day_ago',1)"), '1 giorno fa'); + assert.equal(ev("trn('slots.n_day_ago',3)"), '3 giorni fa'); }); test('text that old saves stored in English is still translated', () => { From 92536606ddbc0ba4b3f133b0ef72adbc5ae22812 Mon Sep 17 00:00:00 2001 From: Frederic Jung Date: Thu, 29 Oct 2026 21:41:28 +0100 Subject: [PATCH 2/3] Tests, CHANGELOG and docs for the peering desk --- .claude/skills/gameplay-rules/SKILL.md | 4 +- CHANGELOG.md | 3 +- docs/ARCHITECTURE.md | 2 +- docs/adr/0003-translations-by-label.md | 2 +- scripts/lib/compile-labels.js | 2 +- tests/eyeballs.test.js | 2 +- tests/game.test.js | 4 - tests/gameplay-rules.test.js | 11 +- tests/i18n.test.js | 4 +- tests/inbox.test.js | 252 ------------------------- tests/peering-desk.test.js | 117 ++++++++++++ tests/peering.test.js | 7 +- tests/pnis-and-sold-out.test.js | 127 +++++++++++++ tests/puzzles.test.js | 2 +- tests/rules.test.js | 5 +- tests/utilities.test.js | 2 +- 16 files changed, 266 insertions(+), 280 deletions(-) delete mode 100644 tests/inbox.test.js create mode 100644 tests/peering-desk.test.js create mode 100644 tests/pnis-and-sold-out.test.js diff --git a/.claude/skills/gameplay-rules/SKILL.md b/.claude/skills/gameplay-rules/SKILL.md index ecb01ed..770d3ce 100644 --- a/.claude/skills/gameplay-rules/SKILL.md +++ b/.claude/skills/gameplay-rules/SKILL.md @@ -43,8 +43,8 @@ These are what the game promises, held up by `tests/gameplay-rules.test.js` (one | Id | Rule | Why | | --- | --- | --- | | M1 | On-call is the classic game: it equals `RULE_DEF`, and a save without rules loads as On-call. The seeded suites (`tests/game.test.js`, `tests/rules.test.js`) are its behaviour. | Old saves never change under them. | -| M2 | Presets are ordered: Change Freeze never harsher than On-call, BGP at 3 a.m. never gentler (chaos, lead times, market, inbox; and a seeded year of incidents). | The names promise it. | -| M3 | Every subsystem that can annoy the player reads a rule: outages and events (`chaos`), DDoS, the peering inbox, sold-out routes, de-peering and hardware prices (`market`), lead times (`lead`), the clock. A quiet ruleset gives a quiet year. | Rules are presets of flags, not separate code. | +| M2 | Presets are ordered: Change Freeze never harsher than On-call, BGP at 3 a.m. never gentler (chaos, lead times, market; and a seeded year of incidents). | The names promise it. | +| M3 | Every subsystem that can annoy the player reads a rule: outages and events (`chaos`), DDoS, sold-out routes, de-peering and hardware prices (`market`), lead times (`lead`), the clock. A quiet ruleset gives a quiet year. | Rules are presets of flags, not separate code. | | M4 | Scenarios and the weekly challenge always run On-call plus their own `S.scn.rules`. | Fair scores. | | M5 | Sandbox has no locked feature: open gates, every level, own cables, endless money. | It is a sandbox. | diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c98686..ebdfd49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project are documented here. The project follows ## [2.0.0] — 2026-10-29 +- The peering inbox is gone: your peering policy now answers every peering request for you. Open accepts everyone, Selective accepts small networks on the exchange and newcomers with an up-to-date PeeringDB and quietly declines the rest, and Closed declines them all; once a week the NOC log sums it up, like "Peering desk: 7 new sessions at DE-KICKS and HAMS-IX, 3 declined (Selective)". Max-prefix alerts, the button that raised every limit at once, max-prefix outages at exchanges, your peering reputation and the Large Peering Model are gone too. The policy picker sits in the Networks tab, saved games keep their policy, and a game that hired the AI simply stops paying for it. - Scenario tuning: every handmade scenario now asks for what its story is about, with shorter clocks where it was won in a tenth of the time. Mind the Gap, Cape to Cairo and Order and Progress count cities and IX.brrr ports only when your network joins them up; Fibre to the Basement also wants 500 Gbps served; in Anchors Away nobody sells transit in Tallinn and ships really do drag their anchors over the Baltic links, while the Great Firewall's losses no longer break your 99.5% streak; in the Cogentle Spat, Goggle wants a lot more of your traffic before it peers; Flood Season's terabit floods count when your scrubbing or Flowspec took them; Stepping Stones and Mid-Atlantic Accent start with 5M, enough to light the whole 1.6T chain. Gangnam Style Peering is now really about sender pays: Seoul transit carries a fee on every Gbps, the three incumbents only peer over a paid PNI, and Korean users notice every millisecond, so you win by hauling cheap Tokyo transit while keeping Seoul fast and in profit. - Customers now call when your network can already serve them, not only when your level says so (#187). A fast path between two finance cities brings trading firms, lit dark fiber brings AI interconnects, two diverse paths in one country bring sovereign clouds and broadband in a big city brings cloud gaming, each at its smallest size and with a note on what they spotted; your level still makes them bigger and more frequent. - Routers, line systems and optics one level above yours can be had early as a vendor demo unit (#187). Ask the vendor, wait about two weeks, then pay 60% over list until your level catches up; and you can dig your own dark fiber from level 2 as a pioneer, at 60% more than the level 3 price. @@ -19,7 +20,7 @@ All notable changes to this project are documented here. The project follows - A new weekly scenario every Sunday morning too, the same for everyone: a themed crisis such as a cut cable, a peering spat, a big event, a flood week, island hopping, a race for low latency, a push across a continent or a shoestring budget, in about a year of game days. It sits at the top of Scenarios & weekly with a countdown and a "New this Sunday!" badge, has its own goal and progress card, a par to beat, a weekly streak and a result line to share. Offline, the classic weekly challenge stands in. - Hire a NOC intern and give them standing orders: from customer level 2, Kevin from the night shift, Anycast Annie or Tracy Route runs your rules once a game day and pays exactly what your own clicks would. Keep transit above a multiple of its peak, add or swap routers above a load, take free caches, peer at every IX and PNI with the big networks every week, sign ready customers and decline tiny ones, rush repairs, light more fiber and retire small parallel waves. Each order has a pause switch, its own settings, a monthly budget and per-POP exceptions, never breaks a customer's or a bank's transit requirement, and shows what it adds to your monthly bill. The Ops sheet opens with the intern's mood and a weekly shift report, which is also the one notice a week the intern leaves in the NOC (#98, #100, #102, #181, #185, #192, #177). - Tier 1 now works like the real thing: peer with the Tier 1 club and their customers come along for free (#85). A PNI or an exchange session reaches the networks you peer with and everyone who buys transit from them, so you no longer chase every tiny ISP for the win; only networks that buy transit from nobody, like the content giants and the big incumbents, still need peering of their own. Small networks and more real eyeball ISPs now buy transit from real-world upstreams, a peer's customers are tried after your direct peers and before transit (so peering widely still pays), the traceroute shows the hand-off, and the Road to Tier 1 card counts who already comes along. Games already won stay won. -- Normal comes in three flavours. Change Freeze has a third of the outages and no DDoS floods, delivers PNIs, cross-connects and builds in days instead of months (#151), and skips the peering inbox, hardware shortages, sold-out routes and de-peering at exchanges. On-call is the classic game. BGP at 3 a.m. brings almost twice the outages, lasting half as long again, and twice the DDoS. The HUD and the share card show which one you picked. +- Normal comes in three flavours. Change Freeze has a third of the outages and no DDoS floods, delivers PNIs, cross-connects and builds in days instead of months (#151), and skips hardware shortages, sold-out routes and de-peering at exchanges. On-call is the classic game. BGP at 3 a.m. brings almost twice the outages, lasting half as long again, and twice the DDoS. The HUD and the share card show which one you picked. - Sandbox is a real sandbox now (#188): everything is unlocked from day one, your own subsea cable included, money never runs out, deliveries are quick, and you pick how much chaos you want, from none to spicy. - Keep several networks on one device, and play two of them side by side in two browser windows. The title screen lists your networks, newest first, with their day, tier, cash and when you last played; tap one to continue it, or use ⋯ to export or delete it. Starting a scenario, the weekly challenge or a new network, or importing a save, now adds a network instead of replacing the one you have, and you can rename a network from the menu. Each window remembers its own network when you reload it. If a network is already open in another window, you can switch to it or take it over, and the other window steps aside instead of both saving over each other. Your existing save carries on as your first network. - Badges now come in variants: games under the Change Freeze rules earn frosted Freeze-dried badges, and games under BGP at 3 a.m. earn fiery ones worth bragging about. Earning a badge under harder rules than before upgrades it in your collection on this device, and the badge list counts how many of each kind you have. On-call games earn the standard badges; Sandbox and puzzles earn none. diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 7af5613..3b2f4af 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -30,7 +30,7 @@ hoisted across files, and top-level statements run in path order. Find code by n | `40-progress/` | Customer types (`BIZ_T`), `LEVELS` and their requirements, `GOALS`; the per-save ruleset (`S.rules`, `rule()`, `PRESETS`, `chaosMul()`, `leadDays()`) | | `50-state.js` | The globals `S`, `R`, `UI`; `emptyR()` | | `60-features/` | Banks and loans, scenarios and the weekly challenge, puzzles and the published weekly puzzle, conferences, the tutorial, traceroute, the share card, `newGame()`, the offer trial (`autoOffer()`), standing orders (`S.ops`, `opsDay()`, run from `dayTick()`) | -| `70-rules/` | Formatting helpers and market rules: exchanges, PNIs, the peering inbox, peering policy and snubs, DE-KICKS, sold-out routes, hot ports and the Tier 1/2/3 rank | +| `70-rules/` | Formatting helpers and market rules: exchanges, PNIs, the peering desk (requests answered by policy), peering policy and snubs, DE-KICKS, sold-out routes, hot ports and the Tier 1/2/3 rank | | `80-simulation/` | Dijkstra, RouteScript, `compute()`, monthly prices, `sanitize()`/`migrate()`, customer requirements, events, geography pricing and latency, second sites and service | | `85-incidents/` | `addInc()`, DDoS and scrubbing, `fireFailure()`, `clearInc()`, `fireEvent()` | | `88-days/` | `dayTick()`, new offers, badges, `checkGoals()` | diff --git a/docs/adr/0003-translations-by-label.md b/docs/adr/0003-translations-by-label.md index 19a2c32..a75c209 100644 --- a/docs/adr/0003-translations-by-label.md +++ b/docs/adr/0003-translations-by-label.md @@ -35,7 +35,7 @@ fell back to English. Long sentences as keys made dictionary diffs hard to read - **`npm run i18n:check`** verifies that every label used in `src/` is defined in English, every English label is used, every translation keeps its English's placeholders, HTML tags and plural forms, and every dictionary is sorted. -- **Saves:** a few things in a save hold text to show later (the peering inbox log, sold-out reasons, +- **Saves:** a few things in a save hold text to show later (sold-out reasons, attack names). New saves hold labels. Saves from before labels (1.34 and older) hold the English text; `tr()` maps it back to its label the first time it sees one, so old saves still show the player's language. - **Translators** read `src/i18n/en.js` next to their file; both are sorted by the same labels, so the diff --git a/scripts/lib/compile-labels.js b/scripts/lib/compile-labels.js index 597adfd..a78cf4e 100644 --- a/scripts/lib/compile-labels.js +++ b/scripts/lib/compile-labels.js @@ -6,7 +6,7 @@ // static markup, in the inlined English and in every translation file, and the page ends up about the // size it was when the English text itself was the key. // -// Labels passed to N_() are kept whole: those are the ones the game stores (in saves, in the inbox log) +// Labels passed to N_() are kept whole: those are the ones the game stores (in saves) // and shows later, and an id would mean something else in the next release. const { CALL } = require('../legacy/labels'); const D = require('./dict'); diff --git a/tests/eyeballs.test.js b/tests/eyeballs.test.js index b5a4543..d2922d5 100644 --- a/tests/eyeballs.test.js +++ b/tests/eyeballs.test.js @@ -47,7 +47,7 @@ test('Coax gets Spectre-um’d a year in, and Final Frontear joins Very-Zone a y start(ev2); ev2("ACT.buildPop({city:'chi'});S.pni.push({id:'a',net:'cxc',city:'chi',tier:1,ready:0},{id:'b',net:'spc',city:'chi',tier:1,ready:0});S.day=400;dayTick()"); assert.equal(ev2("S.pni.filter(p=>p.city==='chi').map(p=>p.net).join()"), 'spc'); - // the inbox never brings requests from a brand that no longer exists, and saves keep the record + // saves keep the record of who merged ev("const o=JSON.parse(JSON.stringify(S));S=migrate(o)"); assert.equal(ev("merged('cxc')&&merged('ftr')"), true); ev("S.merged={cxc:'x',zzz:3};S=migrate(JSON.parse(JSON.stringify(S)))"); diff --git a/tests/game.test.js b/tests/game.test.js index 6f5d817..246a769 100644 --- a/tests/game.test.js +++ b/tests/game.test.js @@ -469,10 +469,6 @@ test('notifications: the NOC keeps the last ten minutes, folds repeats and opens const os = JSON.parse(ev("JSON.stringify(S.log.map(e=>e.o))")); assert.deepEqual(os, [null, { a: 'city', v: 'lon' }, { a: 'link', v: linkId }, { a: 'city', v: 'fra' }]); assert.equal(ev("S.log[0].h"), 'Raffle'); assert.equal(ev("S.log[0].t"), 'Raffle You won a T-shirt.'); - // the peering inbox's own button opens the peering inbox - ev("toast('Peering request
From a small network.','',[{l:'Inbox',act:'inbox',args:{}}])"); - assert.deepEqual(JSON.parse(ev('JSON.stringify(S.log[0].o)')), { a: 'inbox' }); - ev('ACT.logOpen({id:S.log[0].id})'); assert.equal(ev("$('modal').hidden"), false, 'the inbox opens');ev('closeModal();S.log.shift()'); // an incident points at what broke assert.deepEqual(JSON.parse(ev(`JSON.stringify(incOpen({ref:'${linkId}'}))`)), { a: 'link', v: linkId }); assert.deepEqual(JSON.parse(ev("JSON.stringify(incOpen({ref:S.links[0].trench||S.links[0].id}))")), { a: 'link', v: ev('S.links[0].id') }); diff --git a/tests/gameplay-rules.test.js b/tests/gameplay-rules.test.js index ce95537..76cf1ba 100644 --- a/tests/gameplay-rules.test.js +++ b/tests/gameplay-rules.test.js @@ -215,8 +215,8 @@ test('M2: presets are ordered: Change Freeze never harsher than On-call, BGP at const P = J('PRESETS'), C = J('CHAOS'), lead = { quick: 0, real: 1 }; assert.ok(C[P.freeze.chaos].m <= C[P.oncall.chaos].m && C[P.oncall.chaos].m <= C[P.bgp.chaos].m, 'M2: chaos'); assert.ok(lead[P.freeze.lead] <= lead[P.oncall.lead] && lead[P.oncall.lead] <= lead[P.bgp.lead], 'M2: lead times'); - for (const k of ['market', 'inbox']) assert.ok(!P.freeze[k] || P.oncall[k], `M2: ${k}`); - assert.ok(P.bgp.market && P.bgp.inbox && P.bgp.money === 'normal' && P.bgp.gates === 'ladder', 'M2: BGP keeps every hardship'); + assert.ok(!P.freeze.market || P.oncall.market, 'M2: market'); + assert.ok(P.bgp.market && P.bgp.money === 'normal' && P.bgp.gates === 'ladder', 'M2: BGP keeps every hardship'); // seeded: the same network for a year under each preset const n = {}; for (const p of ['freeze', 'oncall', 'bgp']) { @@ -230,15 +230,14 @@ test('M2: presets are ordered: Change Freeze never harsher than On-call, BGP at test('M3: every subsystem that can annoy the player reads a rule', () => { // [function, what it must read] - const reads = [['dayTick', 'chaosMul()'], ['fireEvent', "rule('market')"], ['ddosTick', 'ddosOff()'], ['inboxDay', "rule('inbox')"], + const reads = [['dayTick', 'chaosMul()'], ['fireEvent', "rule('market')"], ['ddosTick', 'ddosOff()'], ['soldOut', "rule('market')"], ['hwMul', "rule('market')"], ['leadDays', "rule('lead')"], ['pniLead', 'leadDays'], ['dfBuildDays', 'leadDays'], ['dayTick', "rule('clock')"], ['snub', "rule('market')"]]; fail('M3', reads.filter(([f, r]) => !ev(`typeof ${f}==='function'&&${f}.toString().includes(${JSON.stringify(r)})`)).map(([f, r]) => `${f}() does not read ${r}`), 'gate it on the ruleset (src/game/40-progress/30-rules.js)'); - // and in play: no chaos, no market, no inbox means a quiet year + // and in play: no chaos and no market means a quiet year const g = load(); - g.ev("beginGame('Quiet','fra',{mode:'normal',preset:'oncall'});if(UI.pendGame)ACT.pitchSkip();S.rules=makeRules('oncall',{chaos:'none',market:false,inbox:false});S.cash=1e9;ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});ACT.buyIx({city:'fra',tier:1,signed:true});for(let i=0;i<360;i++)dayTick()"); + g.ev("beginGame('Quiet','fra',{mode:'normal',preset:'oncall'});if(UI.pendGame)ACT.pitchSkip();S.rules=makeRules('oncall',{chaos:'none',market:false});S.cash=1e9;ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});ACT.buyIx({city:'fra',tier:1,signed:true});for(let i=0;i<360;i++)dayTick()"); assert.equal(g.ev('S.inc.length+(S.stats.incidents||0)'), 0, 'M3: nothing breaks without chaos'); - assert.equal(g.ev('S.inbox.items.length+S.inbox.seq'), 0, 'M3: no mail without the inbox'); assert.equal(g.ev("hwMul('rt')"), 1, 'M3: no hardware inflation without the market'); assert.equal(g.ev("CITIES.slice(0,40).some(c=>soldOut('fra',c.id,1))"), false, 'M3: no sold-out routes without the market'); assert.deepEqual(g.errors, []); diff --git a/tests/i18n.test.js b/tests/i18n.test.js index ef9da0b..29729c2 100644 --- a/tests/i18n.test.js +++ b/tests/i18n.test.js @@ -36,8 +36,8 @@ function tour(ev) { ['routers', "selectCity('fra');ACT.tab({t:'links'});ACT.models()"], ['vxc', "openVxcModal({from:'fra',to:'ams'});closeModal()"], ['tutorial', 'S.tut=0;renderCoach();S.tut=3;renderCoach();S.tut=null;renderCoach()'], ['win', 'showWin()']]) step(label, src); const failSrc = ev('fireFailure.toString()'); - for (const t of ['harmless', 'fatwave', 'label', 'mtu', 'oops', 'cleaner', 'maxpfx', 'prepend', 'rpki', 'amp', 'roadmff', 'optic', 'ac', 'cut', 'crash', 'power', 'transit', 'ixloop', 'leak', 'ddos']) { - const kind = ['harmless', 'fatwave', 'label', 'mtu', 'oops', 'cleaner', 'maxpfx', 'prepend', 'rpki', 'roadmff', 'ac'].includes(t) ? 'funny' : t; + for (const t of ['harmless', 'fatwave', 'label', 'mtu', 'oops', 'cleaner', 'prepend', 'rpki', 'amp', 'roadmff', 'optic', 'ac', 'cut', 'crash', 'power', 'transit', 'ixloop', 'leak', 'ddos']) { + const kind = ['harmless', 'fatwave', 'label', 'mtu', 'oops', 'cleaner', 'prepend', 'rpki', 'roadmff', 'ac'].includes(t) ? 'funny' : t; const patched = failSrc.replace(/^function fireFailure/, 'function') .replace('let tot=opts.reduce', `if(!opts.some(o=>o[0]==='${kind}'))return;opts.splice(0,opts.length,['${kind}',1]);let tot=opts.reduce`) .replace('type=pick(f);}', `type=f.includes('${t}')?'${t}':pick(f);}`); diff --git a/tests/inbox.test.js b/tests/inbox.test.js deleted file mode 100644 index 7acb7f3..0000000 --- a/tests/inbox.test.js +++ /dev/null @@ -1,252 +0,0 @@ -const test = require('node:test'); -const assert = require('node:assert/strict'); -const { load } = require('./harness'); - -function setup(ev) { - ev("ACT.start({});S.cash=1e9;S.lvl=6;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'});for(const c in S.pops)S.pops[c].rgen=3;compute()"); -} - -test('PNIs with the big networks take a month, now and then 6 to 12, and start at 100G; small ones take weeks', () => { - const { ev, errors } = load(); - setup(ev); - ev("R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:0})"); - assert.equal(ev('S.pni.length'), 0, 'no 10G PNI with NetChill'); - assert.match(ev("document.getElementById('toasts').textContent"), /does not do 10G/); - // one order in seven gets lost in provisioning for months - ev("Math.random=()=>0.1;R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:1})"); - const p = JSON.parse(ev('JSON.stringify(S.pni[0])')); - assert.ok(p.ready - ev('S.day') >= 180 && p.ready - ev('S.day') <= 365, `six to twelve months (${p.ready - ev('S.day')} days)`); - ev('compute()'); - assert.equal(ev('R.usePni[S.pni[0].id]||0'), 0, 'nothing flows before delivery'); - assert.equal(ev('R.cost.pni'), 0, 'and nothing is billed'); - ev('S.nextFail=S.nextEvent=1e9;S.pni[0].ready=S.day+1;dayTick();compute()'); - assert.ok(ev('R.usePni[S.pni[0].id]') > 0, 'delivered on the day'); - // an upgrade is an augment on order: the old port keeps working meanwhile - ev("R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:2})"); - assert.equal(ev('S.pni[0].tier'), 1); - assert.equal(ev('S.pni[0].up.tier'), 2); - ev('ACT.lagP({id:S.pni[0].id,d:1})'); - assert.equal(ev('S.pni[0].up.n'), 1, 'one augment at a time'); - ev('S.day=S.pni[0].up.ready-1;dayTick()'); - assert.equal(ev('S.pni[0].tier'), 2); - assert.equal(ev('S.pni[0].up'), undefined); - // chasing it does nothing, mostly - ev("Math.random=()=>0.5;R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:3});const r0=S.pni[0].up.ready;ACT.pniChase({id:S.pni[0].id});window.__r=[r0,S.pni[0].up.ready]"); - const [r0, r1] = JSON.parse(ev('JSON.stringify(__r)')); - assert.equal(r0, r1); - // most orders arrive in about a month - ev("Math.random=()=>0.5;S.pni=[];R.demTo.ggl=1e4;ACT.pni({city:'fra',net:'ggl',tier:1})"); - assert.equal(ev("S.pni.find(p=>p.net==='ggl').ready-S.day"), 30); - ev("S.pni=S.pni.filter(p=>p.net!=='ggl')"); - // a beer at a conference halves the wait - ev("Math.random=()=>0.99;S.conf={until:S.day+10,reg:'EU',name:'RIPE'}"); - assert.equal(ev("pniLead('ggl')"), 15, 'the usual month, halved'); - ev('Math.random=()=>0.1'); - assert.equal(ev("pniLead('ggl')"), Math.round((180 + Math.floor(0.1 * 186)) / 2), 'a slow one, halved'); - ev('Math.random=()=>0.99'); - ev('S.conf=null'); - // a small network: a few weeks - const small = ev("NETS.find(n=>n.pops.includes('fra')&&!pniBig(n.id)&&n.pol==='open'&&n.type!=='cdn').id"); - ev(`Math.random=()=>0.99;ACT.pni({city:'fra',net:'${small}',tier:0})`); - const lead = ev(`S.pni.find(p=>p.net==='${small}').ready-S.day`); - assert.ok(lead >= 14 && lead <= 42, `weeks, not months (${lead})`); - assert.deepEqual(errors, []); -}); - -test('Doitsche Telekomm sells 1G PNIs; nobody else does', () => { - const { ev, errors } = load(); - setup(ev); - ev("S.lvl=10;ACT.pni({city:'fra',net:'nfx',tier:-1})"); - assert.equal(ev('S.pni.length'), 0); - assert.equal(ev("peerOk('dtk','pni','fra').ok"), true); - ev("ACT.pni({city:'fra',net:'dtk',tier:-1})"); - assert.equal(ev('S.pni[0].g1'), true); - ev('S.pni[0].ready=S.day;compute()'); - assert.equal(ev('pniG(S.pni[0])'), 1); - assert.equal(ev("liveCap(pniG(S.pni[0]),'fra','a',1)"), 1); - assert.equal(ev('pniPN(S.pni[0])'), '1G'); - // and 1G grows into 10G - ev("ACT.pni({city:'fra',net:'dtk',tier:0})"); - assert.equal(ev('S.pni[0].up.tier'), 0); - ev('S.day=S.pni[0].up.ready-1;dayTick()'); - assert.equal(ev('S.pni[0].g1'), undefined); - assert.equal(ev('pniG(S.pni[0])'), 10); - ev("selectCity('fra');ACT.tab({t:'peer'})"); - assert.deepEqual(errors, []); -}); - -test('Microsnoft has no capacity on the US east coast, at any price', () => { - const { ev, errors } = load(); - setup(ev); - ev("for(const c of ['ash','nyc','hou'])ACT.buildPop({city:c});R.demTo.msf=1e5"); - for (const c of ['ash', 'nyc', 'bos', 'atn', 'mia']) { - assert.equal(ev(`peerOk('msf','pni','${c}').ok`), false, c); - assert.equal(ev(`peerOk('msf','ix','${c}').ok`), false, c); - } - assert.match(ev("peerOk('msf','pni','ash').why"), /capacity|sold out|coming online/i); - assert.equal(ev("peerOk('msf','pni','hou').ok"), true, 'Houston is fine'); - ev("ACT.pni({city:'ash',net:'msf',tier:1})"); - assert.equal(ev("S.pni.filter(p=>p.city==='ash').length"), 0); - assert.equal(ev("peerOk('ggl','pni','ash').ok"), ev("R.demTo.ggl>=Math.round(NET.ggl.minPni*repMul())"), 'other networks are not affected'); - assert.deepEqual(errors, []); -}); - -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});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'); - // accept a real network's request: a bilateral session - 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&&!ixSessions('ams').has(id);})"); - assert.ok(net); - ev(`S.inbox.items=[{id:901,k:'req',ix:'ams',net:'${net}',day:S.day,stale:false,yrs:1,say:0},{id:902,k:'req',ix:'ams',nm:'Bob’s Bits',asn:212345,day:S.day,stale:true,yrs:7,say:3}];ACT.inbox()`); - assert.match(ev("document.getElementById('modalCard').textContent"), /Bob’s Bits/); - ev("ACT.inboxAct({id:901,a:'accept'});ACT.inboxAct({id:902,a:'accept'})"); - assert.equal(ev(`!!S.peers['${net}@ams']`), true); - assert.equal(ev('S.inbox.tiny[212345].nm'), 'Bob’s Bits'); - ev('compute()'); - assert.equal(ev(`ixSessions('ams').has('${net}')`), true); - // growth: raising the limit brings the session back - ev(`S.inbox.items.push({id:903,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:100,got:180,leak:false,yrs:4});S.inbox.down['${net}@ams']=1e9`); - assert.equal(ev(`ixSessions('ams').has('${net}')`), false, 'down on max-prefix'); - ev("ACT.inboxAct({id:903,a:'raise'})"); - assert.equal(ev(`ixSessions('ams').has('${net}')`), true); - // a leak: raising the limit is a route leak, keeping it down is right - ev(`S.inbox.items.push({id:904,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:100,got:987654,leak:true,yrs:4});S.inbox.down['${net}@ams']=1e9;ACT.inboxAct({id:904,a:'raise'})`); - assert.ok(ev('S.ev.leak&&S.ev.leak.until>S.day'), 'a route leak'); - assert.ok(ev("S.inc.some(i=>i.type==='leak')")); - ev(`S.inbox.items.push({id:905,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:100,got:987654,leak:true,yrs:4});S.inbox.down['${net}@ams']=1e9;ACT.inboxAct({id:905,a:'keep'})`); - const back = ev(`S.inbox.down['${net}@ams']`); - assert.ok(back > ev('S.day') && back < ev('S.day') + 12, 'back on its own in a few days'); - // unanswered requests expire, and the reputation makes selective networks pickier - ev("S.inbox.items=[{id:906,k:'req',ix:'ams',net:'" + net + "',day:S.day-31,stale:false,yrs:1,say:0}];S.inbox.rep=0;inboxDay(S.day)"); - assert.equal(ev('S.inbox.items.some(x=>x.id===906)'), false); - assert.ok(ev('S.inbox.rep') < 0); - ev('S.inbox.rep=-10'); - assert.ok(ev('repMul()') > 1.05 && ev('repMul()') <= 1.1, 'pickier, but never a wall'); - // an alert nobody answers clears itself once the other side notices - ev(`S.inbox.items=[{id:910,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:100,got:180,leak:false,yrs:4}];S.inbox.down['${net}@ams']=S.day+1;inboxDay(S.day+1)`); - assert.equal(ev('S.inbox.items.some(x=>x.id===910)'), false); - // bulk answers - ev("S.inbox.items=[{id:907,k:'req',ix:'ams',nm:'A',asn:1,day:S.day,say:0,yrs:1},{id:908,k:'req',ix:'ams',nm:'B',asn:2,day:S.day,say:0,yrs:1}];ACT.inboxAll({a:'decline'})"); - assert.equal(ev('S.inbox.items.length'), 0); - // the Networks tab says how much mail is waiting - ev("S.inbox.items=[{id:909,k:'req',ix:'ams',nm:'C',asn:3,day:S.day,say:1,yrs:1}];closeModal();UI.left='nets';UI.leftOpen=true;renderLeft()"); - assert.match(ev("document.getElementById('left').textContent"), /Peering inbox/); - assert.deepEqual(errors, []); -}); - -test('the AI agent answers everything, costs $20M a year and gets it wrong a lot', () => { - const { ev, errors } = load(); - setup(ev); - ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=3;ACT.buyIx({city:'ams',tier:1});compute()"); - 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;})"); - const cash = ev('S.cash'); - ev("ACT.inboxBot({on:1});compute()"); - assert.equal(ev('S.inbox.bot'), true); - assert.ok(cash - ev('S.cash') >= ev('AI_MO')); - assert.ok(ev('R.cost.extras') >= ev('AI_MO'), 'billed every month'); - assert.ok(Math.abs(ev('AI_MO*12') - 20e6) < 12); - // it always gets a leak wrong when the dice say so - ev(`S.peers['${net}@ams']=true;S.inbox.items=[{id:1,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:50,got:999999,leak:true,yrs:3},{id:2,k:'req',ix:'ams',nm:'D',asn:4,day:S.day,say:0,yrs:1}];S.inbox.down['${net}@ams']=1e9`); - ev('Math.random=()=>0.1;inboxBot()'); - assert.equal(ev('S.inbox.items.length'), 0, 'inbox zero'); - assert.ok(ev('S.ev.leak&&S.ev.leak.until>S.day'), 'and a route leak'); - assert.ok(ev("S.inbox.log.some(e=>/They seemed nice/.test(tr(e.m,e.a)))"), 'the log keeps a label, read in the language of the player'); - ev('ACT.inbox()'); - assert.match(ev("document.getElementById('modalCard').textContent"), /They seemed nice/); - // and sometimes it gets it right - ev(`S.inbox.items=[{id:3,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:50,got:999999,leak:true,yrs:3}];S.ev.leak=null;Math.random=()=>0.9;inboxBot()`); - assert.ok(!ev('S.ev.leak')); - ev('ACT.inboxBot({on:0});compute()'); - assert.equal(ev('S.inbox.bot'), false); - assert.ok(ev('R.cost.extras') < ev('AI_MO')); - assert.deepEqual(errors, []); -}); - -test('saves: the inbox and PNIs on order survive, and garbage is repaired', () => { - const { ev, errors } = load(); - setup(ev); - ev("S.pni.push({id:'x',city:'fra',net:'dtk',tier:0,g1:true,ready:S.day+30,up:{tier:'9',n:99,ready:'x'}},{id:'y',city:'fra',net:'nfx',tier:1,g1:true})"); - ev("S.inbox={items:[{id:1,k:'req',ix:'ams',nm:'Ok',asn:5,day:1,say:99},{k:'evil',ix:'ams'},{id:2,k:'mp',ix:'nowhere',key:'a'},'x'],down:{'a@b':'7'},tiny:{'12':{nm:'T',ix:'ams'},'no':{ix:'ams'}},rep:99,bot:'yes',log:[{d:1,m:'hi',a:{who:{x:1}}},5],seq:'z'}"); - ev('const o=JSON.parse(JSON.stringify(S));sanitize(o);window.__o=o'); - assert.equal(ev('__o.inbox.items.length'), 1); - assert.equal(ev('__o.inbox.items[0].say'), ev('REQ_SAY.length-1')); - assert.equal(ev('__o.inbox.rep'), 5); - assert.equal(ev('__o.inbox.bot'), true); - assert.equal(ev("__o.inbox.down['a@b']"), 7); - assert.deepEqual(JSON.parse(ev('JSON.stringify(Object.keys(__o.inbox.tiny))')), ['12']); - assert.equal(ev('typeof __o.inbox.log[0].a.who'), 'string'); - assert.equal(ev('__o.inbox.seq'), 1); - assert.equal(ev("__o.pni.find(p=>p.id==='x').up.n"), ev('LAG_MAX')); - assert.equal(ev("__o.pni.find(p=>p.id==='x').g1"), true); - assert.equal(ev("__o.pni.find(p=>p.id==='y').g1"), undefined, 'only Doitsche Telekomm does 1G'); - // an old save without an inbox loads with an empty one - ev('const p=JSON.parse(JSON.stringify(S));delete p.inbox;sanitize(p);window.__p=p'); - assert.equal(ev('__p.inbox.items.length'), 0); - assert.equal(ev('__p.inbox.bot'), false); - assert.deepEqual(errors, []); -}); - -test('now and then a route is sold out of a wave size, for a while, and asking again does not reroll it', () => { - const { ev, errors } = load(); - setup(ev); - ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=3"); - assert.equal(ev("S.day=10;!!soldOut('fra','ams',3,null)||!!soldOut('fra','ams',1,null)"), false, 'never in the first 90 days'); - // find a day when 400G is sold out between Frankfurt and Amsterdam - const day = ev("(()=>{for(let d=90;d<20000;d++){S.day=d;if(soldOut('fra','ams',2,null))return d;}return -1;})()"); - assert.ok(day > 0, 'it happens'); - ev(`S.day=${day}`); - const so = JSON.parse(ev("JSON.stringify(soldOut('fra','ams',2,null))")); - assert.ok(so.until > day && so.until - day <= 90); - assert.equal(ev(`S.day=${so.until - 1};!!soldOut('fra','ams',2,null)`), true, 'the same verdict for the whole window'); - ev(`S.day=${day}`); - const share = ev("(()=>{let n=0;for(let d=90;d<20090;d++){S.day=d;if(soldOut('ams','fra',5,null))n++;}return n/20000;})()"); - assert.ok(share > 0.02 && share < 0.2, `rare, a bit more for big waves (${share})`); - ev(`S.day=${day};UI.via=null;openLinkModal('fra','ams')`); - assert.match(ev("document.getElementById('modalCard').textContent"), /sold out for \d+ days/); - const n = ev('S.links.length'); - ev('ACT.buildLink({tier:2})'); - assert.equal(ev('S.links.length'), n, 'no 400G today'); - 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, []); -}); diff --git a/tests/peering-desk.test.js b/tests/peering-desk.test.js new file mode 100644 index 0000000..c5de75e --- /dev/null +++ b/tests/peering-desk.test.js @@ -0,0 +1,117 @@ +const test = require('node:test'); +const assert = require('node:assert/strict'); +const { load } = require('./harness'); + +function setup(ev) { + ev("ACT.start({});S.cash=1e9;S.lvl=6;S.nextFail=S.nextEvent=1e9;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'});ACT.buildPop({city:'ams'});S.pops.ams.rgen=3;ACT.buyIx({city:'ams',tier:1});compute()"); +} +// Math.random returns these, then 0.5: [ask?, which IX, a real network?, (which one), fresh PeeringDB?] +const seq = (ev, a) => ev(`(()=>{const q=${JSON.stringify(a)};Math.random=()=>q.length?q.shift():0.5;})()`); +const REAL = [0.01, 0.01, 0.01, 0.01, 0.01], STALE = [0.01, 0.01, 0.9, 0.1], FRESH = [0.01, 0.01, 0.9, 0.9]; + +test('peering requests are answered by policy: Open accepts all, Selective the worthwhile ones, Closed none', () => { + const { ev, errors } = load(); + setup(ev); + assert.equal(ev('ppol()'), 'open', 'open by default, as before'); + const day = () => ev('peeringDeskDay(S.day)'); + const peers = () => ev("Object.keys(S.peers).filter(k=>k.endsWith('@ams')).length"); + let n = peers(); + seq(ev, REAL); day(); + assert.equal(peers(), n + 1, 'Open: a real network on the exchange gets its session at once'); + assert.ok(ev("ixSessions('ams').size") > 0); + seq(ev, STALE); day(); + assert.deepEqual(JSON.parse(ev('JSON.stringify([S.pdesk.a,S.pdesk.d])')), [2, 0], 'Open even takes the stale newcomer'); + ev("ACT.peerPol({p:'selective'})"); + assert.equal(ev('ppol()'), 'selective'); + n = peers(); seq(ev, REAL); day(); + assert.equal(peers(), n + 1, 'Selective: a real small network is worth it'); + seq(ev, STALE); day(); + seq(ev, FRESH); day(); + assert.deepEqual(JSON.parse(ev('JSON.stringify([S.pdesk.a,S.pdesk.d])')), [4, 1], 'stale PeeringDB declined, up-to-date one accepted'); + ev("ACT.peerPol({p:'closed'})"); + n = peers(); seq(ev, REAL); day(); seq(ev, FRESH); day(); + assert.equal(peers(), n, 'Closed: nobody gets a session'); + assert.equal(ev('S.pdesk.d'), 3); + ev("ACT.peerPol({p:'nope'})"); + assert.equal(ev('ppol()'), 'closed', 'junk is ignored'); + assert.deepEqual(errors, []); +}); + +test('once a week the NOC log gets one folded peering desk line', () => { + const { ev, errors } = load(); + setup(ev); + ev("ACT.buyIx({city:'fra',tier:1,signed:true});ACT.peerPol({p:'selective'})"); + seq(ev, [0.99]); ev('S.day=Math.ceil(S.day/7)*7+7;S.pdesk=null;peeringDeskDay(S.day)'); + const w = ev('Math.floor(S.day/7)'); + for (let i = 0; i < 6; i++) { seq(ev, i % 3 === 2 ? STALE : [0.01, i % 2 ? 0.01 : 0.99, 0.9, 0.9]); ev(`peeringDeskDay(S.day+${i})`); } + assert.equal(ev('S.pdesk.w'), w); + const logs = ev('S.log.length'); + seq(ev, [0.99]); ev('peeringDeskDay(S.day+7)'); + assert.equal(ev('S.log.length'), logs + 1, 'one line for the week'); + const line = ev('S.log[0].t'); + assert.match(line, /^Peering desk: 4 new sessions at .+ and .+, 2 declined \(Selective\)\.$/); + assert.deepEqual(JSON.parse(ev('JSON.stringify(S.log[0].o)')), { a: 'tab', v: 'nets' }); + assert.equal(ev('S.pdesk.w'), w + 1); + // a quiet week says nothing + ev('peeringDeskDay(S.day+14)'); + assert.equal(ev('S.log.length'), logs + 1); + // the Networks tab has the policy picker, what it does, and last week's line; it fits a phone + ev("window.innerWidth=360;UI.left='nets';UI.leftOpen=true;S.pdeskRep.w=Math.floor(S.day/7)-1;renderLeft()"); + const left = ev("document.getElementById('left').textContent"); + assert.match(left, /Peering policy: Selective/); + assert.match(left, /newcomers with an up-to-date PeeringDB/); + assert.match(left, /Peering desk: 4 new sessions/); + assert.doesNotMatch(left, /inbox/i); + ev("document.querySelector('#left [data-act=peerPol][data-args*=closed]').click()"); + assert.equal(ev('ppol()'), 'closed'); + assert.match(ev("document.getElementById('left').textContent"), /Every peering request is declined/); + // more than four exchanges fold into "and N more" + ev("S.pdeskRep={w:0,a:9,d:0,p:'open',ix:['ams','fra','lon','par','nyc']}"); + assert.match(ev('pdeskLine(S.pdeskRep)'), /9 new sessions at .+, .+, .+ and 2 more exchanges \(Open to all\)/); + assert.match(ev("pdeskLine({a:0,d:1,p:'closed',ix:[]})"), /^Peering desk: 1 request declined \(Closed\)\.$/); + assert.deepEqual(errors, []); +}); + +test('old saves with inbox, max-prefix and Large Peering Model state load and play', () => { + const { ev, errors } = load(); + setup(ev); + 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;delete S.ppol;delete S.pdesk;delete S.pdeskRep; + S.inbox={items:[{id:1,k:'mp',key:'${net}@ams',net:'${net}',ix:'ams',day:S.day,lim:50,got:999999,leak:true,yrs:3},{id:2,k:'req',ix:'ams',nm:'D',asn:4,day:S.day,say:0,yrs:1}], + down:{'${net}@ams':S.day+30},tiny:{'4':{nm:'D',ix:'ams'}},rep:-8,bot:true,pol:'selective',log:[{d:1,m:'peering_inbox.fire_the_ai',a:{}}],seq:2}; + S.rules={...S.rules,inbox:true};S.ev.ixdown={ams:S.day+2}; + S.inc.push({id:'m1',type:'maxpfx',ref:'ams',until:S.day+2,msg:'A member leaked the table.',cost:0,start:S.day}); + S.log.unshift({id:'l1',t:'Peering request',h:'Peering request',k:'',o:{a:'inbox'},ts:Date.now()})`); + ev('S=migrate(JSON.parse(JSON.stringify(S)));compute()'); + assert.equal(ev('S.inbox'), undefined, 'the inbox is gone'); + assert.equal(ev('ppol()'), 'selective', 'the policy is kept'); + assert.equal(ev("'inbox' in S.rules"), false); + assert.equal(ev("S.inc.find(i=>i.id==='m1').type"), 'ixloop', 'a max-prefix outage in flight becomes an ordinary IX outage'); + assert.equal(ev("S.inc.some(i=>i.type==='maxpfx')"), false); + assert.deepEqual(JSON.parse(ev("JSON.stringify(S.log.find(e=>e.id==='l1').o)")), { a: 'tab', v: 'nets' }); + assert.equal(ev(`ixSessions('ams').has('${net}')`), true, 'no session stays down on an old max-prefix limit'); + const extras = ev('R.cost.extras'); + assert.ok(extras < 20e6 / 12, 'the Large Peering Model no longer bills'); + ev("ACT.logOpen({id:'l1'})"); + assert.equal(ev('UI.left'), 'nets'); + ev('for(let i=0;i<40;i++)dayTick()'); + assert.ok(ev('S.inc.every(i=>i.type!=="maxpfx")')); + assert.ok(ev('S.pdesk&&S.pdesk.w>=0')); + // garbage in the new fields is repaired + ev("const o=JSON.parse(JSON.stringify(S));o.ppol='weird';o.pdesk={w:'x',a:-5,d:1e9,ix:['ams','ams','nowhere',3]};o.pdeskRep=[1];sanitize(o);window.__o=o"); + assert.equal(ev('__o.ppol'), 'open'); + assert.deepEqual(JSON.parse(ev('JSON.stringify(__o.pdesk)')), { w: 0, a: 0, d: 1e5, ix: ['ams'] }); + assert.equal(ev('__o.pdeskRep'), null); + assert.deepEqual(errors, []); +}); + +test('max-prefix incidents can no longer fire', () => { + const { ev, errors } = load(); + setup(ev); + assert.equal(ev("fireFailure.toString().includes('maxpfx')"), false); + ev("S.day=100;const src=fireFailure.toString().replace(/^function fireFailure/,'function').replace('let tot=opts.reduce',\"opts.splice(0,opts.length,['funny',1]);let tot=opts.reduce\");window.__ff=eval('('+src+')')"); + ev("__reseed(7);for(let i=0;i<200;i++){__ff();S.inc=S.inc.filter(x=>x.type!=='maxpfx'||(window.__mp=1,0));}"); + assert.equal(ev('!!window.__mp'), false); + assert.equal(ev("typeof inboxDay+typeof ibx+typeof ACT.inboxRaiseAll+typeof ACT.inboxBot"), 'undefinedundefinedundefinedundefined'); + assert.deepEqual(errors, []); +}); diff --git a/tests/peering.test.js b/tests/peering.test.js index 4e1d185..9377df9 100644 --- a/tests/peering.test.js +++ b/tests/peering.test.js @@ -200,15 +200,14 @@ test('a peer at a rival exchange can de-peer you without stopping the game', () assert.deepEqual(errors, []); }); -test('an IX meltdown at a rival exchange names the city, and a failing day tick does not stop the game', () => { +test('an IX meltdown at a rival exchange names it, and a failing day tick does not stop the game', () => { const { ev, errors } = load(); ev("ACT.start({});S.cash=1e8;ACT.buildPop({city:'ams'});ACT.buyIx({city:'ams~2',tier:1});S.day=100"); const src = ev('fireFailure.toString()').replace(/^function fireFailure/, 'function') - .replace('let tot=opts.reduce', "opts.splice(0,opts.length,['funny',1]);let tot=opts.reduce") - .replace('type=pick(f);}', "type='maxpfx';}"); + .replace('let tot=opts.reduce', "opts.splice(0,opts.length,['ixloop',1]);let tot=opts.reduce"); ev('window.__ff=' + src); ev('__ff()'); - assert.match(ev("S.inc.find(i=>i.type==='maxpfx').msg"), /in Amsterdam, is down/); + assert.ok(ev("S.inc.find(i=>i.type==='ixloop').msg.includes(ixName('ams~2'))")); // a tick that throws is caught, reported once, and the loop keeps going ev("const dt0=dayTick;window.dayTick=()=>{throw new Error('boom')};UI.speed=1;acc=DAY_MS;last=0;frame(16);window.dayTick=dt0"); assert.equal(ev('UI.tickErr'), true); diff --git a/tests/pnis-and-sold-out.test.js b/tests/pnis-and-sold-out.test.js new file mode 100644 index 0000000..485482f --- /dev/null +++ b/tests/pnis-and-sold-out.test.js @@ -0,0 +1,127 @@ +const test = require('node:test'); +const assert = require('node:assert/strict'); +const { load } = require('./harness'); + +function setup(ev) { + ev("ACT.start({});S.cash=1e9;S.lvl=6;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'});for(const c in S.pops)S.pops[c].rgen=3;compute()"); +} + +test('PNIs with the big networks take a month, now and then 6 to 12, and start at 100G; small ones take weeks', () => { + const { ev, errors } = load(); + setup(ev); + ev("R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:0})"); + assert.equal(ev('S.pni.length'), 0, 'no 10G PNI with NetChill'); + assert.match(ev("document.getElementById('toasts').textContent"), /does not do 10G/); + // one order in seven gets lost in provisioning for months + ev("Math.random=()=>0.1;R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:1})"); + const p = JSON.parse(ev('JSON.stringify(S.pni[0])')); + assert.ok(p.ready - ev('S.day') >= 180 && p.ready - ev('S.day') <= 365, `six to twelve months (${p.ready - ev('S.day')} days)`); + ev('compute()'); + assert.equal(ev('R.usePni[S.pni[0].id]||0'), 0, 'nothing flows before delivery'); + assert.equal(ev('R.cost.pni'), 0, 'and nothing is billed'); + ev('S.nextFail=S.nextEvent=1e9;S.pni[0].ready=S.day+1;dayTick();compute()'); + assert.ok(ev('R.usePni[S.pni[0].id]') > 0, 'delivered on the day'); + // an upgrade is an augment on order: the old port keeps working meanwhile + ev("R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:2})"); + assert.equal(ev('S.pni[0].tier'), 1); + assert.equal(ev('S.pni[0].up.tier'), 2); + ev('ACT.lagP({id:S.pni[0].id,d:1})'); + assert.equal(ev('S.pni[0].up.n'), 1, 'one augment at a time'); + ev('S.day=S.pni[0].up.ready-1;dayTick()'); + assert.equal(ev('S.pni[0].tier'), 2); + assert.equal(ev('S.pni[0].up'), undefined); + // chasing it does nothing, mostly + ev("Math.random=()=>0.5;R.demTo.nfx=1e4;ACT.pni({city:'fra',net:'nfx',tier:3});const r0=S.pni[0].up.ready;ACT.pniChase({id:S.pni[0].id});window.__r=[r0,S.pni[0].up.ready]"); + const [r0, r1] = JSON.parse(ev('JSON.stringify(__r)')); + assert.equal(r0, r1); + // most orders arrive in about a month + ev("Math.random=()=>0.5;S.pni=[];R.demTo.ggl=1e4;ACT.pni({city:'fra',net:'ggl',tier:1})"); + assert.equal(ev("S.pni.find(p=>p.net==='ggl').ready-S.day"), 30); + ev("S.pni=S.pni.filter(p=>p.net!=='ggl')"); + // a beer at a conference halves the wait + ev("Math.random=()=>0.99;S.conf={until:S.day+10,reg:'EU',name:'RIPE'}"); + assert.equal(ev("pniLead('ggl')"), 15, 'the usual month, halved'); + ev('Math.random=()=>0.1'); + assert.equal(ev("pniLead('ggl')"), Math.round((180 + Math.floor(0.1 * 186)) / 2), 'a slow one, halved'); + ev('Math.random=()=>0.99'); + ev('S.conf=null'); + // a small network: a few weeks + const small = ev("NETS.find(n=>n.pops.includes('fra')&&!pniBig(n.id)&&n.pol==='open'&&n.type!=='cdn').id"); + ev(`Math.random=()=>0.99;ACT.pni({city:'fra',net:'${small}',tier:0})`); + const lead = ev(`S.pni.find(p=>p.net==='${small}').ready-S.day`); + assert.ok(lead >= 14 && lead <= 42, `weeks, not months (${lead})`); + assert.deepEqual(errors, []); +}); + +test('Doitsche Telekomm sells 1G PNIs; nobody else does', () => { + const { ev, errors } = load(); + setup(ev); + ev("S.lvl=10;ACT.pni({city:'fra',net:'nfx',tier:-1})"); + assert.equal(ev('S.pni.length'), 0); + assert.equal(ev("peerOk('dtk','pni','fra').ok"), true); + ev("ACT.pni({city:'fra',net:'dtk',tier:-1})"); + assert.equal(ev('S.pni[0].g1'), true); + ev('S.pni[0].ready=S.day;compute()'); + assert.equal(ev('pniG(S.pni[0])'), 1); + assert.equal(ev("liveCap(pniG(S.pni[0]),'fra','a',1)"), 1); + assert.equal(ev('pniPN(S.pni[0])'), '1G'); + // and 1G grows into 10G + ev("ACT.pni({city:'fra',net:'dtk',tier:0})"); + assert.equal(ev('S.pni[0].up.tier'), 0); + ev('S.day=S.pni[0].up.ready-1;dayTick()'); + assert.equal(ev('S.pni[0].g1'), undefined); + assert.equal(ev('pniG(S.pni[0])'), 10); + ev("selectCity('fra');ACT.tab({t:'peer'})"); + assert.deepEqual(errors, []); +}); + +test('Microsnoft has no capacity on the US east coast, at any price', () => { + const { ev, errors } = load(); + setup(ev); + ev("for(const c of ['ash','nyc','hou'])ACT.buildPop({city:c});R.demTo.msf=1e5"); + for (const c of ['ash', 'nyc', 'bos', 'atn', 'mia']) { + assert.equal(ev(`peerOk('msf','pni','${c}').ok`), false, c); + assert.equal(ev(`peerOk('msf','ix','${c}').ok`), false, c); + } + assert.match(ev("peerOk('msf','pni','ash').why"), /capacity|sold out|coming online/i); + assert.equal(ev("peerOk('msf','pni','hou').ok"), true, 'Houston is fine'); + ev("ACT.pni({city:'ash',net:'msf',tier:1})"); + assert.equal(ev("S.pni.filter(p=>p.city==='ash').length"), 0); + assert.equal(ev("peerOk('ggl','pni','ash').ok"), ev("R.demTo.ggl>=Math.round(NET.ggl.minPni)"), 'other networks are not affected'); + assert.deepEqual(errors, []); +}); + +test('saves: PNIs on order survive, and garbage is repaired', () => { + const { ev, errors } = load(); + setup(ev); + ev("S.pni.push({id:'x',city:'fra',net:'dtk',tier:0,g1:true,ready:S.day+30,up:{tier:'9',n:99,ready:'x'}},{id:'y',city:'fra',net:'nfx',tier:1,g1:true})"); + ev('const o=JSON.parse(JSON.stringify(S));sanitize(o);window.__o=o'); + assert.equal(ev("__o.pni.find(p=>p.id==='x').up.n"), ev('LAG_MAX')); + assert.equal(ev("__o.pni.find(p=>p.id==='x').g1"), true); + assert.equal(ev("__o.pni.find(p=>p.id==='y').g1"), undefined, 'only Doitsche Telekomm does 1G'); + assert.deepEqual(errors, []); +}); + +test('now and then a route is sold out of a wave size, for a while, and asking again does not reroll it', () => { + const { ev, errors } = load(); + setup(ev); + ev("ACT.buildPop({city:'ams'});S.pops.ams.rgen=3"); + assert.equal(ev("S.day=10;!!soldOut('fra','ams',3,null)||!!soldOut('fra','ams',1,null)"), false, 'never in the first 90 days'); + // find a day when 400G is sold out between Frankfurt and Amsterdam + const day = ev("(()=>{for(let d=90;d<20000;d++){S.day=d;if(soldOut('fra','ams',2,null))return d;}return -1;})()"); + assert.ok(day > 0, 'it happens'); + ev(`S.day=${day}`); + const so = JSON.parse(ev("JSON.stringify(soldOut('fra','ams',2,null))")); + assert.ok(so.until > day && so.until - day <= 90); + assert.equal(ev(`S.day=${so.until - 1};!!soldOut('fra','ams',2,null)`), true, 'the same verdict for the whole window'); + ev(`S.day=${day}`); + const share = ev("(()=>{let n=0;for(let d=90;d<20090;d++){S.day=d;if(soldOut('ams','fra',5,null))n++;}return n/20000;})()"); + assert.ok(share > 0.02 && share < 0.2, `rare, a bit more for big waves (${share})`); + ev(`S.day=${day};UI.via=null;openLinkModal('fra','ams')`); + assert.match(ev("document.getElementById('modalCard').textContent"), /sold out for \d+ days/); + const n = ev('S.links.length'); + ev('ACT.buildLink({tier:2})'); + assert.equal(ev('S.links.length'), n, 'no 400G today'); + assert.match(ev("document.getElementById('toasts').textContent"), /No 400G capacity on this route/); + assert.deepEqual(errors, []); +}); diff --git a/tests/puzzles.test.js b/tests/puzzles.test.js index 1ba9ef3..5dfddd8 100644 --- a/tests/puzzles.test.js +++ b/tests/puzzles.test.js @@ -488,7 +488,7 @@ test('main-game toasts and leftover buttons do nothing in a puzzle', () => { ev("ACT.pzPop({city:'lon'})"); const st = () => ev("JSON.stringify({p:S.pops,l:S.links.length,c:S.cash,m:S.mode,te:!!S.te,ops:S.ops,sc:S.scrubs.length,dash:$('dash').hidden,bank:$('bankBox').hidden,left:$('left').hidden,modal:$('modal').hidden,cam:[cam.x,cam.y]})"); const s0 = st(); - for (const a of ["opsOpen({})", "inbox({})", "leftTab({t:'noc'})", "focusCity({city:'par'})", "fixInc({id:'x'})", "custGo({id:'x'})", "bank({})", "dash({})", + for (const a of ["opsOpen({})", "peerPol({p:'closed'})", "leftTab({t:'noc'})", "focusCity({city:'par'})", "fixInc({id:'x'})", "custGo({id:'x'})", "bank({})", "dash({})", "exportSave({})", "launchBB({city:'lon'})", "ad({city:'lon'})", "addRouter({city:'lon'})", "upRouter({city:'lon'})", "addSite({city:'lon'})", "buyTE({})", "buildScrub({city:'lon',tier:0})", "buildPop({city:'par'})", "buyTransit({city:'lon',net:'cog',tier:1})", "scenarios({})", "share({})", "importGo({})", "cont({})", "start({})", "newgame({})"]) { ev('ACT.' + a); diff --git a/tests/rules.test.js b/tests/rules.test.js index 9d24992..413ad74 100644 --- a/tests/rules.test.js +++ b/tests/rules.test.js @@ -159,11 +159,10 @@ test('quick lead times: PNIs, dark fiber and own builds arrive in days (#151)', assert.deepEqual(errors, []); }); -test('Change Freeze: no peering inbox, no hardware market, no sold-out routes', () => { +test('Change Freeze: no hardware market, no sold-out routes', () => { const { ev, errors } = load(); start(ev, { mode: 'normal', preset: 'freeze' }); - ev("S.cash=1e9;ACT.buyIx({city:'fra',tier:1,signed:true});for(let i=0;i<60;i++)inboxDay(S.day+i)"); - assert.equal(ev('S.inbox.items.length+S.inbox.seq'), 0, 'no mail'); + ev("S.cash=1e9;ACT.buyIx({city:'fra',tier:1,signed:true})"); ev('S.day=2000'); assert.equal(ev("hwMul('rt')"), 1, 'no inflation'); assert.equal(ev("hwCard()"), ''); diff --git a/tests/utilities.test.js b/tests/utilities.test.js index dae73a8..415925f 100644 --- a/tests/utilities.test.js +++ b/tests/utilities.test.js @@ -127,7 +127,7 @@ test('route-server batch leaves peering policy and player-owned exchanges alone' const { ev, errors } = setup(t); ev('ACT.utilityRouteServers()'); assert.equal(ev('Object.keys(S.rs).length'), 0, 'does not join an IX without a port'); - ev("ACT.buyIx({city:'fra',tier:0,signed:true});ACT.inboxPol({p:'closed'});ACT.utilityRouteServers()"); + ev("ACT.buyIx({city:'fra',tier:0,signed:true});ACT.peerPol({p:'closed'});ACT.utilityRouteServers()"); assert.equal(ev('ppol()'), 'closed'); assert.equal(ev('S.rs.fra'), true); assert.equal(ev("ixSessions('fra').has('drz')"), false, 'does not bypass closed policy'); From 101ced4482239b178a5dccbf061dbbd96f135fc3 Mon Sep 17 00:00:00 2001 From: Frederic Jung Date: Thu, 29 Oct 2026 22:12:43 +0100 Subject: [PATCH 3/3] Tests follow the peering desk: #134 uses an IX loop, Red Sea window, regenerated week 2026-W44 par --- site/scenarios/weekly/2026-W44.json | 2 +- tests/issues.test.js | 2 +- tests/scenarios-playtest.test.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/site/scenarios/weekly/2026-W44.json b/site/scenarios/weekly/2026-W44.json index 8424bfe..62a3d72 100644 --- a/site/scenarios/weekly/2026-W44.json +++ b/site/scenarios/weekly/2026-W44.json @@ -1 +1 @@ -{"v":1,"key":"2026-W44","theme":"flood","city":"sto","cash":2050000,"days":250,"lvl":3,"rules":{"ddos":true},"mods":[],"goal":{"t":"floods","p":{"n":24,"big":1}},"name":{"l":"wkscn.name_packet_monsoon","p":{}},"desc":{"l":"wkscn.desc_city_hosts_the_internets_favourite","p":{"city":"sto"}},"seed":1559294845,"par":195,"ref":{"home":"sto","bb":true,"ix":true,"steps":[{"k":"hop","v":["sto","tll",1,null]},{"k":"hop","v":["tll","hel",1,null]}],"avoid":[],"tr2":false,"scrub":1}} +{"v":1,"key":"2026-W44","theme":"flood","city":"sto","cash":2050000,"days":250,"lvl":3,"rules":{"ddos":true},"mods":[],"goal":{"t":"floods","p":{"n":24,"big":1}},"name":{"l":"wkscn.name_packet_monsoon","p":{}},"desc":{"l":"wkscn.desc_city_hosts_the_internets_favourite","p":{"city":"sto"}},"seed":1559294845,"par":169,"ref":{"home":"sto","bb":true,"ix":true,"steps":[{"k":"hop","v":["sto","tll",1,null]},{"k":"hop","v":["tll","hel",1,null]}],"avoid":[],"tr2":false,"scrub":1}} diff --git a/tests/issues.test.js b/tests/issues.test.js index e77f4fd..37b25dc 100644 --- a/tests/issues.test.js +++ b/tests/issues.test.js @@ -1311,7 +1311,7 @@ test('#134 an exchange named after its city does not repeat the city in messages const labs = JSON.parse(ev("JSON.stringify(lagsN().filter(o=>o.k==='ix').map(o=>o.lab))")); assert.ok(labs.includes('IX.brrr Campinas LAG'), labs.join(' | ')); assert.ok(labs.some(l => / LAG in Frankfurt$/.test(l)), labs.join(' | ')); - ev("S.inc=[];eval('('+fireFailure.toString().replace(\"if(type==='funny'){\",\"type='funny';if(type==='funny'){\").replace('type=pick(f);}',\"type='maxpfx';}\").replace(\"const c=pick(Object.keys(S.ixp));\",\"const c='cpq';\")+')')()"); + ev("S.inc=[];eval('('+fireFailure.toString().replace(\"if(only)type=only;\",\"type='ixloop';\").replace(\"const c=pick(Object.keys(S.ixp));\",\"const c='cpq';\")+')')()"); const msg = ev("S.inc.map(i=>i.msg).join(' ')"); assert.match(msg, /IX\.brrr Campinas/); assert.doesNotMatch(msg, /in Campinas/); diff --git a/tests/scenarios-playtest.test.js b/tests/scenarios-playtest.test.js index 663fb11..1e8afeb 100644 --- a/tests/scenarios-playtest.test.js +++ b/tests/scenarios-playtest.test.js @@ -18,7 +18,8 @@ const PLAY = { win: [120, 240], cheese: [['bb', 'stg'], ['ix', 'stg'], ['link', 'stg', 'fra', 1], ['ix', 'fra'], ['bb', 'fra'], ['loans'], ['hire', ['routers', 'repair']]], by: null }, // The other way round the planet: Paris, New York, Los Angeles, Tokyo, Hong Kong, Singapore. redsea: { ref: [...home('mrs'), ['link', 'mrs', 'par', 1], ['bb', 'par'], ['ix', 'par'], ['link', 'par', 'nyc', 1, 'amitie'], ['tr', 'nyc', 1], ['ix', 'nyc'], ['link', 'nyc', 'lax', 1], ['ix', 'lax'], ['tr', 'lax', 1], ['link', 'lax', 'tok', 1, 'jup'], ['bb', 'tok'], ['tr', 'tok', 1], ['ix', 'tok'], ['link', 'tok', 'hkg', 1, 'apg'], ['bb', 'hkg'], ['tr', 'hkg', 1], ['ix', 'hkg'], ['link', 'hkg', 'sin', 1], ['bb', 'sin'], ['tr', 'sin', 1], ['ix', 'sin'], HIRE], - win: [100, 250], cheese: [...home('mrs'), ['loans'], ['link', 'mrs', 'sin', 1], ['bb', 'sin']], by: null }, + // 2.0.0: no more max-prefix outages to break the 30-day streak, so the reference can finish in under 100 days. + win: [80, 250], cheese: [...home('mrs'), ['loans'], ['link', 'mrs', 'sin', 1], ['bb', 'sin']], by: null }, spat: { ref: [...home('nyc'), HIRE], avoid: ['cog'], win: [50, 140], cheese: [...home('nyc'), ['hire', ['routers', 'repair']]], by: 160 }, carnaval: { ref: [...home('rio'), ['hire'], ['wait', 69], ['prep', 'rio', 400], ['wait', 76], ['prep', 'rio', 400], ['wait', 83], ['prep', 'rio', 400]], win: [95, 95], cheese: [...home('rio'), ['loans']], by: null }, darien: { ref: [...home('pan'), ['link', 'pan', 'bog', 1, 'pccs'], ['bb', 'bog'], ['ix', 'bog'], ['link', 'bog', 'lim', 1], ['bb', 'lim'], ['ix', 'lim'], ['link', 'lim', 'scl', 1], ['bb', 'scl'], ['ix', 'scl'], ['link', 'scl', 'sao', 1], ['bb', 'sao'], ['tr', 'sao', 1], ['ix', 'sao'], HIRE],