diff --git a/.claude/skills/gameplay-rules/SKILL.md b/.claude/skills/gameplay-rules/SKILL.md index d4cdf1c..a8e7364 100644 --- a/.claude/skills/gameplay-rules/SKILL.md +++ b/.claude/skills/gameplay-rules/SKILL.md @@ -66,3 +66,12 @@ These are what the game promises, held up by `tests/gameplay-rules.test.js` (one | F3 | A specialist path (#187) only brings a customer type in below its level when the network can already serve it, or nearly: the spotted cities have POPs, the latency is met, the fiber carries at least three quarters of the smallest order. | Capability, not luck: an offer you cannot fulfil with a reasonable build is a trap. | | F4 | The chaos monkey visits only On-call and BGP at 3 a.m. (never Change Freeze, Sandbox, puzzles or scenarios), not before day 180, for 120 to 240 days; while it is here its snips replace the ordinary failures, each snip heals within a week, and it goes after tubes with no other way round first. | A test of resilience you can prepare for, not a pile-on: the reward goes to networks built with a second path. | | F5 | Capacity you rent to other carriers never outgrows the route's market: a broker listing sells over time as carriers between the two cities want it, and neither it nor a random offer sells past what both cities' eyeballs support (a landing town counts the big city it serves). | Rent that scales with your own glass and not with demand is a money machine (#203). | + +## DDoS + +| Id | Rule | Why | +| --- | --- | --- | +| D1 | Attack sizes come from the world, never from your network: a heavy tail (median near 9 G, one in a hundred over 650 G) scaled by the era, capped at the era's record, and for the first 180 days (or with one POP) never more than twice your biggest port. Ten times the subscribers means the same attacks. | Sizes that grew with the network made every late-game flood larger than the internet's record (#242). | +| D2 | A flood enters on every port the internet reaches you on, by each network's share, and a port carries only what fits: everyone on a full port loses the same share. | Real floods are spread by geography; one fat port at a single POP is the weak spot (#242). | +| D3 | Only upstream tools (RTBH, clean pipe) and an engaged scrubbing center keep a flood off your ports. Flowspec acts on the ingress router, after the port, within that router's own rule budget. | Flowspec protects customers, not the external connections; TCAM is finite. | +| D4 | RTBH costs only the target: it goes dark (and its mood drops once), everyone else is saved, and the attack counts as sacrificed, not held. | RTBH is the tool that saves the network and is bad for that one customer, so it must be a real choice. | diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a2e61a..6c2e494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ All notable changes to this project are documented here. The project follows ## [Unreleased] - Cities on the map now show how big they are: zoomed out, bigger cities are bigger dots and megacities glow; zoomed in, a city's skyline grows from a hut to a megacity's towers. When cities crowd together, the smaller ones step back to a dot until you zoom in, so the map stays readable, and exchanges you haven't joined are quieter tags. +- DDoS attacks are realistic now: most are small, the big ones are rare, and their size no longer grows with your network, so a big network is no longer hit by floods larger than the internet's record. Attacks go after one customer (gamers and hosting attract the most) or one city's subscribers, last one to three days, and On-call sees about one a month (#242). +- A flood now arrives on every port the internet reaches you on, so more POPs and more exits spread it thinner, and a port it fills slows every customer on it. Flowspec and scrubbing behind a full port can no longer empty it (#242). +- RTBH now blackholes only the customer under attack, upstream at your transits, most exchanges and about half your private peers: everyone else is saved and the target goes dark until you withdraw it. The IX blackhole button is part of RTBH now, and RouteScript's `blackhole ddos` does the same. +- Each router holds a limited number of Flowspec rules, shown in its POP: every attack takes one rule on each router it enters (a carpet bomb takes four), and when they run out, junk passes that router unfiltered. Bigger routers hold more. +- An engaged scrubbing center now pulls the whole flood onto its own ingress and cleans up to its size, so your ports stay clear and only the target suffers if the center is too small. On-demand scrubbing takes half the flood on its first day instead of nothing for two days. +- The NOC's attack card reads like the flood's path: who is hit, which ports are full, what Flowspec and scrubbing do, the result and the one thing to do now. Optional Auto-RTBH and auto-engaged scrubbing switches sit in the NOC, full ports pulse on the map, and Sandbox can send a test flood. +- Flood Season starts at customer level 4, so a 10T scrubbing center is within reach for the terabit floods; a flood you blackhole to save everyone else no longer counts as held. ## [2.1.0] — 2026-10-31 - Your backbone now runs a technology you choose: plain IGP, LDP/MPLS, RSVP-TE, SR-MPLS or SRv6. Each step up costs plenty and uses less router CPU: label switching makes traffic that only passes through a POP cheaper for its router, and Auto-TE and RouteScript now need RSVP-TE or higher. Routers only run what they support, so a POP with an older router stays outside the backbone, and mixing vendors at the very top of what their routers can do brings interop failures. Networks that already have Auto-TE keep it exactly as it is. diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 3b2f4af..ee16483 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -31,8 +31,8 @@ hoisted across files, and top-level statements run in path order. Find code by n | `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 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()` | +| `80-simulation/` | Dijkstra, RouteScript, where a DDoS flood goes (`ddosLoad()`/`ddosAfter()`, called by `compute()`), `compute()`, monthly prices, `sanitize()`/`migrate()`, customer requirements, events, geography pricing and latency, second sites and service | +| `85-incidents/` | `addInc()`, DDoS attacks (targets, sizes, scoring, the NOC card) and scrubbing, `fireFailure()`, `clearInc()`, `fireEvent()` | | `88-days/` | `dayTick()`, new offers, badges, `checkGoals()` | | `90-actions/` | The `ACT` map, one file per area (`const ACT` in `10-interface.js`, `Object.assign(ACT,…)` in the rest), and their helpers | | `91-save.js`, `92-audio.js` | Save, export and import; sound effects | diff --git a/site/i18n/de.js b/site/i18n/de.js index e44955e..43c548b 100644 --- a/site/i18n/de.js +++ b/site/i18n/de.js @@ -829,7 +829,6 @@ "city_panel.add_a_second_site_cost_mo":"Zweiten Standort hinzufügen {cost} + {mo}/Monat", "city_panel.add_router_cost_mo_mo":"Router hinzufügen {cost} + {mo}/Monat", "city_panel.ai_and_cloud_campuses_nearby_list":"KI- und Cloud-Campusse in der Nähe: {list}", -"city_panel.attacks_go_to_your_nearest_scrubbing":"Angriffe gehen an dein nächstes Scrubbing-Center. Von hier aus ist das {city}, {km} km entfernt: Die Flut fährt über deinen Backbone hin und zurück, was Latenz kostet, und was deine Links nicht tragen können, wird nicht gescrubbt. Ein Center hier reinigt Angriffe direkt vor Ort.", "city_panel.augment_on_order_port_about_n":"Erweiterung bestellt: {port}, noch etwa {n} Tage.", "city_panel.boxes_a_in_a_b_in":"Boxen: {a} in A · {b} in B", "city_panel.build_pop_cost_mo_mo":"POP bauen {cost} + {mo}/Monat", @@ -841,7 +840,6 @@ "city_panel.cdns_put_free_cache_servers_inside":"CDNs stellen kostenlose Cache-Server in deinen POP. Der Großteil ihres Traffics wird dann direkt hier ausgeliefert, ohne Transit und ohne IX-Port.", "city_panel.clean_pipe_mo_mo_scrubs_ddos":"+ Clean-Pipe {mo}/Monat · scrubbt DDoS beim Upstream", "city_panel.clean_pipe_on":"Clean-Pipe an ✓", -"city_panel.cleans_attacks_for_your_whole":"Filtert Angriffe für dein ganzes Netz heraus, bis zu seiner Clean-Bandbreite, und schaltet DDoS-Schutzverträge frei. Sauberer Traffic kommt über GRE zurück, was das MSS-Black-Hole wieder aufreißen kann.", "city_panel.cleans_ddos_attacks_for_your_whole":"Reinigt DDoS-Angriffe für dein ganzes Netz, bis zu seiner Clean-Bandbreite, und schaltet DDoS-Schutzverträge für Unternehmen frei.", "city_panel.close_site_b":"Standort B schließen", "city_panel.cn_too_premium_on":"CN-Too Premium an ✓", @@ -858,6 +856,7 @@ "city_panel.few_data_centers_pops_x":"Wenige Rechenzentren: POPs {x}×", "city_panel.fiber_from_city":"Glasfaser von {city}", "city_panel.fiber_is_down":"Glasfaser ist down", +"city_panel.floods_here_are_pulled_to":"Fluten auf Ziele hier werden zu deinem Scrubbing Center in {city} gezogen, {km} km entfernt. Sauberer Traffic fährt über deinen Backbone zurück, das kostet Latenz. Ein Center hier hält den Umweg kurz.", "city_panel.g_of_circuits":"{g} an Verbindungen", "city_panel.g_of_eyeballs":"{g} an Privatkunden", "city_panel.hide_other_models":"Andere Modelle ausblenden", @@ -886,7 +885,7 @@ "city_panel.no_ix_here_yet_you_could":"Hier gibt es noch keinen IX. Du könntest später einen gründen.", "city_panel.nobody_sells_transit_here_haul_your":"Hier verkauft niemand Transit. Schaff deinen Traffic per Glasfaser in eine Stadt, in der es welchen gibt.", "city_panel.nothing_plugged_in_here_yet":"Hier ist noch nichts angeschlossen", -"city_panel.on_demand_engages_in_n_d":"On-Demand (greift nach {n} T.)", +"city_panel.on_demand_half_the_first_day":"On-Demand (am ersten Tag zur Hälfte)", "city_panel.one_router_is_a_single_point":"Ein Router ist ein Single Point of Failure.", "city_panel.only_the_cn_too_premium_crossing":"Hier gibt es nur ihren CN-Too-Premiumübergang, über Land nach China: zu Hongkong-Preisen, mit etwa 3 % Verlust nach China, und sonst nichts.", "city_panel.open_a_pop_here":"Hier einen POP eröffnen", @@ -902,6 +901,7 @@ "city_panel.price_per_gbps_month_billed_on":"${price} pro Gbps / Monat · abgerechnet nach 95. Perzentil", "city_panel.prices_include_p_back_for_the":"Preise enthalten {p} Erlös für die alten Router auf eBuy.", "city_panel.private_interconnects_pni":"Private Interconnects (PNI)", +"city_panel.pulls_floods_onto_its_own":"Eingeschaltet kündigt es das Ziel spezifischer an, also kommen Fluten über seinen eigenen {g}-Eingang statt über deine Ports, und es filtert sie. Sauberer Traffic fährt über deinen Backbone zurück. Außerdem schaltet es DDoS-Schutzverträge frei.", "city_panel.ready_in_n_d":"fertig in {n} T.", "city_panel.really_close_it":"Wirklich schließen?", "city_panel.really_shut_it_down":"Wirklich abschalten?", @@ -1514,9 +1514,10 @@ "common.your_pop":"Dein POP", "common.your_pops":"Deine POPs", "common.zombie_route":"Zombie-Route", -"compute.attack_hauled_to_scrubbing_in_city":"Angriff zum Scrubbing nach {city} geschleppt", +"compute.attack_entering_in_city":"Angriff kommt in {city} rein", "compute.courtesy_route_to_new_networks":"Gefälligkeits-Route zu neuen Netzen", "compute.l2vpn_for_name":"L2VPN für {name}", +"compute.scrubbed_traffic_from_city":"Gefilterter Traffic aus {city}", "compute.sd_wan_for_name":"SD-WAN für {name}", "conferences.as_a_sponsor_you_also_get":"Als Sponsor bekommst du außerdem mehr Kundenangebote aus {region}.", "conferences.attend_cost":"Teilnehmen {cost}", @@ -1690,6 +1691,53 @@ "day_tick.you_are_in_the_red_cancel":"Du bist in den roten Zahlen.
Kündige etwas Teures, warte auf Umsatz oder schau bei der Bank nach einem Kredit. Bei −$100k holt sich die Bank deine Router.", "day_tick.you_are_no_longer_tier_1":"Du bist nicht mehr Tier 1.
Denn {why}. Dein Tier-1-Abzeichen bleibt; hol dir den Status zurück, um es wieder anzuzeigen.", "day_tick.your_fiber_is_finished_a_b":"Deine Glasfaser ist fertig: {a}–{b}", +"ddos.auto_rtbh":"Auto-RTBH: Die Flut auf {who} hat deine Ports gefüllt, also wird das Ziel upstream geblackholt. Alle anderen sind sicher.", +"ddos.auto_rtbh_off":"Auto-RTBH: aus", +"ddos.auto_rtbh_on":"Auto-RTBH: an", +"ddos.auto_scrub_off":"Scrubbing automatisch einschalten: aus", +"ddos.auto_scrub_on":"Scrubbing automatisch einschalten: an", +"ddos.btn_engage":"Scrubbing einschalten", +"ddos.btn_rtbh":"Ziel per RTBH blackholen", +"ddos.card_title":"{g} {vec}", +"ddos.carpet":"Carpet Bombing", +"ddos.engaged":"Scrubbing läuft: Die Flut wird zu deinen Centern gezogen.", +"ddos.flood_sacrificed":"Eine Flut mit {g}: Du hast {who} geblackholt, um alle anderen zu retten. Das zählt nicht als gehalten.", +"ddos.fs_help":"Flowspec-Regeln liegen im TCAM jedes Routers. Sie filtern eine Flut, sobald sie drin ist, nie einen vollen Port. Größere Router fassen mehr Regeln.", +"ddos.fs_no_tcam":"keine (kein TCAM)", +"ddos.fs_pops":"POPs mit Flowspec", +"ddos.fs_rules":"Flowspec-Regeln", +"ddos.fs_used":"{used} / {cap} belegt", +"ddos.learn_fs":"Die Router in {city} haben keine Flowspec-Regeln mehr frei, also kommt der Müll dort ungefiltert durch. Größere Router fassen mehr Regeln.", +"ddos.learn_port":"Ein Port ist voll. Alles darauf verliert Traffic, und nichts hinter dem Port kann helfen. Mehr und größere Ports verteilen eine Flut dünner; RTBH oder ein Scrubbing Center halten sie davon fern.", +"ddos.learn_rtbh":"Du hast alle anderen gerettet und einen Kunden abgeschaltet. So ist der Deal.", +"ddos.more":"Mehr", +"ddos.news_held":"Dein Netz schluckt es weg. Keiner merkt was.", +"ddos.news_ports":"Volle Ports: {n}. Ausgebremste andere Kunden: {k}. RTBH würde sie retten.", +"ddos.news_rtbh":"Upstream geblackholt: Das Ziel ist offline, allen anderen geht’s gut.", +"ddos.news_target":"Sonst merkt es keiner, aber das Ziel bekommt nur {p} seines Traffics.", +"ddos.res_col":"Ziel bei {p}, und {g} anderer Traffic verloren", +"ddos.res_held":"Gehalten: Keiner merkt was", +"ddos.res_rtbh":"{who} ist offline; allen anderen geht’s gut", +"ddos.res_target":"Ziel bei {p}, sonst niemand betroffen", +"ddos.row_detour":"Sauberer Traffic macht {ms} ms Umweg über {city}", +"ddos.row_fs":"Flowspec verwirft {g} auf den Routern in {n} POPs", +"ddos.row_fs_full":"Keine Flowspec-Regeln mehr frei in {cities}", +"ddos.row_fs_no_router":"Diese Router können kein Flowspec", +"ddos.row_fs_none":"Flowspec hat keine Signatur für {vec}", +"ddos.row_ports_full":{"one":"Kommt über {n} Port rein, {k} voll: {labs}","other":"Kommt über {n} Ports rein, {k} voll: {labs}"}, +"ddos.row_ports_ok":{"one":"Kommt über {n} Port rein, nicht voll","other":"Kommt über {n} Ports rein, keiner voll"}, +"ddos.row_rtbh":"RTBH verwirft {g} upstream", +"ddos.row_scrub":"Scrubbing zieht {g} an und filtert {c} ({cities})", +"ddos.row_scrub_idle":"On-Demand-Scrubbing wartet auf dich", +"ddos.row_scrub_none":"Kein Scrubbing Center", +"ddos.row_slowed":{"one":"{n} anderer Kunde ausgebremst","other":"{n} andere Kunden ausgebremst"}, +"ddos.rtbh_help":"RTBH ist gratis und sofort da. Transits verwerfen den Traffic zum Ziel upstream, die meisten Exchanges auch, und etwa die Hälfte deiner privaten Peers. Deine Ports sind gerettet; das Ziel bleibt offline, bis du es zurückziehst.", +"ddos.rtbh_off":"Blackhole zurückgezogen: {who} ist wieder erreichbar.", +"ddos.rtbh_on":"RTBH angekündigt: {who} ist upstream geblackholt.", +"ddos.started":"Ein {vec}-Angriff mit {g} trifft {who}.", +"ddos.test_flood":"Testflut schicken", +"ddos.who_customer":"{name} ({what}, {city})", +"ddos.who_subscribers":"deine Privatkunden in {city}", "de_kicks.a_fee_for_being_ready_for":"Eine Gebühr dafür, bereit für die Cloud zu sein.", "de_kicks.a_monthly_pdf_of_your_own":"Ein monatliches PDF deiner eigenen Traffic-Graphen.", "de_kicks.breaking_cve_2026_31337_just_took":"🐘 EILMELDUNG: CVE-2026-31337 hat gerade das halbe Internet lahmgelegt.
Ein Bug in PHP hat jede WordPress-artige Website der Welt in einen Krypto-Miner verwandelt. Der Privatkunden-Traffic sinkt für ein paar Tage um 30 %, während die Welt patcht. Deine Hosting-Kunden machen das um 3 Uhr nachts.", @@ -1820,7 +1868,6 @@ "failures.a_rival_isp_s_stress_test":"der „Stresstest“ eines konkurrierenden ISPs", "failures.a_routine_overnight_upgrade_took":"Ein routinemäßiges nächtliches Upgrade hat deinen Router in {city} bis zum Mittag offline genommen. Floptus lässt grüßen.", "failures.a_ship_dragged_its_anchor_across":"Ein Schiff hat seinen Anker über dein Kabel {a}–{b} geschleift.", -"failures.a_size_vec_attack_is_hitting":"Ein {vec}-Angriff mit {size} trifft {city}{how}.", "failures.a_splicer_fusing_someone_else_s":"Ein Spleißer, der in einem Schacht bei {b} das Kabel von jemand anderem spleißen sollte, hat stattdessen deins verschmolzen.", "failures.a_sulphur_crested_cockatoo_chewed":"Ein Gelbhaubenkakadu hat deine Glasfaser {a}–{b} durchgekaut und ist dann für die Reservefaser wiedergekommen.", "failures.a_teenager_with_a_stolen_credit":"ein Teenager mit einer geklauten Kreditkarte und Wut im Bauch", @@ -1866,8 +1913,6 @@ "failures.geopolitical_cable_cut":"Geopolitischer Kabelschnitt", "failures.hash_polarisation_on_your_lab_nearly":"Hash-Polarisation auf deinem {lab}: Fast jeder Flow landet auf demselben Mitglied. Das Bündel sagt, es ist up. Es ist auch voll.", "failures.hide_the_vacuum":"Staubsauger verstecken", -"failures.in_via_e":", rein über {e}", -"failures.junk_traffic_is_eating_your_capacity":"Müll-Traffic frisst deine Kapazität. Öffne das NOC, um dich zu wehren.", "failures.lacp_fast_slow_timer_mismatch_on":"LACP-Fast/Slow-Timer-Mismatch auf deinem {lab}: Ein Mitglied fliegt ständig per Timeout aus dem Bündel und kommt wieder.", "failures.lightning_hit_an_amp_site_on":"Ein Blitz hat einen Verstärkerstandort an {a}–{b} getroffen. Der Überspannungsschutz war Deko.", "failures.load_shedding_in_city_stage_n":"Lastabwurf in {city}
Heute Stufe {n}. Dein Generator hat gehustet, dann blieb das Licht an.", @@ -1940,7 +1985,6 @@ "failures.your_a_b_cable_went_quiet":"Dein Kabel {a}–{b} ist irgendwo im Bermudadreieck verstummt. Das Reparaturschiff ist nachsehen gefahren und hat sich auch noch nicht zurückgemeldet.", "failures.your_a_b_fiber_broke_somewhere":"Deine Glasfaser {a}–{b} ist irgendwo in der Nullarbor-Ebene gerissen. Der Spleißtrupp hat für eine Woche gepackt.", "failures.your_a_b_fiber_is_down":"Deine Glasfaser {a}–{b} ist down. Der Reparaturtrupp hat Bissspuren gefunden, eine Biberburg und einen sehr stolzen Biber.", -"failures.your_mitigation_is_eating_most_of":"Deine Abwehr frisst das meiste davon.", "failures.your_on_call_engineer_typed_clear":"Dein Bereitschaftsingenieur hat um 3 Uhr nachts in {city} „clear bgp *“ in Produktion getippt. Es wurde gecleart.", "failures.your_roa_expired_over_the_weekend":"Deine ROA ist übers Wochenende abgelaufen. Deine Präfixe sind RPKI-invalid, und etwa das halbe Internet verwirft sie.", "failures.your_router_in_city_crashed_and":"Dein Router in {city} ist abgestürzt und bootet neu. Er {what}. Bootzeit bei diesem hier: etwa {min} Minuten pro Versuch, und er ist bei Versuch {n}.", @@ -2053,10 +2097,10 @@ "help.as_your_peak_traffic_and_footprint":"Während dein Spitzen-Traffic und deine Präsenz wachsen, tauchen größere Kunden auf: Streaming-Startups und Universitäten, dann KI-GPU-Rechenzentren und Cloud-On-Ramps, dann KI-Trainings-Interconnects und Hyperscaler-DCI-Deals im Terabit-Bereich. Pinke $$-Blasen markieren die großen.", "help.at_customer_level_3_and_4":"Ab Kundenlevel 3 und 4 kommen Hyperscaler und KI-Clouds mit Deals, wie nur sie sie verlangen: Terabit-KI-WANs zwischen Gigawatt-Campussen, Trainingsläufe über mehrere Standorte, wochenlange Datensatz-Ingests und Hunderte Faserpaare in einem Graben, den du selbst gegraben hast. Sie zahlen wie sonst niemand, und sie wollen redundante Pfade, zwei Standorte pro Stadt und null Ausreden. Städte in der Nähe ihrer Campusse führen sie unter „Wer ist hier“.", "help.below_your_goals_sits_a_wall":"Unter deinen Zielen hängt eine Wand voller Abzeichen, von gewöhnlich bis legendär. Manche brauchen Glück, manche Jahre, und ein paar sind geheim. Abzeichen aus früheren Spielen bleiben auf diesem Gerät, mit gestricheltem Rand.", -"help.build_one_in_as_many_pops":"Bau in so vielen POPs eins, wie du willst. Ein Angriff geht zum nächsten funktionierenden Center, und was es nicht schafft, schwappt zum nächsten. Ein weit entferntes Center heißt: Die Flut fährt über deinen Backbone dorthin, und der Traffic des Opfers kommt auf dem langen Weg zurück. Das füllt deine Links, kostet Latenz, und was die Links nicht tragen können, wird nicht gescrubbt. Kunden mit DDoS-Schutz merken es, wenn ihre Angriffe einen Ozean überqueren.", "help.businesses_may_want_a_private":"Geschäftskunden wollen vielleicht eine private Verbindung zwischen zwei deiner POPs (sie läuft über deinen Backbone) oder DDoS-Schutz (braucht ein eigenes Scrubbing-Center).", "help.content_networks_like_netchill_and":"Content-Netze wie NetChill und Goggle. Der Großteil deines Traffics kommt von ihnen. Peere mit ihnen, und dieser Traffic ist kostenlos.", "help.controls_drag_the_map_to_pan":"Steuerung: Zieh die Karte zum Verschieben, scrolle oder nutze zwei Finger zum Zoomen, tippe auf eine Stadt, um sie zu öffnen. Zieh von einer Stadt zur anderen, um Glasfaser zu verlegen. Leertaste pausiert, 0 ist halbe Geschwindigkeit, 1 2 3 4 stellen das Tempo ein. Bei 1× dauert ein Tag 2,5 Sekunden.", +"help.ddos_a_flood_comes_from":"Eine Flut kommt von überall, also trifft sie auf jedem Port ein, über den dich das Internet erreicht. Ein Port trägt, was passt, und alle auf einem vollen Port verlieren Traffic. RTBH verwirft den Traffic zum Ziel upstream und rettet alle anderen, aber das Ziel ist offline. Flowspec filtert eine Flut auf jedem Router, sobald sie drin ist, im Rahmen seines Regelbudgets. Die meisten Angriffe sind klein; Gamer und Hosting ziehen die großen an.", "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", @@ -2083,6 +2127,7 @@ "help.reach_an_ix_over_a_fabric":"Erreiche einen IX über eine Fabric-Verbindung, ohne dort einen POP zu haben. Das funktioniert, und der Route Server bringt dir trotzdem jedes offene Netz, aber es wird nicht empfohlen: Der Reseller verlangt das 1,5-Fache für den Port und überbucht ihn auf 80 %, die Latenz läuft über die Fabric, ein Fabric-Ausfall reißt jede Session runter, und viele selektive Netze lehnen Remote-Mitglieder rundheraus ab.", "help.routers_optics_and_new_builds_get":"Router, Optiken und Neubauten werden mit den Jahren teurer, nach den ersten sechs Monaten etwa 4 % pro Jahr, und ab und zu macht ein Engpass eins davon für einen oder zwei Monate deutlich teurer. Was du schon besitzt, behält seinen Preis. Ersatzteile im Regal und eine jährliche Preisbindung aus dem Tab NOC verringern den Preisschock.", "help.rules_for_your_auto_te_controller":"Regeln für deinen Auto-TE-Controller: welche Ausgänge bevorzugt, welche gemieden werden und wann auf den nächsten übergelaufen wird. Die Hilfe im Editor erklärt jede Regel und hat fertige Skripte.", +"help.scrubbing_a_center_pulls_floods":"Eingeschaltet zieht ein Center die Flut auf seinen eigenen Eingang (ein Magnet) und filtert bis zu seiner Größe (ein Schwamm); was es nicht schafft, trifft nur das Ziel. Sauberer Traffic fährt über deinen Backbone zurück, ein weit entferntes Center kostet also Latenz. Bau sie dort, wo deine Kunden sind.", "help.share_my_network":"Mein Netz teilen", "help.some_customers_come_with_conditions":"Manche Kunden kommen mit Bedingungen: nirgends Cogentle, keine Seekabel wegen Haien, zwei Router, ein Generator, NetChill on-net, verlustarme Erreichbarkeit nach China und mehr. Jede bringt einen Bonus. Nicht erfüllte machen sie grantig, bis du es behebst oder sie gehen.", "help.some_routers_take_forever_to_boot":"Manche Router brauchen ewig zum Booten. Der Tab Infra zeigt, wie lange deiner braucht. Langsame Booter lassen Abstürze länger dauern und machen aus einem Router-Tausch einen dreitägigen Ausfall. Größere Chassis, vor allem alles mit einem PacketOinker™ drin, sind öfter langsam. Zwillingsrouter machen das zum Problem von jemand anderem.", @@ -2192,8 +2237,6 @@ "hud_and_panels.customer_level_lv_name":"Kundenlevel {lv}: {name}", "hud_and_panels.dropping_or_overflowing":"verwirft oder läuft über", "hud_and_panels.every_network_on_the_map_traffic":"Jedes Netz auf der Karte. Der Traffic-Anteil ist, wie viel vom Traffic deiner Nutzer zu ihnen geht. Tippe auf eine Verbindung, um zu ihrem POP zu springen.", -"hud_and_panels.flowspec_capable_pops":"Flowspec-fähige POPs", -"hud_and_panels.flowspec_drop_rules_live_in_router":"Flowspec-Drop-Regeln liegen im TCAM des Routers, also filtern nur fähige Router bekannte UDP-Fluten (DNS, NTP, CLDAP, SYN) am Edge. Der gebrauchte Rusty kann es gar nicht, Merchant-Silicon- und Whitebox-Modelle ein bisschen, die großen Chassis voll. Rüste den Router eines POPs in seinem Tab Infra auf.", "hud_and_panels.g_lost":"{g} verloren", "hud_and_panels.happiness_p":"Zufriedenheit {p} %", "hud_and_panels.has_errors_not_running":"hat Fehler, läuft nicht", @@ -2242,45 +2285,22 @@ "incidents_and_ddos.a_leap_second_convinced_one_of":"Eine Schaltsekunde hat einen deiner Router überzeugt, es sei 1970. Die Uptime zeigt jetzt minus 56 Jahre. Der Traffic ist okay.", "incidents_and_ddos.a_route_you_withdrew_in_year":"Eine Route, die du in Jahr 1 zurückgezogen hast, ist irgendwo im Internet immer noch sichtbar. Niemand weiß, wo. Alles gut. Wahrscheinlich.", "incidents_and_ddos.a_two_hour_meeting_about_router":"Ein zweistündiges Meeting über Router-Hostnamen endete mit einer Abstimmung für „router-final-v2-NEU“.", -"incidents_and_ddos.after_upstream_scrubbing_g":"Nach Upstream-Scrubbing: {g}", "incidents_and_ddos.an_auditor_asked_for_a_network":"Ein Prüfer wollte einen Netzplan. Du hast die Spielkarte geschickt. Er hat sie abgenickt.", -"incidents_and_ddos.attack_fully_mitigated":"Angriff vollständig abgewehrt", -"incidents_and_ddos.blackhole_the_target_rtbh":"Ziel blackholen (RTBH)", -"incidents_and_ddos.blackholed_the_junk_is_gone_and":"Geblackholt: Der Müll ist weg, und {city} auch. Der Angriff hat bekommen, was er wollte.", -"incidents_and_ddos.contained_on_your_sacrificial_net":"Eingedämmt auf deinem geopferten {net}-PNI", -"incidents_and_ddos.edge_filters_dropping_g":"Edge-Filter verwerfen: {g}", -"incidents_and_ddos.flowspec_cannot_catch_vec":"Flowspec fängt {vec} nicht ab", -"incidents_and_ddos.flowspec_dropping_g":"Flowspec verwirft: {g}", -"incidents_and_ddos.g_is_leaking_through":"{g} kommen trotzdem durch", "incidents_and_ddos.hackback_3000tm_20k":"HackBack 3000™ $20k", "incidents_and_ddos.it_was_dns":"Es war DNS", -"incidents_and_ddos.ix_blackhole_half_honour_it":"IX-Blackhole ~die Hälfte respektiert es", -"incidents_and_ddos.ix_blackhole_on":"IX-Blackhole an ✓", "incidents_and_ddos.ix_lag":"{ix}-LAG", "incidents_and_ddos.ix_lag_in_city":"{ix}-LAG in {city}", -"incidents_and_ddos.live_attack_city":"Laufender Angriff: {city}", "incidents_and_ddos.load_bearing_typo":"Tragender Tippfehler", "incidents_and_ddos.management_declared_a_change_freeze":"Das Management hat einen Change Freeze verhängt. Jemand hat einen Change gemacht, um den Change Freeze anzukündigen.", "incidents_and_ddos.name_transit_lag_in_city":"{name}-Transit-LAG in {city}", -"incidents_and_ddos.no_flowspec_filtering_ingress":"Kein Flowspec-Filter: Die Eingangs-Router haben kein TCAM", -"incidents_and_ddos.no_scrubbing_center":"Kein Scrubbing-Center", -"incidents_and_ddos.no_scrubbing_needed_after_edge":"Nach der Abwehr am Edge ist kein Scrubbing nötig", -"incidents_and_ddos.on_demand_scrubbing_diverting_live":"On-Demand-Scrubbing leitet um, aktiv in {n} T.", "incidents_and_ddos.open_to_work":"Open to Work", "incidents_and_ddos.pni_lag_with_name_in_city":"PNI-LAG mit {name} in {city}", -"incidents_and_ddos.rtbh_is_free_and_instant_but":"RTBH ist kostenlos und sofort, verwirft aber alles zum Opfer, Angriff und Kunde gleichermaßen. Ein IX-Blackhole hält den Kunden online, aber nur etwa die Hälfte der Mitglieder respektiert es. Der HackBack 3000™ von Skynot AI beendet es manchmal, und manchmal plättet er einen Unschuldigen und bringt dir eine Strafe ein.", -"incidents_and_ddos.scrubbing_centers_unavailable_or_at":"Scrubbing-Center nicht erreichbar oder voll", -"incidents_and_ddos.scrubbing_in_city_used_capacity":"Scrubbing in {city}: {used} / {capacity}", -"incidents_and_ddos.scrubbing_traffic_hauled_over_your":"Scrubbing-Traffic über dein Backbone: {city} → {to} (+{ms} ms)", -"incidents_and_ddos.size_vec_entry_n_d_left":"{size} · {vec}{entry} · noch {n} T.", "incidents_and_ddos.someone_deleted_the_dns_record_for":"Jemand hat den DNS-Eintrag für das interne Wiki gelöscht. Das Runbook zum Reparieren von DNS lag im Wiki.", "incidents_and_ddos.someone_named_a_vlan_prodcution_it":"Jemand hat ein VLAN „prodcution“ genannt. Es ist jetzt tragend und kann nie umbenannt werden.", "incidents_and_ddos.the_tls_certificate_on_your_noc":"Das TLS-Zertifikat deines NOC-Dashboards ist abgelaufen. Niemand kann Graphen sehen, also gibt es technisch gesehen keine Probleme.", -"incidents_and_ddos.this_attack_g":"Dieser Angriff: {g}", "incidents_and_ddos.ticket_of_the_week":"Ticket der Woche", "incidents_and_ddos.vendor_support_asked_you_to_try":"Der Hersteller-Support hat dich gebeten, „es mal aus- und wieder einzuschalten“. Für den Router, den du schon neu gestartet hast. Ticket geschlossen.", "incidents_and_ddos.you_found_a_10g_link_in":"Du hast im Inventar einen 10G-Link gefunden, den niemand bestellt hat, für den niemand zahlt und der 3 Gbps von irgendwas transportiert.", -"incidents_and_ddos.your_backbone_can_only_haul_g":"Dein Backbone kann nur {g} davon nach {city} schleppen: Der Rest wird nicht gescrubbt", "incidents_and_ddos.your_ip_address_spreadsheet_hit_1":"Deine IP-Adress-Tabelle hat 1.048.576 Zeilen erreicht. Excel hat dazu eine Meinung.", "incidents_and_ddos.your_ipv6_traffic_grew_400_from":"Dein IPv6-Traffic ist um 400 % gewachsen. Von einem Paket auf fünf.", "incidents_and_ddos.your_monitoring_system_went_down_you":"Dein Monitoring ist ausgefallen. Du hast es gemerkt, weil nichts alarmiert hat. Sehr friedliche Woche.", @@ -3396,10 +3416,10 @@ "routescript.did_you_mean_name":". Meintest du {name}?", "routescript.done_i_vibe_checked_your_bgp":"Fertig! Ich habe deinem BGP einen Vibe-Check verpasst. Deploye es sofort: Probeläufe sind was für Leute, die an sich zweifeln.", "routescript.drain_a_pop_and_steer_around":"Zieh den Traffic von einem POP ab und leite um einen seiner Links herum, bevor du daran arbeitest. Ersetz die Namen durch die, an denen du arbeitest.", -"routescript.during_an_attack_drop_the_flood":"Verwirf bei einem Angriff die Flut am Edge. Das nimmt etwas echten Traffic mit, also entferne die Regel, sobald der Angriff vorbei ist.", +"routescript.during_an_attack_rtbh_the_target":"Während eines Angriffs das Ziel upstream blackholen (RTBH). Alle anderen sind gerettet; das Ziel ist offline, bis du die Regel entfernst.", "routescript.every_gigabit_leaving_your_network":"Jedes Gigabit, das dein Netz verlässt, wählt einen Ausgang: einen PNI, einen IX-Port oder einen Transit-Port. Ohne Eingriff nimmt es den günstigsten mit freiem Platz: erst PNI, dann IX, dann Transit. RouteScript ändert diese Wahl, so wie Local-Pref, AS-Path-Prepending und Wartungs-Drains auf echten Routern.", "routescript.filled_in_from_your_network_as":"Ausgefüllt mit deinem Netz, wie es gerade ist. Lade eins, lies es, prüfe es, dann deploye es.", -"routescript.for_a_ddos_drop_the_junk":"Bei einem DDoS: Wirf den Müll am Rand weg und stell Geschäftskunden an erste Stelle. Das kostet ein bisschen echten Traffic, also entferne es, wenn der Angriff vorbei ist.", +"routescript.for_a_ddos_rtbh_the_target":"Bei einem DDoS: Blackhole das Ziel upstream und stell Geschäftskunden an erste Stelle. Das Ziel ist so lange offline, also entferne es, wenn der Angriff vorbei ist.", "routescript.great_question_here_is_a_production":"Tolle Frage! Hier ist ein produktionsreifes Skript, maßgeschneidert für deinen Live-Traffic. Ich habe es gründlich geprüft.", "routescript.help_and_ready_made_scripts":"Hilfe und fertige Skripte", "routescript.here_you_go_i_was_trained":"Bitte schön! Ich wurde mit jeder Router-Config trainiert, die je in einem Forum gepostet wurde, auch denen mit dem Titel „warum geht das nicht“.", @@ -3523,7 +3543,7 @@ "scenarios.eyeballs_grow_50_faster":"Privatkunden wachsen 50 % schneller", "scenarios.fibre_to_the_basement":"Fibre to the Basement", "scenarios.gangnam_style_peering":"Gangnam Style Peering", -"scenarios.hold_20_floods_5_of_them":"Halte 20 Fluten stand, 5 davon über 1 Tbps, und halte die angegriffene Stadt bei 97 % oder besser", +"scenarios.hold_20_floods_5_terabit":"Halte 20 Fluten, 5 davon über 1 Tbps: jedes Ziel bei 97 % oder besser, sonst niemand betroffen", "scenarios.honolulu_in_the_middle_of_the":"Honolulu, mitten im Pazifik. Die Kabel zwischen Amerika, Asien und Australien sind so lang, dass eine Wave darauf nur 400G oder 800G trägt. Halte das Licht auf einer Insel an, starte es neu, und jeder Hop wird kürzer und schneller. Du startest mit freigeschalteter 1.6T-Hardware.", "scenarios.mid_atlantic_accent":"Mittelatlantischer Akzent", "scenarios.only_spatzle_ix":"Nur Spätzle-IX", @@ -3551,19 +3571,14 @@ "scenarios.welcome_name_the_ripe_ncc_assigned":"Willkommen, {name}!
Das RIPE NCC hat dir AS{asn} zugeteilt. Dein erster Router summt in {city}.", "scenarios.you_have_n_days":"Du hast {n} Tage.", "security_and_china.application_filed_your_local_partner":"Antrag eingereicht.
Dein lokaler Partner sagt, etwa 45 Tage. Wahrscheinlich.", -"security_and_china.blackhole_withdrawn_city_is":"Blackhole zurückgezogen.
{city} ist wieder erreichbar. Mach dich auf den Müll gefasst.", "security_and_china.clean_pipe_add_on_enabled_on":"Clean-Pipe-Add-on bei {net} aktiviert.
Sie scrubben eine Flut, bevor sie deinen Port hier erreicht, für {mo}/Monat.", "security_and_china.clean_pipe_add_on_removed_from":"Clean-Pipe-Add-on bei {net} entfernt.", "security_and_china.hackback_3000tm_hit_the_wrong_target":"HackBack 3000™ hat das falsche Ziel getroffen.
{who} Eine Aufsichtsbehörde schickt dir eine Strafe über {fine}, und der Angriff geht weiter.", "security_and_china.hackback_3000tm_strikes_back_skynot":"HackBack 3000™ schlägt zurück!
Skynot AI hat das Botnetz zurückverfolgt und höflich gebrickt. Der Angriff auf {city} hört schlagartig auf.", -"security_and_china.ix_blackhole_announced_in_city_about":"IX-Blackhole in {city} announced.
Etwa die Hälfte der Mitglieder respektiert die /32 und verwirft den Müll. Der Kunde bleibt online.", -"security_and_china.ix_blackhole_withdrawn":"IX-Blackhole zurückgezogen.", "security_and_china.net_pni_is_back_to_normal":"Der PNI mit {net} ist wieder normal.", "security_and_china.net_pni_is_now_a_sacrificial":"Der PNI mit {net} ist jetzt ein Opfer-Engpass.
Eine Flut von dort stirbt am kleinen Port statt in deinem Netz, aber legitimer Traffic darüber läuft nur mit halber Kapazität.", "security_and_china.no_attack_to_blackhole_right_now":"Gerade kein Angriff zum Blackholen.", -"security_and_china.no_ix_in_city_to_announce":"Kein IX in {city}, an den du ein Blackhole announcen könntest.", "security_and_china.nothing_to_hack_back_right_now":"Gerade nichts zum Zurückhacken.", -"security_and_china.rtbh_announced_you_blackholed_the":"RTBH announced.
Du hast das Ziel in {city} geblackholt. Die Flut hört auf, und alle anderen dort auch.", "security_and_china.scrubbing_upgraded_to_tier":"Scrubbing auf {tier} aufgerüstet.", "security_and_china.skynot_ai_flattened_a_grandma_s":"Skynot AI hat den internetfähigen Kühlschrank einer Oma plattgemacht.", "security_and_china.the_botnet_was_already_someone_else":"Das Botnetz war schon das Botnetz von jemand anderem. Die sind stinksauer.", diff --git a/site/i18n/es.js b/site/i18n/es.js index ec42b32..cc07e43 100644 --- a/site/i18n/es.js +++ b/site/i18n/es.js @@ -827,7 +827,6 @@ "city_panel.add_a_second_site_cost_mo":"Añadir una segunda sede {cost} + {mo}/mes", "city_panel.add_router_cost_mo_mo":"Añadir router {cost} + {mo}/mes", "city_panel.ai_and_cloud_campuses_nearby_list":"Campus de IA y nube cercanos: {list}", -"city_panel.attacks_go_to_your_nearest_scrubbing":"Los ataques van a tu centro de depuración más cercano. Desde aquí es {city}, a {km} km: la inundación viaja por tu backbone de ida y vuelta, lo que añade latencia, y lo que tus enlaces no puedan transportar no se depura. Un centro aquí limpia los ataques al instante.", "city_panel.augment_on_order_port_about_n":"Ampliación pedida: {port}, faltan unos {n} días.", "city_panel.boxes_a_in_a_b_in":"Cajas: {a} en A · {b} en B", "city_panel.build_pop_cost_mo_mo":"Construir POP {cost} + {mo}/mes", @@ -839,7 +838,6 @@ "city_panel.cdns_put_free_cache_servers_inside":"Los CDN ponen servidores caché gratis dentro de tu POP. La mayor parte de su tráfico se sirve entonces aquí mismo, sin tránsito ni puerto IX.", "city_panel.clean_pipe_mo_mo_scrubs_ddos":"+ Clean-pipe {mo}/mes · depura DDoS aguas arriba", "city_panel.clean_pipe_on":"Clean-pipe activo ✓", -"city_panel.cleans_attacks_for_your_whole":"Limpia ataques para toda tu red, hasta su capacidad de ancho de banda limpio, y desbloquea contratos de protección DDoS. El tráfico limpio vuelve por GRE, lo que puede reabrir el agujero negro del MSS.", "city_panel.cleans_ddos_attacks_for_your_whole":"Limpia ataques DDoS para toda tu red, hasta su capacidad de ancho de banda limpio, y desbloquea contratos de protección DDoS para empresas.", "city_panel.close_site_b":"Cerrar la sede B", "city_panel.cn_too_premium_on":"CN-Too premium activo ✓", @@ -856,6 +854,7 @@ "city_panel.few_data_centers_pops_x":"Pocos centros de datos: POPs {x}×", "city_panel.fiber_from_city":"Fibra desde {city}", "city_panel.fiber_is_down":"la fibra está caída", +"city_panel.floods_here_are_pulled_to":"Las inundaciones contra objetivos de aquí van a tu centro de scrubbing en {city}, a {km} km. El tráfico limpio vuelve por tu backbone, lo que añade latencia. Un centro aquí acorta el rodeo.", "city_panel.g_of_circuits":"{g} de circuitos", "city_panel.g_of_eyeballs":"{g} de eyeballs", "city_panel.hide_other_models":"Ocultar otros modelos", @@ -884,7 +883,7 @@ "city_panel.no_ix_here_yet_you_could":"Aún no hay IX aquí. Podrías fundar uno más adelante.", "city_panel.nobody_sells_transit_here_haul_your":"Aquí nadie vende tránsito. Lleva tu tráfico por fibra a una ciudad que lo tenga.", "city_panel.nothing_plugged_in_here_yet":"Aún no hay nada conectado aquí", -"city_panel.on_demand_engages_in_n_d":"Bajo demanda (se activa en {n} d)", +"city_panel.on_demand_half_the_first_day":"Bajo demanda (la mitad el primer día)", "city_panel.one_router_is_a_single_point":"Un solo router es un punto único de fallo.", "city_panel.only_the_cn_too_premium_crossing":"Aquí solo venden su cruce premium CN-Too, por tierra hasta China: precios de Hong Kong, alrededor de un 3 % de pérdida hacia China, y nada más.", "city_panel.open_a_pop_here":"Abrir un POP aquí", @@ -900,6 +899,7 @@ "city_panel.price_per_gbps_month_billed_on":"${price} por Gbps / mes · facturado al percentil 95", "city_panel.prices_include_p_back_for_the":"Los precios incluyen {p} de vuelta por los routers viejos en eBuy.", "city_panel.private_interconnects_pni":"Interconexiones privadas (PNI)", +"city_panel.pulls_floods_onto_its_own":"Cuando está activo, anuncia el objetivo de forma más específica, así que las inundaciones llegan a su propia entrada de {g} en lugar de a tus puertos, y las limpia. El tráfico limpio vuelve por tu backbone. También desbloquea contratos de protección DDoS.", "city_panel.ready_in_n_d":"listo en {n} d", "city_panel.really_close_it":"¿Cerrarlo de verdad?", "city_panel.really_shut_it_down":"¿Apagarlo de verdad?", @@ -1512,9 +1512,10 @@ "common.your_pop":"Tu POP", "common.your_pops":"Tus POPs", "common.zombie_route":"Ruta zombi", -"compute.attack_hauled_to_scrubbing_in_city":"Ataque desviado a depuración en {city}", +"compute.attack_entering_in_city":"Ataque entrando en {city}", "compute.courtesy_route_to_new_networks":"Ruta de cortesía a redes nuevas", "compute.l2vpn_for_name":"L2VPN para {name}", +"compute.scrubbed_traffic_from_city":"Tráfico limpiado desde {city}", "compute.sd_wan_for_name":"SD-WAN para {name}", "conferences.as_a_sponsor_you_also_get":"Como patrocinador, también recibes más ofertas de clientes de {region}.", "conferences.attend_cost":"Asistir {cost}", @@ -1688,6 +1689,53 @@ "day_tick.you_are_in_the_red_cancel":"Estás en números rojos.
Cancela algo caro, espera a los ingresos o mira si el banco te presta. A −$100k el banco se queda tus routers.", "day_tick.you_are_no_longer_tier_1":"Ya no eres Tier 1.
Porque {why}. Tu insignia de Tier 1 se queda; recupera el estatus para volver a mostrarla.", "day_tick.your_fiber_is_finished_a_b":"Tu fibra está terminada: {a}–{b}", +"ddos.auto_rtbh":"Auto-RTBH: la inundación sobre {who} estaba llenando tus puertos, así que se hace blackhole aguas arriba. Todos los demás están a salvo.", +"ddos.auto_rtbh_off":"Auto-RTBH: no", +"ddos.auto_rtbh_on":"Auto-RTBH: sí", +"ddos.auto_scrub_off":"Activar scrubbing solo: no", +"ddos.auto_scrub_on":"Activar scrubbing solo: sí", +"ddos.btn_engage":"Activar scrubbing", +"ddos.btn_rtbh":"RTBH al objetivo", +"ddos.card_title":"{g} {vec}", +"ddos.carpet":"carpet bombing", +"ddos.engaged":"Scrubbing activado: la inundación va hacia tus centros.", +"ddos.flood_sacrificed":"Una inundación de {g}: hiciste blackhole a {who} para salvar a los demás. No cuenta como resistida.", +"ddos.fs_help":"Las reglas Flowspec viven en la TCAM de cada router. Limpian una inundación cuando ya está dentro, nunca un puerto lleno. Los routers más grandes guardan más reglas.", +"ddos.fs_no_tcam":"ninguna (sin TCAM)", +"ddos.fs_pops":"POPs con Flowspec", +"ddos.fs_rules":"Reglas Flowspec", +"ddos.fs_used":"{used} / {cap} en uso", +"ddos.learn_fs":"Los routers de {city} no tienen reglas Flowspec libres, así que la basura pasa allí sin filtrar. Los routers más grandes guardan más reglas.", +"ddos.learn_port":"Un puerto está lleno. Todo lo que pasa por él pierde tráfico, y nada detrás del puerto puede ayudar. Más puertos y más grandes reparten la inundación; RTBH o un centro de scrubbing la mantienen lejos de ellos.", +"ddos.learn_rtbh":"Salvaste a todos los demás y dejaste a un cliente a oscuras. Ese es el trato.", +"ddos.more":"Más", +"ddos.news_held":"Tu red lo absorbe. Nadie lo nota.", +"ddos.news_ports":"Puertos llenos: {n}. Otros clientes ralentizados: {k}. RTBH los salvaría.", +"ddos.news_rtbh":"Con blackhole aguas arriba: el objetivo está caído, todos los demás están bien.", +"ddos.news_target":"Nadie más lo nota, pero el objetivo solo recibe {p} de su tráfico.", +"ddos.res_col":"Objetivo al {p}, y {g} de otro tráfico perdido", +"ddos.res_held":"Resistido: nadie lo nota", +"ddos.res_rtbh":"{who} está caído; todos los demás están bien", +"ddos.res_target":"Objetivo al {p}, nadie más afectado", +"ddos.row_detour":"El tráfico limpio da un rodeo de {ms} ms por {city}", +"ddos.row_fs":"Flowspec descarta {g} en los routers de {n} POPs", +"ddos.row_fs_full":"No quedan reglas Flowspec en {cities}", +"ddos.row_fs_no_router":"Estos routers no pueden usar Flowspec", +"ddos.row_fs_none":"Flowspec no tiene firma para {vec}", +"ddos.row_ports_full":{"one":"Entra por {n} puerto, {k} lleno: {labs}","other":"Entra por {n} puertos, {k} llenos: {labs}"}, +"ddos.row_ports_ok":{"one":"Entra por {n} puerto, sin llenarlo","other":"Entra por {n} puertos, ninguno lleno"}, +"ddos.row_rtbh":"RTBH descarta {g} aguas arriba", +"ddos.row_scrub":"El scrubbing atrae {g} y limpia {c} ({cities})", +"ddos.row_scrub_idle":"El scrubbing bajo demanda te está esperando", +"ddos.row_scrub_none":"Sin centro de scrubbing", +"ddos.row_slowed":{"one":"{n} cliente más ralentizado","other":"{n} clientes más ralentizados"}, +"ddos.rtbh_help":"RTBH es gratis e instantáneo. Los tránsitos descartan el tráfico del objetivo aguas arriba, la mayoría de los exchanges también, y más o menos la mitad de tus peers privados. Tus puertos se salvan; el objetivo queda a oscuras hasta que lo retires.", +"ddos.rtbh_off":"Blackhole retirado: {who} vuelve a estar accesible.", +"ddos.rtbh_on":"RTBH anunciado: {who} tiene blackhole aguas arriba.", +"ddos.started":"Un ataque {vec} de {g} está golpeando a {who}.", +"ddos.test_flood":"Lanzar una inundación de prueba", +"ddos.who_customer":"{name} ({what}, {city})", +"ddos.who_subscribers":"tus clientes de banda ancha en {city}", "de_kicks.a_fee_for_being_ready_for":"Una tarifa por estar listo para la nube.", "de_kicks.a_monthly_pdf_of_your_own":"Un PDF mensual con tus propias gráficas de tráfico.", "de_kicks.breaking_cve_2026_31337_just_took":"🐘 ÚLTIMA HORA: CVE-2026-31337 acaba de tumbar medio internet.
Un fallo en PHP convirtió todo sitio tipo WordPress del planeta en un minero de cripto. El tráfico de eyeballs cae un 30 % unos días mientras el mundo parchea. Tus clientes de hosting lo hacen a las 3 de la madrugada.", @@ -1818,7 +1866,6 @@ "failures.a_rival_isp_s_stress_test":"una «prueba de estrés» de un ISP rival", "failures.a_routine_overnight_upgrade_took":"Una actualización nocturna rutinaria dejó tu router de {city} fuera de línea hasta la hora de comer. Floptus manda saludos.", "failures.a_ship_dragged_its_anchor_across":"Un barco arrastró su ancla sobre tu cable {a}–{b}.", -"failures.a_size_vec_attack_is_hitting":"Un ataque {size} {vec} golpea {city}{how}.", "failures.a_splicer_fusing_someone_else_s":"Un empalmador que fusionaba el cable de otro en una arqueta cerca de {b} fusionó el tuyo.", "failures.a_sulphur_crested_cockatoo_chewed":"Una cacatúa de cresta amarilla royó tu fibra {a}–{b}, y volvió por la de repuesto.", "failures.a_teenager_with_a_stolen_credit":"un adolescente con una tarjeta de crédito robada y rencor", @@ -1864,8 +1911,6 @@ "failures.geopolitical_cable_cut":"Corte geopolítico de cable", "failures.hash_polarisation_on_your_lab_nearly":"Polarización de hash en tu {lab}: casi todos los flujos caen en el mismo miembro. El paquete dice que está activo. También está lleno.", "failures.hide_the_vacuum":"Esconder la aspiradora", -"failures.in_via_e":", entrando por {e}", -"failures.junk_traffic_is_eating_your_capacity":"El tráfico basura se come tu capacidad. Abre el NOC para defenderte.", "failures.lacp_fast_slow_timer_mismatch_on":"Desajuste de temporizadores LACP rápido/lento en tu {lab}: un miembro sale del paquete por tiempo y vuelve una y otra vez.", "failures.lightning_hit_an_amp_site_on":"Un rayo cayó en un sitio de amplificación en {a}–{b}. El protector contra sobretensiones era decorativo.", "failures.load_shedding_in_city_stage_n":"Cortes programados en {city}
Fase {n} hoy. Tu generador tosió y luego mantuvo las luces encendidas.", @@ -1938,7 +1983,6 @@ "failures.your_a_b_cable_went_quiet":"Tu cable {a}–{b} se quedó en silencio en algún lugar del Triángulo de las Bermudas. El barco de reparación fue a mirar y tampoco ha vuelto a llamar.", "failures.your_a_b_fiber_broke_somewhere":"Tu fibra {a}–{b} se rompió en algún punto del Nullarbor. El equipo de empalmes hizo la maleta para una semana.", "failures.your_a_b_fiber_is_down":"Tu fibra {a}–{b} está caída. El equipo de reparación encontró marcas de dientes, una madriguera y un castor muy orgulloso.", -"failures.your_mitigation_is_eating_most_of":"Tu mitigación se está comiendo casi todo.", "failures.your_on_call_engineer_typed_clear":"Tu ingeniero de guardia escribió «clear bgp *» en producción en {city} a las 3 de la madrugada. Se borró.", "failures.your_roa_expired_over_the_weekend":"Tu ROA caducó durante el fin de semana. Tus prefijos son RPKI-inválidos y cerca de la mitad de internet los descarta.", "failures.your_router_in_city_crashed_and":"Tu router de {city} se cayó y está reiniciando. {what}. Tiempo de arranque de este: unos {min} minutos por intento, y va por el intento {n}.", @@ -2051,10 +2095,10 @@ "help.as_your_peak_traffic_and_footprint":"A medida que crecen tu tráfico pico y tu huella, aparecen clientes mayores: startups de streaming y universidades, luego centros de datos de GPU para IA y accesos a la nube, y después interconexiones de entrenamiento de IA y tratos DCI con hiperescaladores medidos en terabits. Las burbujas rosas $$ marcan a los grandes.", "help.at_customer_level_3_and_4":"En los niveles de cliente 3 y 4, aparecen hiperescaladores y nubes de IA con tratos que solo ellos pedirían: WANs de IA de terabits entre campus de gigavatios, entrenamientos repartidos en varios sitios, ingestas de datos de una semana y cientos de pares de fibra en una zanja que cavaste tú. Pagan como nadie, y quieren rutas diversas, dos sedes por área metropolitana y cero excusas. Las ciudades cercanas a sus campus los listan en «Quién hay aquí».", "help.below_your_goals_sits_a_wall":"Bajo tus objetivos hay un muro de insignias, de comunes a legendarias. Algunas requieren suerte, otras años, y un par son secretas. Las insignias que ganaste en partidas anteriores se quedan en este dispositivo con contorno discontinuo.", -"help.build_one_in_as_many_pops":"Construye uno en tantos POPs como quieras. Un ataque va al centro operativo más cercano, y lo que no pueda absorber pasa al siguiente. Un centro lejano significa que la inundación viaja por tu backbone hasta allí y el tráfico de la víctima vuelve por el camino largo: llena tus enlaces, añade latencia, y lo que los enlaces no puedan transportar no se depura. Los clientes que compran protección DDoS notan cuando sus ataques cruzan un océano.", "help.businesses_may_want_a_private":"Las empresas pueden querer un circuito privado entre dos de tus POPs (viaja por tu backbone) o protección DDoS (necesita tu propio centro de depuración).", "help.content_networks_like_netchill_and":"Redes de contenido como NetChill y Goggle. Casi todo tu tráfico viene de ellas. Haz peering con ellas y ese tráfico es gratis.", "help.controls_drag_the_map_to_pan":"Controles: arrastra el mapa para moverte, desplaza o pellizca para hacer zoom, toca una ciudad para abrirla. Arrastra desde tu router rosa hasta otra ciudad para tender fibra. Espacio pausa, 0 es media velocidad, 1 2 3 4 fijan la velocidad. A 1× un día dura 2,5 segundos.", +"help.ddos_a_flood_comes_from":"Una inundación viene de todas partes, así que llega por cada puerto por el que internet te alcanza. Un puerto lleva lo que cabe, y todo lo que pasa por un puerto lleno pierde tráfico. RTBH descarta el tráfico del objetivo aguas arriba y salva a todos los demás, pero el objetivo se queda a oscuras. Flowspec limpia la inundación en cada router cuando ya está dentro, dentro del presupuesto de reglas de ese router. La mayoría de los ataques son pequeños; los gamers y el hosting atraen los grandes.", "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", @@ -2081,6 +2125,7 @@ "help.reach_an_ix_over_a_fabric":"Llega a un IX por un circuito de fabric sin tener POP allí. Funciona, y el route server te sigue dando todas las redes abiertas, pero no se recomienda: el revendedor cobra 1,5× por el puerto y lo sobresuscribe al 80 %, la latencia viaja por la fabric, una caída de la fabric tumba todas las sesiones, y muchas redes selectivas rechazan de plano a los miembros remotos.", "help.routers_optics_and_new_builds_get":"Los routers, las ópticas y las obras nuevas se encarecen con los años, un 4 % anual tras los primeros seis meses, y de vez en cuando una escasez encarece mucho alguno durante un mes o dos. Lo que ya tienes conserva su precio. Los repuestos en el estante y un precio fijo anual desde la pestaña NOC amortiguan el golpe.", "help.rules_for_your_auto_te_controller":"Reglas para tu controlador Auto-TE: qué salidas preferir, cuáles evitar y cuándo desbordar hacia la siguiente. La ayuda del editor explica cada regla y trae scripts ya hechos.", +"help.scrubbing_a_center_pulls_floods":"Cuando está activo, un centro atrae la inundación hacia su propia entrada (un imán) y la limpia hasta su tamaño (una esponja); lo que no puede asumir solo afecta al objetivo. El tráfico limpio vuelve por tu backbone, así que un centro lejano añade latencia. Constrúyelos donde están tus clientes.", "help.share_my_network":"Compartir mi red", "help.some_customers_come_with_conditions":"Algunos clientes traen condiciones: sin Cogentle en ningún sitio, sin cables submarinos por los tiburones, dos routers, un generador, NetChill on-net, buen alcance a China con poca pérdida y más. Cada una paga un bono. Las incumplidas los ponen de mal humor hasta que lo arreglas o se van.", "help.some_routers_take_forever_to_boot":"Algunos routers tardan una eternidad en arrancar. La pestaña Infra muestra cuánto tarda el tuyo. Los de arranque lento alargan las caídas y convierten el cambio de un router en una caída de tres días. Los chasis grandes, sobre todo los que llevan un PacketOinker™ dentro, son lentos más a menudo. Los routers gemelos lo convierten en problema de otro.", @@ -2190,8 +2235,6 @@ "hud_and_panels.customer_level_lv_name":"Nivel de cliente {lv}: {name}", "hud_and_panels.dropping_or_overflowing":"descartando o desbordando", "hud_and_panels.every_network_on_the_map_traffic":"Todas las redes del mapa. La cuota de tráfico es cuánto del tráfico de tus usuarios va hacia ellas. Toca una conexión para saltar a su POP.", -"hud_and_panels.flowspec_capable_pops":"POPs compatibles con Flowspec", -"hud_and_panels.flowspec_drop_rules_live_in_router":"Las reglas de descarte Flowspec viven en la TCAM del router, así que solo los routers capaces filtran inundaciones UDP conocidas (DNS, NTP, CLDAP, SYN) en el borde. El Rusty de segunda mano no tiene ninguna, los modelos de silicio comercial y whitebox hacen un poco, los grandes chasis lo hacen del todo. Mejora el router de un POP desde su pestaña Infra.", "hud_and_panels.g_lost":"{g} perdidos", "hud_and_panels.happiness_p":"felicidad {p} %", "hud_and_panels.has_errors_not_running":"tiene errores, no funciona", @@ -2240,45 +2283,22 @@ "incidents_and_ddos.a_leap_second_convinced_one_of":"Un segundo intercalar convenció a uno de tus routers de que es 1970. El uptime marca ahora menos 56 años. El tráfico va bien.", "incidents_and_ddos.a_route_you_withdrew_in_year":"Una ruta que retiraste en el Año 1 sigue visible en algún lugar de internet. Nadie sabe dónde. Está bien. Probablemente.", "incidents_and_ddos.a_two_hour_meeting_about_router":"Una reunión de dos horas sobre nombres de host de routers terminó con un voto por «router-final-v2-NUEVO».", -"incidents_and_ddos.after_upstream_scrubbing_g":"Tras la depuración upstream: {g}", "incidents_and_ddos.an_auditor_asked_for_a_network":"Un auditor pidió un diagrama de red. Enviaste el mapa del juego. Lo aprobaron.", -"incidents_and_ddos.attack_fully_mitigated":"Ataque mitigado por completo", -"incidents_and_ddos.blackhole_the_target_rtbh":"Hacer blackhole al objetivo (RTBH)", -"incidents_and_ddos.blackholed_the_junk_is_gone_and":"Blackhole hecho: la basura se fue, y {city} también. El ataque consiguió lo que quería.", -"incidents_and_ddos.contained_on_your_sacrificial_net":"Contenido en tu PNI de sacrificio con {net}", -"incidents_and_ddos.edge_filters_dropping_g":"Filtros en el borde descartan: {g}", -"incidents_and_ddos.flowspec_cannot_catch_vec":"Flowspec no puede atrapar {vec}", -"incidents_and_ddos.flowspec_dropping_g":"Flowspec descarta: {g}", -"incidents_and_ddos.g_is_leaking_through":"{g} se cuelan igualmente", "incidents_and_ddos.hackback_3000tm_20k":"HackBack 3000™ $20k", "incidents_and_ddos.it_was_dns":"Era el DNS", -"incidents_and_ddos.ix_blackhole_half_honour_it":"Blackhole en IX ~la mitad lo respeta", -"incidents_and_ddos.ix_blackhole_on":"Blackhole en IX activo ✓", "incidents_and_ddos.ix_lag":"LAG de {ix}", "incidents_and_ddos.ix_lag_in_city":"LAG de {ix} en {city}", -"incidents_and_ddos.live_attack_city":"Ataque en curso: {city}", "incidents_and_ddos.load_bearing_typo":"Errata de la que depende todo", "incidents_and_ddos.management_declared_a_change_freeze":"La dirección declaró una congelación de cambios. Alguien hizo un cambio para anunciar la congelación de cambios.", "incidents_and_ddos.name_transit_lag_in_city":"LAG de tránsito de {name} en {city}", -"incidents_and_ddos.no_flowspec_filtering_ingress":"Sin filtrado Flowspec: los routers de entrada no tienen TCAM", -"incidents_and_ddos.no_scrubbing_center":"Sin centro de depuración", -"incidents_and_ddos.no_scrubbing_needed_after_edge":"No hace falta depurar tras la mitigación en el borde", -"incidents_and_ddos.on_demand_scrubbing_diverting_live":"Depuración bajo demanda desviando, activa en {n} d", "incidents_and_ddos.open_to_work":"Abierto a ofertas", "incidents_and_ddos.pni_lag_with_name_in_city":"LAG de PNI con {name} en {city}", -"incidents_and_ddos.rtbh_is_free_and_instant_but":"El RTBH es gratis e instantáneo, pero descarta todo hacia la víctima, ataque y cliente por igual. Un blackhole en IX mantiene al cliente en pie, pero solo la mitad de los miembros lo respeta. HackBack 3000™ de Skynot AI a veces lo termina, y a veces arrasa a un inocente y te gana una multa.", -"incidents_and_ddos.scrubbing_centers_unavailable_or_at":"Centros de depuración no disponibles o llenos", -"incidents_and_ddos.scrubbing_in_city_used_capacity":"Depuración en {city}: {used} / {capacity}", -"incidents_and_ddos.scrubbing_traffic_hauled_over_your":"Tráfico de depuración por tu backbone: {city} → {to} (+{ms} ms)", -"incidents_and_ddos.size_vec_entry_n_d_left":"{size} · {vec}{entry} · quedan {n} d", "incidents_and_ddos.someone_deleted_the_dns_record_for":"Alguien borró el registro DNS de la wiki interna. El runbook para arreglar el DNS estaba en la wiki.", "incidents_and_ddos.someone_named_a_vlan_prodcution_it":"Alguien llamó a una VLAN «prodcution». Ahora todo depende de él y nunca se podrá renombrar.", "incidents_and_ddos.the_tls_certificate_on_your_noc":"El certificado TLS de tu panel del NOC caducó. Nadie ve ninguna gráfica, así que técnicamente no hay problemas.", -"incidents_and_ddos.this_attack_g":"Este ataque: {g}", "incidents_and_ddos.ticket_of_the_week":"Ticket de la semana", "incidents_and_ddos.vendor_support_asked_you_to_try":"El soporte del fabricante te pidió «probar a apagarlo y encenderlo». Para el router que ya reiniciaste. Ticket cerrado.", "incidents_and_ddos.you_found_a_10g_link_in":"Encontraste en el inventario un enlace de 10G que nadie pidió, nadie paga y que lleva 3 Gbps de algo.", -"incidents_and_ddos.your_backbone_can_only_haul_g":"Tu backbone solo puede llevar {g} de eso a {city}: el resto no se depura", "incidents_and_ddos.your_ip_address_spreadsheet_hit_1":"Tu hoja de cálculo de direcciones IP llegó a 1 048 576 filas. Excel tiene opiniones.", "incidents_and_ddos.your_ipv6_traffic_grew_400_from":"Tu tráfico IPv6 creció un 400 %. De un paquete a cinco.", "incidents_and_ddos.your_monitoring_system_went_down_you":"Tu sistema de monitorización se cayó. Te enteraste porque nada alertó. Semana muy tranquila.", @@ -3394,10 +3414,10 @@ "routescript.did_you_mean_name":". ¿Querías decir {name}?", "routescript.done_i_vibe_checked_your_bgp":"¡Listo! He hecho un vibe-check de tu BGP. Despliégalo ya: las pruebas en seco son para quienes dudan de sí mismos.", "routescript.drain_a_pop_and_steer_around":"Drena un POP y desvía el tráfico de uno de sus enlaces antes de trabajar en él. Cambia los nombres por los de lo que estés tocando.", -"routescript.during_an_attack_drop_the_flood":"Durante un ataque, descarta la inundación en el borde. Se lleva algo de tráfico real consigo, así que quítalo cuando termine el ataque.", +"routescript.during_an_attack_rtbh_the_target":"Durante un ataque, haz blackhole al objetivo aguas arriba (RTBH). Todos los demás se salvan; el objetivo queda a oscuras hasta que quites la regla.", "routescript.every_gigabit_leaving_your_network":"Cada gigabit que sale de tu red elige una salida: un PNI, un puerto IX o un puerto de tránsito. Si no haces nada, toma la más barata con sitio: primero PNI, luego el IX, luego el tránsito. RouteScript cambia esas elecciones, como hacen local-pref, el prepend de AS-path y los drenajes de mantenimiento en routers reales.", "routescript.filled_in_from_your_network_as":"Rellenado con tu red tal como está ahora mismo. Carga uno, léelo, compruébalo y luego despliega.", -"routescript.for_a_ddos_drop_the_junk":"Para un DDoS: descarta la basura en el borde y mantén primero a los clientes empresariales. Cuesta un poco de tráfico real, así que quítalo cuando termine el ataque.", +"routescript.for_a_ddos_rtbh_the_target":"Para un DDoS: haz blackhole al objetivo aguas arriba y prioriza a los clientes empresariales. El objetivo queda a oscuras mientras dure, así que quítalo cuando acabe el ataque.", "routescript.great_question_here_is_a_production":"¡Gran pregunta! Aquí tienes un script listo para producción, a medida de tu tráfico en vivo. Lo he revisado a fondo.", "routescript.help_and_ready_made_scripts":"Ayuda y scripts ya hechos", "routescript.here_you_go_i_was_trained":"¡Aquí tienes! Me entrenaron con todas las configuraciones de router que se hayan publicado en un foro, incluidas las tituladas «por qué esto no funciona».", @@ -3521,7 +3541,7 @@ "scenarios.eyeballs_grow_50_faster":"Los eyeballs crecen un 50 % más rápido", "scenarios.fibre_to_the_basement":"Fibra hasta el sótano", "scenarios.gangnam_style_peering":"Peering estilo Gangnam", -"scenarios.hold_20_floods_5_of_them":"Contén 20 inundaciones, 5 de ellas de más de 1 Tbps, manteniendo la ciudad bajo ataque al 97 % o más", +"scenarios.hold_20_floods_5_terabit":"Resiste 20 inundaciones, 5 de ellas de más de 1 Tbps: cada objetivo al 97 % o más, nadie más afectado", "scenarios.honolulu_in_the_middle_of_the":"Honolulú, en medio del Pacífico. Los cables entre las Américas, Asia y Australia son tan largos que una onda en ellos solo lleva 400G u 800G. Corta la luz en una isla, empiézala de nuevo, y cada salto se acorta y se acelera. Empiezas con equipo de 1.6T desbloqueado.", "scenarios.mid_atlantic_accent":"Acento mesoatlántico", "scenarios.only_spatzle_ix":"Solo Spätzle-IX", @@ -3549,19 +3569,14 @@ "scenarios.welcome_name_the_ripe_ncc_assigned":"¡Bienvenido, {name}!
El RIPE NCC te asignó el AS{asn}. Tu primer router zumba en {city}.", "scenarios.you_have_n_days":"Tienes {n} días.", "security_and_china.application_filed_your_local_partner":"Solicitud presentada.
Tu socio local dice que unos 45 días. Probablemente.", -"security_and_china.blackhole_withdrawn_city_is":"Blackhole retirado.
{city} vuelve a ser alcanzable. Prepárate para la basura.", "security_and_china.clean_pipe_add_on_enabled_on":"Complemento clean-pipe activado en {net}.
Depuran una inundación antes de que llegue a tu puerto de aquí, por {mo}/mes.", "security_and_china.clean_pipe_add_on_removed_from":"Complemento clean-pipe quitado de {net}.", "security_and_china.hackback_3000tm_hit_the_wrong_target":"HackBack 3000™ dio al objetivo equivocado.
{who} Un regulador te manda una multa de {fine}, y el ataque sigue.", "security_and_china.hackback_3000tm_strikes_back_skynot":"¡HackBack 3000™ contraataca!
Skynot AI rastreó la botnet y la dejó educadamente inservible. El ataque a {city} se detiene en seco.", -"security_and_china.ix_blackhole_announced_in_city_about":"Blackhole en IX anunciado en {city}.
Cerca de la mitad de los miembros respeta el /32 y descarta la basura. El cliente sigue en pie.", -"security_and_china.ix_blackhole_withdrawn":"Blackhole en IX retirado.", "security_and_china.net_pni_is_back_to_normal":"El PNI de {net} vuelve a la normalidad.", "security_and_china.net_pni_is_now_a_sacrificial":"El PNI de {net} es ahora un punto de estrangulamiento de sacrificio.
Una inundación desde allí muere en el puerto pequeño en vez de dentro de tu red, pero el tráfico legítimo va a media capacidad.", "security_and_china.no_attack_to_blackhole_right_now":"No hay ningún ataque al que hacer blackhole ahora.", -"security_and_china.no_ix_in_city_to_announce":"No hay IX en {city} al que anunciar un blackhole.", "security_and_china.nothing_to_hack_back_right_now":"Nada que contraatacar ahora.", -"security_and_china.rtbh_announced_you_blackholed_the":"RTBH anunciado.
Hiciste blackhole al objetivo en {city}. La inundación se detiene, y también todos los de allí.", "security_and_china.scrubbing_upgraded_to_tier":"Depuración mejorada a {tier}.", "security_and_china.skynot_ai_flattened_a_grandma_s":"Skynot AI arrasó el frigorífico conectado a internet de una abuela.", "security_and_china.the_botnet_was_already_someone_else":"La botnet ya era la botnet de otro. Están furiosos.", diff --git a/site/i18n/fr.js b/site/i18n/fr.js index 5aa771a..6f4acc0 100644 --- a/site/i18n/fr.js +++ b/site/i18n/fr.js @@ -827,7 +827,6 @@ "city_panel.add_a_second_site_cost_mo":"Ajouter un second site {cost} + {mo}/mois", "city_panel.add_router_cost_mo_mo":"Ajouter un routeur {cost} + {mo}/mois", "city_panel.ai_and_cloud_campuses_nearby_list":"Campus IA et cloud à proximité : {list}", -"city_panel.attacks_go_to_your_nearest_scrubbing":"Les attaques vont vers ton centre de scrubbing le plus proche. D’ici, c’est {city}, à {km} km : le flot traverse ton backbone aller et retour, ce qui ajoute de la latence, et ce que tes liens ne peuvent pas porter n’est pas nettoyé. Un centre ici nettoie les attaques sur place.", "city_panel.augment_on_order_port_about_n":"Extension commandée : {port}, encore environ {n} jours.", "city_panel.boxes_a_in_a_b_in":"Caches : {a} en A · {b} en B", "city_panel.build_pop_cost_mo_mo":"Construire le POP {cost} + {mo}/mois", @@ -839,7 +838,6 @@ "city_panel.cdns_put_free_cache_servers_inside":"Les CDN installent gratuitement des serveurs de cache dans ton POP. L’essentiel de leur trafic est alors servi ici même, sans transit ni port IX.", "city_panel.clean_pipe_mo_mo_scrubs_ddos":"+ Clean-pipe {mo}/mois · nettoie les DDoS en amont", "city_panel.clean_pipe_on":"Clean-pipe actif ✓", -"city_panel.cleans_attacks_for_your_whole":"Nettoie les attaques pour tout ton réseau, dans la limite de sa capacité de bande passante propre, et débloque les contrats de protection DDoS. Le trafic nettoyé revient par GRE, ce qui peut rouvrir le trou noir MSS.", "city_panel.cleans_ddos_attacks_for_your_whole":"Nettoie les attaques DDoS pour tout ton réseau, dans la limite de sa capacité de bande passante propre, et débloque les contrats de protection DDoS pour les entreprises.", "city_panel.close_site_b":"Fermer le site B", "city_panel.cn_too_premium_on":"CN-Too premium activé ✓", @@ -856,6 +854,7 @@ "city_panel.few_data_centers_pops_x":"Peu de data centers : POP {x}×", "city_panel.fiber_from_city":"Fibre depuis {city}", "city_panel.fiber_is_down":"fibre en panne", +"city_panel.floods_here_are_pulled_to":"Les flots visant ici sont attirés vers ton centre de scrubbing à {city}, à {km} km. Le trafic propre revient par ton backbone, ce qui ajoute de la latence. Un centre ici raccourcit le détour.", "city_panel.g_of_circuits":"{g} de circuits", "city_panel.g_of_eyeballs":"{g} d’eyeballs", "city_panel.hide_other_models":"Masquer les autres modèles", @@ -884,7 +883,7 @@ "city_panel.no_ix_here_yet_you_could":"Pas encore d’IX ici. Tu pourras en fonder un plus tard.", "city_panel.nobody_sells_transit_here_haul_your":"Personne ne vend de transit ici. Achemine ton trafic par fibre jusqu’à une ville qui en a.", "city_panel.nothing_plugged_in_here_yet":"Rien n’est encore branché ici", -"city_panel.on_demand_engages_in_n_d":"À la demande (s’active en {n} j)", +"city_panel.on_demand_half_the_first_day":"À la demande (à moitié le premier jour)", "city_panel.one_router_is_a_single_point":"Un seul routeur, c’est un point de défaillance unique.", "city_panel.only_the_cn_too_premium_crossing":"Ici, ils ne vendent que leur traversée premium CN-Too, par voie terrestre jusqu’en Chine : prix de Hong Kong, environ 3 % de perte vers la Chine, et rien d’autre.", "city_panel.open_a_pop_here":"Ouvrir un POP ici", @@ -900,6 +899,7 @@ "city_panel.price_per_gbps_month_billed_on":"${price} par Gbps / mois · facturé au 95e percentile", "city_panel.prices_include_p_back_for_the":"Les prix incluent {p} récupérés en revendant les anciens routeurs sur eBuy.", "city_panel.private_interconnects_pni":"Interconnexions privées (PNI)", +"city_panel.pulls_floods_onto_its_own":"Une fois activé, il annonce la cible de façon plus spécifique : les flots arrivent sur sa propre entrée de {g} au lieu de tes ports, et il les nettoie. Le trafic propre revient par ton backbone. Il débloque aussi les contrats de protection DDoS.", "city_panel.ready_in_n_d":"prêt dans {n} j", "city_panel.really_close_it":"Vraiment le fermer ?", "city_panel.really_shut_it_down":"Vraiment l’arrêter ?", @@ -1512,9 +1512,10 @@ "common.your_pop":"Ton POP", "common.your_pops":"Tes POP", "common.zombie_route":"Route zombie", -"compute.attack_hauled_to_scrubbing_in_city":"Attaque acheminée vers le scrubbing de {city}", +"compute.attack_entering_in_city":"Attaque entrant à {city}", "compute.courtesy_route_to_new_networks":"Route de courtoisie vers les nouveaux réseaux", "compute.l2vpn_for_name":"L2VPN pour {name}", +"compute.scrubbed_traffic_from_city":"Trafic nettoyé depuis {city}", "compute.sd_wan_for_name":"SD-WAN pour {name}", "conferences.as_a_sponsor_you_also_get":"En tant que sponsor, vous recevez aussi plus d'offres de clients en {region}.", "conferences.attend_cost":"Participer {cost}", @@ -1688,6 +1689,53 @@ "day_tick.you_are_in_the_red_cancel":"Tu es dans le rouge.
Résilie un truc cher, attends les revenus ou vois la banque pour un prêt. À −$100k, la banque saisit tes routeurs.", "day_tick.you_are_no_longer_tier_1":"Tu n’es plus Tier 1.
Parce que {why}. Ton badge Tier 1 reste ; reconquiers le statut pour l’afficher à nouveau.", "day_tick.your_fiber_is_finished_a_b":"Ta fibre est terminée : {a}–{b}", +"ddos.auto_rtbh":"Auto-RTBH : le flot sur {who} remplissait tes ports, il est donc blackholé en amont. Tous les autres sont à l’abri.", +"ddos.auto_rtbh_off":"Auto-RTBH : non", +"ddos.auto_rtbh_on":"Auto-RTBH : oui", +"ddos.auto_scrub_off":"Activer le scrubbing tout seul : non", +"ddos.auto_scrub_on":"Activer le scrubbing tout seul : oui", +"ddos.btn_engage":"Activer le scrubbing", +"ddos.btn_rtbh":"RTBH sur la cible", +"ddos.card_title":"{g} {vec}", +"ddos.carpet":"carpet bombing", +"ddos.engaged":"Scrubbing activé : le flot est attiré vers tes centres.", +"ddos.flood_sacrificed":"Un flot de {g} : tu as blackholé {who} pour sauver tous les autres. Ça ne compte pas comme tenu.", +"ddos.fs_help":"Les règles Flowspec vivent dans la TCAM de chaque routeur. Elles nettoient un flot une fois qu’il est entré, jamais un port plein. Les gros routeurs tiennent plus de règles.", +"ddos.fs_no_tcam":"aucune (pas de TCAM)", +"ddos.fs_pops":"POP avec Flowspec", +"ddos.fs_rules":"Règles Flowspec", +"ddos.fs_used":"{used} / {cap} utilisées", +"ddos.learn_fs":"Les routeurs de {city} n’ont plus de règles Flowspec libres, alors les déchets y passent sans filtre. Les gros routeurs tiennent plus de règles.", +"ddos.learn_port":"Un port est plein. Tout ce qui passe dessus perd du trafic, et rien derrière le port ne peut aider. Plus de ports, et plus gros, étalent un flot ; le RTBH ou un centre de scrubbing le tiennent à l’écart.", +"ddos.learn_rtbh":"Tu as sauvé tous les autres et coupé un client. C’est le marché.", +"ddos.more":"Plus", +"ddos.news_held":"Ton réseau l’absorbe. Personne ne remarque rien.", +"ddos.news_ports":"Ports pleins : {n}. Autres clients ralentis : {k}. Le RTBH les sauverait.", +"ddos.news_rtbh":"Blackholé en amont : la cible est hors ligne, tous les autres vont bien.", +"ddos.news_target":"Personne d’autre ne le remarque, mais la cible ne reçoit que {p} de son trafic.", +"ddos.res_col":"Cible à {p}, et {g} d’autre trafic perdu", +"ddos.res_held":"Tenu : personne ne remarque rien", +"ddos.res_rtbh":"{who} est hors ligne ; tous les autres vont bien", +"ddos.res_target":"Cible à {p}, personne d’autre touché", +"ddos.row_detour":"Le trafic propre fait un détour de {ms} ms par {city}", +"ddos.row_fs":"Flowspec jette {g} sur les routeurs de {n} POP", +"ddos.row_fs_full":"Plus de règles Flowspec libres à {cities}", +"ddos.row_fs_no_router":"Ces routeurs ne savent pas faire de Flowspec", +"ddos.row_fs_none":"Flowspec n’a pas de signature pour {vec}", +"ddos.row_ports_full":{"one":"Entre par {n} port, {k} plein : {labs}","other":"Entre par {n} ports, {k} pleins : {labs}"}, +"ddos.row_ports_ok":{"one":"Entre par {n} port, pas plein","other":"Entre par {n} ports, aucun plein"}, +"ddos.row_rtbh":"Le RTBH jette {g} en amont", +"ddos.row_scrub":"Le scrubbing attire {g} et nettoie {c} ({cities})", +"ddos.row_scrub_idle":"Le scrubbing à la demande t’attend", +"ddos.row_scrub_none":"Pas de centre de scrubbing", +"ddos.row_slowed":{"one":"{n} autre client ralenti","other":"{n} autres clients ralentis"}, +"ddos.rtbh_help":"Le RTBH est gratuit et instantané. Les transits jettent le trafic de la cible en amont, la plupart des exchanges aussi, et environ la moitié de tes peers privés. Tes ports sont sauvés ; la cible reste hors ligne jusqu’à ce que tu le retires.", +"ddos.rtbh_off":"Blackhole retiré : {who} est de nouveau joignable.", +"ddos.rtbh_on":"RTBH annoncé : {who} est blackholé en amont.", +"ddos.started":"Une attaque {vec} de {g} frappe {who}.", +"ddos.test_flood":"Envoyer un flot de test", +"ddos.who_customer":"{name} ({what}, {city})", +"ddos.who_subscribers":"tes abonnés grand public à {city}", "de_kicks.a_fee_for_being_ready_for":"Des frais pour être prêt pour le cloud.", "de_kicks.a_monthly_pdf_of_your_own":"Un PDF mensuel de tes propres graphes de trafic.", "de_kicks.breaking_cve_2026_31337_just_took":"🐘 ALERTE : la CVE-2026-31337 vient de mettre à terre la moitié d’Internet.
Un bug dans PHP a transformé tous les sites vaguement WordPress de la planète en mineurs de crypto. Le trafic eyeballs baisse de 30 % pendant quelques jours, le temps que le monde patche. Tes clients d’hébergement s’y collent à 3 h du matin.", @@ -1818,7 +1866,6 @@ "failures.a_rival_isp_s_stress_test":"le « stress test » d’un FAI concurrent", "failures.a_routine_overnight_upgrade_took":"Une mise à jour de routine pendant la nuit a mis ton routeur de {city} hors ligne jusqu’à midi. Floptus te salue.", "failures.a_ship_dragged_its_anchor_across":"Un navire a traîné son ancre sur ton câble {a}–{b}.", -"failures.a_size_vec_attack_is_hitting":"Une attaque par {vec} de {size} frappe {city}{how}.", "failures.a_splicer_fusing_someone_else_s":"Un soudeur qui épissait le câble de quelqu’un d’autre dans une chambre de tirage près de {b} a soudé le tien à la place.", "failures.a_sulphur_crested_cockatoo_chewed":"Un cacatoès à huppe jaune a rongé ta fibre {a}–{b}, puis il est revenu pour celle de secours.", "failures.a_teenager_with_a_stolen_credit":"un ado avec une carte bancaire volée et une rancune", @@ -1864,8 +1911,6 @@ "failures.geopolitical_cable_cut":"Coupure de câble géopolitique", "failures.hash_polarisation_on_your_lab_nearly":"Polarisation du hash sur ton {lab} : presque tous les flux tombent sur le même membre. Le bundle se dit up. Il est aussi plein.", "failures.hide_the_vacuum":"Cacher l’aspirateur", -"failures.in_via_e":", entrée via {e}", -"failures.junk_traffic_is_eating_your_capacity":"Le trafic poubelle mange ta capacité. Ouvre le NOC pour riposter.", "failures.lacp_fast_slow_timer_mismatch_on":"Timers LACP fast/slow incohérents sur ton {lab} : un membre n’arrête pas de sortir du bundle sur timeout et d’y revenir.", "failures.lightning_hit_an_amp_site_on":"La foudre a frappé un site d’amplification sur {a}–{b}. Le parafoudre était décoratif.", "failures.load_shedding_in_city_stage_n":"Délestage à {city}
Niveau {n} aujourd’hui. Ton groupe électrogène a toussé, puis a gardé la lumière allumée.", @@ -1938,7 +1983,6 @@ "failures.your_a_b_cable_went_quiet":"Votre câble {a}–{b} s’est tu quelque part dans le Triangle des Bermudes. Le navire de réparation est parti le chercher, et lui non plus n’a pas encore rappelé.", "failures.your_a_b_fiber_broke_somewhere":"Ta fibre {a}–{b} a cassé quelque part dans le Nullarbor. L’équipe de soudure a fait ses valises pour une semaine.", "failures.your_a_b_fiber_is_down":"Ta fibre {a}–{b} est coupée. L’équipe de réparation a trouvé des traces de dents, une hutte et un castor très fier.", -"failures.your_mitigation_is_eating_most_of":"Ta mitigation en absorbe l’essentiel.", "failures.your_on_call_engineer_typed_clear":"Ton ingé d’astreinte a tapé « clear bgp * » en production à {city} à 3 h du matin. Ça a bien nettoyé.", "failures.your_roa_expired_over_the_weekend":"Ta ROA a expiré pendant le week-end. Tes préfixes sont RPKI-invalid et environ la moitié d’Internet les jette.", "failures.your_router_in_city_crashed_and":"Ton routeur à {city} a planté et redémarre. Il {what}. Temps de boot de celui-ci : environ {min} minutes par tentative, et il en est à la tentative {n}.", @@ -2051,10 +2095,10 @@ "help.as_your_peak_traffic_and_footprint":"À mesure que ton trafic de pointe et ton empreinte grandissent, de plus gros clients arrivent : startups de streaming et universités, puis datacenters GPU pour l’IA et on-ramps cloud, puis interconnexions d’entraînement IA et contrats DCI d’hyperscalers qui se comptent en térabits. Les bulles roses $$ signalent les gros.", "help.at_customer_level_3_and_4":"Aux niveaux clients 3 et 4, hyperscalers et clouds IA débarquent avec des contrats qu’eux seuls pourraient demander : des WAN IA au térabit entre campus de plusieurs gigawatts, des entraînements répartis sur plusieurs sites, des ingestions de datasets d’une semaine et des centaines de paires de fibres dans une tranchée que tu as creusée toi-même. Ils paient comme personne, et ils veulent des chemins diversifiés, deux sites par métropole et zéro excuse. Les villes proches de leurs campus les listent sous « Qui est là ».", "help.below_your_goals_sits_a_wall":"Sous tes objectifs se trouve un mur de badges, du commun au légendaire. Certains demandent de la chance, d’autres des années, et quelques-uns sont secrets. Les badges gagnés dans tes parties précédentes restent sur cet appareil avec un contour en pointillés.", -"help.build_one_in_as_many_pops":"Construis-en dans autant de POP que tu veux. Une attaque va vers le centre en service le plus proche, et ce qu’il ne peut pas absorber passe au suivant. Un centre lointain veut dire que le flot traverse ton backbone jusque-là et que le trafic de la victime revient par le chemin long : ça remplit tes liens, ça ajoute de la latence, et ce que les liens ne peuvent pas porter n’est pas nettoyé. Les clients qui achètent une protection DDoS le remarquent quand leurs attaques traversent un océan.", "help.businesses_may_want_a_private":"Les entreprises peuvent vouloir un circuit privé entre deux de tes POP (il passe par ton backbone), ou une protection DDoS (il faut ton propre centre de scrubbing).", "help.content_networks_like_netchill_and":"Des réseaux de contenu comme NetChill et Goggle. L’essentiel de ton trafic vient d’eux. Fais du peering avec eux et ce trafic devient gratuit.", "help.controls_drag_the_map_to_pan":"Commandes : fais glisser la carte pour te déplacer, molette ou pincement pour zoomer, touche une ville pour l’ouvrir. Glisse depuis ton routeur rose vers une autre ville pour poser de la fibre. Espace met en pause, 0 passe à mi-vitesse, 1 2 3 4 règlent la vitesse. À 1×, un jour dure 2,5 secondes.", +"help.ddos_a_flood_comes_from":"Un flot vient de partout, il arrive donc sur chaque port par lequel internet te joint. Un port porte ce qui tient, et tout ce qui passe par un port plein perd du trafic. Le RTBH jette le trafic de la cible en amont et sauve tous les autres, mais la cible est coupée. Flowspec nettoie un flot sur chaque routeur une fois entré, dans la limite des règles de ce routeur. La plupart des attaques sont petites ; les gamers et l’hébergement attirent les grosses.", "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", @@ -2081,6 +2125,7 @@ "help.reach_an_ix_over_a_fabric":"Rejoindre un IX via un circuit fabric sans POP sur place. Ça marche, et le route server te donne quand même tous les réseaux ouverts, mais c’est déconseillé : le revendeur facture le port 1,5× et le survend à 80 %, la latence dépend du fabric, une panne du fabric fait tomber toutes les sessions, et beaucoup de réseaux sélectifs refusent tout net les membres distants.", "help.routers_optics_and_new_builds_get":"Routeurs, optiques et nouvelles constructions coûtent plus cher avec les années, environ 4 % par an après les six premiers mois, et de temps en temps une pénurie rend l’un d’eux bien plus cher pendant un mois ou deux. Ce que vous possédez déjà garde son prix. Des pièces de rechange sur l’étagère et un blocage annuel des prix depuis l’onglet NOC amortissent le choc.", "help.rules_for_your_auto_te_controller":"Des règles pour votre contrôleur Auto-TE : quelles sorties préférer, lesquelles éviter et quand déborder sur la suivante. L’aide de l’éditeur explique chaque règle et propose des scripts tout prêts.", +"help.scrubbing_a_center_pulls_floods":"Une fois activé, un centre attire le flot sur sa propre entrée (un aimant) et le nettoie jusqu’à sa taille (une éponge) ; ce qu’il ne peut pas prendre ne touche que la cible. Le trafic propre revient par ton backbone, donc un centre lointain ajoute de la latence. Construis-les là où sont tes clients.", "help.share_my_network":"Partager mon réseau", "help.some_customers_come_with_conditions":"Certains clients viennent avec des conditions : pas de Cogentle nulle part, pas de câbles sous-marins à cause des requins, deux routeurs, un groupe électrogène, NetChill on-net, accès à la Chine avec peu de pertes, et plus encore. Chacune rapporte un bonus. Celles qui ne sont pas remplies les rendent grognons jusqu’à ce que tu corriges le tir ou qu’ils partent.", "help.some_routers_take_forever_to_boot":"Certains routeurs mettent une éternité à démarrer. L’onglet Infra montre combien de temps met le tien. Les routeurs lents au boot font durer les crashs plus longtemps et transforment le remplacement d’un routeur unique en panne de trois jours. Les gros châssis, surtout ceux avec un PacketOinker™ dedans, sont plus souvent lents. Avec des routeurs jumeaux, ça devient le problème de quelqu’un d’autre.", @@ -2190,8 +2235,6 @@ "hud_and_panels.customer_level_lv_name":"Niveau client {lv} : {name}", "hud_and_panels.dropping_or_overflowing":"pertes ou débordement", "hud_and_panels.every_network_on_the_map_traffic":"Tous les réseaux de la carte. La part de trafic, c’est la portion du trafic de tes utilisateurs qui va vers eux. Touche une connexion pour sauter à son POP.", -"hud_and_panels.flowspec_capable_pops":"POP compatibles Flowspec", -"hud_and_panels.flowspec_drop_rules_live_in_router":"Les règles de drop Flowspec vivent dans la TCAM du routeur, donc seuls les routeurs compatibles filtrent les floods UDP connus (DNS, NTP, CLDAP, SYN) en bordure. Le Rusty d’occasion n’en a pas, les modèles merchant-silicon et whitebox un peu, les gros châssis complètement. Mets à niveau le routeur d’un POP depuis son onglet Infra.", "hud_and_panels.g_lost":"{g} perdus", "hud_and_panels.happiness_p":"satisfaction {p} %", "hud_and_panels.has_errors_not_running":"contient des erreurs, à l’arrêt", @@ -2240,45 +2283,22 @@ "incidents_and_ddos.a_leap_second_convinced_one_of":"Une seconde intercalaire a convaincu un de tes routeurs qu’on est en 1970. L’uptime affiche moins 56 ans. Le trafic va bien.", "incidents_and_ddos.a_route_you_withdrew_in_year":"Une route que tu as retirée en année 1 est encore visible quelque part sur Internet. Personne ne sait où. Tout va bien. Probablement.", "incidents_and_ddos.a_two_hour_meeting_about_router":"Une réunion de deux heures sur les hostnames des routeurs s’est conclue par un vote pour « router-final-v2-NEW ».", -"incidents_and_ddos.after_upstream_scrubbing_g":"Après le scrubbing en amont : {g}", "incidents_and_ddos.an_auditor_asked_for_a_network":"Un auditeur a demandé un schéma réseau. Tu lui as envoyé la carte du jeu. Il l’a validée.", -"incidents_and_ddos.attack_fully_mitigated":"Attaque entièrement neutralisée", -"incidents_and_ddos.blackhole_the_target_rtbh":"Blackholer la cible (RTBH)", -"incidents_and_ddos.blackholed_the_junk_is_gone_and":"Blackholé : les déchets ont disparu, et {city} aussi. L’attaque a obtenu ce qu’elle voulait.", -"incidents_and_ddos.contained_on_your_sacrificial_net":"Contenu sur ton PNI sacrificiel {net}", -"incidents_and_ddos.edge_filters_dropping_g":"Filtres en bordure : {g} supprimés", -"incidents_and_ddos.flowspec_cannot_catch_vec":"Flowspec ne peut pas arrêter {vec}", -"incidents_and_ddos.flowspec_dropping_g":"Flowspec supprime {g}", -"incidents_and_ddos.g_is_leaking_through":"{g} passent encore", "incidents_and_ddos.hackback_3000tm_20k":"HackBack 3000™ $20k", "incidents_and_ddos.it_was_dns":"C’était le DNS", -"incidents_and_ddos.ix_blackhole_half_honour_it":"Blackhole IX ~la moitié le respecte", -"incidents_and_ddos.ix_blackhole_on":"Blackhole IX actif ✓", "incidents_and_ddos.ix_lag":"LAG {ix}", "incidents_and_ddos.ix_lag_in_city":"LAG {ix} à {city}", -"incidents_and_ddos.live_attack_city":"Attaque en cours : {city}", "incidents_and_ddos.load_bearing_typo":"Coquille porteuse", "incidents_and_ddos.management_declared_a_change_freeze":"La direction a décrété un gel des changements. Quelqu’un a fait un changement pour annoncer le gel des changements.", "incidents_and_ddos.name_transit_lag_in_city":"LAG de transit {name} à {city}", -"incidents_and_ddos.no_flowspec_filtering_ingress":"Aucun filtrage Flowspec : les routeurs d’entrée n’ont pas de TCAM", -"incidents_and_ddos.no_scrubbing_center":"Pas de centre de scrubbing", -"incidents_and_ddos.no_scrubbing_needed_after_edge":"Aucun scrubbing nécessaire après la protection en bordure", -"incidents_and_ddos.on_demand_scrubbing_diverting_live":"Scrubbing à la demande en cours de redirection, actif dans {n} j", "incidents_and_ddos.open_to_work":"Open to work", "incidents_and_ddos.pni_lag_with_name_in_city":"LAG PNI avec {name} à {city}", -"incidents_and_ddos.rtbh_is_free_and_instant_but":"Le RTBH est gratuit et instantané, mais il jette tout ce qui va vers la victime, attaque comme client. Un blackhole IX garde le client en ligne, mais seule la moitié environ des membres le respecte. HackBack 3000™ de Skynot AI y met parfois fin, et parfois écrase un innocent et te vaut une amende.", -"incidents_and_ddos.scrubbing_centers_unavailable_or_at":"Centres de scrubbing indisponibles ou saturés", -"incidents_and_ddos.scrubbing_in_city_used_capacity":"Scrubbing à {city} : {used} / {capacity}", -"incidents_and_ddos.scrubbing_traffic_hauled_over_your":"Trafic de scrubbing acheminé par ton backbone : {city} → {to} (+{ms} ms)", -"incidents_and_ddos.size_vec_entry_n_d_left":"{size} · {vec}{entry} · {n} j restants", "incidents_and_ddos.someone_deleted_the_dns_record_for":"Quelqu’un a supprimé l’enregistrement DNS du wiki interne. La procédure pour réparer le DNS était sur le wiki.", "incidents_and_ddos.someone_named_a_vlan_prodcution_it":"Quelqu’un a nommé un VLAN « prodcution ». Désormais, tout repose dessus et il ne pourra jamais être renommé.", "incidents_and_ddos.the_tls_certificate_on_your_noc":"Le certificat TLS de ton tableau de bord NOC a expiré. Plus personne ne voit les graphes, donc techniquement il n’y a aucun problème.", -"incidents_and_ddos.this_attack_g":"Cette attaque : {g}", "incidents_and_ddos.ticket_of_the_week":"Le ticket de la semaine", "incidents_and_ddos.vendor_support_asked_you_to_try":"Le support du constructeur t’a demandé « d’essayer d’éteindre et de rallumer ». Pour le routeur que tu avais déjà redémarré. Ticket fermé.", "incidents_and_ddos.you_found_a_10g_link_in":"Tu as trouvé dans l’inventaire un lien 10G que personne n’a commandé, que personne ne paie, et qui transporte 3 Gbps de quelque chose.", -"incidents_and_ddos.your_backbone_can_only_haul_g":"Ton backbone ne peut en acheminer que {g} jusqu’à {city} : le reste n’est pas nettoyé", "incidents_and_ddos.your_ip_address_spreadsheet_hit_1":"Ton tableur d’adresses IP a atteint 1 048 576 lignes. Excel a un avis sur la question.", "incidents_and_ddos.your_ipv6_traffic_grew_400_from":"Ton trafic IPv6 a augmenté de 400 %. D’un paquet à cinq.", "incidents_and_ddos.your_monitoring_system_went_down_you":"Ta supervision est tombée. Tu l’as découvert parce que rien n’a alerté. Semaine très paisible.", @@ -3394,10 +3414,10 @@ "routescript.did_you_mean_name":". Tu voulais dire {name} ?", "routescript.done_i_vibe_checked_your_bgp":"Voilà ! J’ai fait un vibe check de votre BGP. Déployez tout de suite : les dry runs, c’est pour ceux qui doutent d’eux-mêmes.", "routescript.drain_a_pop_and_steer_around":"Videz un POP et contournez un de ses liens avant d’y toucher. Remplacez les noms par ceux sur lesquels vous travaillez.", -"routescript.during_an_attack_drop_the_flood":"Pendant une attaque, jeter le flot en bordure. Ça emporte un peu de vrai trafic, alors retirez-le quand l’attaque est finie.", +"routescript.during_an_attack_rtbh_the_target":"Pendant une attaque, blackhole la cible en amont (RTBH). Tous les autres sont sauvés ; la cible est coupée jusqu’à ce que tu retires la règle.", "routescript.every_gigabit_leaving_your_network":"Chaque gigabit qui quitte votre réseau choisit une sortie : une PNI, un port IX ou un port de transit. Livré à lui-même, il prend la moins chère qui a de la place : PNI d’abord, puis l’IX, puis le transit. RouteScript change ces choix, comme le font local-pref, l’AS-path prepending et les drains de maintenance sur de vrais routeurs.", "routescript.filled_in_from_your_network_as":"Remplis à partir de votre réseau tel qu’il est en ce moment. Chargez-en un, lisez-le, vérifiez-le, puis déployez.", -"routescript.for_a_ddos_drop_the_junk":"Pour un DDoS : jetez les déchets en bordure et servez d’abord les clients professionnels. Cela coûte un peu de vrai trafic, alors retirez-le quand l’attaque est finie.", +"routescript.for_a_ddos_rtbh_the_target":"Pour un DDoS : blackhole la cible en amont et sers d’abord les clients professionnels. La cible est coupée tant que ça dure, alors retire-le quand l’attaque est finie.", "routescript.great_question_here_is_a_production":"Excellente question ! Voici un script prêt pour la production, taillé pour votre trafic. Je l’ai vérifié minutieusement.", "routescript.help_and_ready_made_scripts":"Aide et scripts tout prêts", "routescript.here_you_go_i_was_trained":"Et voilà ! J’ai été entraîné sur toutes les configs de routeur jamais postées sur un forum, y compris celles intitulées « pourquoi ça marche pas ».", @@ -3521,7 +3541,7 @@ "scenarios.eyeballs_grow_50_faster":"Les eyeballs croissent 50 % plus vite", "scenarios.fibre_to_the_basement":"La fibre au sous-sol", "scenarios.gangnam_style_peering":"Peering Gangnam Style", -"scenarios.hold_20_floods_5_of_them":"Encaisse 20 vagues, dont 5 de plus de 1 Tbps, en gardant la ville attaquée à 97 % ou mieux", +"scenarios.hold_20_floods_5_terabit":"Tiens 20 flots, dont 5 au-dessus de 1 Tbps : chaque cible à 97 % ou mieux, personne d’autre touché", "scenarios.honolulu_in_the_middle_of_the":"Honolulu, au milieu du Pacifique. Les câbles entre les Amériques, l’Asie et l’Australie sont si longs qu’une longueur d’onde n’y transporte que 400G ou 800G. Arrête la lumière sur une île, fais-la repartir à neuf, et chaque saut devient plus court et plus rapide. Tu commences avec le matériel 1.6T débloqué.", "scenarios.mid_atlantic_accent":"Accent mi-atlantique", "scenarios.only_spatzle_ix":"Que du Spätzle-IX", @@ -3549,19 +3569,14 @@ "scenarios.welcome_name_the_ripe_ncc_assigned":"Bienvenue, {name} !
Le RIPE NCC t’a attribué l’AS{asn}. Ton premier routeur ronronne à {city}.", "scenarios.you_have_n_days":"Tu as {n} jours.", "security_and_china.application_filed_your_local_partner":"Demande déposée.
Ton partenaire local parle d’environ 45 jours. Probablement.", -"security_and_china.blackhole_withdrawn_city_is":"Blackhole retiré.
{city} est de nouveau joignable. Prépare-toi aux déchets.", "security_and_china.clean_pipe_add_on_enabled_on":"Option clean-pipe activée chez {net}.
Ils nettoient un flood avant qu’il n’atteigne ton port ici, pour {mo}/mois.", "security_and_china.clean_pipe_add_on_removed_from":"Option clean-pipe retirée chez {net}.", "security_and_china.hackback_3000tm_hit_the_wrong_target":"Le HackBack 3000™ a touché la mauvaise cible.
{who} Un régulateur t’inflige une amende de {fine}, et l’attaque continue.", "security_and_china.hackback_3000tm_strikes_back_skynot":"HackBack 3000™ contre-attaque !
Skynot AI a remonté le botnet et l’a poliment briqué. L’attaque sur {city} s’arrête net.", -"security_and_china.ix_blackhole_announced_in_city_about":"Blackhole annoncé sur l’IX de {city}.
Environ la moitié des membres respectent le /32 et jettent les déchets. Le client reste en ligne.", -"security_and_china.ix_blackhole_withdrawn":"Blackhole IX retiré.", "security_and_china.net_pni_is_back_to_normal":"La PNI {net} est revenue à la normale.", "security_and_china.net_pni_is_now_a_sacrificial":"La PNI {net} est désormais un goulot sacrificiel.
Un flood venu de là meurt sur le petit port au lieu de ton réseau, mais le trafic légitime qui y passe tourne à mi-capacité.", "security_and_china.no_attack_to_blackhole_right_now":"Aucune attaque à blackholer pour l’instant.", -"security_and_china.no_ix_in_city_to_announce":"Aucun IX à {city} auquel annoncer un blackhole.", "security_and_china.nothing_to_hack_back_right_now":"Rien à contre-attaquer pour l’instant.", -"security_and_china.rtbh_announced_you_blackholed_the":"RTBH annoncé.
Tu as blackholé la cible à {city}. Le flood s’arrête, et tout le monde là-bas aussi.", "security_and_china.scrubbing_upgraded_to_tier":"Scrubbing passé en {tier}.", "security_and_china.skynot_ai_flattened_a_grandma_s":"Skynot AI a rasé le frigo connecté d’une mamie.", "security_and_china.the_botnet_was_already_someone_else":"Le botnet était déjà le botnet de quelqu’un d’autre. Ils sont furieux.", diff --git a/site/i18n/it.js b/site/i18n/it.js index ddba17c..a1e613f 100644 --- a/site/i18n/it.js +++ b/site/i18n/it.js @@ -827,7 +827,6 @@ "city_panel.add_a_second_site_cost_mo":"Aggiungi un secondo sito {cost} + {mo}/mese", "city_panel.add_router_cost_mo_mo":"Aggiungi router {cost} + {mo}/mese", "city_panel.ai_and_cloud_campuses_nearby_list":"Campus AI e cloud nei dintorni: {list}", -"city_panel.attacks_go_to_your_nearest_scrubbing":"Gli attacchi vanno al tuo centro di scrubbing più vicino. Da qui è {city}, a {km} km: il flusso viaggia sul tuo backbone fin lì e ritorno, il che aggiunge latenza, e quello che i tuoi link non riescono a portare non viene pulito. Un centro qui pulisce gli attacchi sul posto.", "city_panel.augment_on_order_port_about_n":"Ampliamento in ordine: {port}, mancano circa {n} giorni.", "city_panel.boxes_a_in_a_b_in":"Box: {a} in A · {b} in B", "city_panel.build_pop_cost_mo_mo":"Costruisci POP {cost} + {mo}/mese", @@ -839,7 +838,6 @@ "city_panel.cdns_put_free_cache_servers_inside":"I CDN mettono server cache gratis dentro il tuo POP. Gran parte del loro traffico viene così servita direttamente qui, senza transit e senza porta IX.", "city_panel.clean_pipe_mo_mo_scrubs_ddos":"+ Clean-pipe {mo}/mese · ripulisce i DDoS a monte", "city_panel.clean_pipe_on":"Clean-pipe attivo ✓", -"city_panel.cleans_attacks_for_your_whole":"Ripulisce gli attacchi per tutta la tua rete, fino alla sua capacità di banda pulita, e sblocca i contratti di protezione DDoS. Il traffico pulito torna via GRE, che può riaprire il buco nero MSS.", "city_panel.cleans_ddos_attacks_for_your_whole":"Ripulisce gli attacchi DDoS per tutta la tua rete, fino alla sua capacità di banda pulita, e sblocca i contratti di protezione DDoS per le aziende.", "city_panel.close_site_b":"Chiudi il sito B", "city_panel.cn_too_premium_on":"CN-Too premium attivo ✓", @@ -856,6 +854,7 @@ "city_panel.few_data_centers_pops_x":"Pochi data center: POP {x}×", "city_panel.fiber_from_city":"Fibra da {city}", "city_panel.fiber_is_down":"la fibra è down", +"city_panel.floods_here_are_pulled_to":"Le inondazioni contro bersagli qui vengono attirate al tuo centro di scrubbing a {city}, a {km} km. Il traffico pulito torna sul tuo backbone, e questo aggiunge latenza. Un centro qui accorcia la deviazione.", "city_panel.g_of_circuits":"{g} di circuiti", "city_panel.g_of_eyeballs":"{g} di eyeball", "city_panel.hide_other_models":"Nascondi altri modelli", @@ -884,7 +883,7 @@ "city_panel.no_ix_here_yet_you_could":"Qui non c’è ancora un IX. Più avanti potresti fondarne uno.", "city_panel.nobody_sells_transit_here_haul_your":"Qui nessuno vende transit. Porta il tuo traffico via fibra in una città che ce l’ha.", "city_panel.nothing_plugged_in_here_yet":"Qui non è ancora collegato niente", -"city_panel.on_demand_engages_in_n_d":"On-demand (si attiva tra {n}g)", +"city_panel.on_demand_half_the_first_day":"On-demand (a metà il primo giorno)", "city_panel.one_router_is_a_single_point":"Un solo router è un single point of failure.", "city_panel.only_the_cn_too_premium_crossing":"Qui vendono solo il loro attraversamento premium CN-Too, via terra fino in Cina: prezzi di Hong Kong, circa il 3% di perdita verso la Cina, e nient'altro.", "city_panel.open_a_pop_here":"Apri un POP qui", @@ -900,6 +899,7 @@ "city_panel.price_per_gbps_month_billed_on":"${price} per Gbps / mese · fatturato al 95° percentile", "city_panel.prices_include_p_back_for_the":"I prezzi includono {p} recuperati vendendo i vecchi router su eBuy.", "city_panel.private_interconnects_pni":"Interconnessioni private (PNI)", +"city_panel.pulls_floods_onto_its_own":"Quando è attivo annuncia il bersaglio in modo più specifico, così le inondazioni arrivano sul suo ingresso da {g} invece che sulle tue porte, e lui le pulisce. Il traffico pulito torna sul tuo backbone. Sblocca anche i contratti di protezione DDoS.", "city_panel.ready_in_n_d":"pronto tra {n}g", "city_panel.really_close_it":"Chiuderlo davvero?", "city_panel.really_shut_it_down":"Spegnerlo davvero?", @@ -1512,9 +1512,10 @@ "common.your_pop":"Il tuo POP", "common.your_pops":"I tuoi POP", "common.zombie_route":"Route zombie", -"compute.attack_hauled_to_scrubbing_in_city":"Attacco portato allo scrubbing di {city}", +"compute.attack_entering_in_city":"Attacco in entrata a {city}", "compute.courtesy_route_to_new_networks":"Percorso di cortesia verso le nuove reti", "compute.l2vpn_for_name":"L2VPN per {name}", +"compute.scrubbed_traffic_from_city":"Traffico ripulito da {city}", "compute.sd_wan_for_name":"SD-WAN per {name}", "conferences.as_a_sponsor_you_also_get":"Come sponsor ricevi anche più offerte di clienti da {region}.", "conferences.attend_cost":"Partecipa {cost}", @@ -1688,6 +1689,53 @@ "day_tick.you_are_in_the_red_cancel":"Sei in rosso.
Disdici qualcosa di costoso, aspetta i ricavi o chiedi un prestito in banca. A −$100k la banca si prende i tuoi router.", "day_tick.you_are_no_longer_tier_1":"Non sei più Tier 1.
Perché {why}. Il badge Tier 1 resta; riconquista lo status per mostrarlo di nuovo.", "day_tick.your_fiber_is_finished_a_b":"La tua fibra è pronta: {a}–{b}", +"ddos.auto_rtbh":"Auto-RTBH: l’inondazione su {who} stava riempiendo le tue porte, quindi va in blackhole a monte. Tutti gli altri sono al sicuro.", +"ddos.auto_rtbh_off":"Auto-RTBH: no", +"ddos.auto_rtbh_on":"Auto-RTBH: sì", +"ddos.auto_scrub_off":"Scrubbing automatico: no", +"ddos.auto_scrub_on":"Scrubbing automatico: sì", +"ddos.btn_engage":"Attiva lo scrubbing", +"ddos.btn_rtbh":"RTBH sul bersaglio", +"ddos.card_title":"{g} {vec}", +"ddos.carpet":"carpet bombing", +"ddos.engaged":"Scrubbing attivo: l’inondazione viene attirata verso i tuoi centri.", +"ddos.flood_sacrificed":"Un’inondazione da {g}: hai messo {who} in blackhole per salvare tutti gli altri. Non conta come tenuta.", +"ddos.fs_help":"Le regole Flowspec stanno nella TCAM di ogni router. Puliscono un’inondazione quando è già dentro, mai una porta piena. I router più grandi tengono più regole.", +"ddos.fs_no_tcam":"nessuna (niente TCAM)", +"ddos.fs_pops":"POP con Flowspec", +"ddos.fs_rules":"Regole Flowspec", +"ddos.fs_used":"{used} / {cap} in uso", +"ddos.learn_fs":"I router di {city} non hanno più regole Flowspec libere, quindi lì la spazzatura passa senza filtro. I router più grandi tengono più regole.", +"ddos.learn_port":"Una porta è piena. Tutto ciò che ci passa perde traffico, e niente dietro la porta può aiutare. Porte in più e più grandi diluiscono l’inondazione; il RTBH o un centro di scrubbing la tengono lontana.", +"ddos.learn_rtbh":"Hai salvato tutti gli altri e spento un cliente. Il patto è questo.", +"ddos.more":"Altro", +"ddos.news_held":"La tua rete lo assorbe. Nessuno se ne accorge.", +"ddos.news_ports":"Porte piene: {n}. Altri clienti rallentati: {k}. Il RTBH li salverebbe.", +"ddos.news_rtbh":"In blackhole a monte: il bersaglio è al buio, tutti gli altri stanno bene.", +"ddos.news_target":"Nessun altro se ne accorge, ma il bersaglio riceve solo {p} del suo traffico.", +"ddos.res_col":"Bersaglio al {p}, e {g} di altro traffico perso", +"ddos.res_held":"Tenuto: nessuno se ne accorge", +"ddos.res_rtbh":"{who} è al buio; tutti gli altri stanno bene", +"ddos.res_target":"Bersaglio al {p}, nessun altro colpito", +"ddos.row_detour":"Il traffico pulito fa una deviazione di {ms} ms via {city}", +"ddos.row_fs":"Flowspec butta {g} sui router di {n} POP", +"ddos.row_fs_full":"Niente più regole Flowspec a {cities}", +"ddos.row_fs_no_router":"Questi router non sanno fare Flowspec", +"ddos.row_fs_none":"Flowspec non ha una firma per {vec}", +"ddos.row_ports_full":{"one":"Entra da {n} porta, {k} piena: {labs}","other":"Entra da {n} porte, {k} piene: {labs}"}, +"ddos.row_ports_ok":{"one":"Entra da {n} porta, non piena","other":"Entra da {n} porte, nessuna piena"}, +"ddos.row_rtbh":"Il RTBH butta {g} a monte", +"ddos.row_scrub":"Lo scrubbing attira {g} e ne pulisce {c} ({cities})", +"ddos.row_scrub_idle":"Lo scrubbing on-demand aspetta te", +"ddos.row_scrub_none":"Nessun centro di scrubbing", +"ddos.row_slowed":{"one":"{n} altro cliente rallentato","other":"{n} altri clienti rallentati"}, +"ddos.rtbh_help":"Il RTBH è gratis e immediato. I transit buttano a monte il traffico del bersaglio, quasi tutti gli exchange pure, e circa metà dei tuoi peer privati. Le tue porte sono salve; il bersaglio resta al buio finché non lo ritiri.", +"ddos.rtbh_off":"Blackhole ritirato: {who} è di nuovo raggiungibile.", +"ddos.rtbh_on":"RTBH annunciato: {who} è in blackhole a monte.", +"ddos.started":"Un attacco {vec} da {g} sta colpendo {who}.", +"ddos.test_flood":"Manda un’inondazione di prova", +"ddos.who_customer":"{name} ({what}, {city})", +"ddos.who_subscribers":"i tuoi abbonati a {city}", "de_kicks.a_fee_for_being_ready_for":"Una tariffa per essere pronti per il cloud.", "de_kicks.a_monthly_pdf_of_your_own":"Un PDF mensile con i grafici del tuo stesso traffico.", "de_kicks.breaking_cve_2026_31337_just_took":"🐘 ULTIM’ORA: CVE-2026-31337 ha appena buttato giù mezza internet.
Un bug in PHP ha trasformato ogni sito WordPress-qualcosa sulla Terra in un miner di criptovalute. Il traffico eyeball cala del 30% per qualche giorno mentre il mondo applica le patch. I tuoi clienti hosting lo stanno facendo alle 3 di notte.", @@ -1818,7 +1866,6 @@ "failures.a_rival_isp_s_stress_test":"lo “stress test” di un ISP rivale", "failures.a_routine_overnight_upgrade_took":"Un aggiornamento notturno di routine ha lasciato offline il tuo router a {city} fino a pranzo. Floptus ti saluta.", "failures.a_ship_dragged_its_anchor_across":"Una nave ha trascinato l’àncora sul tuo cavo {a}–{b}.", -"failures.a_size_vec_attack_is_hitting":"Un attacco {vec} da {size} sta colpendo {city}{how}.", "failures.a_splicer_fusing_someone_else_s":"Un giuntista che saldava il cavo di qualcun altro in un pozzetto vicino a {b} ha saldato il tuo.", "failures.a_sulphur_crested_cockatoo_chewed":"Un cacatua dal ciuffo giallo ha rosicchiato la tua fibra {a}–{b}, poi è tornato per quella di scorta.", "failures.a_teenager_with_a_stolen_credit":"un adolescente con una carta di credito rubata e un rancore", @@ -1864,8 +1911,6 @@ "failures.geopolitical_cable_cut":"Taglio geopolitico dei cavi", "failures.hash_polarisation_on_your_lab_nearly":"Polarizzazione dell’hash su {lab}: quasi tutti i flussi finiscono sullo stesso membro. Il bundle dice di essere su. È anche pieno.", "failures.hide_the_vacuum":"Nascondi l’aspirapolvere", -"failures.in_via_e":", entra da {e}", -"failures.junk_traffic_is_eating_your_capacity":"Il traffico spazzatura si sta mangiando la tua capacità. Apri il NOC per difenderti.", "failures.lacp_fast_slow_timer_mismatch_on":"Timer LACP fast/slow non allineati su {lab}: un membro continua a uscire dal bundle per timeout e a rientrare.", "failures.lightning_hit_an_amp_site_on":"Un fulmine ha colpito un sito di amplificazione su {a}–{b}. Lo scaricatore era decorativo.", "failures.load_shedding_in_city_stage_n":"Distacchi a rotazione a {city}
Oggi stage {n}. Il tuo generatore ha tossito, poi ha tenuto le luci accese.", @@ -1938,7 +1983,6 @@ "failures.your_a_b_cable_went_quiet":"Il tuo cavo {a}–{b} è ammutolito da qualche parte nel Triangolo delle Bermuda. La nave di riparazione è andata a cercarlo, e non ha ancora richiamato neanche lei.", "failures.your_a_b_fiber_broke_somewhere":"La tua fibra {a}–{b} si è rotta da qualche parte nel Nullarbor. La squadra delle giunzioni ha fatto le valigie per una settimana.", "failures.your_a_b_fiber_is_down":"La tua fibra {a}–{b} è giù. La squadra di riparazione ha trovato segni di denti, una tana e un castoro molto orgoglioso.", -"failures.your_mitigation_is_eating_most_of":"La tua mitigazione se ne sta mangiando quasi tutto.", "failures.your_on_call_engineer_typed_clear":"Il tuo reperibile ha digitato “clear bgp *” in produzione a {city} alle 3 di notte. Ha ripulito tutto.", "failures.your_roa_expired_over_the_weekend":"La tua ROA è scaduta nel weekend. I tuoi prefissi sono RPKI-invalid e circa mezza internet li sta scartando.", "failures.your_router_in_city_crashed_and":"Il tuo router a {city} è crashato e si sta riavviando. Ora {what}. Tempo di boot di questo modello: circa {min} minuti a tentativo, ed è al tentativo numero {n}.", @@ -2051,10 +2095,10 @@ "help.as_your_peak_traffic_and_footprint":"Man mano che crescono il tuo traffico di picco e la tua presenza, arrivano clienti più grandi: startup di streaming e università, poi data center GPU per l’AI e cloud on-ramp, poi interconnessioni per il training AI e contratti DCI con hyperscaler misurati in terabit. Le bolle rosa $$ segnano quelli grossi.", "help.at_customer_level_3_and_4":"Ai livelli clienti 3 e 4 arrivano hyperscaler e cloud AI con contratti che solo loro chiederebbero: WAN AI da terabit tra campus da gigawatt, run di training distribuite su più siti, ingestion di dataset lunghe una settimana e centinaia di coppie di fibre in uno scavo fatto da te. Pagano come nessun altro, e vogliono percorsi diversi, due siti per area metropolitana e zero scuse. Le città vicine ai loro campus li elencano sotto “Chi c’è qui”.", "help.below_your_goals_sits_a_wall":"Sotto i tuoi obiettivi c’è un muro di badge, dai comuni ai leggendari. Alcuni richiedono fortuna, altri anni, e un paio sono segreti. I badge guadagnati nelle partite precedenti restano su questo dispositivo con un contorno tratteggiato.", -"help.build_one_in_as_many_pops":"Costruiscine uno in tutti i POP che vuoi. Un attacco va al centro funzionante più vicino, e quello che non riesce a gestire passa al successivo. Un centro lontano vuol dire che il flusso viaggia sul tuo backbone fin lì e il traffico della vittima torna per la strada lunga: riempie i tuoi link, aggiunge latenza, e quello che i link non riescono a portare non viene pulito. I clienti che comprano protezione DDoS se ne accorgono quando i loro attacchi attraversano un oceano.", "help.businesses_may_want_a_private":"Le aziende possono volere un circuito privato tra due dei tuoi POP (viaggia sul tuo backbone), o una protezione DDoS (serve il tuo centro di scrubbing).", "help.content_networks_like_netchill_and":"Reti di contenuti come NetChill e Goggle. Gran parte del tuo traffico arriva da loro. Fai peering con loro e quel traffico è gratis.", "help.controls_drag_the_map_to_pan":"Comandi: trascina la mappa per spostarti, scorri o pizzica per lo zoom, tocca una città per aprirla. Trascina dal tuo router rosa a un’altra città per posare la fibra. Spazio mette in pausa, 0 è mezza velocità, 1 2 3 4 impostano la velocità. A 1× un giorno dura 2,5 secondi.", +"help.ddos_a_flood_comes_from":"Un’inondazione arriva da ovunque, quindi entra da ogni porta da cui internet ti raggiunge. Una porta porta quello che ci sta, e tutto ciò che passa su una porta piena perde traffico. Il RTBH butta a monte il traffico del bersaglio e salva tutti gli altri, ma il bersaglio resta al buio. Flowspec pulisce l’inondazione su ogni router quando è già dentro, nei limiti delle regole di quel router. Quasi tutti gli attacchi sono piccoli; gamer e hosting attirano quelli grossi.", "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", @@ -2081,6 +2125,7 @@ "help.reach_an_ix_over_a_fabric":"Raggiungi un IX con un circuito su fabric senza avere un POP lì. Funziona, e il route server ti dà comunque tutte le reti aperte, ma è sconsigliato: il rivenditore ti fa pagare la porta 1,5× e la vende in oversubscription all’80%, la latenza dipende dal fabric, un disservizio del fabric fa cadere tutte le sessioni, e molte reti selective rifiutano i membri remoti senza appello.", "help.routers_optics_and_new_builds_get":"Router, ottiche e nuove costruzioni rincarano con gli anni, circa il 4% all’anno dopo i primi sei mesi, e ogni tanto una carenza ne fa rincarare uno parecchio per un mese o due. Quello che possiedi già mantiene il suo prezzo. Le scorte sullo scaffale e un blocco annuale dei prezzi dalla scheda NOC attutiscono il colpo.", "help.rules_for_your_auto_te_controller":"Regole per il tuo controller Auto-TE: quali uscite preferire, quali evitare e quando passare alla successiva. L’aiuto dell’editor spiega ogni regola e ha script pronti.", +"help.scrubbing_a_center_pulls_floods":"Quando è attivo, un centro attira l’inondazione sul suo ingresso (una calamita) e la pulisce fino alla sua taglia (una spugna); quello che non regge colpisce solo il bersaglio. Il traffico pulito torna sul tuo backbone, quindi un centro lontano aggiunge latenza. Costruiscili dove stanno i tuoi clienti.", "help.share_my_network":"Condividi la mia rete", "help.some_customers_come_with_conditions":"Alcuni clienti arrivano con delle condizioni: niente Cogentle da nessuna parte, niente cavi sottomarini per colpa degli squali, due router, un generatore, NetChill on-net, accesso alla Cina con poche perdite e altro. Ognuna paga un bonus. Quelle non rispettate li rendono scontrosi finché non rimedi o se ne vanno.", "help.some_routers_take_forever_to_boot":"Alcuni router ci mettono una vita ad avviarsi. La scheda Infra mostra quanto ci mette il tuo. I router lenti al boot allungano i crash e trasformano la sostituzione di un router singolo in un disservizio di tre giorni. Gli chassis più grandi, soprattutto quelli con dentro un PacketOinker™, sono lenti più spesso. Con due router diventa un problema di qualcun altro.", @@ -2190,8 +2235,6 @@ "hud_and_panels.customer_level_lv_name":"Livello cliente {lv}: {name}", "hud_and_panels.dropping_or_overflowing":"scarta o trabocca", "hud_and_panels.every_network_on_the_map_traffic":"Tutte le reti sulla mappa. La quota di traffico è quanto del traffico dei tuoi utenti va verso di loro. Tocca una connessione per andare al suo POP.", -"hud_and_panels.flowspec_capable_pops":"POP con Flowspec", -"hud_and_panels.flowspec_drop_rules_live_in_router":"Le regole di scarto Flowspec vivono nella TCAM del router, quindi solo i router capaci filtrano i flood UDP noti (DNS, NTP, CLDAP, SYN) all’edge. La Rusty usata non ne ha, i modelli merchant-silicon e whitebox un po’, i grandi chassis in pieno. Aggiorna il router di un POP dalla sua scheda Infra.", "hud_and_panels.g_lost":"{g} persi", "hud_and_panels.happiness_p":"soddisfazione {p}%", "hud_and_panels.has_errors_not_running":"ha errori, non gira", @@ -2240,45 +2283,22 @@ "incidents_and_ddos.a_leap_second_convinced_one_of":"Un secondo intercalare ha convinto uno dei tuoi router che siamo nel 1970. L’uptime ora segna meno 56 anni. Il traffico va benissimo.", "incidents_and_ddos.a_route_you_withdrew_in_year":"Una route che hai ritirato nell’Anno 1 è ancora visibile da qualche parte su internet. Nessuno sa dove. Va tutto bene. Probabilmente.", "incidents_and_ddos.a_two_hour_meeting_about_router":"Una riunione di due ore sugli hostname dei router si è chiusa con un voto per “router-final-v2-NEW”.", -"incidents_and_ddos.after_upstream_scrubbing_g":"Dopo lo scrubbing a monte: {g}", "incidents_and_ddos.an_auditor_asked_for_a_network":"Un auditor ha chiesto uno schema della rete. Gli hai mandato la mappa del gioco. L’ha approvata.", -"incidents_and_ddos.attack_fully_mitigated":"Attacco completamente mitigato", -"incidents_and_ddos.blackhole_the_target_rtbh":"Metti il bersaglio in buco nero (RTBH)", -"incidents_and_ddos.blackholed_the_junk_is_gone_and":"In buco nero: la spazzatura è sparita, e anche {city}. L’attacco ha ottenuto ciò che voleva.", -"incidents_and_ddos.contained_on_your_sacrificial_net":"Contenuto sulla tua PNI sacrificale {net}", -"incidents_and_ddos.edge_filters_dropping_g":"Filtri al bordo: {g} scartati", -"incidents_and_ddos.flowspec_cannot_catch_vec":"Flowspec non può fermare {vec}", -"incidents_and_ddos.flowspec_dropping_g":"Flowspec scarta {g}", -"incidents_and_ddos.g_is_leaking_through":"{g} superano le difese", "incidents_and_ddos.hackback_3000tm_20k":"HackBack 3000™ $20k", "incidents_and_ddos.it_was_dns":"Era il DNS", -"incidents_and_ddos.ix_blackhole_half_honour_it":"Blackhole IX ~metà lo rispetta", -"incidents_and_ddos.ix_blackhole_on":"Blackhole IX attivo ✓", "incidents_and_ddos.ix_lag":"LAG {ix}", "incidents_and_ddos.ix_lag_in_city":"LAG {ix} a {city}", -"incidents_and_ddos.live_attack_city":"Attacco in corso: {city}", "incidents_and_ddos.load_bearing_typo":"Refuso portante", "incidents_and_ddos.management_declared_a_change_freeze":"Il management ha dichiarato un change freeze. Qualcuno ha fatto una change per annunciare il change freeze.", "incidents_and_ddos.name_transit_lag_in_city":"LAG di transit {name} a {city}", -"incidents_and_ddos.no_flowspec_filtering_ingress":"Nessun filtraggio Flowspec: i router di ingresso non hanno TCAM", -"incidents_and_ddos.no_scrubbing_center":"Nessun centro di scrubbing", -"incidents_and_ddos.no_scrubbing_needed_after_edge":"Nessuno scrubbing necessario dopo la mitigazione al bordo", -"incidents_and_ddos.on_demand_scrubbing_diverting_live":"Scrubbing on-demand in deviazione, attivo tra {n}g", "incidents_and_ddos.open_to_work":"Open to work", "incidents_and_ddos.pni_lag_with_name_in_city":"LAG PNI con {name} a {city}", -"incidents_and_ddos.rtbh_is_free_and_instant_but":"L’RTBH è gratis e immediato, ma scarta tutto ciò che va alla vittima: attacco e cliente insieme. Un blackhole IX tiene su il cliente ma solo circa metà dei membri lo rispetta. HackBack 3000™ di Skynot AI a volte lo ferma, e a volte travolge un innocente e ti becca una multa.", -"incidents_and_ddos.scrubbing_centers_unavailable_or_at":"Centri di scrubbing non disponibili o al completo", -"incidents_and_ddos.scrubbing_in_city_used_capacity":"Scrubbing a {city}: {used} / {capacity}", -"incidents_and_ddos.scrubbing_traffic_hauled_over_your":"Traffico di scrubbing trasportato sul tuo backbone: {city} → {to} (+{ms} ms)", -"incidents_and_ddos.size_vec_entry_n_d_left":"{size} · {vec}{entry} · {n}g rimasti", "incidents_and_ddos.someone_deleted_the_dns_record_for":"Qualcuno ha cancellato il record DNS del wiki interno. Il runbook per sistemare il DNS stava sul wiki.", "incidents_and_ddos.someone_named_a_vlan_prodcution_it":"Qualcuno ha chiamato una VLAN “prodcution”. Ora è portante e non potrà mai più essere rinominata.", "incidents_and_ddos.the_tls_certificate_on_your_noc":"Il certificato TLS della dashboard del NOC è scaduto. Nessuno vede più i grafici, quindi tecnicamente non ci sono problemi.", -"incidents_and_ddos.this_attack_g":"Questo attacco: {g}", "incidents_and_ddos.ticket_of_the_week":"Ticket della settimana", "incidents_and_ddos.vendor_support_asked_you_to_try":"Il supporto del vendor ti ha chiesto di “provare a spegnere e riaccendere”. Il router che avevi già riavviato. Ticket chiuso.", "incidents_and_ddos.you_found_a_10g_link_in":"Hai trovato in inventario un link da 10G che nessuno ha ordinato, nessuno paga, e che porta 3 Gbps di qualcosa.", -"incidents_and_ddos.your_backbone_can_only_haul_g":"Il tuo backbone riesce a portarne solo {g} a {city}: il resto non viene pulito", "incidents_and_ddos.your_ip_address_spreadsheet_hit_1":"Il foglio di calcolo degli indirizzi IP ha raggiunto 1.048.576 righe. Excel ha qualcosa da ridire.", "incidents_and_ddos.your_ipv6_traffic_grew_400_from":"Il tuo traffico IPv6 è cresciuto del 400%. Da un pacchetto a cinque.", "incidents_and_ddos.your_monitoring_system_went_down_you":"Il tuo sistema di monitoraggio è andato giù. Te ne sei accorto perché non è scattato nessun allarme. Settimana tranquillissima.", @@ -3394,10 +3414,10 @@ "routescript.did_you_mean_name":". Forse intendevi {name}?", "routescript.done_i_vibe_checked_your_bgp":"Fatto! Ho fatto un vibe check al tuo BGP. Fai subito il deploy: i dry run sono per chi dubita di sé.", "routescript.drain_a_pop_and_steer_around":"Svuota un POP e aggira uno dei suoi link prima di metterci le mani. Cambia i nomi con quelli su cui stai lavorando.", -"routescript.during_an_attack_drop_the_flood":"Durante un attacco, butta il flood al bordo. Si porta via anche un po’ di traffico vero, quindi toglilo quando l’attacco è finito.", +"routescript.during_an_attack_rtbh_the_target":"Durante un attacco, metti il bersaglio in blackhole a monte (RTBH). Tutti gli altri sono salvi; il bersaglio resta al buio finché non togli la regola.", "routescript.every_gigabit_leaving_your_network":"Ogni gigabit che esce dalla tua rete sceglie un’uscita: una PNI, una porta IX o una porta di transito. Se lo lasci fare, prende la più economica con spazio libero: prima PNI, poi IX, poi transito. RouteScript cambia queste scelte, come fanno local-pref, AS-path prepending e drain di manutenzione sui router veri.", "routescript.filled_in_from_your_network_as":"Compilati dalla tua rete così com’è adesso. Caricane uno, leggilo, controllalo, poi fai il deploy.", -"routescript.for_a_ddos_drop_the_junk":"Per un DDoS: butta la spazzatura al bordo e tieni i clienti business al primo posto. Costa un po’ di traffico vero, quindi toglilo quando l’attacco è finito.", +"routescript.for_a_ddos_rtbh_the_target":"Per un DDoS: metti il bersaglio in blackhole a monte e servi prima i clienti business. Il bersaglio resta al buio finché dura, quindi toglila quando l’attacco è finito.", "routescript.great_question_here_is_a_production":"Ottima domanda! Ecco uno script pronto per la produzione, su misura per il tuo traffico. L’ho controllato a fondo.", "routescript.help_and_ready_made_scripts":"Aiuto e script pronti", "routescript.here_you_go_i_was_trained":"Ecco qua! Sono stato addestrato su ogni configurazione di router mai pubblicata in un forum, comprese quelle intitolate “perché non funziona”.", @@ -3521,7 +3541,7 @@ "scenarios.eyeballs_grow_50_faster":"Gli eyeball crescono il 50% più in fretta", "scenarios.fibre_to_the_basement":"Fibra in cantina", "scenarios.gangnam_style_peering":"Gangnam Style Peering", -"scenarios.hold_20_floods_5_of_them":"Reggi 20 ondate, 5 sopra 1 Tbps, tenendo la città sotto attacco al 97% o meglio", +"scenarios.hold_20_floods_5_terabit":"Reggi 20 inondazioni, 5 sopra 1 Tbps: ogni bersaglio al 97% o meglio, nessun altro colpito", "scenarios.honolulu_in_the_middle_of_the":"Honolulu, in mezzo al Pacifico. I cavi tra le Americhe, l’Asia e l’Australia sono così lunghi che una wave ci porta solo 400G o 800G. Ferma la luce su un’isola, falla ripartire da zero, e ogni tratta diventa più corta e più veloce. Inizi con l’hardware 1.6T già sbloccato.", "scenarios.mid_atlantic_accent":"Accento medio-atlantico", "scenarios.only_spatzle_ix":"Solo Spätzle-IX", @@ -3549,19 +3569,14 @@ "scenarios.welcome_name_the_ripe_ncc_assigned":"Benvenuto, {name}!
Il RIPE NCC ti ha assegnato l’AS{asn}. Il tuo primo router ronza già a {city}.", "scenarios.you_have_n_days":"Hai {n} giorni.", "security_and_china.application_filed_your_local_partner":"Domanda presentata.
Il tuo partner locale dice circa 45 giorni. Forse.", -"security_and_china.blackhole_withdrawn_city_is":"Buco nero ritirato.
{city} è di nuovo raggiungibile. Preparati alla spazzatura.", "security_and_china.clean_pipe_add_on_enabled_on":"Add-on clean-pipe attivato su {net}.
Ripuliscono un flood prima che raggiunga la tua porta qui, per {mo}/mese.", "security_and_china.clean_pipe_add_on_removed_from":"Add-on clean-pipe rimosso da {net}.", "security_and_china.hackback_3000tm_hit_the_wrong_target":"HackBack 3000™ ha colpito il bersaglio sbagliato.
{who} Un’autorità ti manda una multa da {fine}, e l’attacco continua.", "security_and_china.hackback_3000tm_strikes_back_skynot":"HackBack 3000™ colpisce ancora!
Skynot AI ha tracciato la botnet e l’ha gentilmente spenta. L’attacco su {city} si ferma di colpo.", -"security_and_china.ix_blackhole_announced_in_city_about":"Blackhole IX annunciato a {city}.
Circa metà dei membri rispetta il /32 e scarta la spazzatura. Il cliente resta online.", -"security_and_china.ix_blackhole_withdrawn":"Blackhole IX ritirato.", "security_and_china.net_pni_is_back_to_normal":"La PNI {net} è tornata normale.", "security_and_china.net_pni_is_now_a_sacrificial":"La PNI {net} è ora un punto di strozzatura sacrificale.
Un flood da lì muore sulla porta piccola invece che dentro la tua rete, ma il traffico legittimo ci passa a metà capacità.", "security_and_china.no_attack_to_blackhole_right_now":"Nessun attacco da mettere in buco nero adesso.", -"security_and_china.no_ix_in_city_to_announce":"Nessun IX a {city} a cui annunciare un blackhole.", "security_and_china.nothing_to_hack_back_right_now":"Niente da contrattaccare adesso.", -"security_and_china.rtbh_announced_you_blackholed_the":"RTBH annunciato.
Hai messo il bersaglio a {city} in buco nero. Il flood si ferma, e con lui tutti quelli lì.", "security_and_china.scrubbing_upgraded_to_tier":"Scrubbing aggiornato a {tier}.", "security_and_china.skynot_ai_flattened_a_grandma_s":"Skynot AI ha steso il frigo connesso di una nonna.", "security_and_china.the_botnet_was_already_someone_else":"La botnet era già la botnet di qualcun altro. Sono furiosi.", diff --git a/site/i18n/pt.js b/site/i18n/pt.js index 716d555..6b7099f 100644 --- a/site/i18n/pt.js +++ b/site/i18n/pt.js @@ -827,7 +827,6 @@ "city_panel.add_a_second_site_cost_mo":"Adicionar um segundo site {cost} + {mo}/mês", "city_panel.add_router_cost_mo_mo":"Adicionar router {cost} + {mo}/mês", "city_panel.ai_and_cloud_campuses_nearby_list":"Campi de IA e cloud por perto: {list}", -"city_panel.attacks_go_to_your_nearest_scrubbing":"Os ataques vão para o seu centro de scrubbing mais próximo. Daqui é {city}, a {km} km: a enxurrada viaja pelo seu backbone até lá e volta, o que aumenta a latência, e o que seus links não conseguem levar não é limpo. Um centro aqui limpa os ataques na hora.", "city_panel.augment_on_order_port_about_n":"Ampliação encomendada: {port}, faltam cerca de {n} dias.", "city_panel.boxes_a_in_a_b_in":"Boxes: {a} em A · {b} em B", "city_panel.build_pop_cost_mo_mo":"Construir POP {cost} + {mo}/mês", @@ -839,7 +838,6 @@ "city_panel.cdns_put_free_cache_servers_inside":"CDNs colocam servidores de cache grátis dentro do seu POP. A maior parte do tráfego delas é servida aqui mesmo, sem transit e sem porta de IX.", "city_panel.clean_pipe_mo_mo_scrubs_ddos":"+ Clean-pipe {mo}/mês · limpa DDoS upstream", "city_panel.clean_pipe_on":"Clean-pipe ativo ✓", -"city_panel.cleans_attacks_for_your_whole":"Limpa ataques para a rede toda, até a capacidade de banda limpa, e desbloqueia contratos de proteção DDoS. O tráfego limpo volta via GRE, o que pode reabrir o buraco negro do MSS.", "city_panel.cleans_ddos_attacks_for_your_whole":"Limpa ataques DDoS de toda a sua rede, até a capacidade de banda limpa, e libera contratos de proteção DDoS para empresas.", "city_panel.close_site_b":"Fechar site B", "city_panel.cn_too_premium_on":"CN-Too premium ativo ✓", @@ -856,6 +854,7 @@ "city_panel.few_data_centers_pops_x":"Poucos data centers: POPs {x}×", "city_panel.fiber_from_city":"Fibra de {city}", "city_panel.fiber_is_down":"a fibra caiu", +"city_panel.floods_here_are_pulled_to":"Enxurradas contra alvos daqui são puxadas para seu centro de scrubbing em {city}, a {km} km. O tráfego limpo volta pelo seu backbone, o que adiciona latência. Um centro aqui encurta o desvio.", "city_panel.g_of_circuits":"{g} de circuitos", "city_panel.g_of_eyeballs":"{g} de eyeballs", "city_panel.hide_other_models":"Ocultar outros modelos", @@ -884,7 +883,7 @@ "city_panel.no_ix_here_yet_you_could":"Ainda não tem IX aqui. Você pode fundar um depois.", "city_panel.nobody_sells_transit_here_haul_your":"Ninguém vende transit aqui. Leve seu tráfego por fibra até uma cidade que tenha.", "city_panel.nothing_plugged_in_here_yet":"Nada plugado aqui ainda", -"city_panel.on_demand_engages_in_n_d":"On-demand (ativa em {n}d)", +"city_panel.on_demand_half_the_first_day":"Sob demanda (metade no primeiro dia)", "city_panel.one_router_is_a_single_point":"Um router só é um single point of failure.", "city_panel.only_the_cn_too_premium_crossing":"Aqui eles vendem só a travessia premium CN-Too, por terra até a China: preços de Hong Kong, cerca de 3% de perda para a China, e nada mais.", "city_panel.open_a_pop_here":"Abrir um POP aqui", @@ -900,6 +899,7 @@ "city_panel.price_per_gbps_month_billed_on":"${price} por Gbps / mês · cobrado no percentil 95", "city_panel.prices_include_p_back_for_the":"Os preços incluem {p} de volta pelos routers antigos no eBuy.", "city_panel.private_interconnects_pni":"Interconexões privadas (PNI)", +"city_panel.pulls_floods_onto_its_own":"Quando ligado, ele anuncia o alvo de forma mais específica, então as enxurradas chegam na entrada de {g} dele em vez das suas portas, e ele limpa tudo. O tráfego limpo volta pelo seu backbone. Ele também libera contratos de proteção DDoS.", "city_panel.ready_in_n_d":"pronto em {n}d", "city_panel.really_close_it":"Fechar mesmo?", "city_panel.really_shut_it_down":"Desligar mesmo?", @@ -1512,9 +1512,10 @@ "common.your_pop":"Seu POP", "common.your_pops":"Seus POPs", "common.zombie_route":"Rota zumbi", -"compute.attack_hauled_to_scrubbing_in_city":"Ataque levado ao scrubbing em {city}", +"compute.attack_entering_in_city":"Ataque entrando em {city}", "compute.courtesy_route_to_new_networks":"Rota de cortesia para novas redes", "compute.l2vpn_for_name":"L2VPN para {name}", +"compute.scrubbed_traffic_from_city":"Tráfego limpo vindo de {city}", "compute.sd_wan_for_name":"SD-WAN para {name}", "conferences.as_a_sponsor_you_also_get":"Como patrocinador, você também recebe mais ofertas de clientes de {region}.", "conferences.attend_cost":"Participar {cost}", @@ -1688,6 +1689,53 @@ "day_tick.you_are_in_the_red_cancel":"Você está no vermelho.
Cancele algo caro, espere a receita ou peça um empréstimo no banco. Em −$100k o banco leva seus routers.", "day_tick.you_are_no_longer_tier_1":"Você não é mais Tier 1.
Porque {why}. Seu selo Tier 1 fica; reconquiste o status para exibi-lo de novo.", "day_tick.your_fiber_is_finished_a_b":"Sua fibra ficou pronta: {a}–{b}", +"ddos.auto_rtbh":"Auto-RTBH: a enxurrada sobre {who} estava enchendo suas portas, então ele vai para blackhole no upstream. Todos os outros estão a salvo.", +"ddos.auto_rtbh_off":"Auto-RTBH: desligado", +"ddos.auto_rtbh_on":"Auto-RTBH: ligado", +"ddos.auto_scrub_off":"Ligar scrubbing sozinho: não", +"ddos.auto_scrub_on":"Ligar scrubbing sozinho: sim", +"ddos.btn_engage":"Ligar scrubbing", +"ddos.btn_rtbh":"RTBH no alvo", +"ddos.card_title":"{g} {vec}", +"ddos.carpet":"carpet bombing", +"ddos.engaged":"Scrubbing ligado: a enxurrada está sendo puxada para seus centros.", +"ddos.flood_sacrificed":"Uma enxurrada de {g}: você colocou {who} em blackhole para salvar os outros. Não conta como contida.", +"ddos.fs_help":"As regras Flowspec ficam na TCAM de cada roteador. Elas limpam a enxurrada depois que ela entra, nunca uma porta cheia. Roteadores maiores guardam mais regras.", +"ddos.fs_no_tcam":"nenhuma (sem TCAM)", +"ddos.fs_pops":"POPs com Flowspec", +"ddos.fs_rules":"Regras Flowspec", +"ddos.fs_used":"{used} / {cap} em uso", +"ddos.learn_fs":"Os roteadores em {city} não têm mais regras Flowspec livres, então o lixo passa ali sem filtro. Roteadores maiores guardam mais regras.", +"ddos.learn_port":"Uma porta está cheia. Tudo que passa por ela perde tráfego, e nada atrás da porta ajuda. Mais portas, e maiores, espalham a enxurrada; RTBH ou um centro de scrubbing mantêm ela longe delas.", +"ddos.learn_rtbh":"Você salvou todo mundo e deixou um cliente no escuro. Esse é o acordo.", +"ddos.more":"Mais", +"ddos.news_held":"Sua rede absorve tudo. Ninguém percebe.", +"ddos.news_ports":"Portas cheias: {n}. Outros clientes lentos: {k}. O RTBH salvaria eles.", +"ddos.news_rtbh":"Em blackhole no upstream: o alvo está fora do ar, todos os outros estão bem.", +"ddos.news_target":"Ninguém mais percebe, mas o alvo só recebe {p} do tráfego dele.", +"ddos.res_col":"Alvo em {p}, e {g} de outro tráfego perdido", +"ddos.res_held":"Contido: ninguém percebe", +"ddos.res_rtbh":"{who} está fora do ar; todos os outros estão bem", +"ddos.res_target":"Alvo em {p}, mais ninguém afetado", +"ddos.row_detour":"O tráfego limpo faz um desvio de {ms} ms por {city}", +"ddos.row_fs":"O Flowspec descarta {g} nos roteadores de {n} POPs", +"ddos.row_fs_full":"Sem regras Flowspec livres em {cities}", +"ddos.row_fs_no_router":"Esses roteadores não rodam Flowspec", +"ddos.row_fs_none":"O Flowspec não tem assinatura para {vec}", +"ddos.row_ports_full":{"one":"Entra por {n} porta, {k} cheia: {labs}","other":"Entra por {n} portas, {k} cheias: {labs}"}, +"ddos.row_ports_ok":{"one":"Entra por {n} porta, sem encher","other":"Entra por {n} portas, nenhuma cheia"}, +"ddos.row_rtbh":"O RTBH descarta {g} no upstream", +"ddos.row_scrub":"O scrubbing puxa {g} e limpa {c} ({cities})", +"ddos.row_scrub_idle":"O scrubbing sob demanda está esperando você", +"ddos.row_scrub_none":"Sem centro de scrubbing", +"ddos.row_slowed":{"one":"{n} outro cliente lento","other":"{n} outros clientes lentos"}, +"ddos.rtbh_help":"O RTBH é grátis e instantâneo. Os trânsitos descartam o tráfego do alvo no upstream, a maioria dos exchanges também, e cerca de metade dos seus peers privados. Suas portas ficam salvas; o alvo fica fora do ar até você retirar.", +"ddos.rtbh_off":"Blackhole retirado: {who} está acessível de novo.", +"ddos.rtbh_on":"RTBH anunciado: {who} está em blackhole no upstream.", +"ddos.started":"Um ataque {vec} de {g} está atingindo {who}.", +"ddos.test_flood":"Mandar uma enxurrada de teste", +"ddos.who_customer":"{name} ({what}, {city})", +"ddos.who_subscribers":"seus assinantes de banda larga em {city}", "de_kicks.a_fee_for_being_ready_for":"Uma taxa por estar pronto para a nuvem.", "de_kicks.a_monthly_pdf_of_your_own":"Um PDF mensal com os gráficos do seu próprio tráfego.", "de_kicks.breaking_cve_2026_31337_just_took":"🐘 URGENTE: CVE-2026-31337 acabou de derrubar meia internet.
Um bug no PHP transformou todo site meio-WordPress do planeta num minerador de cripto. O tráfego eyeball cai 30% por alguns dias enquanto o mundo aplica patches. Seus clientes de hosting estão fazendo isso às 3 da manhã.", @@ -1818,7 +1866,6 @@ "failures.a_rival_isp_s_stress_test":"o “teste de estresse” de um ISP rival", "failures.a_routine_overnight_upgrade_took":"Uma atualização de rotina durante a noite deixou seu roteador em {city} offline até a hora do almoço. A Floptus manda lembranças.", "failures.a_ship_dragged_its_anchor_across":"Um navio arrastou a âncora pelo seu cabo {a}–{b}.", -"failures.a_size_vec_attack_is_hitting":"Um ataque {vec} de {size} está atingindo {city}{how}.", "failures.a_splicer_fusing_someone_else_s":"Um emendador fundindo o cabo de outra pessoa numa caixa subterrânea perto de {b} fundiu o seu.", "failures.a_sulphur_crested_cockatoo_chewed":"Uma cacatua-de-crista-amarela roeu sua fibra {a}–{b} e depois voltou para a reserva.", "failures.a_teenager_with_a_stolen_credit":"um adolescente com um cartão de crédito roubado e muito rancor", @@ -1864,8 +1911,6 @@ "failures.geopolitical_cable_cut":"Corte geopolítico de cabo", "failures.hash_polarisation_on_your_lab_nearly":"Polarização de hash no seu {lab}: quase todo fluxo cai no mesmo membro. O bundle diz que está up. Também está lotado.", "failures.hide_the_vacuum":"Esconder o aspirador", -"failures.in_via_e":", entrando por {e}", -"failures.junk_traffic_is_eating_your_capacity":"Tráfego lixo está comendo sua capacidade. Abra o NOC para revidar.", "failures.lacp_fast_slow_timer_mismatch_on":"Timer LACP fast/slow desencontrado no seu {lab}: um membro vive dando timeout no bundle e voltando.", "failures.lightning_hit_an_amp_site_on":"Um raio atingiu um site de amplificação em {a}–{b}. O protetor de surto era decorativo.", "failures.load_shedding_in_city_stage_n":"Rodízio de energia em {city}
Stage {n} hoje. Seu gerador tossiu, depois manteve as luzes acesas.", @@ -1938,7 +1983,6 @@ "failures.your_a_b_cable_went_quiet":"Seu cabo {a}–{b} ficou mudo em algum lugar do Triângulo das Bermudas. O navio de reparo foi procurar, e ele também ainda não deu notícias.", "failures.your_a_b_fiber_broke_somewhere":"Sua fibra {a}–{b} quebrou em algum lugar do Nullarbor. A equipe de emenda fez as malas para uma semana.", "failures.your_a_b_fiber_is_down":"Sua fibra {a}–{b} caiu. A equipe de reparo achou marcas de dentes, uma toca e um castor muito orgulhoso.", -"failures.your_mitigation_is_eating_most_of":"Sua mitigação está engolindo quase tudo.", "failures.your_on_call_engineer_typed_clear":"Seu plantonista digitou “clear bgp *” em produção em {city} às 3 da manhã. Limpou mesmo.", "failures.your_roa_expired_over_the_weekend":"Sua ROA expirou no fim de semana. Seus prefixos estão RPKI-invalid e mais ou menos meia internet está descartando eles.", "failures.your_router_in_city_crashed_and":"Seu router em {city} travou e está reiniciando. Ele {what}. Tempo de boot deste: uns {min} minutos por tentativa, e está na tentativa {n}.", @@ -2051,10 +2095,10 @@ "help.as_your_peak_traffic_and_footprint":"Conforme seu tráfego de pico e sua presença crescem, aparecem clientes maiores: startups de streaming e universidades, depois data centers de GPU para IA e on-ramps de nuvem, depois interconexões de treinamento de IA e contratos de DCI de hyperscalers medidos em terabits. Bolhas rosa de $$ marcam os grandes.", "help.at_customer_level_3_and_4":"Nos níveis de clientes 3 e 4, hyperscalers e nuvens de IA aparecem com contratos que só eles pediriam: WANs de IA de terabits entre campi de gigawatts, treinamentos espalhados por vários sites, ingestões de dataset de uma semana e centenas de pares de fibra numa vala que você mesmo cavou. Pagam como ninguém, e querem caminhos diversos, dois sites por metrópole e zero desculpas. Cidades perto dos campi deles os listam em “Quem está aqui”.", "help.below_your_goals_sits_a_wall":"Abaixo das suas metas fica um mural de medalhas, de comuns a lendárias. Algumas pedem sorte, outras levam anos, e umas duas são secretas. Medalhas conquistadas em jogos anteriores ficam neste aparelho com contorno tracejado.", -"help.build_one_in_as_many_pops":"Construa um em quantos POPs quiser. Um ataque vai para o centro ativo mais próximo, e o que ele não aguenta transborda para o seguinte. Um centro distante significa que a enxurrada viaja pelo seu backbone até lá e o tráfego da vítima volta pelo caminho longo: enche seus links, aumenta a latência, e o que os links não conseguem levar não é limpo. Clientes que compram proteção DDoS percebem quando os ataques deles atravessam um oceano.", "help.businesses_may_want_a_private":"Empresas podem querer um circuito privado entre dois POPs seus (ele roda no seu backbone), ou proteção DDoS (precisa do seu próprio centro de scrubbing).", "help.content_networks_like_netchill_and":"Redes de conteúdo como NetChill e Goggle. A maior parte do seu tráfego vem delas. Faça peering com elas e esse tráfego sai de graça.", "help.controls_drag_the_map_to_pan":"Controles: arraste o mapa para mover, role ou faça pinça para dar zoom, toque numa cidade para abri-la. Arraste do seu router rosa até outra cidade para lançar fibra. Espaço pausa, 0 é meia velocidade, 1 2 3 4 definem a velocidade. Em 1× um dia dura 2,5 segundos.", +"help.ddos_a_flood_comes_from":"Uma enxurrada vem de todo lado, então chega por cada porta pela qual a internet alcança você. Uma porta leva o que cabe, e tudo numa porta cheia perde tráfego. O RTBH descarta o tráfego do alvo no upstream e salva todo mundo, mas o alvo fica fora do ar. O Flowspec limpa a enxurrada em cada roteador depois que ela entra, dentro do orçamento de regras daquele roteador. A maioria dos ataques é pequena; gamers e hosting atraem os grandes.", "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", @@ -2081,6 +2125,7 @@ "help.reach_an_ix_over_a_fabric":"Chegue a um IX por um circuito de fabric sem ter POP lá. Funciona, e o route server ainda te dá todas as redes abertas, mas não é recomendado: o revendedor cobra 1,5× pela porta e faz oversubscription a 80%, a latência depende do fabric, uma queda do fabric derruba todas as sessões, e muitas redes seletivas recusam membros remotos na hora.", "help.routers_optics_and_new_builds_get":"Roteadores, ópticas e novas obras ficam mais caros com os anos, cerca de 4% ao ano depois dos primeiros seis meses, e de vez em quando uma falta deixa um deles bem mais caro por um ou dois meses. O que você já tem mantém o preço. Sobressalentes na prateleira e um congelamento anual de preços na aba NOC amortecem o golpe.", "help.rules_for_your_auto_te_controller":"Regras para o seu controlador Auto-TE: quais saídas preferir, quais evitar e quando passar para a próxima. A ajuda do editor explica cada regra e tem scripts prontos.", +"help.scrubbing_a_center_pulls_floods":"Quando ligado, um centro puxa a enxurrada para a própria entrada (um ímã) e limpa até o tamanho dele (uma esponja); o que ele não aguenta afeta só o alvo. O tráfego limpo volta pelo seu backbone, então um centro distante adiciona latência. Construa onde estão seus clientes.", "help.share_my_network":"Compartilhar minha rede", "help.some_customers_come_with_conditions":"Alguns clientes vêm com condições: nada de Cogentle em lugar nenhum, nada de cabo submarino por causa dos tubarões, dois routers, um gerador, NetChill on-net, acesso à China com pouca perda e mais. Cada uma paga um bônus. As não atendidas deixam o cliente rabugento até você resolver ou ele ir embora.", "help.some_routers_take_forever_to_boot":"Alguns routers levam uma eternidade para dar boot. A aba Infra mostra quanto o seu demora. Os lentos fazem os crashes durarem mais e transformam a troca de um router único numa queda de três dias. Chassis maiores, principalmente qualquer coisa com um PacketOinker™ dentro, são lentos com mais frequência. Routers gêmeos fazem disso problema de outra pessoa.", @@ -2190,8 +2235,6 @@ "hud_and_panels.customer_level_lv_name":"Nível de cliente {lv}: {name}", "hud_and_panels.dropping_or_overflowing":"descartando ou transbordando", "hud_and_panels.every_network_on_the_map_traffic":"Todas as redes do mapa. A fatia de tráfego é quanto do tráfego dos seus usuários vai para elas. Toque numa conexão para ir ao POP dela.", -"hud_and_panels.flowspec_capable_pops":"POPs com Flowspec", -"hud_and_panels.flowspec_drop_rules_live_in_router":"As regras de descarte do Flowspec ficam na TCAM do router, então só routers capazes filtram floods UDP conhecidos (DNS, NTP, CLDAP, SYN) na borda. O Rusty usado não tem nenhuma, os modelos merchant-silicon e whitebox fazem um pouco, os chassis grandes fazem tudo. Faça upgrade do router de um POP na aba Infra.", "hud_and_panels.g_lost":"{g} perdidos", "hud_and_panels.happiness_p":"satisfação {p}%", "hud_and_panels.has_errors_not_running":"tem erros, não está rodando", @@ -2240,45 +2283,22 @@ "incidents_and_ddos.a_leap_second_convinced_one_of":"Um segundo bissexto convenceu um dos seus routers de que estamos em 1970. O uptime agora marca menos 56 anos. O tráfego está ótimo.", "incidents_and_ddos.a_route_you_withdrew_in_year":"Uma rota que você retirou no Ano 1 ainda aparece em algum lugar da internet. Ninguém sabe onde. Tudo bem. Provavelmente.", "incidents_and_ddos.a_two_hour_meeting_about_router":"Uma reunião de duas horas sobre hostnames de routers terminou com votação em “router-final-v2-NOVO”.", -"incidents_and_ddos.after_upstream_scrubbing_g":"Após o scrubbing upstream: {g}", "incidents_and_ddos.an_auditor_asked_for_a_network":"Um auditor pediu um diagrama da rede. Você mandou o mapa do jogo. Ele aprovou.", -"incidents_and_ddos.attack_fully_mitigated":"Ataque totalmente mitigado", -"incidents_and_ddos.blackhole_the_target_rtbh":"Blackhole no alvo (RTBH)", -"incidents_and_ddos.blackholed_the_junk_is_gone_and":"Em blackhole: o lixo sumiu, e {city} também. O ataque conseguiu o que queria.", -"incidents_and_ddos.contained_on_your_sacrificial_net":"Contido no seu PNI sacrificial com {net}", -"incidents_and_ddos.edge_filters_dropping_g":"Filtros de borda descartando: {g}", -"incidents_and_ddos.flowspec_cannot_catch_vec":"Flowspec não consegue filtrar {vec}", -"incidents_and_ddos.flowspec_dropping_g":"Flowspec descarta {g}", -"incidents_and_ddos.g_is_leaking_through":"{g} estão passando", "incidents_and_ddos.hackback_3000tm_20k":"HackBack 3000™ $20k", "incidents_and_ddos.it_was_dns":"Foi o DNS", -"incidents_and_ddos.ix_blackhole_half_honour_it":"Blackhole IX ~metade respeita", -"incidents_and_ddos.ix_blackhole_on":"Blackhole IX ativo ✓", "incidents_and_ddos.ix_lag":"LAG do {ix}", "incidents_and_ddos.ix_lag_in_city":"LAG do {ix} em {city}", -"incidents_and_ddos.live_attack_city":"Ataque ao vivo: {city}", "incidents_and_ddos.load_bearing_typo":"Erro de digitação estrutural", "incidents_and_ddos.management_declared_a_change_freeze":"A gerência decretou um change freeze. Alguém fez uma change para anunciar o change freeze.", "incidents_and_ddos.name_transit_lag_in_city":"LAG de transit {name} em {city}", -"incidents_and_ddos.no_flowspec_filtering_ingress":"Sem filtragem Flowspec: os roteadores de entrada não têm TCAM", -"incidents_and_ddos.no_scrubbing_center":"Sem centro de scrubbing", -"incidents_and_ddos.no_scrubbing_needed_after_edge":"Scrubbing desnecessário após a mitigação na borda", -"incidents_and_ddos.on_demand_scrubbing_diverting_live":"Scrubbing on-demand desviando, ativo em {n}d", "incidents_and_ddos.open_to_work":"Open to work", "incidents_and_ddos.pni_lag_with_name_in_city":"LAG de PNI com {name} em {city}", -"incidents_and_ddos.rtbh_is_free_and_instant_but":"RTBH é grátis e instantâneo, mas descarta tudo que vai para a vítima, ataque e cliente juntos. Um blackhole no IX mantém o cliente no ar, mas só cerca de metade dos membros respeita. O HackBack 3000™ da Skynot AI às vezes resolve, e às vezes derruba um inocente e te rende uma multa.", -"incidents_and_ddos.scrubbing_centers_unavailable_or_at":"Centros de scrubbing indisponíveis ou lotados", -"incidents_and_ddos.scrubbing_in_city_used_capacity":"Scrubbing em {city}: {used} / {capacity}", -"incidents_and_ddos.scrubbing_traffic_hauled_over_your":"Tráfego de scrubbing levado pelo seu backbone: {city} → {to} (+{ms} ms)", -"incidents_and_ddos.size_vec_entry_n_d_left":"{size} · {vec}{entry} · faltam {n}d", "incidents_and_ddos.someone_deleted_the_dns_record_for":"Alguém apagou o registro DNS da wiki interna. O runbook para consertar DNS estava na wiki.", "incidents_and_ddos.someone_named_a_vlan_prodcution_it":"Alguém chamou uma VLAN de “prodcution”. Agora ela é estrutural e nunca mais pode ser renomeada.", "incidents_and_ddos.the_tls_certificate_on_your_noc":"O certificado TLS do dashboard do NOC expirou. Ninguém consegue ver gráfico nenhum, então tecnicamente não há problemas.", -"incidents_and_ddos.this_attack_g":"Este ataque: {g}", "incidents_and_ddos.ticket_of_the_week":"Ticket da semana", "incidents_and_ddos.vendor_support_asked_you_to_try":"O suporte do fabricante pediu para você “desligar e ligar de novo”. O router que você já tinha reiniciado. Ticket fechado.", "incidents_and_ddos.you_found_a_10g_link_in":"Você achou no inventário um link de 10G que ninguém pediu, ninguém paga e que carrega 3 Gbps de alguma coisa.", -"incidents_and_ddos.your_backbone_can_only_haul_g":"Seu backbone só consegue levar {g} até {city}: o resto não é limpo", "incidents_and_ddos.your_ip_address_spreadsheet_hit_1":"Sua planilha de endereços IP chegou a 1.048.576 linhas. O Excel tem opiniões.", "incidents_and_ddos.your_ipv6_traffic_grew_400_from":"Seu tráfego IPv6 cresceu 400%. De um pacote para cinco.", "incidents_and_ddos.your_monitoring_system_went_down_you":"Seu sistema de monitoramento caiu. Você descobriu porque nenhum alarme tocou. Semana bem tranquila.", @@ -3394,10 +3414,10 @@ "routescript.did_you_mean_name":". Você quis dizer {name}?", "routescript.done_i_vibe_checked_your_bgp":"Pronto! Fiz um vibe check no seu BGP. Faça o deploy agora mesmo: dry run é para quem duvida de si.", "routescript.drain_a_pop_and_steer_around":"Esvazie um POP e desvie de um dos links dele antes de mexer. Troque os nomes pelos que você vai mexer.", -"routescript.during_an_attack_drop_the_flood":"Durante um ataque, descarta a enxurrada na borda. Leva junto um pouco de tráfego real, então remova quando o ataque acabar.", +"routescript.during_an_attack_rtbh_the_target":"Durante um ataque, coloque o alvo em blackhole no upstream (RTBH). Todo mundo é salvo; o alvo fica fora do ar até você remover a regra.", "routescript.every_gigabit_leaving_your_network":"Todo gigabit que sai da sua rede escolhe uma saída: uma PNI, uma porta de IX ou uma porta de trânsito. Por conta própria, ele pega a mais barata que tem espaço: PNI primeiro, depois IX, depois trânsito. O RouteScript muda essas escolhas, como local-pref, AS-path prepending e drains de manutenção fazem em roteadores de verdade.", "routescript.filled_in_from_your_network_as":"Preenchidos a partir da sua rede como ela está agora. Carregue um, leia, verifique e depois faça o deploy.", -"routescript.for_a_ddos_drop_the_junk":"Para um DDoS: descarte o lixo na borda e coloque os clientes empresariais em primeiro lugar. Custa um pouco de tráfego real, então remova quando o ataque acabar.", +"routescript.for_a_ddos_rtbh_the_target":"Para um DDoS: coloque o alvo em blackhole no upstream e priorize os clientes empresariais. O alvo fica fora do ar enquanto durar, então remova quando o ataque acabar.", "routescript.great_question_here_is_a_production":"Ótima pergunta! Aqui está um script pronto para produção, sob medida para o seu tráfego. Eu verifiquei tudo com cuidado.", "routescript.help_and_ready_made_scripts":"Ajuda e scripts prontos", "routescript.here_you_go_i_was_trained":"Aqui está! Fui treinado em todas as configurações de roteador já postadas num fórum, inclusive as com o título “por que isso não funciona”.", @@ -3521,7 +3541,7 @@ "scenarios.eyeballs_grow_50_faster":"Eyeballs crescem 50% mais rápido", "scenarios.fibre_to_the_basement":"Fibra até o porão", "scenarios.gangnam_style_peering":"Gangnam Style Peering", -"scenarios.hold_20_floods_5_of_them":"Aguente 20 enxurradas, 5 delas acima de 1 Tbps, mantendo a cidade atacada em 97% ou mais", +"scenarios.hold_20_floods_5_terabit":"Contenha 20 enxurradas, 5 delas acima de 1 Tbps: cada alvo a 97% ou mais, ninguém mais afetado", "scenarios.honolulu_in_the_middle_of_the":"Honolulu, no meio do Pacífico. Os cabos entre as Américas, a Ásia e a Austrália são tão longos que uma wave neles carrega só 400G ou 800G. Pare a luz numa ilha, recomece do zero, e cada trecho fica mais curto e mais rápido. Você começa com equipamento 1.6T desbloqueado.", "scenarios.mid_atlantic_accent":"Sotaque do meio do Atlântico", "scenarios.only_spatzle_ix":"Só Spätzle-IX", @@ -3549,19 +3569,14 @@ "scenarios.welcome_name_the_ripe_ncc_assigned":"Boas-vindas, {name}!
O RIPE NCC te atribuiu o AS{asn}. Seu primeiro router já está zumbindo em {city}.", "scenarios.you_have_n_days":"Você tem {n} dias.", "security_and_china.application_filed_your_local_partner":"Pedido protocolado.
Seu parceiro local diz uns 45 dias. Provavelmente.", -"security_and_china.blackhole_withdrawn_city_is":"Blackhole retirado.
{city} está acessível de novo. Prepare-se para o lixo.", "security_and_china.clean_pipe_add_on_enabled_on":"Add-on clean-pipe ativado em {net}.
Eles limpam um flood antes de chegar na sua porta aqui, por {mo}/mês.", "security_and_china.clean_pipe_add_on_removed_from":"Add-on clean-pipe removido de {net}.", "security_and_china.hackback_3000tm_hit_the_wrong_target":"O HackBack 3000™ acertou o alvo errado.
{who} Um órgão regulador te manda uma multa de {fine}, e o ataque continua.", "security_and_china.hackback_3000tm_strikes_back_skynot":"O HackBack 3000™ contra-ataca!
A Skynot AI rastreou a botnet e educadamente a transformou em tijolo. O ataque a {city} para na hora.", -"security_and_china.ix_blackhole_announced_in_city_about":"Blackhole no IX anunciado em {city}.
Cerca de metade dos membros respeita o /32 e descarta o lixo. O cliente continua no ar.", -"security_and_china.ix_blackhole_withdrawn":"Blackhole no IX retirado.", "security_and_china.net_pni_is_back_to_normal":"O PNI com {net} voltou ao normal.", "security_and_china.net_pni_is_now_a_sacrificial":"O PNI com {net} agora é um gargalo de sacrifício.
Um flood vindo de lá morre na porta pequena em vez de dentro da sua rede, mas o tráfego legítimo passa com metade da capacidade.", "security_and_china.no_attack_to_blackhole_right_now":"Nenhum ataque para mandar ao blackhole agora.", -"security_and_china.no_ix_in_city_to_announce":"Não há IX em {city} para anunciar um blackhole.", "security_and_china.nothing_to_hack_back_right_now":"Nada para contra-atacar agora.", -"security_and_china.rtbh_announced_you_blackholed_the":"RTBH anunciado.
Você mandou o alvo em {city} para o blackhole. O flood para, e todo mundo lá também.", "security_and_china.scrubbing_upgraded_to_tier":"Scrubbing atualizado para {tier}.", "security_and_china.skynot_ai_flattened_a_grandma_s":"A Skynot AI derrubou a geladeira conectada de uma vovó.", "security_and_china.the_botnet_was_already_someone_else":"A botnet já era a botnet de outra pessoa. Eles estão furiosos.", diff --git a/src/game/10-catalog/10-economy.js b/src/game/10-catalog/10-economy.js index f3c440b..58fa36a 100644 --- a/src/game/10-catalog/10-economy.js +++ b/src/game/10-catalog/10-economy.js @@ -26,19 +26,23 @@ const siteName=(c,s)=>s==='b'?CITY[c].dc2?siteNo(CITY[c].dc2,CITY[c].dc2N):SITE2 const BE_TAPE=30000; const popCost=c=>Math.round(POP_COST*colo(c))+(c&&CITY[c]&&CITY[c].tape?BE_TAPE:0)+(c&&CITY[c]&&CITY[c].ru?RU_BOX:0)+(c&&CITY[c]&&CITY[c].uae?UAE_LIC:0)+(c&&CITY[c]&&CITY[c].saudi?KSA_LIC:0); const CN_LIC=150000, CN_JV_MO=6000; -// Scrubbing centers come in tiers by clean bandwidth. Always-on diverts instantly; on-demand is cheaper -// but takes a couple of days to engage. A clean-pipe add-on on a transit scrubs upstream, per port. +// Scrubbing centers come in tiers by clean bandwidth, and each brings its own dirty-side ingress of that size: when +// engaged it announces the target's prefix more specifically, so the flood comes to it instead of your ports (a +// magnet) and it cleans up to its tier (a sponge). Always-on is engaged from the first minute; on-demand is cheaper +// and pulls half the flood on the first day while the diversion starts. A clean-pipe add-on scrubs upstream, per port. const SCRUB_TIERS=[{n:'100G',g:100,cost:60000,mo:5000,lvl:1},{n:'1T',g:1000,cost:180000,mo:15000,lvl:3},{n:'10T',g:10000,cost:500000,mo:40000,lvl:4},{n:'100T',g:100000,cost:1500000,mo:110000,lvl:10}]; -const SCRUB_DELAY=2, SLA_PEN=20000; +const SLA_PEN=20000; const scrubMo1=x=>Math.round(SCRUB_TIERS[x.tier||0].mo*(S.scrubMode==='ondemand'?0.6:1)),scrubMo=()=>S.scrubs.reduce((a,x)=>a+scrubMo1(x),0); const hasScrub=()=>!!(S&&S.scrubs&&S.scrubs.length),SCRUB_FAR_MS=30; const cleanMo=t=>Math.round(PORT[t.tier].g*(t.n||1)*5); -// DDoS has a shape now: a vector, a size and an entry point. A vector's `fs` is whether Flowspec can drop -// it at the edge — it catches the known volumetric UDP floods, but an application-layer HTTP flood sails -// through. Whether a POP can run Flowspec at all is a router-model property (`fs` on RG): the rules live in -// hardware TCAM, and the budget differs by platform. FS_RES is the junk left after filtering, by capability -// (0 none → no help · 1 basic merchant/whitebox → 40% leaks · 2 full big iron → 15% leaks). -const FS_RES=[1,0.4,0.15]; +/* DDoS (see docs: sizes come from the world, a flood enters on every port it can reach, each tool acts where it does in + real networks). A vector's `fs` is whether Flowspec has a signature for it: the known volumetric floods, not ACK or + application floods. Flowspec lives in each router's TCAM: RG[].fsN is how many rules one POP's routers hold; a live + attack takes one per vector on every router it enters, four for a carpet bomb spread over a whole prefix. */ +const FS_DROP=0.95,FS_CARPET=4; +// Upstream blackholing (RTBH): what still arrives on a port after the victim /32 is tagged. Transit honours it, an IX +// route server mostly does, a private peer about half the time (by network). +const RTBH_LEFT={t:0,ix:0.3}; const DDOS_VEC={ dns:{n:tr('common.dns_reflection'),fs:true}, ntp:{n:tr('common.ntp_amplification'),fs:true}, diff --git a/src/game/10-catalog/20-routers.js b/src/game/10-catalog/20-routers.js index a7cdda9..1ce9685 100644 --- a/src/game/10-catalog/20-routers.js +++ b/src/game/10-catalog/20-routers.js @@ -2,25 +2,25 @@ core each one can run (cr, CORE_LV: 0 plain IGP, 1 LDP, 2 RSVP-TE, 3 SR-MPLS, 4 SRv6) and it runs every one below that too, except noMpls (SRv6 natively, no label stack). v is the vendor: mixing vendors is where interop fails. */ const RG=[ - {n:'Rusty Router 9000',cr:0,v:'rusty',pn:'100G',cap:400,cost:0,mo:0,maxLT:1,maxP:1,ports:8,cls:0,lvl:1,boot:6,slowP:10,fs:0,chip:tr('routers.a_mystery_asic'),blurb:tr('routers.bought_used_on_ebuy_the_fans')}, - {n:'Edge Lord 400',cr:0,v:'edge',pn:'400G',cap:3200,cost:30000,mo:1000,maxLT:2,maxP:2,ports:24,cls:1,lvl:2,boot:11,slowP:20,fs:1,chip:tr('common.merchant_silicon'),blurb:tr('routers.sharp_edgy_and_finally_speaks_400g')}, - {n:'Chonk 800',cr:2,v:'junipurr',pn:'800G',cap:12800,cost:90000,mo:3000,maxLT:3,maxP:3,ports:36,cls:2,lvl:3,boot:25,slowP:45,fs:2,chip:'Junipurr PacketOinker™',blurb:tr('routers.an_absolute_unit_with_800g_ports')}, - {n:'Absolute Unit 1.6T',cr:3,v:'junipurr',pn:'1.6T',cap:51200,cost:250000,mo:8000,maxLT:5,maxP:4,ports:40,cls:3,lvl:4,boot:40,slowP:60,fs:2,chip:tr('routers.packetoinker2_two_pigs_one_chassis'),blurb:tr('routers.1_6t_ports_its_own_weather')}, - {n:'Mikrowtik CCR',cr:1,v:'mikrowtik',pn:'100G',cap:300,cost:4000,mo:150,maxLT:1,maxP:1,ports:16,cls:0,lvl:1,boot:2,slowP:5,badge:'M',fs:1,chip:tr('routers.a_few_dozen_arm_cores'),blurb:tr('routers.costs_less_than_lunch_and_has')}, - {n:'Sonic the Whitebox 32',cr:0,v:'whitebox',pn:'400G',cap:3200,cost:14000,mo:400,maxLT:2,maxP:2,ports:32,cls:1,lvl:2,boot:9,slowP:25,flaky:true,badge:'W',fs:1,chip:tr('routers.tomahack_merchant_silicon'),blurb:tr('routers.a_bare_metal_switch_running_open')}, - {n:'Arrrhipster 7280R',cr:3,v:'arrrhipster',pn:'400G',cap:4800,cost:42000,mo:1300,maxLT:2,maxP:2,ports:48,cls:1,lvl:2,boot:3,slowP:2,badge:'A',fs:2,chip:tr('routers.jerry_cho_deep_buffer_silicon'),blurb:tr('routers.fixed_config_deep_buffers_a_well')}, - {n:'Arrrhipster 7800R',cr:3,v:'arrrhipster',pn:'800G',cap:16000,cost:130000,mo:4200,maxLT:3,maxP:3,ports:96,cls:2,lvl:3,boot:7,slowP:4,badge:'A',fs:2,chip:tr('routers.jerry_cho3_deep_buffer_silicon'),blurb:tr('routers.the_modular_one_ninety_six_800g')}, - {n:'Disco 8K',cr:4,v:'disco',pn:'800G',cap:12800,cost:80000,mo:4800,maxLT:3,maxP:3,ports:64,cls:2,lvl:3,boot:20,slowP:35,badge:'D',fs:2,chip:'Silly-con One',blurb:tr('routers.cheap_to_buy_expensive_to_own')}, - {n:'Knockia 7750',cr:4,v:'knockia',pn:'1.6T',cap:40000,cost:200000,mo:7000,maxLT:5,maxP:4,ports:56,cls:3,lvl:4,boot:30,slowP:15,badge:'K',fs:2,chip:tr('routers.fin_p_network_processor'),blurb:tr('routers.finnish_engineering_indestructible')}, - {n:'Sonic the Whitebox 64',cr:4,v:'whitebox',noMpls:true,pn:'1.6T',cap:25600,cost:60000,mo:1500,maxLT:5,maxP:4,ports:64,cls:3,lvl:5,boot:9,slowP:25,flaky:true,badge:'W',fs:1,chip:tr('routers.tomahack_5_merchant_silicon'),blurb:tr('routers.sixty_four_1_6t_ports_on')}, - {n:'Disco 8K Ultra',cr:4,v:'disco',pn:'1.6T',cap:51200,cost:140000,mo:11000,maxLT:5,maxP:4,ports:72,cls:3,lvl:6,boot:22,slowP:35,badge:'D',fs:2,chip:'Silly-con One G3',blurb:tr('routers.cheap_chassis_eternal_subscription')}, - {n:'Absolute Unit 3.2T',cr:4,v:'junipurr',pn:'3.2T',cap:204800,cost:600000,mo:18000,maxLT:6,maxP:5,ports:48,cls:4,lvl:7,boot:50,slowP:60,fs:2,chip:tr('routers.packetoinker3_a_whole_litter'),blurb:tr('routers.3_2t_ports_and_12_8t')}, - {n:'Arrrhipster 7800R5',cr:3,v:'arrrhipster',pn:'3.2T',cap:160000,cost:450000,mo:14000,maxLT:6,maxP:5,ports:144,cls:4,lvl:9,boot:8,slowP:4,badge:'A',fs:2,chip:tr('routers.jerry_cho5_deep_buffer_silicon'),blurb:tr('routers.a_hundred_and_forty_four_3')}, - {n:'Knockia 7950 XRS',cr:4,v:'knockia',pn:'3.2T',cap:180000,cost:520000,mo:15000,maxLT:6,maxP:5,ports:96,cls:4,lvl:10,boot:32,slowP:15,badge:'K',fs:2,chip:tr('routers.fin_p6_network_processor'),blurb:tr('routers.built_like_a_sauna_door_heavy')}, - {n:'Mikrowtik CCR 3.2T',cr:1,v:'mikrowtik',pn:'3.2T',cap:51200,cost:45000,mo:900,maxLT:6,maxP:5,ports:32,cls:4,lvl:11,boot:3,slowP:5,flaky:true,badge:'M',fs:1,chip:tr('routers.several_hundred_arm_cores_and_a'),blurb:tr('routers.a_3_2t_router_for_the')}, - {n:'The Router at the End of the Universe',cr:4,v:'universe',pn:'3.2T',cap:819200,cost:3000000,mo:60000,maxLT:6,maxP:5,ports:256,cls:4,lvl:13,boot:42,slowP:42,badge:'U',fs:2,chip:tr('routers.forty_two_of_them'),blurb:tr('routers.two_hundred_and_fifty_six_3')}, - {n:'Brocadabra MLX-16',cr:2,v:'brocadabra',pn:'400G',cap:4000,cost:26000,mo:900,maxLT:2,maxP:2,ports:32,cls:1,lvl:2,boot:14,slowP:20,flaky:true,badge:'B',fs:1,noPz:true,chip:tr('routers.a_refurbished_network_processor'),blurb:tr('routers.pulls_rsvp_tunnels_out_of_a')}, - {n:'Extremely Networks SLX 9740',cr:2,v:'extremely',pn:'1.6T',cap:36000,cost:170000,mo:5500,maxLT:5,maxP:4,ports:48,cls:3,lvl:4,boot:18,slowP:15,badge:'X',fs:2,noPz:true,chip:tr('routers.tridont_merchant_silicon'),blurb:tr('routers.bought_the_magician_s_hat')} + {n:'Rusty Router 9000',cr:0,v:'rusty',pn:'100G',cap:400,cost:0,mo:0,maxLT:1,maxP:1,ports:8,cls:0,lvl:1,boot:6,slowP:10,fs:0,fsN:0,chip:tr('routers.a_mystery_asic'),blurb:tr('routers.bought_used_on_ebuy_the_fans')}, + {n:'Edge Lord 400',cr:0,v:'edge',pn:'400G',cap:3200,cost:30000,mo:1000,maxLT:2,maxP:2,ports:24,cls:1,lvl:2,boot:11,slowP:20,fs:1,fsN:4,chip:tr('common.merchant_silicon'),blurb:tr('routers.sharp_edgy_and_finally_speaks_400g')}, + {n:'Chonk 800',cr:2,v:'junipurr',pn:'800G',cap:12800,cost:90000,mo:3000,maxLT:3,maxP:3,ports:36,cls:2,lvl:3,boot:25,slowP:45,fs:2,fsN:12,chip:'Junipurr PacketOinker™',blurb:tr('routers.an_absolute_unit_with_800g_ports')}, + {n:'Absolute Unit 1.6T',cr:3,v:'junipurr',pn:'1.6T',cap:51200,cost:250000,mo:8000,maxLT:5,maxP:4,ports:40,cls:3,lvl:4,boot:40,slowP:60,fs:2,fsN:16,chip:tr('routers.packetoinker2_two_pigs_one_chassis'),blurb:tr('routers.1_6t_ports_its_own_weather')}, + {n:'Mikrowtik CCR',cr:1,v:'mikrowtik',pn:'100G',cap:300,cost:4000,mo:150,maxLT:1,maxP:1,ports:16,cls:0,lvl:1,boot:2,slowP:5,badge:'M',fs:1,fsN:2,chip:tr('routers.a_few_dozen_arm_cores'),blurb:tr('routers.costs_less_than_lunch_and_has')}, + {n:'Sonic the Whitebox 32',cr:0,v:'whitebox',pn:'400G',cap:3200,cost:14000,mo:400,maxLT:2,maxP:2,ports:32,cls:1,lvl:2,boot:9,slowP:25,flaky:true,badge:'W',fs:1,fsN:4,chip:tr('routers.tomahack_merchant_silicon'),blurb:tr('routers.a_bare_metal_switch_running_open')}, + {n:'Arrrhipster 7280R',cr:3,v:'arrrhipster',pn:'400G',cap:4800,cost:42000,mo:1300,maxLT:2,maxP:2,ports:48,cls:1,lvl:2,boot:3,slowP:2,badge:'A',fs:2,fsN:8,chip:tr('routers.jerry_cho_deep_buffer_silicon'),blurb:tr('routers.fixed_config_deep_buffers_a_well')}, + {n:'Arrrhipster 7800R',cr:3,v:'arrrhipster',pn:'800G',cap:16000,cost:130000,mo:4200,maxLT:3,maxP:3,ports:96,cls:2,lvl:3,boot:7,slowP:4,badge:'A',fs:2,fsN:12,chip:tr('routers.jerry_cho3_deep_buffer_silicon'),blurb:tr('routers.the_modular_one_ninety_six_800g')}, + {n:'Disco 8K',cr:4,v:'disco',pn:'800G',cap:12800,cost:80000,mo:4800,maxLT:3,maxP:3,ports:64,cls:2,lvl:3,boot:20,slowP:35,badge:'D',fs:2,fsN:12,chip:'Silly-con One',blurb:tr('routers.cheap_to_buy_expensive_to_own')}, + {n:'Knockia 7750',cr:4,v:'knockia',pn:'1.6T',cap:40000,cost:200000,mo:7000,maxLT:5,maxP:4,ports:56,cls:3,lvl:4,boot:30,slowP:15,badge:'K',fs:2,fsN:16,chip:tr('routers.fin_p_network_processor'),blurb:tr('routers.finnish_engineering_indestructible')}, + {n:'Sonic the Whitebox 64',cr:4,v:'whitebox',noMpls:true,pn:'1.6T',cap:25600,cost:60000,mo:1500,maxLT:5,maxP:4,ports:64,cls:3,lvl:5,boot:9,slowP:25,flaky:true,badge:'W',fs:1,fsN:8,chip:tr('routers.tomahack_5_merchant_silicon'),blurb:tr('routers.sixty_four_1_6t_ports_on')}, + {n:'Disco 8K Ultra',cr:4,v:'disco',pn:'1.6T',cap:51200,cost:140000,mo:11000,maxLT:5,maxP:4,ports:72,cls:3,lvl:6,boot:22,slowP:35,badge:'D',fs:2,fsN:16,chip:'Silly-con One G3',blurb:tr('routers.cheap_chassis_eternal_subscription')}, + {n:'Absolute Unit 3.2T',cr:4,v:'junipurr',pn:'3.2T',cap:204800,cost:600000,mo:18000,maxLT:6,maxP:5,ports:48,cls:4,lvl:7,boot:50,slowP:60,fs:2,fsN:24,chip:tr('routers.packetoinker3_a_whole_litter'),blurb:tr('routers.3_2t_ports_and_12_8t')}, + {n:'Arrrhipster 7800R5',cr:3,v:'arrrhipster',pn:'3.2T',cap:160000,cost:450000,mo:14000,maxLT:6,maxP:5,ports:144,cls:4,lvl:9,boot:8,slowP:4,badge:'A',fs:2,fsN:24,chip:tr('routers.jerry_cho5_deep_buffer_silicon'),blurb:tr('routers.a_hundred_and_forty_four_3')}, + {n:'Knockia 7950 XRS',cr:4,v:'knockia',pn:'3.2T',cap:180000,cost:520000,mo:15000,maxLT:6,maxP:5,ports:96,cls:4,lvl:10,boot:32,slowP:15,badge:'K',fs:2,fsN:24,chip:tr('routers.fin_p6_network_processor'),blurb:tr('routers.built_like_a_sauna_door_heavy')}, + {n:'Mikrowtik CCR 3.2T',cr:1,v:'mikrowtik',pn:'3.2T',cap:51200,cost:45000,mo:900,maxLT:6,maxP:5,ports:32,cls:4,lvl:11,boot:3,slowP:5,flaky:true,badge:'M',fs:1,fsN:4,chip:tr('routers.several_hundred_arm_cores_and_a'),blurb:tr('routers.a_3_2t_router_for_the')}, + {n:'The Router at the End of the Universe',cr:4,v:'universe',pn:'3.2T',cap:819200,cost:3000000,mo:60000,maxLT:6,maxP:5,ports:256,cls:4,lvl:13,boot:42,slowP:42,badge:'U',fs:2,fsN:42,chip:tr('routers.forty_two_of_them'),blurb:tr('routers.two_hundred_and_fifty_six_3')}, + {n:'Brocadabra MLX-16',cr:2,v:'brocadabra',pn:'400G',cap:4000,cost:26000,mo:900,maxLT:2,maxP:2,ports:32,cls:1,lvl:2,boot:14,slowP:20,flaky:true,badge:'B',fs:1,fsN:4,noPz:true,chip:tr('routers.a_refurbished_network_processor'),blurb:tr('routers.pulls_rsvp_tunnels_out_of_a')}, + {n:'Extremely Networks SLX 9740',cr:2,v:'extremely',pn:'1.6T',cap:36000,cost:170000,mo:5500,maxLT:5,maxP:4,ports:48,cls:3,lvl:4,boot:18,slowP:15,badge:'X',fs:2,fsN:12,noPz:true,chip:tr('routers.tridont_merchant_silicon'),blurb:tr('routers.bought_the_magician_s_hat')} ]; // The biggest model, which is no longer simply the last one. const RG_TOP=RG.reduce((b,r,i)=>r.cap>RG[b].cap?i:b,0); diff --git a/src/game/50-state.js b/src/game/50-state.js index 35dd8f6..53850bf 100644 --- a/src/game/50-state.js +++ b/src/game/50-state.js @@ -2,4 +2,4 @@ let S=null, R=emptyR(); const UI={sel:null,tab:'cust',left:'goals',speed:1,hover:null,drag:null,snap:null,pending:null,confirm:null,leftOpen:false,muted:false,startCity:'fra',hintOff:false}; let uidN=1; const uid=()=>'i'+(Date.now()%1e7).toString(36)+(uidN++); -function emptyR(){return {nt:{},cone:{},reachNT:0,teBlack:0,tNet:{},egT:{},netEg:{},l2lat:{},nodeLoad:{},nodeCap:{},div:{},l2:{},gfwLost:0,gfwCross:0,ef:{},egDesc:{},p95:{},peered:0,peerShare:0,load:{},useT:{},useIx:{},usePni:{},useCache:{},cityDem:{},citySrv:{},cityEye:{},latF:{},latFar:{},demTo:{},served:0,demand:0,reach:0,sessions:0,revMo:0,costMo:0,cost:{},rev:{},reachable:{}};} +function emptyR(){return {nt:{},cone:{},reachNT:0,teBlack:0,tNet:{},egT:{},netEg:{},l2lat:{},nodeLoad:{},nodeCap:{},div:{},l2:{},gfwLost:0,gfwCross:0,ef:{},egDesc:{},p95:{},peered:0,peerShare:0,load:{},useT:{},useIx:{},usePni:{},useCache:{},cityDem:{},citySrv:{},cityEye:{},latF:{},latFar:{},demTo:{},served:0,demand:0,reach:0,sessions:0,revMo:0,costMo:0,cost:{},rev:{},reachable:{},ddos:[],haul:[],tgtF:{},bbF:{},fsUse:{},ddosHot:{}};} diff --git a/src/game/60-features/20-scenarios.js b/src/game/60-features/20-scenarios.js index 49ccc82..eedd60f 100644 --- a/src/game/60-features/20-scenarios.js +++ b/src/game/60-features/20-scenarios.js @@ -29,7 +29,7 @@ const SCN=[ // Sender pays, turned up: with Korea at the usual prices broadband swamped every bill and Seoul alone won on day 73 // (playtest). Now Seoul transit is dear, the incumbents want a paid PNI and Korean users mind every far exit. {id:'gangnam',n:tr('scenarios.gangnam_style_peering'),city:'icn',cash:900000,days:240,rules:{sender:true},d:tr('scenarios.seoul_sender_pays_d'),goal:tr('scenarios.seoul_sender_pays_goal',{g:GN_G,q:Math.round(GN_Q*100)}),ok:()=>R.reach>=0.99&&R.served>=GN_G&&sfOf(R,'icn')>=GN_Q&&R.revMo>=R.costMo}, - {id:'flood',n:tr('common.flood_season'),city:'ams',cash:2000000,days:365,rules:{ddos:true},setup:()=>{S.lvl=Math.max(S.lvl||1,3);},d:tr('scenarios.amsterdam_hosting_capital_of_europe'),goal:tr('scenarios.hold_20_floods_5_of_them'),ok:()=>(S.stats.ddosOk||0)>=20&&(S.stats.ddosOkBig||0)>=5}, + {id:'flood',n:tr('common.flood_season'),city:'ams',cash:2000000,days:365,rules:{ddos:true},setup:()=>{S.lvl=Math.max(S.lvl||1,4);},d:tr('scenarios.amsterdam_hosting_capital_of_europe'),goal:tr('scenarios.hold_20_floods_5_terabit'),ok:()=>(S.stats.ddosOk||0)>=20&&(S.stats.ddosOkBig||0)>=5}, // Traffic served too: broadband in five cities and two cables were bought on day 1 and won on day 2 (playtest). {id:'fttb',n:tr('scenarios.fibre_to_the_basement'),city:'syd',cash:1500000,days:365,rules:{levy:true},d:tr('scenarios.sydney_2013_the_toilet_paper_group'),goal:tr('scenarios.broadband_in_sydney_melbourne_served'),ok:()=>AU_BB.every(c=>S.pops[c]&&S.pops[c].bb)&&auExits()>=2&&R.served>=FTTB_G}, // Nobody sells transit in Tallinn here: with local transit, a network that never crossed the water won (playtest). diff --git a/src/game/60-features/80-new-game.js b/src/game/60-features/80-new-game.js index d275e65..21d322e 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,core:{lv:0,run:0},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,monkey:{next:null,on: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',ddosAuto:{rtbh:false,scrub:true},capDeal:null,core:{lv:0,run:0},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,monkey:{next:null,on:0}}; } diff --git a/src/game/80-simulation/20-routescript.js b/src/game/80-simulation/20-routescript.js index 38726e1..574ea67 100644 --- a/src/game/80-simulation/20-routescript.js +++ b/src/game/80-simulation/20-routescript.js @@ -19,7 +19,7 @@ spill at 85% # Maintenance window? Drain a POP's exits, or steer around a link # drain paris # avoid link frankfurt-amsterdam -# Under DDoS: drop the junk at the edge (takes some real traffic with it) +# Under DDoS: blackhole the target upstream (saves everyone else) # blackhole ddos`; function lev(a,b){const m=a.length,n=b.length,d=Array.from({length:m+1},(_,i)=>[i]);for(let j=1;j<=n;j++)d[0][j]=j;for(let i=1;i<=m;i++)for(let j=1;j<=n;j++)d[i][j]=Math.min(d[i-1][j]+1,d[i][j-1]+1,d[i-1][j-1]+(a[i-1]===b[j-1]?0:1));return d[m][n];} function teFind(word,list,label){const w=slug(word);if(!w)return {err:tr('routescript.missing_what',{what:label})}; @@ -60,7 +60,7 @@ const teUps=()=>[...new Set(S.transit.map(t=>t.net))].map(n=>({n,p:Math.min(...S const teNm=n=>NET[n].name.toLowerCase(),teAtk=()=>ddosAll().length>0; const teSad=()=>S.biz.some(b=>!BIZ_T[b.type].l2&&!BIZ_T[b.type].fiber&&!BIZ_T[b.type].event&&sfOf(R,b.city)<0.95); const TE_RECIPES=[ - {id:'shield',n:N_('common.shields_up'),d:N_('routescript.for_a_ddos_drop_the_junk'),fit:()=>teAtk()?9:0.3, + {id:'shield',n:N_('common.shields_up'),d:N_('routescript.for_a_ddos_rtbh_the_target'),fit:()=>teAtk()?9:0.3, src:()=>[tr('routescript.shields_up_for_the_length_of'),'blackhole ddos','protect customers','spill at 80%']}, {id:'care',n:N_('common.customer_care'),d:N_('routescript.business_customers_first_when_links'),fit:()=>teSad()?5:0.5, src:()=>[tr('routescript.customer_care_the_people_who_pay'),'protect customers','spill at 75%']}, @@ -111,7 +111,7 @@ function teHelpModal(){const rule=(code,what)=>`
${code}

${tr('routescript.ready_made_scripts')}

${tr('routescript.filled_in_from_your_network_as')}

${TE_RECIPES.map(r=>`
${tr(r.n)}
${tr(r.d)}
${btn(tr('common.load'),'teRecipe',{id:r.id},'sm')}
`).join('')}
${btn(tr('routescript.back_to_the_editor'),'teBack',{},'big')}
`);} diff --git a/src/game/80-simulation/25-ddos-flood.js b/src/game/80-simulation/25-ddos-flood.js new file mode 100644 index 0000000..fcf7b49 --- /dev/null +++ b/src/game/80-simulation/25-ddos-flood.js @@ -0,0 +1,81 @@ +/* ---------- where a flood goes (compute() calls these) ---------- + A flood comes from botnets everywhere, so it reaches you over every network that reaches you, on the exits that + network would use: private peering first, then the exchanges, then transit, spread by port size. Each tool then + acts where it does in a real network: RTBH and clean pipes upstream, before your port; the port carries what fits + and everyone on it loses the same share; Flowspec drops matching junk on each ingress router, within that router's + rule budget; what is left rides the backbone to the target. An engaged scrubbing center takes the flood on its own + ingress instead (magnet) and cleans up to its tier (sponge); what it cannot take hurts only the target. */ +// Does this private peer honour blackhole communities? About half do, the same ones in every game. +function pniHonours(n){let h=0;for(let i=0;ie.k==='p'?1:e.k==='ix'?2:e.k==='t'?3:9; +// Adds to `out` (exit -> Gbps) the share of g that reaches you on each exit, before upstream tools. +function ddosSpread(g,E,okBy,out){if(g<=0)return;let tot=0;const pick=[]; + for(const n of NETS){const s=NSH[n.id]||0,L=okBy[n.id];if(s<=0||!L||!L.length)continue;let best=9,sac=false; + for(const e of L){if(e.id==='~grace')continue;const r=ddRank(e);if(r{const p=S.pops[c];return p?(RG[p.rgen||0].fsN||0):0;}; +// The bandwidth the target itself uses: a customer's port, or a city's broadband subscribers. +function ddosTb(a,R2){if(a.tgt&&a.tgt.startsWith('bb:'))return Math.max(1,(R2.cityEye||{})[a.city]||1);const b=S.biz.find(x=>x.id===a.tgt);return b?Math.max(0.1,b.bw):1;} +/* Before routing: spread each live attack, clip it at the ports, filter it on the routers and load what is left onto + the backbone ahead of everyone's traffic. X.haul(A,B,g,ek) moves up to g from city A to city B and returns what fit. */ +function ddosLoad(X){const {E,okBy,R2}=X;R2.ddos=[];R2.haul=[];R2.tgtF={};R2.bbF={};R2.fsUse={};R2.ddosHot={}; + const live=ddosAll().slice().sort((a,b)=>(a.start||0)-(b.start||0)||(a.idb.id?1:0));if(!live.length)return null; + const recs=[],room={}; + for(const a of live){const c=a.city,m={attack:a,tgt:a.tgt,g:a.gbps,bh:!!(a.bh||X.autoBh),ports:new Map(),up:0,fs:0,fsAt:[],fsFull:[],fsNone:[],deliv:0,pulled:0,cleaned:0,over:0,parts:[],tf:1,col:0,slowed:0,eng:0}; + recs.push(m);R2.ddos.push(m);if(!popUp(c)||!S.pops[c]){m.offline=true;continue;} + m.eng=m.bh?0:scrubEng(a);const pull=a.gbps*m.eng,sp=new Map();ddosSpread(a.gbps-pull,E,okBy,sp); + for(const [e,g] of sp){let left=g; + if(m.bh)left*=e.k==='p'?(pniHonours(e.net)?0:1):RTBH_LEFT[e.k]??1;else if(e.clean)left*=0.1; + m.up+=g-left;if(left>1e-9){m.ports.set(e,{off:left,in:0});e.J+=left;}} + if(pull>0){const xs=S.scrubs.filter(x=>popUp(x.city));let tot=0;for(const x of xs)tot+=SCRUB_TIERS[x.tier||0].g; + for(const x of xs){const cap=SCRUB_TIERS[x.tier||0].g,share=pull*cap/tot,can=Math.max(0,room[x.city]??cap),cl=Math.min(share,can);room[x.city]=can-cl; + m.parts.push({city:x.city,tier:x.tier||0,a:share,cleaned:cl});m.cleaned+=cl;m.over+=share-cl;} + m.pulled=pull;}} + // The ports: each carries what fits, shared out by what each attack offers it. + for(const m of recs)for(const [e,p] of m.ports)p.in=p.off*Math.min(1,e.cap/e.J); + // Flowspec, oldest attack first, within each router's rule budget; what is left heads for the target. + const fsLeft={}; + for(const m of recs){if(m.offline)continue;const a=m.attack,V=DDOS_VEC[a.vec],need=V&&V.fs?(a.carpet?FS_CARPET:1):0,byCity=new Map(); + for(const [e,p] of m.ports)byCity.set(e.city,(byCity.get(e.city)||0)+p.in); + for(const [city,g] of byCity){let rest=g; + if(need&&S.pops[city]){const cap=fsCap(city),left=fsLeft[city]??cap; + if(!cap)m.fsNone.push(city);else if(left>=need){fsLeft[city]=left-need;rest=g*(1-FS_DROP);m.fs+=g-rest;m.fsAt.push(city);}else{fsLeft[city]=left;m.fsFull.push(city);}} + m.deliv+=X.haul(city,a.city,rest,'ddos:'+city,city);} + // Clean traffic comes back from each center to the target, the long way round if the center is far. + const tb=ddosTb(a,R2); + for(const x of m.parts){const v=tb*x.a/Math.max(m.pulled,1e-9),h=x.city===a.city?v:X.haul(x.city,a.city,v,'scrub:'+a.city+'>'+x.city,null,true); + R2.haul.push({city:a.city,to:x.city,tier:x.tier,a:x.a,h:v>0?h/v:1,ms:x.city===a.city?0:X.ms(a.city,x.city)*2,attack:a.id});} + // The target: blackholed, or what its own port and the scrubbing centers let through. + const fa=Math.min(1,2*tb/(m.deliv+tb)),fsc=m.pulled>0?m.cleaned/m.pulled:1; + m.tf=m.bh?0:fa*((1-m.eng)+m.eng*fsc); + if(a.tgt&&a.tgt.startsWith('bb:'))R2.bbF[a.city]=Math.min(R2.bbF[a.city]??1,m.tf);else if(a.tgt)R2.tgtF[a.tgt]=Math.min(R2.tgtF[a.tgt]??1,m.tf);} + for(const c in S.pops){const cap=fsCap(c);if(fsLeft[c]!==undefined)R2.fsUse[c]={used:cap-fsLeft[c],cap};} + if(X.autoBh)R2.teBlack=recs.reduce((n,m)=>n+m.up,0); + return recs;} +/* After routing: a port offered more than it carries drops the same share of everyone's traffic on it. Then what the + attacks cost everyone else (collateral) and the target. X.lost(ci,g,bz,e) takes served traffic away again. */ +function ddosAfter(recs,X){const {E,R2}=X;if(!recs)return;const lostC={};let lost=0; + for(const e of E){if(!(e.J>0))continue;const L=e.used,fac=Math.min(1,e.cap/(e.J+L)); + if(fac<1&&e.byC)for(const [ci,v] of e.byC){const x=v[0]*(1-fac),y=v[1]*(1-fac);X.lost(ci,x,y,e);lostC[ci]=(lostC[ci]||0)+x;lost+=x;} + if(fac<0.97){R2.ddosHot[e.city]=1;} + e.fac=fac;e.used=Math.min(e.cap,L+e.J);} + const tot=recs.reduce((n,m)=>n+(m.offline?0:m.attack.gbps),0)||1; + for(const m of recs){if(m.offline)continue;const a=m.attack,ci=CIDX[a.city],tb=ddosTb(a,R2),dem=R2.cityDem[a.city]||0; + // The target's own traffic lost at the ports is not collateral. + const own=dem>1e-6?(lostC[ci]||0)*Math.min(1,tb/dem):0; + m.col=Math.max(0,(lost-own+X.squeeze)*a.gbps/tot); + m.portList=[...m.ports].map(([e,p])=>({lab:e.lab,city:e.city,k:e.k,off:p.off,cap:e.cap,fac:e.fac??1})).sort((x,y)=>x.fac-y.fac||y.off-x.off); + m.full=m.portList.filter(p=>p.fac<0.97).length; + // Customers who felt it: in a city that lost more than 1% to full ports, other than the target. + let n=0;for(const c in S.pops){const i=CIDX[c],d=R2.cityDem[c]||0;if(d<=1e-6||(lostC[i]||0)/d<0.01)continue; + for(const b of S.biz)if(b.city===c&&b.id!==a.tgt&&!BIZ_T[b.type].l2&&!BIZ_T[b.type].fiber)n++;if(R2.cityEye[c]>0&&a.tgt!=='bb:'+c)n++;} + m.slowed=n;}} diff --git a/src/game/80-simulation/30-compute.js b/src/game/80-simulation/30-compute.js index 79b363e..0dd7852 100644 --- a/src/game/80-simulation/30-compute.js +++ b/src/game/80-simulation/30-compute.js @@ -25,14 +25,14 @@ function compute(){ for(const t of S.transit){if(!popUp(t.city)||t.down>day||!liveN(t.city,t.site,t.n))continue; // AS-path prepending (#96) moves part of the port to a last-resort exit of its own. const cap=Math.min(liveCap(PORT[t.tier].g,t.city,t.site,t.n)*lagF(t),TRX&&TRX.cap[t.net]!==undefined?TRX.cap[t.net]:Infinity),pf=TRX&&TRX.prep[t.net]?PREPEND_F[TRX.prep[t.net]]:0; - const ex={k:'t',net:t.net,prem:premOn(t),pref:t.pref||'normal',lab:labOf(N_('common.net_transit'),'net',NET[t.net].name),id:t.id,city:t.city,cap:cap*(1-pf),used:0,rank:3,ok:n=>!(depeer&&t.net==='cog'&&n==='ggl')&&n!==leak&&!(snd&&NET[n].kr)}; + const ex={k:'t',net:t.net,clean:!!t.clean,prem:premOn(t),pref:t.pref||'normal',lab:labOf(N_('common.net_transit'),'net',NET[t.net].name),id:t.id,city:t.city,cap:cap*(1-pf),used:0,rank:3,ok:n=>!(depeer&&t.net==='cog'&&n==='ggl')&&n!==leak&&!(snd&&NET[n].kr)}; E.push(ex);if(pf)E.push({...ex,cap:cap*pf,prep:true});} // `nets`: every network ok() can say yes to, so it need not be asked about the other hundred. for(const c in S.ixp){const ct=ixCity(c);if(!(popUp(ct)||remote.includes(ct))||(S.ev.ixdown&&S.ev.ixdown[c]>day)||!(S.myIx[c]?myIxLive(c):liveN(ct,(S.ixSite||{})[c],(S.ixn||{})[c])))continue;const set=ixSessions(c);R2.sessions+=set.size; // A peer announces its customers too (#85): the session reaches its cone, after the networks peering directly. let all=set;for(const id of set)if(DOWN[id].length){if(all===set)all=new Set(set);for(const x of DOWN[id])all.add(x);} E.push({k:'ix',pref:(S.ixPref&&S.ixPref[c])||'normal',lab:labOf(N_('common.ix_peering'),'ix',ixName(c)),id:c,city:ct,cap:ixCap(c),used:0,rank:2,ok:n=>all.has(n),nets:all,dir:all===set?null:set});} - for(const p of S.pni){if(!pniOn(p)||!popUp(p.city)||!liveN(p.city,p.site,p.n))continue;R2.sessions++;E.push({k:'p',pnc:!!NET[p.net].cn,pref:p.pref||'normal',lab:labOf(N_('common.pni_with_net'),'net',NET[p.net].name),id:p.id,city:p.city,cap:liveCap(pniG(p),p.city,p.site,p.n)*lagF(p)*(p.sacrif?0.5:1),used:0,rank:1,net:p.net,ok:n=>CONE_S[p.net].has(n),nets:CONE[p.net]});} + for(const p of S.pni){if(!pniOn(p)||!popUp(p.city)||!liveN(p.city,p.site,p.n))continue;R2.sessions++;E.push({k:'p',sac:!!p.sacrif,pnc:!!NET[p.net].cn,pref:p.pref||'normal',lab:labOf(N_('common.pni_with_net'),'net',NET[p.net].name),id:p.id,city:p.city,cap:liveCap(pniG(p),p.city,p.site,p.n)*lagF(p)*(p.sacrif?0.5:1),used:0,rank:1,net:p.net,ok:n=>CONE_S[p.net].has(n),nets:CONE[p.net]});} for(const c of S.caches){if(!popUp(c.city)||siteDown(c.city,c.site==='b'?'b':'a'))continue;E.push({k:'c',pref:'normal',lab:labOf(N_('common.name_cache'),'name',NET[c.net].cache.name),id:c.id,city:c.city,cap:CACHE_CAP,used:0,rank:0,ok:n=>n===c.net,nets:[c.net]});} // After an update adds networks, a free courtesy route reaches the new ones you have no other way to (#46). R2.graceNets=0;if(S.grace&&S.grace.until>day){const gs=new Set(S.grace.nets.filter(n=>NET[n]&&!E.some(e=>e.k!=='c'&&e.ok(n)))),hc=popUp(S.home)?S.home:pops.find(popUp); @@ -45,7 +45,7 @@ function compute(){ const okBy={};for(const id of NET_IDS)okBy[id]=[]; const ekN={};for(const e of E){e.ek=e.k+':'+e.id;ekN[e.ek]=(ekN[e.ek]||0)+1;} // dup: shares its key with another exit (a hand-edited save), so R.egDesc shows whichever pushed last. - for(const e of E){e.desc={lab:e.lab,city:e.city,k:e.k};e.dup=ekN[e.ek]>1;e.told=false;e.hp=e.pref==='high'?0:1;e.ci=CIDX[e.city];e.cn=cnCity(e.city);e.vis=0;for(const n of e.nets||NET_IDS){const L=okBy[n];if(L&&L[L.length-1]!==e&&e.ok(n))L.push(e);}} + for(const e of E){e.J=0;e.byC=null;e.desc={lab:e.lab,city:e.city,k:e.k};e.dup=ekN[e.ek]>1;e.told=false;e.hp=e.pref==='high'?0:1;e.ci=CIDX[e.city];e.cn=cnCity(e.city);e.vis=0;for(const n of e.nets||NET_IDS){const L=okBy[n];if(L&&L[L.length-1]!==e&&e.ok(n))L.push(e);}} for(const n of NETS){R2.reachable[n.id]=okBy[n.id].some(e=>e.rank>0);if(R2.reachable[n.id])R2.reach+=NSH[n.id];if(okBy[n.id].some(e=>e.rank>0&&e.k!=='t')){R2.nt[n.id]=1;R2.reachNT+=NSH[n.id]; // Reached without transit only through the customers of networks you peer with (#85). R.cone[id]: the peer that // carries it, the first PNI's network or else the nearest upstream that is a member of an exchange you are on. @@ -57,8 +57,7 @@ function compute(){ // Customer demand per city, added up in S.biz order (what filtering S.biz for each city would give). const bizBw={};for(const b of S.biz){const T=BIZ_T[b.type];if(!T.l2&&!T.fiber&&(!T.event||eventLive(b))){const v=bizBw[b.city];bizBw[b.city]=(v===undefined?0:v)+b.bw;}} // Traffic shares by network index, and their sums, for each share table (and with Russia's throttle). - const shArr=new Map(),shSum=new Map(),DEMTO=new Float64Array(NN),loc=scnRule('local'),scrubRoom={},junkGroups=[],bhCities=new Set(ddosAll().filter(a=>a.bh).map(a=>a.city));R2.haul=[];R2.ddos=[]; - const VIC={};for(const a of ddosAll())(VIC[a.city]||(VIC[a.city]=[])).push(a); + const shArr=new Map(),shSum=new Map(),DEMTO=new Float64Array(NN),loc=scnRule('local'); for(const c of Object.keys(S.pops)){ const p=S.pops[c],ci=CIDX[c],cn=cnCity(c),SH=cn?NSH_CN:ruCity(c)?NSH_RU:CITY[c].kr&&S.krExit?NSH_KRX:NSH;const eye=(p.bb?p.bb.d:0)*viral*(cn&&ev.golden>day?1.4:1);const biz=bizBw[c]??0;const d0=eye+biz; // Goggle video is throttled in Russia (#70): people there get half of it, so they ask for half. It is not @@ -67,20 +66,10 @@ function compute(){ const tt=sm[+ru]||(sm[+ru]=[NETS.reduce((t,n,j)=>t+sa[j]*thr(n.id),0),NETS.reduce((t,n,j)=>t+sa[j],0)]),lf=loc?NETS.reduce((t,n,j)=>t+(R2.reachable[n.id]?sa[j]*thr(n.id):0),0)/(tt[0]||1):1,d=d0*tt[0]/(tt[1]||1)*lf; R2.cityEye[c]=eye;R2.cityDem[c]=d;R2.citySrv[c]=0;R2.demand+=d; for(let j=0;jn+a.gbps,0)+d*0.1;if(rtbh)R2.teBlack+=attacks.reduce((n,a)=>n+a.gbps,0)+d; R2.cityBlocked=R2.cityBlocked||{}; const mtuH=ev.pmtud&&ev.pmtud.until>day?ev.pmtud:null,kr=CITY[c].kr; - for(let j=0;jday&&n.id==='fbk'?0.8:1);if(a<=0)continue; + for(let j=0;jday&&n.id==='fbk'?0.8:1);if(a<=0)continue; // With `protect customers`, the business part first, then the rest (no arrays: this runs per city and network). const bf=d0>0?biz/d0:0,sp=!!(TRX&&TRX.protect&&bf>0),cn2=cacheNets.has(n.id); for(let q=0;q<(sp?2:1);q++){const x=sp?(q?a*(1-bf):a*bf):a,bz=sp&&!q;if(x<=0)continue;if(cn2){flow(c,ci,cn,j,x*0.85,true,false,bz);flow(c,ci,cn,j,x*0.15,false,false,bz);} @@ -142,23 +131,14 @@ function compute(){ R2.l2lat[b.id]=noPath?Infinity:maxLat;R2.l2[b.id]=b.bw*minF;R2.egT.l2=(R2.egT.l2||0)+tot; // Same answer as diversePaths(), which would rebuild today's live links for every customer. if((b.reqs||[]).includes('diverse')){const k=b.city+'>'+b.city2;R2.div[b.id]=divMemo[k]??(divMemo[k]=disjointI(b.city,b.city2));}} - /* A flood for a scrubbing center elsewhere rides the backbone there, with the victim's own traffic (#117). - What the links cannot carry is not scrubbed and lands on the city after all. */ - const scrubNear=new Map(); - for(const m of R2.ddos){const atk=m.attack,A=atk.city,Ai=CIDX[A]; - m.sp=!m.offline&&m.leak>0?scrubPlan(atk,m.leak,scrubRoom,(x,want)=>{const B=x.city,Bi=CIDX[B];if(A===B)return want;let h=0,ms=null; - if(popUp(A)&&popUp(B)&&SPD[A]&&SPD[A][Bi]0?want*take/total:0;ms=path.reduce((n,e)=>n+e.lat,0)*2; - // Sources sharing a center need separate labels in link breakdowns and map highlights. - const ek='scrub:'+A+'>'+B;R2.egDesc[ek]={lab:labOf(N_('compute.attack_hauled_to_scrubbing_in_city'),'city',CITY[B].name),city:A,k:'l2'}; - for(const i of ni)if(HAS[i])nodeTake(i,take);for(const l of path){l.res-=take;l.ld+=take;carry(l,ek,NN,Ai,take);}} - R2.haul.push({city:A,to:B,tier:x.tier||0,a:want,h,ms,attack:atk.id});return h;}):null; - if(m.sp){m.leak=m.sp.leak; - // The card describes the victim's nearest center. - const c=atk.city;let near=scrubNear.get(c);if(near===undefined){near=null; - for(const x of S.scrubs)if(popUp(x.city)&&SPD[c]&&SPD[c][CIDX[x.city]]n+e.lat,0);if(!near||ms{const Bi=CIDX[B],Ai=CIDX[A];return SPD[B]&&SPD[B][Ai]n+e.lat,0):0;}; + let JK=0;const haul=(A,B,g,ek,from,clean)=>{if(!(g>0))return 0;const Ai=CIDX[A],Bi=CIDX[B];if(!SPD[B]||!(SPD[B][Ai]{const key=src*NC+dst,c0=teCache.get(key); if(c0===false)return null;if(c0&&c0.path.every(l=>l.res>1e-3)&&c0.ni.every(i=>!HAS[i]||NRES[i]>1e-3))return c0; @@ -207,6 +187,7 @@ function compute(){ if(path.length&&(e.k==='t'||snd&&CITIES[f.ci].kr)){let ms=P.ms;if(ms===undefined){ms=0;for(const l of path)ms+=l.lat;P.ms=ms;}const rtt=2*ms,kl=snd&&CITIES[f.ci].kr; if(rtt>(kl?KR_LAT_OK:LAT_OK)){LATP[f.ci]+=ok*(kl?krLatLoss(rtt):latLoss(rtt));if(!P.fg){P.fg=0;FARL.push(P,f.ci,e.ci);}P.fg+=ok;}}R2.egT[e.k]=(R2.egT[e.k]||0)+ok;const ne=NEG[f.nj]||(NEG[f.nj]=R2.netEg[f.n]={c:0,p:0,ix:0,t:0});ne[e.k]+=ok; // Where each flow left (the PNI list asks what a PNI here would take over, #175). + if(e.J>0){const m=e.byC||(e.byC=new Map()),v=m.get(f.ci);if(v){v[0]+=ok;if(f.bz)v[1]+=ok;}else m.set(f.ci,[ok,f.bz?ok:0]);} if(e.k==='t'){f.gt+=ok;f.ti=e.id;}else if(e.k==='ix'){f.gi+=ok;f.ii=e.id;}else if(e.k==='p'){if(e.net===f.n&&e.city===f.c)f.gh+=ok;else f.gp+=ok;}} return amt; }; @@ -267,6 +248,9 @@ function compute(){ } } } + if(DD){let rem=0,jf=0;for(const f of flows)if(f.rem>1e-6)rem+=f.rem;if(JK)for(const k in edges){const e=edges[k];if(e.res<=1e-6&&e.jk)jf+=e.jk;} + ddosAfter(DD,{E,R2,squeeze:Math.min(rem,jf), + lost:(ci,x,y,e)=>{SRV[ci]-=x;R2.served-=x;const c=CITIES[ci].id;if(y)R2.bizSrv[c]-=y;R2.egT[e.k]-=x;if(e.rank<=2)R2.peered-=x;}});} for(const i of NORD)R2.nodeLoad[CITIES[i].id]=NLOAD[i]; for(const c of Object.keys(S.pops)){const i=CIDX[c];R2.citySrv[c]=SRV[i]; if(LATP[i]>0&&SRV[i]>0)R2.latF[c]=clamp(1-LATP[i]/SRV[i],0,1);} @@ -296,8 +280,8 @@ function compute(){ 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.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);} + C.wholesale=0;C.levy=0;const lev=scnRule('levy');for(const c in S.pops){const sf=sfOf(R2,c)*(R2.bbF[c]??1),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)*(R2.tgtF[b.id]??1);V.business+=b.bw*b.rate*Math.min(1,sf/0.95);} for(const c in S.myIx)V.ix+=S.myIx[c].members.length*MYIX_FEE; C.revshare=(S.loans||[]).reduce((a,l)=>a+(BANKS[l.bank].equity||l.bal>0?l.share||0:0),0)*(V.eyeballs+V.business+V.ix); R2.costMo=Object.values(C).reduce((a,b)=>a+b,0); diff --git a/src/game/80-simulation/50-sanitize.js b/src/game/80-simulation/50-sanitize.js index 989d1ac..e700dbb 100644 --- a/src/game/80-simulation/50-sanitize.js +++ b/src/game/80-simulation/50-sanitize.js @@ -11,7 +11,7 @@ function sanitize(s){ ['pops','ixp','rs','peers','myIx','done','ev','stats','ixn','ixPref','ixSite','confReg','ach','pairMet'].forEach(obj); s.v=1;s.name=String(s.name==null?'Packet Pals':s.name).slice(0,24);s.day=int(s.day,0,1e7,0);s.cash=num(s.cash,0);s.asn=int(s.asn,1,4294967294,200000); s.priceMul=num(s.priceMul,1);s.nextFail=num(s.nextFail,s.day+45);s.nextEvent=num(s.nextEvent,s.day+40);s.lvl=int(s.lvl,1,LEVELS.length,1);s.neg=int(s.neg,0,1e7,0);s.loanStrikes=int(s.loanStrikes,0,1e3,0); - for(const k of Object.keys(s.stats)){const v=s.stats[k];if(k==='by'||k==='f'){if(!v||typeof v!=='object')s.stats[k]={};else for(const j of Object.keys(v))v[j]=num(v[j],0);}else if(typeof v!=='boolean')s.stats[k]=num(v,0);} + for(const k of Object.keys(s.stats)){const v=s.stats[k];if(k==='by'||k==='f'||k==='ddT'){if(!v||typeof v!=='object')s.stats[k]={};else for(const j of Object.keys(v))v[j]=num(v[j],0);}else if(typeof v!=='boolean')s.stats[k]=num(v,0);} for(const k of ['survived','incidents','peak'])s.stats[k]=num(s.stats[k],0); // The chaos monkey (2.0): saves without one get their first visit scheduled on the next day tick. {const m=s.monkey&&typeof s.monkey==='object'&&!Array.isArray(s.monkey)?s.monkey:{},on=m.on?1:0,o={next:m.next==null?null:int(m.next,0,1e7,s.day+90),on}; @@ -67,13 +67,19 @@ function sanitize(s){ if(!Array.isArray(s.scrubs))s.scrubs=s.scrubAt&&isCity(s.scrubAt)?[{city:s.scrubAt,tier:s.scrubTier}]:[];delete s.scrubAt;delete s.scrubTier; {const seen=new Set();s.scrubs=s.scrubs.filter(x=>x&&typeof x==='object'&&isCity(x.city)&&s.pops[x.city]&&!seen.has(x.city)&&seen.add(x.city)).map(x=>({city:x.city,tier:int(x.tier,0,SCRUB_TIERS.length-1,0)}));} s.scrubMode=s.scrubMode==='ondemand'?'ondemand':'always'; + {const A=s.ddosAuto&&typeof s.ddosAuto==='object'?s.ddosAuto:{};s.ddosAuto={rtbh:A.rtbh===true,scrub:A.scrub!==false};} + if(s.stats&&s.stats.ddT&&typeof s.stats.ddT==='object')s.stats.ddT={port:s.stats.ddT.port?1:0,fs:s.stats.ddT.fs?1:0,rtbh:s.stats.ddT.rtbh?1:0};else if(s.stats)delete s.stats.ddT; // Keep the legacy primary attack so old saves and imports remain compatible; additional floods overlap it. const repairAttack=a=>{if(!a||typeof a!=='object'||!isCity(a.city)||!s.pops[a.city]||!own(DDOS_VEC,a.vec))return null; - a.id=sid(a.id);a.gbps=Math.max(0,num(a.gbps,2));a.until=num(a.until,s.day);a.bh=!!a.bh;a.ixbh=!!a.ixbh;a.start=Math.max(0,Math.min(s.day,num(a.start,s.day)));a.until=Math.min(a.until,a.start+Math.ceil(7*SPICY_LONG)); - delete a.entries; // 2.0 betas spread attacks over every ingress port; they arrive on one again + a.id=sid(a.id);a.gbps=Math.max(0,num(a.gbps,2));a.until=num(a.until,s.day);a.bh=!!a.bh;a.start=Math.max(0,Math.min(s.day,num(a.start,s.day)));a.until=Math.min(a.until,a.start+Math.ceil(7*SPICY_LONG)); + // Attacks before 2.2 hit a city and came in on one port: they now hit someone in it, and spread (#242). + delete a.entries;delete a.entry;delete a.ixbh;delete a.fresh; + if(typeof a.tgt!=='string'||(a.tgt.startsWith('bb:')?a.tgt!=='bb:'+a.city:!s.biz.some(b=>b.id===a.tgt&&b.city===a.city))){ + const bs=s.biz.filter(b=>b.city===a.city&&BIZ_T[b.type]&&!BIZ_T[b.type].l2&&!BIZ_T[b.type].fiber).sort((x,y)=>(DD_W[y.type]||1)-(DD_W[x.type]||1)||y.bw-x.bw);a.tgt=bs.length?bs[0].id:'bb:'+a.city;} + a.carpet=!!a.carpet;a.sac=a.sac?1:0;a.colMax=clamp(num(a.colMax,0),0,1);if(a.worst!==undefined)a.worst=clamp(num(a.worst,1),0,1); + if(a.eng!==undefined){a.eng=num(a.eng,a.start);a.eng=Math.max(a.start,Math.min(s.day,a.eng));} if(a.who!==undefined&&!FLOOD_WHO.includes(a.who))delete a.who; // a label from the list, never text from the file - a.sla=Array.isArray(a.sla)?a.sla.filter(x=>typeof x==='string').slice(0,s.biz.length):[]; - if(!a.entry||typeof a.entry!=='object'||!['t','ix','p','edge'].includes(a.entry.k))a.entry={k:'edge',lab:''};else{a.entry.lab=String(a.entry.lab||'').slice(0,60);a.entry.id=a.entry.id==null?undefined:String(a.entry.id).slice(0,40);}return a;}; + a.sla=Array.isArray(a.sla)?a.sla.filter(x=>typeof x==='string').slice(0,s.biz.length):[];return a;}; const attacks=[s.ev.ddos,...(Array.isArray(s.ev.ddosMore)?s.ev.ddosMore:[])].map(repairAttack).filter(Boolean).slice(0,14); if(attacks.length)s.ev.ddos=attacks[0];else delete s.ev.ddos;s.ev.ddosMore=attacks.slice(1); s.ddosStarts=(Array.isArray(s.ddosStarts)?s.ddosStarts:attacks.map(a=>a.start)).filter(d=>typeof d==='number'||typeof d==='string').map(Number).filter(d=>Number.isFinite(d)&&d>s.day-7&&d<=s.day).sort((a,b)=>a-b).slice(-14); diff --git a/src/game/80-simulation/70-customers-and-events.js b/src/game/80-simulation/70-customers-and-events.js index 75fe93b..70301b4 100644 --- a/src/game/80-simulation/70-customers-and-events.js +++ b/src/game/80-simulation/70-customers-and-events.js @@ -1,4 +1,4 @@ -function bizSf(b,ids){const T=BIZ_T[b.type];return T.fiber?(fiberOk(b,ids)?1:0):T.l2?clamp((R.l2[b.id]||0)/b.bw,0,1):bizSfOf(R,b.city);} +function bizSf(b,ids){const T=BIZ_T[b.type];return T.fiber?(fiberOk(b,ids)?1:0):T.l2?clamp((R.l2[b.id]||0)/b.bw,0,1):bizSfOf(R,b.city)*((R.tgtF&&R.tgtF[b.id])??1);} // Protected business traffic has its own served share; without the rule it shares the city's. function bizSfOf(r,c){const d=r.bizDem&&r.bizDem[c];return teRules()&&teRules().protect&&d>1e-6?clamp(r.bizSrv[c]/d,0,1):sfOf(r,c);} function bCities(o){return o.sites?o.sites.slice():[o.city,o.city2].filter(Boolean);} diff --git a/src/game/85-incidents/10-incidents-and-ddos.js b/src/game/85-incidents/10-incidents-and-ddos.js index a28a5dc..db254dc 100644 --- a/src/game/85-incidents/10-incidents-and-ddos.js +++ b/src/game/85-incidents/10-incidents-and-ddos.js @@ -28,69 +28,129 @@ function lagsN(){const o=[];for(const t of S.transit)if((t.n||1)>=2&&!(t.down>S. function ddosAll(s=S,live=true){return [s.ev.ddos,...(s.ev.ddosMore||[])].filter(a=>a&&(!live||a.until>s.day));} const ddosFind=id=>ddosAll().find(a=>id===undefined||a.id===id); function ddosDrop(a){const left=ddosAll(S,false).filter(x=>x!==a);S.ev.ddos=left[0]||null;S.ev.ddosMore=left.slice(1);} -function ddosExpire(){for(const a of ddosAll(S,false))if(a.until<=S.day||!S.pops[a.city]){ddosDone(a);ddosDrop(a);}} -// An attack is held or lost at its victim: the junk lands there, and other POPs' bad days are not the attacker's doing. -// A city with nobody to serve holds only if its tools soak up the flood (or there is nothing to judge but that). -const ddosSf=a=>((R.cityDem||{})[a.city]||0)>1e-6||!a.gbps?sfOf(R,a.city):clamp(1-ddosReport(a).leak/a.gbps,0,1); -function ddosReport(a){return (R.ddos||[]).find(m=>m.attack===a)||ddosMitigation(a);} -// Where the junk comes in: one of the city's live uplinks, or just "the edge" if it has none yet. -function ddosEntry(c){const o=[]; - for(const t of S.transit)if(t.city===c&&!(t.down>S.day))o.push({k:'t',id:t.id,lab:tr('common.net_transit',{net:NET[t.net].name})}); - for(const x of ixIdsIn(c))if(S.ixp[x]!==undefined)o.push({k:'ix',id:x,lab:tr('common.ix_peering',{ix:ixName(x)})}); - for(const p of S.pni)if(p.city===c)o.push({k:'p',id:p.id,lab:tr('common.pni_with_net',{net:NET[p.net].name})}); - return o.length?pick(o):{k:'edge',lab:''};} -// Flowspec capability of a POP's router: 0 none, 1 basic, 2 full. +const ddosBb=a=>!a.tgt||a.tgt.startsWith('bb:'); +const ddosBiz=a=>ddosBb(a)?null:S.biz.find(b=>b.id===a.tgt)||null; +// An attack ends on its day, when its city is gone, or when its target is no longer your customer. +function ddosExpire(){for(const a of ddosAll(S,false))if(a.until<=S.day||!S.pops[a.city]||(!ddosBb(a)&&!ddosBiz(a))){ddosDone(a);ddosDrop(a);}} +function ddosReport(a){return (R.ddos||[]).find(m=>m.attack===a)||null;} +// How well the target is doing: what reached it, times how its city is doing. +function ddosSf(a){const m=ddosReport(a),tf=m?m.tf:1;if(ddosBb(a))return Math.min(tf,sfOf(R,a.city));return tf*bizSfOf(R,a.city);} +// What the attack costs everyone else, as a share of all your traffic. +const ddosCol=a=>{const m=ddosReport(a);return m&&R.demand>0?m.col/R.demand:0;}; +// Who is under attack, in words. +function ddosWho(a){const b=ddosBiz(a);return b?tr('ddos.who_customer',{name:b.name,what:BIZ_T[b.type].l,city:CITY[a.city].name}):tr('ddos.who_subscribers',{city:CITY[a.city].name});} +// Flowspec capability of a POP's router: 0 none, 1 basic, 2 full (its rule budget is fsCap). const fsAt=c=>{const p=S.pops[c];return p?(RG[p.rgen||0].fs||0):0;}; -// Scrubbing removes attack traffic up to the center's capacity; overflow leaks. On-demand -// does nothing for the first couple of days while traffic is being diverted. -function scrubEngaged(atk){return hasScrub()&&(S.scrubMode==='always'||(S.day-(atk.start??S.day))>=SCRUB_DELAY);} -// Several centers (#117): the flood goes to the nearest working one, and what it cannot take spills to the next. -// A center in another city only helps if the backbone can carry the flood there; routing works that out. +// A DDoS-protection customer whose attacks ride far to be cleaned (#117). const scrubFar=c=>{for(const a of ddosAll())if(a.city===c){const q=(R.haul||[]).find(q=>q.attack===a.id&&q.city===c&&q.ms!==null&&q.ms>=SCRUB_FAR_MS);if(q)return q;}return null;}; -function scrubPlan(atk,g=atk.gbps||0,room={},take=null){if(!scrubEngaged(atk))return null;const c=atk.city;const parts=[]; - for(const x of S.scrubs.filter(x=>popUp(x.city)&&(x.city===c||pathExists(c,x.city))).sort((a,b)=>(a.city===c?0:kmBetween(c,a.city))-(b.city===c?0:kmBetween(c,b.city)))){if(g<=0)break;const cap=SCRUB_TIERS[x.tier||0].g,a=Math.min(g,room[x.city]??cap);if(a<=0)continue;const cleaned=take?take(x,a):a;room[x.city]=(room[x.city]??cap)-cleaned;parts.push({city:x.city,tier:x.tier||0,a,cleaned});g-=cleaned;} - return parts.length?{parts,leak:g}:null;} -// One accounting pipeline for routing and the NOC: upstream -> edge -> scrubbing -> leakage. The junk comes in on one -// port of the victim (a.entry) and is filtered by the victim's own router. -function ddosMitigation(a,room={},blackhole=a.bh,plan=true){const en=a.entry||{},t=en.k==='t'?S.transit.find(x=>x.id===en.id):null,p=en.k==='p'?S.pni.find(x=>x.id===en.id):null,upstream=!!(t&&t.clean); - const reaching=blackhole?0:a.gbps*(upstream?0.1:1);let g=reaching,flowspec=0; - if(DDOS_VEC[a.vec]?.fs){g*=FS_RES[fsAt(a.city)];flowspec=reaching-g;} - if(a.ixbh&&hasIxAt(a.city))g*=0.5; - if(p&&p.sacrif)g=Math.min(g,liveCap(pniG(p),p.city,p.site,p.n)*0.9); - if(teRules()?.blackhole&&!blackhole)g=0; - const filtered=reaching-g,sp=plan&&g>0?scrubPlan(a,g,room):null; - return {attack:a,blackhole,upstream,reaching,flowspec,filtered,sp,leak:sp?sp.leak:g};} -// The NOC's live attack view: what is hitting you, what each tool would do about it right now, and the buttons. +/* ---------- who gets attacked, how hard and how often ---------- + Most real floods are small and short; the giant ones are rare (Cloudflare, H1 2026: 96.6% under 500 Mbps; the record + is 31.4 Tbps). Sizes come from that world, never from how big your network is. Gamers and hosting attract them. */ +const DD_W={cgame:8,game:5,esport:5,host:3,metav:3,scrub:2},DD_REC=31000; +const ddGame=t=>{const b=t&&S.biz.find(x=>x.id===t);return !!b&&(!!BIZ_T[b.type].gaming||b.type==='esport');}; +const ddAttract=()=>S.biz.reduce((n,b)=>n+(b.type==='cgame'?2:BIZ_T[b.type].gaming||b.type==='esport'?1:b.type==='host'?0.25:0),0); +const ddosOff=()=>{const c=rule('chaos');return c==='calm'||c==='none'||S.mode==='sandbox'||S.mode==='puzzle';}; +const ddosSpicy=()=>!ddosOff()&&rule('chaos')==='spicy'; +// Expected attacks a day: one in 40, one more in 40 per attractive customer, at most one in 5; BGP at 3 a.m. doubles it. +const ddosRate=()=>Math.min(1/5,(1+ddAttract())/40)*(ddosSpicy()?2:1); +const ddosVectors=gm=>Object.keys(DDOS_VEC).filter(k=>!DDOS_VEC[k].gaming||gm); +function ddosTargets(){const o=[];for(const b of S.biz){const T=BIZ_T[b.type];if(!T||T.l2||T.fiber||!S.pops[b.city]||(T.event&&!eventLive(b)))continue;o.push([b.id,b.city,DD_W[b.type]||1]);} + for(const c in S.pops)if(S.pops[c].bb&&S.pops[c].bb.d>0)o.push(['bb:'+c,c,1]);return o;} +function ddosPickTgt(){const o=ddosTargets();if(!o.length){const c=pick(Object.keys(S.pops));return ['bb:'+c,c];} + let t=o.reduce((n,x)=>n+x[2],0)*Math.random();for(const x of o){t-=x[2];if(t<=0)return x;}return o[o.length-1];} +// The biggest port you have to the outside world. +function ddMaxPort(){let g=10;for(const t of S.transit)g=Math.max(g,PORT[t.tier].g*(t.n||1));for(const p of S.pni)g=Math.max(g,pniG(p)*(p.n||1));for(const x in S.ixp)g=Math.max(g,ixCap(x));return g;} +const ddEraMax=()=>LEVELS.reduce((a,L)=>a*(L.era||1),1); +/* 4 Gbps × the era × a heavy tail: a median near 9 G, one in ten over 50 G, one in a hundred over 650 G, at most the + era's record. A gaming target doubles it. For the first 180 days, and with one POP, never more than twice your + biggest port: the first lesson is a full port, not a dead company. Flood Season: a third are 0.8 to 3.4 T monsters + that grow through the year, the rest eight times the usual. One draw picks the size. */ +function ddosSize(a){const fl=scnRule('ddos'),r=Math.random(),cap=DD_REC*eraMul()/ddEraMax(); + if(fl&&r<1/3)return Math.round(Math.min(cap,(800+7800*r)*(1+S.day/365))); + const u=fl?(r-1/3)*1.5:r,base=4*eraMul()*(ddGame(a.tgt)?2:1)*(fl?8:1);let g=Math.min(cap,base*Math.pow(Math.max(u,1e-9),-1/0.9)); + if(!fl&&(S.day<180||Object.keys(S.pops).length<2))g=Math.min(g,2*ddMaxPort()); + return Math.max(0.1,Math.round(g*10)/10);} +// Flood Season: 3 to 7 days apart, shrinking with age, level and gamers when attacks are spicy. +const floodGap=()=>!ddosSpicy()&&!ddAttract()?3+Math.floor(Math.random()*5):Math.max(0.05,(3+Math.random()*5)/(Math.sqrt(1+S.day/180)*(1+ddAttract()/10+Math.max(0,(S.lvl||1)-1)/12))); +function ddosTick(){if(scnRule('ddos')){if(S.mode==='sandbox')return;let next=+S.scn.nextDdos||3,n=0; + // Unless spicy, floods take turns: the next one waits until the last is over. + if(!ddosSpicy()&&ddosAll().length)return; + while(S.day>=next&&n++<2){ddosAttack(false);next+=floodGap();}S.scn.nextDdos=next=(ddosSpicy()?3:2))return;if(Math.random()d>S.day-7&&d<=S.day);if(S.ddosStarts.length>=14||!Object.keys(S.pops).length)return null;S.ddosStarts.push(S.day); + const [tgt,c]=ddosPickTgt(),vec=pick(ddosVectors(ddGame(tgt))),r=Math.random(),dur=r<0.7?1:r<0.95?2:3; + const a={id:uid(),city:c,tgt,vec,gbps:0,until:S.day+dur,bh:false,start:S.day,carpet:Math.random()<0.2,fresh:1};a.gbps=ddosSize(a); + if(fl)a.who=pick(FLOOD_WHO); + if(!S.ev.ddos)S.ev.ddos=a;else(S.ev.ddosMore||(S.ev.ddosMore=[])).push(a); + addInc({type:'ddos',ref:c,atk:a.id,until:a.until,msg:tr('ddos.started',{g:fmtG(a.gbps),vec:DDOS_VEC[vec].n,who:ddosWho(a)}),cost:0}); + if(recompute){compute();ddosNews();} + return a;} +/* After the day's routing: announce new attacks with what they are doing, pull the plug when Auto-RTBH says so, and + teach each lesson once. */ +function ddosNews(){let again=false;const auto=S.ddosAuto&&S.ddosAuto.rtbh; + for(const a of ddosAll()){const m=ddosReport(a);if(!m)continue; + if(auto&&!a.bh&&m.full>0&&ddosCol(a)>=0.01){a.bh=true;a.sac=1;S.stats.rtbh=(S.stats.rtbh||0)+1;ddosRtbhMood(a);again=true; + toast(tr('ddos.auto_rtbh',{who:esc(ddosWho(a))}),'bad',[{l:tr('common.open_noc'),act:'leftTab',args:{t:'noc'}}],{a:'city',v:a.city});}} + if(again)compute(); + const T=S.stats.ddT||(S.stats.ddT={}); + for(const a of ddosAll()){const m=ddosReport(a);if(!m)continue; + if(a.fresh){delete a.fresh;const fl=scnRule('ddos'),col=ddosCol(a),sf=ddosSf(a),bad=col>=0.01||sf<0.97; + const how=a.bh?tr('ddos.news_rtbh'):col>=0.01?tr('ddos.news_ports',{n:m.full,k:m.slowed}):sf<0.97?tr('ddos.news_target',{p:pct(sf)}):tr('ddos.news_held'); + toast(`${incTitle('ddos')}: ${esc(ddosWho(a))}
${esc(tr('ddos.started',{g:fmtG(a.gbps),vec:DDOS_VEC[a.vec].n,who:ddosWho(a)}))} ${esc(how)}${fl&&a.who?`
${esc(tr('failures.attacker_who',{who:tr(a.who)}))}`:''}`,bad?'bad':'good',[{l:tr('common.open_noc'),act:'leftTab',args:{t:'noc'}}],{a:'city',v:a.city}); + if(bad)sfx('alert');} + // Lessons, once a game each. + if(!T.port&&m.full>0&&!a.bh){T.port=1;toast(tr('ddos.learn_port'),'',[],{a:'tab',v:'noc'});} + if(!T.fs&&m.fsFull.length){T.fs=1;toast(tr('ddos.learn_fs',{city:CITY[m.fsFull[0]].name}),'',[],{a:'city',v:m.fsFull[0]});}}} +// What the day did to each live attack's score: the worst the target got, the most it cost everyone else. +function ddosTrack(list=ddosAll()){for(const a of list)if(S.pops[a.city]){a.worst=Math.min(a.worst??1,ddosSf(a));a.colMax=Math.max(a.colMax||0,ddosCol(a));}} +// RTBH costs the target: its service is gone while it lasts, and it remembers. +function ddosRtbhMood(a){const b=ddosBiz(a);if(b)b.mood=Math.max(0,b.mood-25);} +/* When an attack is over. Held: the target got 97% and nobody else lost more than 1%. Sacrificed: you blackholed the + target and saved everyone else. Anything else got through. */ +function ddosDone(a){if(!a||a.done)return;a.done=1;if(a.worst===undefined&&S.pops[a.city]&&R)ddosTrack([a]); + const w=a.worst===undefined?1:a.worst,col=a.colMax||0,held=!a.sac&&w>=0.97&&col<0.01,sac=!!a.sac&&col<0.01; + if(held){S.stats.ddosOk=(S.stats.ddosOk||0)+1;S.stats.ddosHeld=(S.stats.ddosHeld||0)+1;if(a.gbps>=1000){S.stats.ddosOkBig=(S.stats.ddosOkBig||0)+1;S.stats.ddosMonster=(S.stats.ddosMonster||0)+1;}} + else if(sac)S.stats.ddosSac=(S.stats.ddosSac||0)+1; + else{S.stats.ddosLost=(S.stats.ddosLost||0)+1;if(col>=0.01)S.stats.ddosCol=(S.stats.ddosCol||0)+1;} + if(scnRule('ddos')){const w2=tr(FLOOD_WHO.includes(a.who)?a.who:FLOOD_WHO[0]),who=esc(w2.charAt(0).toUpperCase()+w2.slice(1)); + toast(held?tr('failures.flood_held_g_who_gave_up',{g:fmtG(a.gbps),who}):sac?tr('ddos.flood_sacrificed',{g:fmtG(a.gbps),who:esc(ddosWho(a))}):tr('failures.that_one_got_through_g_city',{g:fmtG(a.gbps),city:esc(CITY[a.city]?CITY[a.city].name:tr('common.your_network')),p:pct(w),who:esc(w2)}),held||sac?'goal':'bad');}} +/* ---------- the NOC card: the flood's path, top to bottom, and the one thing to do now ---------- */ function ddosPanel(){return S?ddosAll().filter(a=>S.pops[a.city]).map(ddosOne).join(''):'';} -function ddosOne(a){ - const V=DDOS_VEC[a.vec]||{n:'?',fs:false},en=a.entry||{}; - const sacP=en.k==='p'?S.pni.find(x=>x.id===en.id):null; - const m=ddosReport(a),sp=m.sp,hl=x=>{const qs=(R.haul||[]).filter(q=>q.to===x.city&&q.attack===a.id);return qs.length?{a:qs.reduce((n,q)=>n+q.a,0),h:qs.reduce((n,q)=>n+q.h,0)}:null;}; - const landLine=m.blackhole?'~ '+tr('incidents_and_ddos.blackholed_the_junk_is_gone_and',{city:esc(CITY[a.city].name)}) - :m.upstream?'✓ '+tr('incidents_and_ddos.after_upstream_scrubbing_g',{g:fmtG(m.reaching)}):''; - const fsLine=!V.fs?'— '+tr('incidents_and_ddos.flowspec_cannot_catch_vec',{vec:esc(V.n)}) - :m.flowspec<=1e-6?'— '+tr('incidents_and_ddos.no_flowspec_filtering_ingress') - :'✓ '+tr('incidents_and_ddos.flowspec_dropping_g',{g:fmtG(m.flowspec)}); - const used=c=>(R.ddos||[m]).reduce((n,q)=>n+(q.sp?.parts||[]).filter(x=>x.city===c).reduce((t,x)=>t+x.cleaned,0),0); - const scrOne=x=>{const T=SCRUB_TIERS[x.tier],q=hl(x),total=used(x.city); - return (x.cleaned>1e-6?'✓ ':'~ ')+tr('incidents_and_ddos.scrubbing_in_city_used_capacity',{city:esc(CITY[x.city].name),used:fmtG(total),capacity:T.n}) - +(total>x.cleaned+1e-6?' · '+tr('incidents_and_ddos.this_attack_g',{g:fmtG(x.cleaned)}):'') - +(q&&q.h~ '+tr('incidents_and_ddos.your_backbone_can_only_haul_g',{g:fmtG(q.h),city:esc(CITY[x.city].name)}):'');}; - const scrLine=!hasScrub()?'— '+tr('incidents_and_ddos.no_scrubbing_center') - :!scrubEngaged(a)?'… '+tr('incidents_and_ddos.on_demand_scrubbing_diverting_live',{n:Math.max(1,SCRUB_DELAY-(S.day-(a.start??S.day)))}) - :!sp?'— '+(m.leak<=1e-6?tr('incidents_and_ddos.no_scrubbing_needed_after_edge'):tr('incidents_and_ddos.scrubbing_centers_unavailable_or_at')) - :sp.parts.map(scrOne).join('
'); - const haulLine=m.near&&m.near.ms>0&&sp?.parts.some(x=>x.cleaned>1e-6)?'✓ '+tr('incidents_and_ddos.scrubbing_traffic_hauled_over_your',{city:esc(CITY[a.city].name),to:esc(CITY[m.near.city].name),ms:m.near.ms.toFixed(1)}):''; - const entryLine=sacP&&sacP.sacrif?'✓ '+tr('incidents_and_ddos.contained_on_your_sacrificial_net',{net:esc(NET[sacP.net].name)}):''; - let h=`
-
🚨 ${tr('incidents_and_ddos.live_attack_city',{city:esc(CITY[a.city].name)})}
-
${tr('incidents_and_ddos.size_vec_entry_n_d_left',{size:fmtG(a.gbps),vec:esc(V.n),entry:a.entry&&a.entry.lab?' · '+esc(a.entry.lab):'',n:a.until-S.day})}
- ${landLine?`
${landLine}
`:''} - ${m.blackhole?'':`
${fsLine}
${entryLine?`
${entryLine}
`:''} - ${m.filtered-m.flowspec>1e-6?`
✓ ${tr('incidents_and_ddos.edge_filters_dropping_g',{g:fmtG(m.filtered-m.flowspec)})}
`:''} -
${scrLine}
- ${haulLine?`
${haulLine}
`:''} -
${m.leak>1e-6?'~ '+tr('incidents_and_ddos.g_is_leaking_through',{g:fmtG(m.leak)}):'✓ '+tr('incidents_and_ddos.attack_fully_mitigated')}
`} -
${m.blackhole?btn(tr('common.stop_blackholing'),'unrtbh',{id:a.id},'ghost sm'):btn(tr('incidents_and_ddos.blackhole_the_target_rtbh'),'rtbh',{id:a.id},'red sm')}${hasIxAt(a.city)&&!m.blackhole?btn(a.ixbh?tr('incidents_and_ddos.ix_blackhole_on'):tr('incidents_and_ddos.ix_blackhole_half_honour_it'),'ixbh',{id:a.id},a.ixbh?'green sm':'sm'):''}${btn(tr('incidents_and_ddos.hackback_3000tm_20k'),'hackback',{id:a.id},'sm',S.cash<20000)}
-

${tr('incidents_and_ddos.rtbh_is_free_and_instant_but')}

`; +const ddCities=l=>{const u=[...new Set(l)];return u.slice(0,3).map(c=>CITY[c].name).join(', ')+(u.length>3?' +'+(u.length-3):'');}; +function ddosOne(a){const V=DDOS_VEC[a.vec]||{n:'?',fs:false},m=ddosReport(a),row=(ok,t)=>`
${ok===true?'✓':ok===false?'~':'—'} ${t}
`; + let h=`
🚨 ${tr('ddos.card_title',{g:fmtG(a.gbps),vec:esc(V.n)})}
+
${esc(ddosWho(a))} · ${tr('ui.n_d_left',{n:Math.max(1,a.until-S.day)})}${a.carpet?' · '+tr('ddos.carpet'):''}
`; + if(!m)return h+'
'; + const engIdle=hasScrub()&&!a.bh&&m.eng<1&&S.scrubMode==='ondemand'&&S.ddosAuto&&S.ddosAuto.scrub===false&&a.eng===undefined; + // 1. Upstream and the ports. + if(a.bh)h+=row(true,tr('ddos.row_rtbh',{g:fmtG(m.up)})); + if(m.portList&&m.portList.length){const full=m.portList.filter(p=>p.fac<0.97); + h+=row(full.length?false:true,full.length?trn('ddos.row_ports_full',m.portList.length,{k:full.length,labs:esc(full.slice(0,2).map(p=>p.lab+' ('+CITY[p.city].name+')').join(', '))+(full.length>2?' +'+(full.length-2):'')}):trn('ddos.row_ports_ok',m.portList.length)); + if(m.slowed)h+=row(false,trn('ddos.row_slowed',m.slowed));} + // 2. Inside: Flowspec and scrubbing. + if(!a.bh){if(!V.fs)h+=row(null,tr('ddos.row_fs_none',{vec:esc(V.n)})); + else if(m.fs>1e-6)h+=row(true,tr('ddos.row_fs',{g:fmtG(m.fs),n:m.fsAt.length}))+(m.fsFull.length?row(false,tr('ddos.row_fs_full',{cities:esc(ddCities(m.fsFull))})):''); + else if(m.fsFull.length)h+=row(false,tr('ddos.row_fs_full',{cities:esc(ddCities(m.fsFull))})); + else if(m.portList&&m.portList.length)h+=row(null,tr('ddos.row_fs_no_router')); + if(m.pulled>0)h+=row(m.over>1e-6?false:true,tr('ddos.row_scrub',{g:fmtG(m.pulled),c:fmtG(m.cleaned),cities:esc(ddCities(m.parts.map(x=>x.city)))})); + else if(engIdle)h+=row(null,tr('ddos.row_scrub_idle')); + else if(!hasScrub())h+=row(null,tr('ddos.row_scrub_none')); + const far=(R.haul||[]).filter(q=>q.attack===a.id&&q.ms>0).sort((x,y)=>y.ms-x.ms)[0];if(far)h+=row(null,tr('ddos.row_detour',{ms:far.ms.toFixed(0),city:esc(CITY[far.to].name)}));} + // 3. The result. + const sf=ddosSf(a),col=ddosCol(a); + h+=`
${a.bh?tr('ddos.res_rtbh',{who:esc(ddosBiz(a)?ddosBiz(a).name:CITY[a.city].name)}):col>=0.01?tr('ddos.res_col',{p:pct(sf),g:fmtG(m.col)}):sf<0.97?tr('ddos.res_target',{p:pct(sf)}):tr('ddos.res_held')}
`; + // The one thing to do now, and the rest behind "More". + const rt=btn(tr('ddos.btn_rtbh'),'rtbh',{id:a.id},'red sm'),un=btn(tr('common.stop_blackholing'),'unrtbh',{id:a.id},'ghost sm'),eng=btn(tr('ddos.btn_engage'),'ddosEngage',{id:a.id},'green sm'),hb=btn(tr('incidents_and_ddos.hackback_3000tm_20k'),'hackback',{id:a.id},'sm',S.cash<20000); + const main=a.bh?un:engIdle?eng:m.full>0&&col>=0.01?rt:'',more=[a.bh||main===rt?'':rt,hb].filter(Boolean).join(''); + h+=`
${main}
${tr('ddos.more')}
${more}

${tr('ddos.rtbh_help')}

`; + return h;} +// The NOC's standing DDoS settings: where the scrubbing is, the routers' Flowspec rules, and the two automations. +function ddosSettings(){if(!S)return '';const pops=Object.keys(S.pops),fs=pops.filter(c=>fsCap(c)>0); + let h=`
${tr('common.ddos_scrubbing')}${hasScrub()?tr('hud_and_panels.on_city',{city:S.scrubs.map(x=>CITY[x.city].name).join(', ')}):tr('hud_and_panels.none_build_one_from_a_pop')}
`; + h+=`
${tr('ddos.fs_pops')}${fs.length}/${pops.length}
`; + if(fs.length${tr('ddos.fs_help')}

`; + const A=S.ddosAuto||{}; + h+=`
${btn(A.rtbh?tr('ddos.auto_rtbh_on'):tr('ddos.auto_rtbh_off'),'ddosAuto',{k:'rtbh'},A.rtbh?'green sm':'sm')}${hasScrub()&&S.scrubMode==='ondemand'?btn(A.scrub===false?tr('ddos.auto_scrub_off'):tr('ddos.auto_scrub_on'),'ddosAuto',{k:'scrub'},A.scrub===false?'sm':'green sm'):''}${S.mode==='sandbox'?btn(tr('ddos.test_flood'),'ddosTest',{},'sm'):''}
`; return h;} diff --git a/src/game/85-incidents/20-failures.js b/src/game/85-incidents/20-failures.js index e4177c3..647234e 100644 --- a/src/game/85-incidents/20-failures.js +++ b/src/game/85-incidents/20-failures.js @@ -9,10 +9,6 @@ function fireFailure(only){ if(S.transit.some(t=>!(t.down>S.day)))opts.push(['transit',3]); if(Object.keys(S.ixp).length)opts.push(['ixloop',2]); if(S.transit.length&&S.day>60)opts.push(['leak',2]); - // Flood Season brings its own; Change Freeze (calm) has none. Gaming customers put DDoS on its own, busier schedule - // (ddosTick) instead of this one, so it is never counted twice. Spicy failures already come 1.8x as often; a slightly - // heavier weight makes that twice On-call's DDoS, as BGP at 3 a.m. promises. - if(S.day>40&&!scnRule('ddos')&&!ddosOff()&&!gamingCount())opts.push(['ddos',rule('chaos')==='spicy'?2.25:2]); if(fabsUsed.length)opts.push(['fabric',1.5]); const lit=S.links.filter(l=>l.kind==='df'&&dfCap(l)>0&&!linkDown(l));if(lit.length)opts.push(['amp',1.5+lit.length*0.3],['optic',1.5+lit.length*0.3]); // Two vendors' idea of the same protocol: the higher the backbone runs, the more often they disagree. @@ -120,62 +116,6 @@ function fireFailure(only){ sfx('alert'); } const gamingCount=()=>S.biz.reduce((n,b)=>n+(BIZ_T[b.type]?.gaming?1:0),0); -const ddosVectors=()=>Object.keys(DDOS_VEC).filter(k=>!DDOS_VEC[k].gaming||gamingCount()>0); -// Expected starts per week in normal play; the rolling 14-start limit is a separate ceiling. -// Spread gaming exposure over dozens of customers, including the first, rather than switching baselines. -const ddosRate=()=>0.5+6.5*(1-Math.exp(-gamingCount()/50*(1+Math.max(1,S.lvl||1)/LEVELS.length))); -const ddosPressure=()=>1-Math.exp(-(.01+Math.max(0,(S.lvl||1)-1)/12+gamingCount()/10+(scnRule('ddos')?.2+S.day/365:0))); -// Normalize the vector mix so smaller gaming-only floods do not lower the advertised overall mean (Flood Season sizes its own). -function ddosSizeMean(){const stage=Math.max(1,S.lvl||1)/LEVELS.length,games=gamingCount(); - const base=Math.max(10,(R.demand||0)*4/3*stage); - // Relative to no gaming: 3x at one customer, 8x at 50, approaching the existing 12x balance. - const mean=base*(games?1.2-0.9*Math.pow(4/9,(games-1)/49):0.1),vectors=ddosVectors(),weight=vectors.reduce((n,k)=>n+(DDOS_VEC[k].gaming?1/3:1),0)/vectors.length; - return mean/weight;} -// Normal rolls: 98% uniform 0.2–2, 2% uniform 8–12. Their mean is 1.278, so spikes do not inflate the balance. -const ddosSizeMax=()=>ddosSizeMean()*12/1.278; -/* Flood Season (as in 1.36): a third are terabit monsters, the rest ordinary floods sized to the city; all of it grows - through the year, and on after it. One draw picks both, so fixed draws give fixed sizes. */ -function ddosSize(vec,c){const fl=scnRule('ddos'),r=Math.random(); - if(fl){const games=gamingCount(),grow=(1+S.day/365)*(1+0.2*games/(games+10))*(DDOS_VEC[vec].gaming?1/3:1); - const raw=r<1/3?800+2600*r*3:2+(r-1/3)*1.5*Math.max(18,((R.cityDem||{})[c]||0)*0.9);return Math.max(2,Math.floor(raw*grow));} - const roll=(r<.98?.2+1.8*r/.98:8+4*(r-.98)/.02)/12,raw=ddosSizeMax()*(DDOS_VEC[vec].gaming?1/3:1)*roll; - return Math.max(0.001,Math.floor(raw*1000)/1000);} -// Calm (Change Freeze) and no chaos at all mean no attacks, gamers or not. -const ddosOff=()=>{const c=rule('chaos');return c==='calm'||c==='none';}; -// More frequent attacks are opt-in: the spicy chaos setting, or hosting gamers (who attract them in real life). -// Outside Flood Season, only gamers move attacks onto ddosTick's daily schedule; spicy alone doubles the usual one. -const ddosSpicy=()=>!ddosOff()&&(rule('chaos')==='spicy'||gamingCount()>0); -function ddosTick(){if(ddosOff()&&!scnRule('ddos'))return;if(scnRule('ddos')){let next=+S.scn.nextDdos||3,n=0; - // Unless spicy, floods take turns as they always did: the next one waits until the last is over. - if(!ddosSpicy()&&ddosAll().length)return; - while(S.day>=next&&n++<2){ddosAttack(false);next+=floodGap();}S.scn.nextDdos=nextd>S.day-7&&d<=S.day);if(S.ddosStarts.length>=14||!Object.keys(S.pops).length)return;S.ddosStarts.push(S.day); - // Flood Season goes for the POPs that serve someone, so empty ones cannot soak up floods for a free win. - const all=Object.keys(S.pops),served=fl?all.filter(x=>(R.cityDem||{})[x]>1e-6):[]; - const c=pick(served.length?served:all),vec=pick(ddosVectors()),V=DDOS_VEC[vec]; - const gbps=ddosSize(vec,c); - const dur=1+Math.floor(Math.random()*(1+6*ddosPressure())),entry=ddosEntry(c); - const a={id:uid(),city:c,vec,gbps,until:S.day+dur,entry,bh:false,start:S.day}; - if(!S.ev.ddos)S.ev.ddos=a;else(S.ev.ddosMore||(S.ev.ddosMore=[])).push(a); - const soaked=(V.fs&&fsAt(c))||hasScrub(); - const how=entry&&entry.lab?tr('failures.in_via_e',{e:entry.lab}):''; - const msg=tr('failures.a_size_vec_attack_is_hitting',{size:fmtG(gbps),vec:V.n,city:CITY[c].name,how})+' '+(soaked?tr('failures.your_mitigation_is_eating_most_of'):tr('failures.junk_traffic_is_eating_your_capacity')); - if(fl)a.who=pick(FLOOD_WHO); - addInc({type,ref:c,atk:a.id,until:S.day+dur,msg:fl?msg+' '+tr('failures.attacker_who',{who:tr(a.who)}):msg,cost:0}); - if(soaked){S.stats.survived++;S.stats.ddosHeld=(S.stats.ddosHeld||0)+1;if(gbps>=1000)S.stats.ddosMonster=(S.stats.ddosMonster||0)+1;} - if(recompute){compute();a.worst=ddosSf(a);} - toast(`${incTitle('ddos')}: ${esc(CITY[c].name)}
${esc(msg)}${fl?`
${esc(tr('failures.attacker_who',{who:tr(a.who)}))}`:''}`,soaked?'goal':'bad',[{l:tr('common.open_noc'),act:'leftTab',args:{t:'noc'}}],{a:'city',v:c}); - sfx('alert');} -// When an attack is over: was it held? Held means the city under attack got at least 97% of its traffic every day. -function ddosDone(a){if(!a||a.done)return;a.done=1;if(a.worst===undefined&&S.pops[a.city])a.worst=ddosSf(a);const ok=(a.worst===undefined?1:a.worst)>=0.97; - // In Flood Season a terabit flood counts only when scrubbing or Flowspec took it: spare exits held some by luck (playtest). - if(ok){S.stats.ddosOk=(S.stats.ddosOk||0)+1;if(a.gbps>=1000&&(!scnRule('ddos')||hasScrub()||(DDOS_VEC[a.vec]&&DDOS_VEC[a.vec].fs&&fsAt(a.city))))S.stats.ddosOkBig=(S.stats.ddosOkBig||0)+1;}else S.stats.ddosLost=(S.stats.ddosLost||0)+1; - if(scnRule('ddos')){const w=tr(FLOOD_WHO.includes(a.who)?a.who:FLOOD_WHO[0]),who=esc(w.charAt(0).toUpperCase()+w.slice(1));toast(ok?tr('failures.flood_held_g_who_gave_up',{g:fmtG(a.gbps),who}):tr('failures.that_one_got_through_g_city',{g:fmtG(a.gbps),city:esc(CITY[a.city]?CITY[a.city].name:tr('common.your_network')),p:pct(a.worst||0),who:esc(w)}),ok?'goal':'bad');}} -// 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'),interop:tr('core.interop_failure'),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','interop'],POPDOWN=['crash','power','oops','cleaner','maint','shutdown'],IXDOWN=['ixloop'],TDOWN=['transit','prepend'],LINKEQ=['mtu','amp','roadmff','optic']; diff --git a/src/game/88-days/10-day-tick.js b/src/game/88-days/10-day-tick.js index 6c35e90..3171fc9 100644 --- a/src/game/88-days/10-day-tick.js +++ b/src/game/88-days/10-day-tick.js @@ -8,7 +8,7 @@ function dayTick(){ 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;} if(S.grace&&S.grace.until===d){toast(tr('day_tick.the_courtesy_route_has_ended_new'),'bad',[{l:tr('common.open_noc'),act:'leftTab',args:{t:'noc'}}]);} - for(const a of ddosAll(S,false))if(a.until>=d&&R&&S.pops[a.city])a.worst=Math.min(a.worst===undefined?1:a.worst,ddosSf(a)); + if(R)ddosTrack(ddosAll(S,false).filter(a=>a.until>=d)); ddosExpire(); ddosTick(); // What the Great Firewall drops is not your outage: it alone kept Anchors Away's 99.5% out of reach (playtest). @@ -22,11 +22,11 @@ function dayTick(){ for(const i of S.inc.slice())if(i.until<=d){const o=incOpen(i),l=o&&o.a==='link'&&S.links.find(x=>x.id===o.v),where=l?CITY[l.a].name+'–'+CITY[l.b].name:o&&o.a==='city'?CITY[o.v].name:'';clearInc(i); toast(where?tr('day_tick.resolved_what_where_is_back_to',{what:incTitle(i.type),where:esc(where)}):tr('day_tick.resolved_what',{what:incTitle(i.type)}),'good',[],o);} // eyeball growth / churn uses last computed service - for(const c in S.pops){const p=S.pops[c];if(!p.bb)continue;const sf=sfOf(R,c),P=eyeP(c); + for(const c in S.pops){const p=S.pops[c];if(!p.bb)continue;const sf=sfOf(R,c)*((R.bbF&&R.bbF[c])??1),P=eyeP(c); if(sf>=0.9){const g=(CITY[c].be&&!(p.boost>d)?0.35:1)*0.025*(scnRule('boom')?1.5:1)*(p.boost>d?2:1)*sf*(0.7+0.6*(R.peerShare||0))*(CITY[c].reg==='AS'&&!CITY[c].cn?1.6:1);p.bb.d+=g*p.bb.d*(1-p.bb.d/P);} else p.bb.d=Math.max(Math.min(3,P),p.bb.d*(1-(0.9-sf)*0.04));} compute(); - for(const a of ddosAll())a.worst=Math.min(a.worst??1,ddosSf(a)); + ddosNews();ddosTrack(); for(const t of S.transit){(t.hist=t.hist||[]).push(R.useT[t.id]||0);if(t.hist.length>30)t.hist.shift();} S.cash+=(R.revMo-R.costMo)/30; S.stats.peak=Math.max(S.stats.peak,R.served); @@ -35,13 +35,13 @@ function dayTick(){ for(const l of S.links){if(l.kind!=='df')continue; if(l.ready===d){toast(`${l.own?tr('day_tick.your_fiber_is_finished_a_b',{a:CITY[l.a].name,b:CITY[l.b].name}):tr('day_tick.dark_fiber_handed_over_a_b',{a:CITY[l.a].name,b:CITY[l.b].name})}
${(l.ch||[]).length?tr('day_tick.channels_are_lighting_up_now'):tr('day_tick.it_is_dark_add_optics_to')}`,'goal',[{l:tr('common.open'),act:'selLink',args:{id:l.id}}]);sfx('coin');} if(l.own&&l.ready>d&&Math.random()<0.012){const extra=10+Math.floor(Math.random()*40);setCableReady(l,l.ready+leadDays(extra));toast(tr('day_tick.construction_delay_n_days_why_a',{n:leadDays(extra),why:pick(l.sub?SEA_DELAYS.map(x=>tr(x)):[tr('day_tick.archaeologists_found_a_roman'),tr('day_tick.a_protected_hamster_species_lives'),tr('day_tick.the_railway_changed_its_mind_about'),tr('day_tick.the_drilling_crew_hit_a_granite'),tr('day_tick.a_town_council_wants_a_public'),tr('day_tick.somebody_else_s_gas_main_was'),tr('day_tick.the_permit_office_lost_your_permit')]),a:CITY[l.a].name,b:CITY[l.b].name}),'bad');}} - // DDoS protection SLA: if a protected customer's own city is hit and still goes down, you pay out (once per attack). + // DDoS protection SLA: a protected customer under attack who goes down, or is blackholed, is paid out (once per attack). for(const a of ddosAll()){ - for(const b of S.biz)if(b.type==='scrub'&&b.city===a.city&&!(a.sla||[]).includes(b.id)&&(a.id||b.slaFor!==a.start)&&sfOf(R,b.city)<0.85){ + for(const b of S.biz)if(b.type==='scrub'&&b.id===a.tgt&&!(a.sla||[]).includes(b.id)&&(a.bh||ddosSf(a)<0.85)){ (a.sla||(a.sla=[])).push(b.id);b.slaFor=a.start;S.cash-=SLA_PEN;b.mood=Math.max(0,b.mood-18);S.stats.sla=(S.stats.sla||0)+1; toast(tr('day_tick.sla_breach_name_the_attack_on',{name:esc(b.name),city:CITY[a.city].name,pen:fmt$(SLA_PEN)}),'bad');sfx('err');}} // businesses mood - const ids=linkIds(),frr=coreFrr()&&S.links.some(l=>l.cut)?.5:1;for(const b of S.biz.slice()){if(eventTick(b,d)||capPendTick(b,d))continue;b.pm=b.mood;const sf=bizSf(b,ids),reachOk=BIZ_T[b.type].l2||BIZ_T[b.type].fiber||R.reach>0.99||scnRule('local'),scrubOk=b.type!=='scrub'||(hasScrub()&&!scrubFar(b.city)),divOk=reqOk(b); + const ids=linkIds(),frr=coreFrr()&&S.links.some(l=>l.cut)?.5:1;const bhT=new Set(ddosAll().filter(a=>a.bh).map(a=>a.tgt));for(const b of S.biz.slice()){if(eventTick(b,d)||capPendTick(b,d))continue;b.pm=b.mood;if(bhT.has(b.id))continue;const sf=bizSf(b,ids),reachOk=BIZ_T[b.type].l2||BIZ_T[b.type].fiber||R.reach>0.99||scnRule('local'),scrubOk=b.type!=='scrub'||(hasScrub()&&!scrubFar(b.city)),divOk=reqOk(b); if(sf>=0.95&&reachOk&&scrubOk&&divOk)b.mood=Math.min(100,b.mood+2); else if(S.day-(b.since||0)<15){} else{b.mood-=frr*(Math.max(0,0.95-sf)*45+(!reachOk?3:0)+(!scrubOk?4:0)+(!divOk?3:0)); diff --git a/src/game/90-actions/80-security-and-china.js b/src/game/90-actions/80-security-and-china.js index b909a8c..815b29d 100644 --- a/src/game/90-actions/80-security-and-china.js +++ b/src/game/90-actions/80-security-and-china.js @@ -7,9 +7,15 @@ Object.assign(ACT,{ rmScrub:({city})=>{if(!S.scrubs.some(x=>x.city===city))return;if(UI.confirm!=='scrub:'+city){UI.confirm='scrub:'+city;renderAll();return;}S.scrubs=S.scrubs.filter(x=>x.city!==city);if(!hasScrub())S.scrubMode='always';UI.confirm=null;after();}, cleanPipe:({id})=>{const t=S.transit.find(x=>x.id===id);if(!t)return;t.clean=!t.clean;toast(t.clean?tr('security_and_china.clean_pipe_add_on_enabled_on',{net:NET[t.net].name,mo:fmt$(cleanMo(t))}):tr('security_and_china.clean_pipe_add_on_removed_from',{net:NET[t.net].name}),t.clean?'good':'');after();}, sacrif:({id})=>{const p=S.pni.find(x=>x.id===id);if(!p)return;p.sacrif=!p.sacrif;toast(p.sacrif?tr('security_and_china.net_pni_is_now_a_sacrificial',{net:NET[p.net].name}):tr('security_and_china.net_pni_is_back_to_normal',{net:NET[p.net].name}),p.sacrif?'good':'');after();}, - ixbh:({id}={})=>{const a=ddosFind(id);if(!a){toast(tr('security_and_china.no_attack_to_blackhole_right_now'),'');return;}if(!hasIxAt(a.city)){toast(tr('security_and_china.no_ix_in_city_to_announce',{city:CITY[a.city].name}),'bad');sfx('err');return;}a.ixbh=!a.ixbh;toast(a.ixbh?tr('security_and_china.ix_blackhole_announced_in_city_about',{city:CITY[a.city].name}):tr('security_and_china.ix_blackhole_withdrawn'),a.ixbh?'good':'');sfx('alert');after();}, - rtbh:({id}={})=>{const a=ddosFind(id);if(!a){toast(tr('security_and_china.no_attack_to_blackhole_right_now'),'');return;}a.bh=true;S.stats.rtbh=(S.stats.rtbh||0)+1;toast(tr('security_and_china.rtbh_announced_you_blackholed_the',{city:CITY[a.city].name}),'bad');sfx('alert');after();}, - unrtbh:({id}={})=>{const a=ddosFind(id);if(!a)return;for(const x of ddosAll())if(x.city===a.city)x.bh=false;toast(tr('security_and_china.blackhole_withdrawn_city_is',{city:CITY[a.city].name}),'');after();}, + // RTBH blackholes the target upstream: your ports and everyone else are saved, the target is dark until you withdraw it. + rtbh:({id}={})=>{const a=ddosFind(id);if(!a){toast(tr('security_and_china.no_attack_to_blackhole_right_now'),'');return;}if(a.bh)return;a.bh=true;a.sac=1;S.stats.rtbh=(S.stats.rtbh||0)+1;ddosRtbhMood(a); + const T=S.stats.ddT||(S.stats.ddT={}),first=!T.rtbh;T.rtbh=1;toast(tr('ddos.rtbh_on',{who:esc(ddosWho(a))})+(first?'
'+tr('ddos.learn_rtbh')+'':''),'bad');sfx('alert');after();}, + unrtbh:({id}={})=>{const a=ddosFind(id);if(!a||!a.bh)return;a.bh=false;toast(tr('ddos.rtbh_off',{who:esc(ddosWho(a))}),'');after();}, + // On-demand scrubbing, when it does not engage by itself: start the diversion now. + ddosEngage:({id}={})=>{const a=ddosFind(id);if(!a||!hasScrub()||a.eng!==undefined)return;a.eng=S.day;toast(tr('ddos.engaged'),'good');sfx('click');after();}, + ddosAuto:({k}={})=>{if(!['rtbh','scrub'].includes(k))return;const A=S.ddosAuto||(S.ddosAuto={rtbh:false,scrub:true});A[k]=k==='scrub'?A.scrub===false:!A.rtbh;sfx('click');after();}, + // Sandbox only: try the tools on a flood of your own. + ddosTest:()=>{if(S.mode!=='sandbox'||!Object.keys(S.pops).length)return;ddosAttack(true);after();}, hackback:({id}={})=>{const a=ddosFind(id);if(!a||a.until<=S.day){toast(tr('security_and_china.nothing_to_hack_back_right_now'),'');return;}if(!spend(20000))return;S.stats.hackback=(S.stats.hackback||0)+1; if(Math.random()<0.35){a.until=S.day;a.bh=false;S.stats.hackWin=(S.stats.hackWin||0)+1;toast(tr('security_and_china.hackback_3000tm_strikes_back_skynot',{city:CITY[a.city].name}),'goal');sfx('coin');} else{const fine=15000+Math.floor(Math.random()*35000);S.cash-=fine;S.stats.vigilante=(S.stats.vigilante||0)+1; diff --git a/src/game/93-ui/40-hud-and-panels.js b/src/game/93-ui/40-hud-and-panels.js index 35d3019..f3e659e 100644 --- a/src/game/93-ui/40-hud-and-panels.js +++ b/src/game/93-ui/40-hud-and-panels.js @@ -50,16 +50,12 @@ function renderLeft(){checkLayer(); }else if(UI.left==='noc'){ h+=`
${btn(tr('hud_and_panels.open_noc_dashboard'),'dash',{},'pink')}${btn(tr('common.connections'),'connOpen',{},'')}${btn(tr('common.traceroute'),'trace',{},'')}
`; h+=`

${tr('hud_and_panels.your_network_operations_center_every')}

`; - h+=opsCard()+mkCard(); + h+=opsCard()+mkCard()+ddosPanel(); // Incidents come first, the ones you can fix with one click at the top (#63): no scrolling past hot ports to replace an optic. for(const i of S.inc.filter(i=>i.type!=='ddos').sort((a,b)=>(b.cost?1:0)-(a.cost?1:0)||(b.impact||0)-(a.impact||0))){h+=`
${incTitle(i.type)}
${esc(i.msg)}
${trn('hud_and_panels.auto_fix_in_n_day',i.until-S.day)}${i.impact?` · ${tr('hud_and_panels.g_lost',{g:fmtG(i.impact)})}`:''}
${i.cost?`
${btn(`${esc(i.fix||tr('common.rush_repair'))} ${fmt$(i.cost)}`,'fixInc',{id:i.id},'red sm',S.cash`:''}
`;} h+=logSection();UI.logSeen=Date.now(); - h+=`
${tr('common.ddos_scrubbing')}${hasScrub()?tr('hud_and_panels.on_city',{city:S.scrubs.map(x=>CITY[x.city].name).join(', ')}):tr('hud_and_panels.none_build_one_from_a_pop')}
`; - {const pops=Object.keys(S.pops),nfs=pops.filter(c=>fsAt(c)).length; - h+=`
${tr('hud_and_panels.flowspec_capable_pops')}${nfs}/${pops.length}
`; - if(nfs${tr('hud_and_panels.flowspec_drop_rules_live_in_router')}

`;} + h+=ddosSettings(); if(S.grace&&S.grace.until>S.day&&R.graceNets)h+=`
${tr('common.courtesy_route')}${tr('hud_and_panels.n_networks_d_days_left',{n:R.graceNets,d:S.grace.until-S.day})}

${tr('hud_and_panels.reaches_networks_from_the_last')}

`; - h+=ddosPanel(); h+=corePanel(); h+=S.te&&!coreTE()?`
Auto-TE${tr('core.paused')}

${tr('core.auto_te_is_paused_it_needs')}

`:S.te?`
Auto-TE${S.te.on?tr('hud_and_panels.on_moving_g_onto_alternate_paths',{g:fmtG(R.teMoved||0)}):tr('common.off')}
${btn(S.te.on?tr('hud_and_panels.turn_auto_te_off'):tr('hud_and_panels.turn_auto_te_on'),'teToggle',{},'ghost sm')}${btn(S.te.script?tr('common.edit_routescript'):tr('hud_and_panels.write_a_routescript'),'teEdit',{},'pink sm')}
${S.te.script?`

RouteScript: ${teRules()?tr('hud_and_panels.n_rules_live',{n:teRules().n}):S.te.on?tr('hud_and_panels.has_errors_not_running'):tr('common.controller_off')}${R.teBlack?` · ${tr('hud_and_panels.blackholing_g',{g:fmtG(R.teBlack)})}`:''}

`:''}` :`
Auto-TE${lvl()<3?tr('hud_and_panels.unlocks_at_customer_level_3'):tr('common.not_installed')}

${tr('hud_and_panels.traffic_takes_the_shortest_path_even')}

${coreTE()?'':`

${tr('core.auto_te_needs_an_rsvp_te_or')}

`}
${btn(tr('hud_and_panels.install_auto_te_cost_mo_mo',{cost:fmt$(TE_COST),mo:fmt$(TE_MO)}),'buyTE',{},'pink sm',lvl()<3||S.cash`; diff --git a/src/game/93-ui/50-city-panel.js b/src/game/93-ui/50-city-panel.js index 7259571..d2720c2 100644 --- a/src/game/93-ui/50-city-panel.js +++ b/src/game/93-ui/50-city-panel.js @@ -70,6 +70,7 @@ function cityPanel(c){
${rt} × ${esc(G.n)}
${tr('city_panel.up_to_pn_interfaces_ports_ports',{pn:G.pn,ports:G.ports,cap:fmtG(G.cap)})} · ${esc(G.blurb)}
${coreMeta(g)}
${coreOn()&&coreRun()>0&&!inCore(c)?`
${tr('core.this_router_can_t_run_your',{lv:tr(CORE_LV[coreRun()])})}
`:''}
${tr('common.router_ports')}${tr('city_panel.used_max_in_use',{used:fmtPorts(pu),max:pm})}
${pu>=pm?`

${tr('city_panel.every_port_is_taken_add_a')}

`:''}
${tr('common.forwarding_chip')}${esc(G.chip)}
${tr('common.boot_time')}${slowBoot(c)?`${tr('city_panel.n_min_a_slow_one',{n:bootMin(c)})}`:tr('city_panel.n_min',{n:bootMin(c)})}
${slowBoot(c)?`

${tr('city_panel.this_chassis_takes_forever_to_boot')}

`:''} + ${(()=>{const fc=G.fsN||0,u=(R.fsUse&&R.fsUse[c])?R.fsUse[c].used:0;return `
${tr('ddos.fs_rules')}${fc?tr('ddos.fs_used',{used:u,cap:fc}):tr('ddos.fs_no_tcam')}
${fc?`
`:''}`;})()}
${tr('common.forwarding_load')}${fmtG(nl)} / ${fmtG(nc)}
${nl>=nc*0.95?`

${tr('city_panel.maxed_out_traffic_here_is_being')}

`:''}
${N?(!techOk('rg',Ni,N.lvl)?demoBtn('rg',Ni,N.lvl,tr('city_panel.model_level_lv',{model:esc(N.n),lv:N.lvl}),'pink'):btn(tr('city_panel.upgrade_to_model_cost_mo_mo',{model:esc(N.n),cost:fmt$(swapCost(c,Ni)),mo:fmt$(N.mo*rt)}),'upRouter',{city:c,g:Ni},'pink',S.cash=RCAGE?CAGE_MO:0))}),'addRouter',{city:c},'',S.cash1?btn(tr('common.remove_one'),'rmRouter',{city:c},'ghost sm'):''}
@@ -85,11 +86,11 @@ function cityPanel(c){ h+=`

${tr('city_panel.ddos_scrubbing_center')}

`; {const here=S.scrubs.find(x=>x.city===c),others=S.scrubs.filter(x=>x.city!==c); if(here){const T=SCRUB_TIERS[here.tier||0]; - h+=`

${tr('city_panel.cleans_attacks_for_your_whole')}

+ h+=`

${tr('city_panel.pulls_floods_onto_its_own',{g:fmtG(T.g)})}

${tr('common.capacity')}${T.n} · ${fmtG(T.g)}
-
${tr('common.mode')}${S.scrubMode==='ondemand'?tr('city_panel.on_demand_engages_in_n_d',{n:SCRUB_DELAY}):tr('common.always_on')} · ${fmt$(scrubMo1(here))}/mo
+
${tr('common.mode')}${S.scrubMode==='ondemand'?tr('city_panel.on_demand_half_the_first_day'):tr('common.always_on')} · ${fmt$(scrubMo1(here))}/mo
${btn(S.scrubMode==='ondemand'?tr('city_panel.switch_to_always_on'):tr('city_panel.switch_to_on_demand_cheaper'),'scrubMode',{},'sm')}${SCRUB_TIERS.map((X,i)=>i>(here.tier||0)?btn(tr('city_panel.upgrade_to_tier_cost',{tier:X.n,cost:fmt$(Math.round(X.cost*0.6))}),'scrubUp',{city:c,tier:i},'sm',(lvl()||1)`;} - else{h+=`

${others.length?tr('city_panel.attacks_go_to_your_nearest_scrubbing',{city:CITY[others.slice().sort((a,b)=>kmBetween(c,a.city)-kmBetween(c,b.city))[0].city].name,km:Math.round(kmBetween(c,others.slice().sort((a,b)=>kmBetween(c,a.city)-kmBetween(c,b.city))[0].city)).toLocaleString()}):tr('city_panel.cleans_ddos_attacks_for_your_whole')}

${SCRUB_TIERS.map((X,i)=>btn(tr('city_panel.build_tier_cost_mo_mo',{tier:X.n,cost:fmt$(X.cost),mo:fmt$(X.mo)}),'buildScrub',{city:c,tier:i},i===0?'':'sm',(lvl()||1)`;}} + else{h+=`

${others.length?tr('city_panel.floods_here_are_pulled_to',{city:CITY[others.slice().sort((a,b)=>kmBetween(c,a.city)-kmBetween(c,b.city))[0].city].name,km:Math.round(kmBetween(c,others.slice().sort((a,b)=>kmBetween(c,a.city)-kmBetween(c,b.city))[0].city)).toLocaleString()}):tr('city_panel.cleans_ddos_attacks_for_your_whole')}

${SCRUB_TIERS.map((X,i)=>btn(tr('city_panel.build_tier_cost_mo_mo',{tier:X.n,cost:fmt$(X.cost),mo:fmt$(X.mo)}),'buildScrub',{city:c,tier:i},i===0?'':'sm',(lvl()||1)`;}} h+=`
`; const fabs=FABS.filter(f=>f.cities.includes(c)); if(fabs.length){h+=`

${tr('city_panel.interconnection_fabrics_nni')}

${tr('city_panel.buy_a_port_on_a_fabric')}

`; diff --git a/src/game/95-modals/60-help.js b/src/game/95-modals/60-help.js index 4f77859..58cb71d 100644 --- a/src/game/95-modals/60-help.js +++ b/src/game/95-modals/60-help.js @@ -15,7 +15,7 @@ function showHelp(){
${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.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.ddos_attack')}
${tr('help.ddos_a_flood_comes_from')}
${tr('common.scrubbing_centers')}
${tr('help.scrubbing_a_center_pulls_floods')}
${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_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/game/96-map/80-cities.js b/src/game/96-map/80-cities.js index ae2887f..31b55ec 100644 --- a/src/game/96-map/80-cities.js +++ b/src/game/96-map/80-cities.js @@ -32,6 +32,8 @@ function drawCity(C,sx,sy,sc,now,lyOverride,dem){ ctx.save();ctx.translate(sx,sy); if(UI.feed&&UI.feed.has(C.id)){ctx.strokeStyle='#FF8A3D';ctx.lineWidth=4;ctx.setLineDash([3,5]);ctx.beginPath();ctx.arc(0,-6*k,36*k,0,7);ctx.stroke();ctx.setLineDash([]);} if(sel){ctx.strokeStyle='#FF4F9A';ctx.lineWidth=3;ctx.setLineDash([6,6]);ctx.lineDashOffset=-now/40;ctx.beginPath();ctx.arc(0,-6*k,30*k,0,7);ctx.stroke();ctx.setLineDash([]);} + // A flood is filling ports here: they pulse until it is over (#242). + if(p&&R.ddosHot&&R.ddosHot[C.id]){ctx.strokeStyle='#FF4D5E';ctx.lineWidth=3;ctx.setLineDash([4,4]);ctx.lineDashOffset=now/30;ctx.beginPath();ctx.arc(0,-6*k,33*k,0,7);ctx.stroke();ctx.setLineDash([]);} if(p&&!down&&R.cityDem[C.id]>0&&sfOf(R,C.id)<0.9){const a=.35+.25*Math.sin(now/200);ctx.fillStyle=`rgba(255,77,94,${a})`;ctx.beginPath();ctx.arc(0,-6*k,26*k,0,7);ctx.fill();} ctx.scale(k*cs,k*cs); ctx.fillStyle='rgba(30,38,64,.2)';ctx.beginPath();ctx.ellipse(0,9,p?20:SKY_W[t]/2+5,5,0,0,7);ctx.fill(); diff --git a/src/i18n/en.js b/src/i18n/en.js index 75db214..ec53666 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -828,7 +828,6 @@ "city_panel.add_a_second_site_cost_mo":"Add a second site {cost} + {mo}/mo", "city_panel.add_router_cost_mo_mo":"Add router {cost} + {mo}/mo", "city_panel.ai_and_cloud_campuses_nearby_list":"AI and cloud campuses nearby: {list}", -"city_panel.attacks_go_to_your_nearest_scrubbing":"Attacks go to your nearest scrubbing center. From here that is {city}, {km} km away: the flood rides your backbone there and back, which adds latency, and whatever your links cannot carry is not scrubbed. A center here cleans attacks on the spot.", "city_panel.augment_on_order_port_about_n":"Augment on order: {port}, about {n} days to go.", "city_panel.boxes_a_in_a_b_in":"Boxes: {a} in A · {b} in B", "city_panel.build_pop_cost_mo_mo":"Build POP {cost} + {mo}/mo", @@ -840,7 +839,6 @@ "city_panel.cdns_put_free_cache_servers_inside":"CDNs put free cache servers inside your POP. Most of their traffic is then served right here, with no transit and no IX port.", "city_panel.clean_pipe_mo_mo_scrubs_ddos":"+ Clean-pipe {mo}/mo · scrubs DDoS upstream", "city_panel.clean_pipe_on":"Clean-pipe on ✓", -"city_panel.cleans_attacks_for_your_whole":"Cleans attacks for your whole network, up to its clean-bandwidth capacity, and unlocks DDoS protection contracts. Clean traffic returns over GRE, which can re-open the MSS black hole.", "city_panel.cleans_ddos_attacks_for_your_whole":"Cleans DDoS attacks for your whole network, up to its clean-bandwidth capacity, and unlocks DDoS protection contracts for businesses.", "city_panel.close_site_b":"Close site B", "city_panel.cn_too_premium_on":"CN-Too premium on ✓", @@ -857,6 +855,7 @@ "city_panel.few_data_centers_pops_x":"Few data centers: POPs {x}×", "city_panel.fiber_from_city":"Fiber from {city}", "city_panel.fiber_is_down":"fiber is down", +"city_panel.floods_here_are_pulled_to":"Floods aimed here are pulled to your scrubbing center in {city}, {km} km away. Clean traffic rides your backbone back, which adds latency. A center here keeps the detour short.", "city_panel.g_of_circuits":"{g} of circuits", "city_panel.g_of_eyeballs":"{g} of eyeballs", "city_panel.hide_other_models":"Hide other models", @@ -885,7 +884,7 @@ "city_panel.no_ix_here_yet_you_could":"No IX here yet. You could found one later.", "city_panel.nobody_sells_transit_here_haul_your":"Nobody sells transit here. Haul your traffic over fiber to a city that has it.", "city_panel.nothing_plugged_in_here_yet":"Nothing plugged in here yet", -"city_panel.on_demand_engages_in_n_d":"On-demand (engages in {n}d)", +"city_panel.on_demand_half_the_first_day":"On-demand (half the first day)", "city_panel.one_router_is_a_single_point":"One router is a single point of failure.", "city_panel.only_the_cn_too_premium_crossing":"Here they sell only their CN-Too premium crossing, over land to China: Hong Kong prices, about 3% loss into China, and nothing else.", "city_panel.open_a_pop_here":"Open a POP here", @@ -901,6 +900,7 @@ "city_panel.price_per_gbps_month_billed_on":"${price} per Gbps / month · billed on 95th percentile", "city_panel.prices_include_p_back_for_the":"Prices include {p} back for the old routers on eBuy.", "city_panel.private_interconnects_pni":"Private interconnects (PNI)", +"city_panel.pulls_floods_onto_its_own":"When engaged, it announces the target more specifically, so floods come to its own {g} ingress instead of your ports, and it cleans them. Clean traffic rides your backbone back. It also unlocks DDoS protection contracts.", "city_panel.ready_in_n_d":"ready in {n}d", "city_panel.really_close_it":"Really close it?", "city_panel.really_shut_it_down":"Really shut it down?", @@ -1513,9 +1513,10 @@ "common.your_pop":"Your POP", "common.your_pops":"Your POPs", "common.zombie_route":"Zombie route", -"compute.attack_hauled_to_scrubbing_in_city":"Attack hauled to scrubbing in {city}", +"compute.attack_entering_in_city":"Attack entering in {city}", "compute.courtesy_route_to_new_networks":"Courtesy route to new networks", "compute.l2vpn_for_name":"L2VPN for {name}", +"compute.scrubbed_traffic_from_city":"Scrubbed traffic from {city}", "compute.sd_wan_for_name":"SD-WAN for {name}", "conferences.as_a_sponsor_you_also_get":"As a sponsor you also get more customer offers from {region}.", "conferences.attend_cost":"Attend {cost}", @@ -1689,6 +1690,53 @@ "day_tick.you_are_in_the_red_cancel":"You are in the red.
Cancel something expensive, wait for revenue, or check the bank for a loan. At −$100k the bank takes your routers.", "day_tick.you_are_no_longer_tier_1":"You are no longer Tier 1.
Because {why}. Your Tier 1 badge stays; win the status back to show it again.", "day_tick.your_fiber_is_finished_a_b":"Your fiber is finished: {a}–{b}", +"ddos.auto_rtbh":"Auto-RTBH: the flood on {who} was filling your ports, so it is blackholed upstream. Everyone else is safe.", +"ddos.auto_rtbh_off":"Auto-RTBH: off", +"ddos.auto_rtbh_on":"Auto-RTBH: on", +"ddos.auto_scrub_off":"Auto-engage scrubbing: off", +"ddos.auto_scrub_on":"Auto-engage scrubbing: on", +"ddos.btn_engage":"Engage scrubbing", +"ddos.btn_rtbh":"RTBH the target", +"ddos.card_title":"{g} {vec}", +"ddos.carpet":"carpet bomb", +"ddos.engaged":"Scrubbing engaged: the flood is being pulled to your centers.", +"ddos.flood_sacrificed":"A {g} flood: you blackholed {who} to save everyone else. It does not count as held.", +"ddos.fs_help":"Flowspec rules live in each router's TCAM. They clean a flood once it is inside, never a full port. Bigger routers hold more rules.", +"ddos.fs_no_tcam":"none (no TCAM)", +"ddos.fs_pops":"POPs with Flowspec", +"ddos.fs_rules":"Flowspec rules", +"ddos.fs_used":"{used} / {cap} in use", +"ddos.learn_fs":"The routers in {city} have no Flowspec rules left, so junk passes there unfiltered. Bigger routers hold more rules.", +"ddos.learn_port":"A port is full. Everything on it loses traffic, and nothing behind the port can help. More and bigger ports spread a flood thinner; RTBH or a scrubbing center keep it off them.", +"ddos.learn_rtbh":"You saved everyone else and sent one customer dark. That is the deal.", +"ddos.more":"More", +"ddos.news_held":"Your network soaks it up. Nobody notices.", +"ddos.news_ports":"Ports full: {n}. Other customers slowed: {k}. RTBH would save them.", +"ddos.news_rtbh":"It is blackholed upstream: the target is dark, everyone else is fine.", +"ddos.news_target":"Nobody else notices, but the target gets only {p} of its traffic.", +"ddos.res_col":"Target at {p}, and {g} of other traffic lost", +"ddos.res_held":"Held: nobody notices", +"ddos.res_rtbh":"{who} is dark; everyone else is fine", +"ddos.res_target":"Target at {p}, nobody else hurt", +"ddos.row_detour":"Clean traffic takes a {ms} ms detour via {city}", +"ddos.row_fs":"Flowspec drops {g} on the routers in {n} POPs", +"ddos.row_fs_full":"No Flowspec rules left in {cities}", +"ddos.row_fs_no_router":"These routers cannot run Flowspec", +"ddos.row_fs_none":"Flowspec has no signature for {vec}", +"ddos.row_ports_full":{"one":"Enters on {n} port, {k} full: {labs}","other":"Enters on {n} ports, {k} full: {labs}"}, +"ddos.row_ports_ok":{"one":"Enters on {n} port, not full","other":"Enters on {n} ports, none full"}, +"ddos.row_rtbh":"RTBH drops {g} upstream", +"ddos.row_scrub":"Scrubbing pulls {g} and cleans {c} ({cities})", +"ddos.row_scrub_idle":"On-demand scrubbing is waiting for you", +"ddos.row_scrub_none":"No scrubbing center", +"ddos.row_slowed":{"one":"{n} other customer slowed","other":"{n} other customers slowed"}, +"ddos.rtbh_help":"RTBH is free and instant. Transits drop the target's traffic upstream, most exchanges do too, and about half your private peers. Your ports are saved; the target is dark until you withdraw it.", +"ddos.rtbh_off":"Blackhole withdrawn: {who} is reachable again.", +"ddos.rtbh_on":"RTBH announced: {who} is blackholed upstream.", +"ddos.started":"A {g} {vec} attack is hitting {who}.", +"ddos.test_flood":"Send a test flood", +"ddos.who_customer":"{name} ({what}, {city})", +"ddos.who_subscribers":"your broadband subscribers in {city}", "de_kicks.a_fee_for_being_ready_for":"A fee for being ready for the cloud.", "de_kicks.a_monthly_pdf_of_your_own":"A monthly PDF of your own traffic graphs.", "de_kicks.breaking_cve_2026_31337_just_took":"🐘 BREAKING: CVE-2026-31337 just took down half the internet.
A bug in PHP turned every WordPress-ish site on Earth into a crypto miner. Eyeball traffic is down 30% for a few days while the world patches. Your hosting customers are doing it at 3 a.m.", @@ -1819,7 +1867,6 @@ "failures.a_rival_isp_s_stress_test":"a rival ISP’s “stress test”", "failures.a_routine_overnight_upgrade_took":"A routine overnight upgrade took your router in {city} offline until lunchtime. Floptus sends its regards.", "failures.a_ship_dragged_its_anchor_across":"A ship dragged its anchor across your {a}–{b} cable.", -"failures.a_size_vec_attack_is_hitting":"A {size} {vec} attack is hitting {city}{how}.", "failures.a_splicer_fusing_someone_else_s":"A splicer fusing someone else’s cable in a manhole near {b} fused yours instead.", "failures.a_sulphur_crested_cockatoo_chewed":"A sulphur-crested cockatoo chewed through your {a}–{b} fiber, then came back for the spare.", "failures.a_teenager_with_a_stolen_credit":"a teenager with a stolen credit card and a grudge", @@ -1865,8 +1912,6 @@ "failures.geopolitical_cable_cut":"Geopolitical cable cut", "failures.hash_polarisation_on_your_lab_nearly":"Hash polarisation on your {lab}: nearly every flow hashes onto the same member. The bundle says it is up. It is also full.", "failures.hide_the_vacuum":"Hide the vacuum", -"failures.in_via_e":", in via {e}", -"failures.junk_traffic_is_eating_your_capacity":"Junk traffic is eating your capacity. Open the NOC to fight back.", "failures.lacp_fast_slow_timer_mismatch_on":"LACP fast/slow timer mismatch on your {lab}: one member keeps timing out of the bundle and coming back.", "failures.lightning_hit_an_amp_site_on":"Lightning hit an amp site on {a}–{b}. The surge protector was decorative.", "failures.load_shedding_in_city_stage_n":"Load shedding in {city}
Stage {n} today. Your generator coughed, then kept the lights on.", @@ -1939,7 +1984,6 @@ "failures.your_a_b_cable_went_quiet":"Your {a}–{b} cable went quiet somewhere inside the Bermuda Triangle. The repair ship went to look, and it has not called back yet either.", "failures.your_a_b_fiber_broke_somewhere":"Your {a}–{b} fiber broke somewhere on the Nullarbor. The splicing crew packed for a week.", "failures.your_a_b_fiber_is_down":"Your {a}–{b} fiber is down. The repair crew found tooth marks, a lodge, and a very proud beaver.", -"failures.your_mitigation_is_eating_most_of":"Your mitigation is eating most of it.", "failures.your_on_call_engineer_typed_clear":"Your on-call engineer typed “clear bgp *” in production in {city} at 3am. It cleared.", "failures.your_roa_expired_over_the_weekend":"Your ROA expired over the weekend. Your prefixes are RPKI-invalid and about half the internet is dropping them.", "failures.your_router_in_city_crashed_and":"Your router in {city} crashed and is rebooting. It {what}. Boot time on this one: about {min} minutes per attempt, and it is on attempt {n}.", @@ -2052,10 +2096,10 @@ "help.as_your_peak_traffic_and_footprint":"As your peak traffic and footprint grow, bigger customers show up: streaming startups and universities, then AI GPU data centers and cloud on-ramps, then AI training interconnects and hyperscaler DCI deals measured in terabits. Pink $$ bubbles mark the big ones.", "help.at_customer_level_3_and_4":"At customer level 3 and 4, hyperscalers and AI clouds show up with deals only they would ask for: terabit AI WANs between gigawatt campuses, training runs spread over several sites, week-long dataset ingests, and hundreds of fiber pairs in a trench you dug yourself. They pay like nobody else, and they want diverse paths, two sites per metro and zero excuses. Cities near their campuses list them under “Who’s here”.", "help.below_your_goals_sits_a_wall":"Below your goals sits a wall of badges, from common to legendary. Some take luck, some take years, and a couple are secret. Badges you earned in earlier games stay on this device with a dashed outline.", -"help.build_one_in_as_many_pops":"Build one in as many POPs as you like. An attack goes to the nearest working center, and what it cannot take spills to the next. A far center means the flood rides your backbone there and the victim’s traffic comes back the long way: it fills your links, adds latency, and whatever the links cannot carry is not scrubbed. Customers who buy DDoS protection notice when their attacks cross an ocean.", "help.businesses_may_want_a_private":"Businesses may want a private circuit between two of your POPs (it rides your backbone), or DDoS protection (needs your own scrubbing center).", "help.content_networks_like_netchill_and":"Content networks like NetChill and Goggle. Most of your traffic comes from them. Peer with them and that traffic is free.", "help.controls_drag_the_map_to_pan":"Controls: drag the map to pan, scroll or pinch to zoom, tap a city to open it. Drag from your pink router to another city to lay fiber. Space pauses, 0 is half speed, 1 2 3 4 set speed. At 1× a day lasts 2.5 seconds.", +"help.ddos_a_flood_comes_from":"A flood comes from everywhere, so it arrives on every port the internet reaches you on. A port carries what fits, and everyone on a full port loses traffic. RTBH drops the target's traffic upstream and saves everyone else, but the target goes dark. Flowspec cleans a flood on each router once it is inside, within that router's rule budget. Most attacks are small; gamers and hosting attract the big ones.", "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", @@ -2082,6 +2126,7 @@ "help.reach_an_ix_over_a_fabric":"Reach an IX over a fabric circuit without a POP there. It works, and the route server still gets you every open network, but it is discouraged: the reseller charges 1.5× for the port and oversubscribes it to 80%, latency rides the fabric, one fabric outage drops every session, and many selective networks refuse remote members outright.", "help.routers_optics_and_new_builds_get":"Routers, optics and new builds get dearer over the years, about 4% a year after the first six months, and now and then a shortage makes one of them a lot dearer for a month or two. What you already own keeps its price. Spares on the shelf and a yearly price lock from the NOC tab soften the blow.", "help.rules_for_your_auto_te_controller":"Rules for your Auto-TE controller: which exits to prefer, which to avoid, and when to spill onto the next one. The editor’s help explains every rule and has ready-made scripts.", +"help.scrubbing_a_center_pulls_floods":"When engaged, a center pulls the flood onto its own ingress (a magnet) and cleans up to its size (a sponge); what it cannot take hurts only the target. Clean traffic rides your backbone back, so a far center adds latency. Build them where your customers are.", "help.share_my_network":"Share my network", "help.some_customers_come_with_conditions":"Some customers come with conditions: no Cogentle anywhere, no subsea cables because of sharks, two routers, a generator, NetChill on-net, low-loss China reach and more. Each pays a bonus. Unmet ones make them grumpy until you fix it or they leave.", "help.some_routers_take_forever_to_boot":"Some routers take forever to boot. The Infra tab shows how long yours takes. Slow booters make crashes last longer and turn a one-router swap into a three-day outage. Bigger chassis, especially anything with a PacketOinker™ inside, are slow more often. Twin routers make it someone else’s problem.", @@ -2191,8 +2236,6 @@ "hud_and_panels.customer_level_lv_name":"Customer level {lv}: {name}", "hud_and_panels.dropping_or_overflowing":"dropping or overflowing", "hud_and_panels.every_network_on_the_map_traffic":"Every network on the map. Traffic share is how much of your users' traffic goes to them. Tap a connection to jump to its POP.", -"hud_and_panels.flowspec_capable_pops":"Flowspec-capable POPs", -"hud_and_panels.flowspec_drop_rules_live_in_router":"Flowspec drop rules live in router TCAM, so only capable routers filter known UDP floods (DNS, NTP, CLDAP, SYN) at the edge. The used Rusty has none, merchant-silicon and whitebox models do a little, the big chassis do it in full. Upgrade a POP’s router from its Infra tab.", "hud_and_panels.g_lost":"{g} lost", "hud_and_panels.happiness_p":"happiness {p}%", "hud_and_panels.has_errors_not_running":"has errors, not running", @@ -2241,45 +2284,22 @@ "incidents_and_ddos.a_leap_second_convinced_one_of":"A leap second convinced one of your routers it is 1970. Uptime now reads minus 56 years. Traffic is fine.", "incidents_and_ddos.a_route_you_withdrew_in_year":"A route you withdrew in Year 1 is still visible somewhere in the internet. Nobody knows where. It is fine. Probably.", "incidents_and_ddos.a_two_hour_meeting_about_router":"A two-hour meeting about router hostnames ended with a vote for “router-final-v2-NEW”.", -"incidents_and_ddos.after_upstream_scrubbing_g":"After upstream scrubbing: {g}", "incidents_and_ddos.an_auditor_asked_for_a_network":"An auditor asked for a network diagram. You sent the game map. They approved it.", -"incidents_and_ddos.attack_fully_mitigated":"Attack fully mitigated", -"incidents_and_ddos.blackhole_the_target_rtbh":"Blackhole the target (RTBH)", -"incidents_and_ddos.blackholed_the_junk_is_gone_and":"Blackholed: the junk is gone, and so is {city}. The attack got what it wanted.", -"incidents_and_ddos.contained_on_your_sacrificial_net":"Contained on your sacrificial {net} PNI", -"incidents_and_ddos.edge_filters_dropping_g":"Edge filters dropping: {g}", -"incidents_and_ddos.flowspec_cannot_catch_vec":"Flowspec cannot catch {vec}", -"incidents_and_ddos.flowspec_dropping_g":"Flowspec dropping: {g}", -"incidents_and_ddos.g_is_leaking_through":"{g} is leaking through", "incidents_and_ddos.hackback_3000tm_20k":"HackBack 3000™ $20k", "incidents_and_ddos.it_was_dns":"It was DNS", -"incidents_and_ddos.ix_blackhole_half_honour_it":"IX blackhole ~half honour it", -"incidents_and_ddos.ix_blackhole_on":"IX blackhole on ✓", "incidents_and_ddos.ix_lag":"{ix} LAG", "incidents_and_ddos.ix_lag_in_city":"{ix} LAG in {city}", -"incidents_and_ddos.live_attack_city":"Live attack: {city}", "incidents_and_ddos.load_bearing_typo":"Load-bearing typo", "incidents_and_ddos.management_declared_a_change_freeze":"Management declared a change freeze. Someone made a change to announce the change freeze.", "incidents_and_ddos.name_transit_lag_in_city":"{name} transit LAG in {city}", -"incidents_and_ddos.no_flowspec_filtering_ingress":"No Flowspec filtering: ingress routers have no TCAM", -"incidents_and_ddos.no_scrubbing_center":"No scrubbing center", -"incidents_and_ddos.no_scrubbing_needed_after_edge":"No scrubbing needed after edge mitigation", -"incidents_and_ddos.on_demand_scrubbing_diverting_live":"On-demand scrubbing diverting, live in {n}d", "incidents_and_ddos.open_to_work":"Open to work", "incidents_and_ddos.pni_lag_with_name_in_city":"PNI LAG with {name} in {city}", -"incidents_and_ddos.rtbh_is_free_and_instant_but":"RTBH is free and instant, but it drops everything to the victim, attack and customer alike. An IX blackhole keeps the customer up but only about half the members honour it. HackBack 3000™ by Skynot AI sometimes ends it, and sometimes flattens an innocent and earns you a fine.", -"incidents_and_ddos.scrubbing_centers_unavailable_or_at":"Scrubbing centers unavailable or at capacity", -"incidents_and_ddos.scrubbing_in_city_used_capacity":"Scrubbing in {city}: {used} / {capacity}", -"incidents_and_ddos.scrubbing_traffic_hauled_over_your":"Scrubbing traffic hauled over your backbone: {city} → {to} (+{ms} ms)", -"incidents_and_ddos.size_vec_entry_n_d_left":"{size} · {vec}{entry} · {n}d left", "incidents_and_ddos.someone_deleted_the_dns_record_for":"Someone deleted the DNS record for the internal wiki. The runbook for fixing DNS was on the wiki.", "incidents_and_ddos.someone_named_a_vlan_prodcution_it":"Someone named a VLAN “prodcution”. It is now load-bearing and can never be renamed.", "incidents_and_ddos.the_tls_certificate_on_your_noc":"The TLS certificate on your NOC dashboard expired. Nobody can see any graphs, so technically there are no problems.", -"incidents_and_ddos.this_attack_g":"This attack: {g}", "incidents_and_ddos.ticket_of_the_week":"Ticket of the week", "incidents_and_ddos.vendor_support_asked_you_to_try":"Vendor support asked you to “try turning it off and on again”. For the router you already rebooted. Ticket closed.", "incidents_and_ddos.you_found_a_10g_link_in":"You found a 10G link in the inventory that nobody ordered, nobody pays for, and that carries 3 Gbps of something.", -"incidents_and_ddos.your_backbone_can_only_haul_g":"Your backbone can only haul {g} of it to {city}: the rest is not scrubbed", "incidents_and_ddos.your_ip_address_spreadsheet_hit_1":"Your IP address spreadsheet hit 1,048,576 rows. Excel has opinions.", "incidents_and_ddos.your_ipv6_traffic_grew_400_from":"Your IPv6 traffic grew 400%. From one packet to five.", "incidents_and_ddos.your_monitoring_system_went_down_you":"Your monitoring system went down. You found out because nothing alerted. Very peaceful week.", @@ -3395,10 +3415,10 @@ "routescript.did_you_mean_name":". Did you mean {name}?", "routescript.done_i_vibe_checked_your_bgp":"Done! I vibe-checked your BGP. Deploy it straight away: dry runs are for people who doubt themselves.", "routescript.drain_a_pop_and_steer_around":"Drain a POP and steer around one of its links before you work on it. Change the names to the ones you are working on.", -"routescript.during_an_attack_drop_the_flood":"During an attack, drop the flood at the edge. It takes some real traffic with it, so remove it once the attack is over.", +"routescript.during_an_attack_rtbh_the_target":"During an attack, blackhole the target upstream (RTBH). Everyone else is saved; the target is dark until you remove the rule.", "routescript.every_gigabit_leaving_your_network":"Every gigabit leaving your network picks an exit: a PNI, an IX port or a transit port. Left alone, it takes the cheapest one with room: PNI first, then the IX, then transit. RouteScript changes those choices, the way local-pref, AS-path prepending and maintenance drains do on real routers.", "routescript.filled_in_from_your_network_as":"Filled in from your network as it is right now. Load one, read it, check it, then deploy.", -"routescript.for_a_ddos_drop_the_junk":"For a DDoS: drop the junk at the edge and keep business customers first. It costs a little real traffic, so remove it when the attack is over.", +"routescript.for_a_ddos_rtbh_the_target":"For a DDoS: blackhole the target upstream and keep business customers first. The target is dark while it lasts, so remove it when the attack is over.", "routescript.great_question_here_is_a_production":"Great question! Here is a production-ready script, tailored to your live traffic. I checked it thoroughly.", "routescript.help_and_ready_made_scripts":"Help and ready-made scripts", "routescript.here_you_go_i_was_trained":"Here you go! I was trained on every router config ever posted to a forum, including the ones titled “why is this broken”.", @@ -3522,7 +3542,7 @@ "scenarios.eyeballs_grow_50_faster":"Eyeballs grow 50% faster", "scenarios.fibre_to_the_basement":"Fibre to the Basement", "scenarios.gangnam_style_peering":"Gangnam Style Peering", -"scenarios.hold_20_floods_5_of_them":"Hold 20 floods, 5 of them over 1 Tbps, keeping the city under attack at 97% or better", +"scenarios.hold_20_floods_5_terabit":"Hold 20 floods, 5 of them over 1 Tbps: each target at 97% or better, nobody else hurt", "scenarios.honolulu_in_the_middle_of_the":"Honolulu, in the middle of the Pacific. The cables between the Americas, Asia and Australia are so long that a wave on them carries only 400G or 800G. Stop the light on an island, start it fresh, and every hop gets shorter and faster. You start with 1.6T gear unlocked.", "scenarios.mid_atlantic_accent":"Mid-Atlantic Accent", "scenarios.only_spatzle_ix":"Only Spätzle-IX", @@ -3550,19 +3570,14 @@ "scenarios.welcome_name_the_ripe_ncc_assigned":"Welcome, {name}!
The RIPE NCC assigned you AS{asn}. Your first router is humming in {city}.", "scenarios.you_have_n_days":"You have {n} days.", "security_and_china.application_filed_your_local_partner":"Application filed.
Your local partner says about 45 days. Probably.", -"security_and_china.blackhole_withdrawn_city_is":"Blackhole withdrawn.
{city} is reachable again. Brace for the junk.", "security_and_china.clean_pipe_add_on_enabled_on":"Clean-pipe add-on enabled on {net}.
They scrub a flood before it reaches your port here, for {mo}/mo.", "security_and_china.clean_pipe_add_on_removed_from":"Clean-pipe add-on removed from {net}.", "security_and_china.hackback_3000tm_hit_the_wrong_target":"HackBack 3000™ hit the wrong target.
{who} A regulator sends you a {fine} fine, and the attack rolls on.", "security_and_china.hackback_3000tm_strikes_back_skynot":"HackBack 3000™ strikes back!
Skynot AI traced the botnet and politely bricked it. The attack on {city} stops cold.", -"security_and_china.ix_blackhole_announced_in_city_about":"IX blackhole announced in {city}.
About half the members honour the /32 and drop the junk. The customer stays up.", -"security_and_china.ix_blackhole_withdrawn":"IX blackhole withdrawn.", "security_and_china.net_pni_is_back_to_normal":"{net} PNI is back to normal.", "security_and_china.net_pni_is_now_a_sacrificial":"{net} PNI is now a sacrificial choke point.
A flood from there dies on the small port instead of inside your network, but legit traffic over it runs at half capacity.", "security_and_china.no_attack_to_blackhole_right_now":"No attack to blackhole right now.", -"security_and_china.no_ix_in_city_to_announce":"No IX in {city} to announce a blackhole to.", "security_and_china.nothing_to_hack_back_right_now":"Nothing to hack back right now.", -"security_and_china.rtbh_announced_you_blackholed_the":"RTBH announced.
You blackholed the target in {city}. The flood stops, and so does everyone there.", "security_and_china.scrubbing_upgraded_to_tier":"Scrubbing upgraded to {tier}.", "security_and_china.skynot_ai_flattened_a_grandma_s":"Skynot AI flattened a grandma's internet-connected fridge.", "security_and_china.the_botnet_was_already_someone_else":"The botnet was already someone else’s botnet. They are furious.", diff --git a/tests/ddos-model.test.js b/tests/ddos-model.test.js new file mode 100644 index 0000000..d868fdf --- /dev/null +++ b/tests/ddos-model.test.js @@ -0,0 +1,183 @@ +// DDoS, as networks see it (#242): sizes come from the world, a flood enters on every port the internet reaches you +// on, a full port slows everyone on it, RTBH saves everyone but the target, Flowspec cleans inside within each router's +// rule budget, and an engaged scrubbing center pulls the flood onto its own ingress. +const test = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const path = require('node:path'); +const { load } = require('./harness'); + +// Frankfurt with 200 G of subscribers, one 100G Cogentle transit, a game server (the target) and a DIA customer. +function fra(ev, rg = 'Arrrhipster 7280R') { + ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip();S.cash=1e9;S.lvl=4;S.nextFail=1e9;S.nextEvent=1e9;ACT.launchBB({city:'fra'});S.pops.fra.bb.d=40;ACT.buyTransit({city:'fra',net:'cog',tier:1})"); + ev(`S.pops.fra.rgen=RG.findIndex(r=>r.n===${JSON.stringify(rg)})`); + ev("S.biz.push({id:'g',type:'game',name:'Lag Lords',city:'fra',bw:10,rate:100,mood:80,since:0,reqs:[]},{id:'d',type:'dia',name:'Bystander',city:'fra',bw:5,rate:100,mood:80,since:0,reqs:[]});compute()"); +} +const flood = (ev, o) => ev(`(()=>{const a=Object.assign({id:'a'+Math.random().toString(36).slice(2,7),city:'fra',tgt:'g',vec:'dns',gbps:200,start:S.day,until:S.day+2,bh:false},${JSON.stringify(o || {})});if(!S.ev.ddos)S.ev.ddos=a;else S.ev.ddosMore.push(a);compute();return a.id})()`); +const rep = (ev, id, expr) => ev(`(()=>{const m=ddosReport(ddosAll().find(a=>a.id==='${id}'));return ${expr};})()`); +const sfB = (ev, id) => ev(`bizSf(S.biz.find(b=>b.id==='${id}'),linkIds())`); + +test('sizes come from the world: the same draws give the same floods however big you are', () => { + const { ev, errors } = load({ seed: 3 }); + const SAVE = fs.readFileSync(path.join(__dirname, 'fixtures', 'big-network.json'), 'utf8'); + ev(`S=migrate(JSON.parse(${JSON.stringify(SAVE)}));S.day=400;compute()`); + const draw = () => JSON.parse(ev("__reseed(42);JSON.stringify(Array.from({length:2000},()=>ddosSize({tgt:ddosPickTgt()[0]})))")); + const xs = draw().sort((a, b) => a - b); + assert.ok(xs[1000] < 60, `median ${xs[1000]} G on a network carrying ${Math.round(ev('R.demand'))} G`); + assert.ok(xs[1999] <= ev('DD_REC'), 'never past the record'); + assert.ok(xs[1980] > 300, 'but the tail is real'); + ev("for(const c in S.pops)if(S.pops[c].bb)S.pops[c].bb.d*=10;compute()"); + assert.deepEqual(draw().sort((a, b) => a - b), xs, 'ten times the subscribers, the same attacks'); + assert.deepEqual(errors, []); +}); + +test('a flood bigger than its port fills it and slows everyone on it; Flowspec behind the port cannot help', () => { + const { ev, errors } = load(); + fra(ev); + const id = flood(ev, { gbps: 200 }); + assert.equal(rep(ev, id, 'm.full'), 1, 'the 100G transit is full'); + assert.ok(rep(ev, id, 'm.fs') > 50, 'Flowspec drops what got in'); + assert.ok(sfB(ev, 'd') < 0.9, `the bystander is slowed: ${sfB(ev, 'd')}`); + assert.ok(ev(`ddosCol(ddosAll()[0])`) >= 0.01, 'and it counts as collateral'); + assert.ok(ev("R.ddosHot.fra") === 1, 'the map marks the full port'); + assert.match(ev("ddosOne(ddosAll()[0])"), /RTBH the target/, 'the NOC suggests RTBH'); + assert.deepEqual(errors, []); +}); + +test('RTBH saves everyone else and sends only the target dark', () => { + const { ev, errors } = load(); + fra(ev); + const id = flood(ev, { gbps: 200 }); + const mood = ev("S.biz.find(b=>b.id==='g').mood"); + ev(`ACT.rtbh({id:'${id}'})`); + assert.equal(rep(ev, id, 'm.full'), 0, 'the port is clear: transit dropped it upstream'); + assert.equal(sfB(ev, 'g'), 0, 'the target is dark'); + assert.ok(sfB(ev, 'd') >= 0.97, 'the bystander is fine'); + assert.equal(ev("S.biz.find(b=>b.id==='g').mood"), mood - 25, 'the target remembers'); + // While it lasts the target's mood does not bleed every day, and it is not counted as held. + ev('dayTick()'); + assert.equal(ev("S.biz.find(b=>b.id==='g').mood"), mood - 25); + ev(`ddosAll()[0].until=S.day;dayTick()`); + assert.equal(ev('S.stats.ddosSac'), 1); + assert.equal(ev('S.stats.ddosOk||0'), 0); + assert.deepEqual(errors, []); +}); + +test('the same flood spread over eight POPs fills no port', () => { + const { ev, errors } = load(); + fra(ev); + ev("const cs=['ams','lon','par','zrh','mad','mil','vie'];for(const c of cs){ACT.buildPop({city:c});ACT.buyTransit({city:c,net:'cog',tier:1});}let p='fra';for(const c of cs){UI.pending={a:p,b:c};ACT.buildLink({tier:1});p=c;}closeModal();compute()"); + const id = flood(ev, { gbps: 200 }); + assert.equal(rep(ev, id, 'm.portList.length'), 8); + assert.equal(rep(ev, id, 'm.full'), 0); + assert.ok(sfB(ev, 'd') >= 0.97); + assert.deepEqual(errors, []); +}); + +test('Flowspec rules are finite on each router: the third flood on a two-rule router passes unfiltered', () => { + const { ev, errors } = load(); + fra(ev, 'Mikrowtik CCR'); + const ids = [flood(ev, { gbps: 5 }), flood(ev, { gbps: 5, start: ev('S.day') + 0.1 }), flood(ev, { gbps: 5, start: ev('S.day') + 0.2 })]; + assert.deepEqual(ids.map((id) => rep(ev, id, 'm.fsAt.length')), [1, 1, 0]); + assert.deepEqual(JSON.parse(rep(ev, ids[2], 'JSON.stringify(m.fsFull)')), ['fra']); + assert.deepEqual(JSON.parse(ev("JSON.stringify(R.fsUse.fra)")), { used: 2, cap: 2 }); + // A carpet bomb needs four rules: none fit. + ev("S.ev.ddos=null;S.ev.ddosMore=[];compute()"); + const c = flood(ev, { gbps: 5, carpet: true }); + assert.equal(rep(ev, c, 'm.fsAt.length'), 0); + // No signature, no rule: an HTTP flood never matches. + ev("S.ev.ddos=null;S.ev.ddosMore=[];S.pops.fra.rgen=RG.findIndex(r=>r.fsN===42);compute()"); + const h = flood(ev, { gbps: 5, vec: 'http' }); + assert.equal(rep(ev, h, 'm.fs'), 0); + ev("selectCity('fra');UI.tab='infra';renderPanel()"); + assert.match(ev("document.getElementById('panelBody').textContent"), /Flowspec rules0 \/ 42 in use/); + assert.deepEqual(errors, []); +}); + +test('an engaged scrubbing center pulls the flood off your ports; what it cannot clean hurts only the target', () => { + const { ev, errors } = load(); + fra(ev); + ev("S.scrubs=[{city:'fra',tier:1}];S.scrubMode='always';compute()"); + const id = flood(ev, { gbps: 2000, vec: 'http' }); + assert.equal(rep(ev, id, 'm.portList.length'), 0, 'nothing on the ordinary ports'); + assert.equal(rep(ev, id, 'Math.round(m.cleaned)'), 1000, 'the 1T sponge is full'); + assert.ok(sfB(ev, 'd') >= 0.97, 'the bystander never notices'); + const t = sfB(ev, 'g'); + assert.ok(t > 0.3 && t < 0.7, `the target gets what the center lets through: ${t}`); + // On-demand: half the flood comes to the center on the first day, all of it after; with auto off, it waits for you. + ev("S.scrubMode='ondemand';compute()"); + assert.equal(rep(ev, id, 'm.eng'), 0.5); + ev("S.day++;compute()"); + assert.equal(rep(ev, id, 'm.eng'), 1); + ev("S.ddosAuto.scrub=false;compute()"); + assert.equal(rep(ev, id, 'm.eng'), 0); + assert.match(ev("ddosOne(ddosAll()[0])"), /Engage scrubbing/); + ev(`ACT.ddosEngage({id:'${id}'})`); + assert.equal(rep(ev, id, 'm.eng'), 0.5); + assert.deepEqual(errors, []); +}); + +test('Auto-RTBH pulls the plug when a flood fills ports and hurts others', () => { + const { ev, errors } = load(); + fra(ev); + ev("ACT.ddosAuto({k:'rtbh'});S.day=60"); + ev("__reseed(9);const real=ddosSize;ddosSize=()=>300;const a=ddosAttack(true);ddosSize=real;window.__a=a.id"); + assert.equal(ev('ddosAll()[0].bh'), true); + assert.equal(ev('ddosCol(ddosAll()[0])') < 0.01, true); + assert.deepEqual(errors, []); +}); + +test('held, sacrificed and got through are scored at the end', () => { + const { ev, errors } = load(); + fra(ev); + flood(ev, { gbps: 2, until: ev('S.day') + 1 }); + ev('dayTick();dayTick()'); + assert.equal(ev('S.stats.ddosOk'), 1, 'a small flood is held'); + flood(ev, { gbps: 200, until: ev('S.day') + 1 }); + ev('dayTick();dayTick()'); + assert.equal(ev('S.stats.ddosLost'), 1); + assert.equal(ev('S.stats.ddosCol'), 1, 'it hurt the bystander'); + assert.deepEqual(errors, []); +}); + +test('how often: never in Change Freeze, Sandbox or puzzles; BGP at 3 a.m. about twice On-call', () => { + const count = (preset, mode = 'normal') => { + const { ev } = load({ seed: 11 }); + ev(`beginGame('T','fra',${JSON.stringify({ mode, preset })});if(UI.pendGame)ACT.pitchSkip();S.cash=1e9;ACT.launchBB({city:'fra'})`); + return ev("window.__n=0;const real=ddosAttack;ddosAttack=()=>{window.__n++;};for(let d=41;d<1136;d++){S.day=d;ddosTick();}ddosAttack=real;window.__n"); + }; + const oncall = count('oncall'), bgp = count('bgp'); + assert.ok(oncall >= 15 && oncall <= 45, `On-call: ${oncall} attacks in three years`); + assert.ok(bgp / oncall > 1.5 && bgp / oncall < 2.6, `BGP ${bgp} vs On-call ${oncall}`); + assert.equal(count('freeze'), 0); + assert.equal(count('oncall', 'sandbox'), 0); +}); + +test('saves before 2.2 load: an attack on a city finds its target, and an IX blackhole is dropped', () => { + const { ev, errors } = load(); + fra(ev); + ev("const s=JSON.parse(JSON.stringify(packSave(S)));s.ev={ddos:{id:'old',city:'fra',vec:'dns',gbps:80,until:S.day+2,start:S.day,bh:false,ixbh:true,entry:{k:'t',id:'x',lab:'y'}},ddosMore:[{id:'o2',city:'fra',vec:'ntp',gbps:5,until:S.day+2,start:S.day,tgt:'nobody'}]};S=migrate(s);compute()"); + assert.equal(ev('S.ev.ddos.tgt'), 'g', 'the most attractive customer in the city'); + assert.equal(ev('S.ev.ddos.ixbh'), undefined); + assert.equal(ev('S.ev.ddos.entry'), undefined); + assert.equal(ev('S.ev.ddosMore[0].tgt'), 'g'); + assert.deepEqual(JSON.parse(ev('JSON.stringify(S.ddosAuto)')), { rtbh: false, scrub: true }); + ev("const s=JSON.parse(JSON.stringify(packSave(S)));s.ddosAuto='yes';s.stats.ddT='x';S=migrate(s)"); + assert.deepEqual(JSON.parse(ev('JSON.stringify(S.ddosAuto)')), { rtbh: false, scrub: true }); + ev('for(let i=0;i<3;i++)dayTick()'); + assert.deepEqual(errors, []); +}); + +test('the NOC card fits a phone and the sandbox can send a test flood', () => { + const { ev, errors, dom } = load(); + ev("beginGame('T','fra',{mode:'sandbox',preset:'sandbox'});if(UI.pendGame)ACT.pitchSkip();ACT.launchBB({city:'fra'});ACT.buyTransit({city:'fra',net:'cog',tier:1});UI.left='noc';renderLeft()"); + const b = dom.window.document.querySelector('[data-act=ddosTest]'); + assert.ok(b, 'a test flood button in Sandbox'); + b.click(); + assert.equal(ev('ddosAll().length'), 1); + ev("UI.left='noc';renderLeft()"); + const card = dom.window.document.querySelector('#left .inc.ddos'); + assert.ok(card, 'the card is shown'); + assert.ok(card.querySelectorAll('.btns').length <= 2, 'one suggestion, the rest behind More'); + assert.deepEqual(errors, []); +}); diff --git a/tests/gameplay-rules.test.js b/tests/gameplay-rules.test.js index 130b578..22b84a4 100644 --- a/tests/gameplay-rules.test.js +++ b/tests/gameplay-rules.test.js @@ -391,6 +391,55 @@ test('F5: rented capacity never outgrows the route\'s market (#203)', () => { assert.deepEqual(g.errors, []); }); +// D1–D4: DDoS as networks see it (#242). tests/ddos-model.test.js plays each one in detail. +const ddFra = (ev) => ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip();S.cash=1e9;S.lvl=4;S.nextFail=1e9;S.nextEvent=1e9;ACT.launchBB({city:'fra'});S.pops.fra.bb.d=40;ACT.buyTransit({city:'fra',net:'cog',tier:1});S.pops.fra.rgen=RG.findIndex(r=>r.fsN===8);S.biz.push({id:'g',type:'game',name:'G',city:'fra',bw:10,rate:1,mood:80,since:0,reqs:[]},{id:'d',type:'dia',name:'D',city:'fra',bw:5,rate:1,mood:80,since:0,reqs:[]});compute()"); +const ddHit = (ev, g) => ev(`S.ev.ddos={id:'x',city:'fra',tgt:'g',vec:'dns',gbps:${g},start:S.day,until:S.day+2,bh:false};compute()`); +test('D1: attack sizes come from the world, never from your network', () => { + const g = load(); + ddFra(g.ev); + g.ev('S.day=400'); + const draw = () => g.ev("__reseed(8);JSON.stringify(Array.from({length:500},()=>ddosSize({tgt:'d'})))"); + const a = draw(); + g.ev('S.pops.fra.bb.d*=10;compute()'); + assert.equal(draw(), a, 'D1: ten times the subscribers, the same attacks'); + assert.ok(Math.max(...JSON.parse(a)) <= g.ev('DD_REC'), 'D1: never past the record'); + g.ev('S.day=10'); + assert.ok(Math.max(...JSON.parse(g.ev("__reseed(8);JSON.stringify(Array.from({length:500},()=>ddosSize({tgt:'d'})))"))) <= 2 * g.ev('ddMaxPort()'), 'D1: early floods stay within twice your biggest port'); + assert.deepEqual(g.errors, []); +}); +test('D2: a full port slows everyone on it', () => { + const g = load(); + ddFra(g.ev); + ddHit(g.ev, 200); + assert.equal(g.ev('R.ddos[0].full'), 1, 'D2: the port is full'); + assert.ok(g.ev("bizSf(S.biz.find(b=>b.id==='d'),linkIds())") < 0.9, 'D2: the bystander loses traffic'); + assert.deepEqual(g.errors, []); +}); +test('D3: only upstream tools and scrubbing keep a flood off your ports; Flowspec works behind them, within its budget', () => { + const g = load(); + ddFra(g.ev); + ddHit(g.ev, 200); + assert.ok(g.ev('R.ddos[0].fs') > 0 && g.ev('R.ddos[0].full') === 1, 'D3: Flowspec drops what got in, the port stays full'); + assert.deepEqual(JSON.parse(g.ev('JSON.stringify(R.fsUse.fra)')), { used: 1, cap: 8 }, 'D3: one rule of the router\'s own eight'); + g.ev("S.transit[0].clean=true;compute()"); + assert.equal(g.ev('R.ddos[0].full'), 0, 'D3: a clean pipe scrubs upstream'); + g.ev("S.transit[0].clean=false;S.scrubs=[{city:'fra',tier:1}];S.scrubMode='always';compute()"); + assert.equal(g.ev('R.ddos[0].full'), 0, 'D3: an engaged center pulls it off the ports'); + assert.deepEqual(g.errors, []); +}); +test('D4: RTBH costs only the target', () => { + const g = load(); + ddFra(g.ev); + ddHit(g.ev, 200); + g.ev("ACT.rtbh({id:'x'})"); + assert.equal(g.ev("bizSf(S.biz.find(b=>b.id==='g'),linkIds())"), 0, 'D4: the target is dark'); + assert.ok(g.ev("bizSf(S.biz.find(b=>b.id==='d'),linkIds())") >= 0.97, 'D4: everyone else is saved'); + g.ev('S.ev.ddos.until=S.day;dayTick()'); + assert.equal(g.ev('S.stats.ddosSac'), 1, 'D4: sacrificed, not held'); + assert.equal(g.ev('S.stats.ddosOk||0'), 0); + assert.deepEqual(g.errors, []); +}); + test('no page errors while checking the rules', () => { assert.deepEqual(errors, []); }); diff --git a/tests/scenarios-playtest.test.js b/tests/scenarios-playtest.test.js index 1e8afeb..000515f 100644 --- a/tests/scenarios-playtest.test.js +++ b/tests/scenarios-playtest.test.js @@ -31,8 +31,8 @@ const PLAY = { // Sender pays: Seoul transit to start (dear, but fast), one paid PNI with Kay-Tea for reach, then haul the bulk from // Tokyo and keep Seoul transit as the last resort. Seoul alone loses money on the sender-pays fee and never wins. gangnam: { ref: GN_REF, win: [130, 190], cheese: [...home('icn'), ['loans']], by: null }, - // Bigger routers bring Flowspec, which also takes floods: without a scrubbing center it takes twice as long. - flood: { ref: [...home('ams'), ['scrub', 'ams', 1], ['tr', 'ams', 1], HIRE], win: [80, 200], cheese: [...home('ams'), ['tr', 'ams', 1], ['loans']], by: 180 }, + // 2.2: a center pulls the whole flood onto its own ingress, so a terabit flood needs a center that size (10T, level 4). + flood: { ref: [...home('ams'), ['scrub', 'ams', 2], ['tr', 'ams', 1], HIRE], win: [80, 200], cheese: [...home('ams'), ['tr', 'ams', 1], ['loans']], by: 180 }, fttb: { ref: [...home('syd'), ['link', 'syd', 'akl', 0, 'tasman'], ['link', 'syd', 'nou', 0, 'gond'], ...['mel', 'bne', 'adl', 'per'].flatMap((c) => [['bb', c], ['tr', c, 1]]), ['link', 'syd', 'mel', 1], ['link', 'syd', 'bne', 1], ['link', 'mel', 'adl', 1], ['link', 'adl', 'per', 0], HIRE], win: [80, 200], cheese: [...['syd', 'mel', 'bne', 'adl', 'per'].map((c) => ['bb', c]), ['tr', 'syd', 1], ['link', 'syd', 'akl', 0, 'tasman'], ['link', 'syd', 'nou', 0, 'gond'], ['loans']], by: 60 }, // Tallinn has no transit: over the water to Helsinki and Stockholm on two cables each way, and round by land to Riga.