diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
index 10aa563..9eb64ad 100644
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -1,5 +1,8 @@
blank_issues_enabled: false
contact_links:
+ - name: Chat with other players on Signal
+ url: https://signal.group/#CjQKIJwvEt5fYt1pvw7J2pV664CyUyGJXmAJLV8ia3nUdAD7EhA_FzdxflEzkNmcvDHdVgLQ
+ about: Questions, screenshots, ideas you're not sure about yet, or just peering-policy flame wars. Bugs and concrete feature requests still go here as issues.
- name: How the internet really works
url: https://tkjaer.github.io/how-the-internet-works/
about: Curious how the real thing works? This interactive map explains it far better than any game.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index edcae35..513d88b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ All notable changes to this project are documented here. The project follows
## [Unreleased]
+- Come chat with other players in the new Series of Tubes Signal group. It's linked from the title screen, the menu and How to play: share screenshots, report bugs and argue about peering policy.
- Series of Tubes now speaks Portuguese (Brazil). The game follows your browser's language the first time, and you can switch to Português under Settings or on the title screen.
- RouteScript speaks more BGP. `prefer transit` and `avoid transit` set which upstream goes first, like local-pref, `prepend transit PROVIDER 1-3` moves part of an upstream's traffic away, the way AS-path prepending nudges the rest of the internet, and `protect customers` routes business traffic first when links are congested, so home users take the hit instead of your SLAs. A new Optimize button drafts a script from live traffic and points out networks you could reach over an IX or a PNI instead of transit.
- Brazil now has all forty IX.brrr locations, from Manaus to Lajeado, so you can build a real national network. Fiber into the Amazon costs twice as much and its repair crews go by boat, Oi Oi, TIM-TIM Mobile and Brisanada join Brazil's networks, and a new scenario, Order and Progress, asks you to peer on 20 IX.brrr exchanges.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f80fa48..a62b32d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -13,6 +13,9 @@ lets us load your exact network. One topic per issue, please.
Ideas are best when they say what happens in real networks and how that could become
a fun mechanic.
+Not sure yet whether something is a bug or an idea worth an issue? Ask in the
+[Signal group](https://signal.group/#CjQKIJwvEt5fYt1pvw7J2pV664CyUyGJXmAJLV8ia3nUdAD7EhA_FzdxflEzkNmcvDHdVgLQ) first. Other players and the maintainer hang out there.
+
## Development
The game is one static page, `site/index.html`, with no framework and no build step
diff --git a/README.md b/README.md
index 3f627bc..712a37e 100644
--- a/README.md
+++ b/README.md
@@ -147,6 +147,12 @@ sites:
origins: ["https://seriesoftub.es", "https://www.seriesoftub.es"]
```
+## Community
+
+Come hang out in the **[Series of Tubes Signal group](https://signal.group/#CjQKIJwvEt5fYt1pvw7J2pV664CyUyGJXmAJLV8ia3nUdAD7EhA_FzdxflEzkNmcvDHdVgLQ)**. Share screenshots of your
+network, report bugs, suggest cities, and argue about peering policy with other players.
+There are fewer backhoes there than in the real thing.
+
## Contributing
Issues and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).
diff --git a/site/i18n/it.js b/site/i18n/it.js
index 1051047..7d3ec05 100644
--- a/site/i18n/it.js
+++ b/site/i18n/it.js
@@ -2490,4 +2490,8 @@
"This route goes into the Amazon: 2× the price. The fiber runs along rivers and jungle roads, and repairs go by boat.":"Questa rotta entra in Amazzonia: 2× il prezzo. La fibra corre lungo fiumi e strade nella giungla, e le riparazioni si fanno in barca.",
"IX.brrr ports":"Porte IX.brrr",
"A port on IX.brrr Manaus":"Una porta su IX.brrr Manaus",
+"Join the NOC chat":"Entra nella chat del NOC",
+"Our Signal group: swap screenshots, report bugs and argue about peering policy with other players. Fewer backhoes than the real thing.":"Il nostro gruppo Signal: scambia screenshot, segnala bug e litiga sulle politiche di peering con altri giocatori. Meno ruspe che nella realtà.",
+"Join →":"Entra →",
+"Chat on Signal":"Chat su Signal",
};
diff --git a/site/i18n/pt.js b/site/i18n/pt.js
index 7a963be..f9bebcf 100644
--- a/site/i18n/pt.js
+++ b/site/i18n/pt.js
@@ -2490,4 +2490,8 @@
"Ports on IX.brrr in São Paulo, Rio and Fortaleza.":"Portas no IX.brrr em São Paulo, Rio e Fortaleza.",
"IX.brrr ports":"Portas no IX.brrr",
"A port on IX.brrr Manaus":"Uma porta no IX.brrr Manaus",
+"Join the NOC chat":"Entre no chat do NOC",
+"Our Signal group: swap screenshots, report bugs and argue about peering policy with other players. Fewer backhoes than the real thing.":"Nosso grupo no Signal: troque capturas de tela, reporte bugs e discuta política de peering com outros jogadores. Menos retroescavadeiras que na vida real.",
+"Join →":"Entrar →",
+"Chat on Signal":"Chat no Signal",
};
diff --git a/site/index.html b/site/index.html
index d8a30ca..221bb72 100644
--- a/site/index.html
+++ b/site/index.html
@@ -2977,7 +2977,7 @@ const ACT={
${RELEASE_NOTES.length?btn(tr('What’s new in {v}',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}
${btn(tr('Settings'),'settings',{},'ghost')}
${btn(tr('Start a new network'),'resetAsk',{},'red')}
- `);},
+ ${chatHtml()}`);},
settings:()=>{UI.setOpen=true;openModal(settingsHtml());},
settingsClose:()=>{UI.setOpen=false;if(!S||!UI.started)showTitle();else closeModal();},
prefSet:({v})=>{const [k,b]=String(v).split(':');if(!own(PREF_DEF,k))return;setPref(k,b==='1');sfx('click');refreshSettings();},
@@ -3726,6 +3726,9 @@ function randomNetworkName(current){
}
const HTIW='https://tkjaer.github.io/how-the-internet-works/';
// The real thing: an interactive, zoomable guide to how packets actually travel. Go read it.
+// Where players hang out: the community Signal group.
+const SIGNAL='https://signal.group/#CjQKIJwvEt5fYt1pvw7J2pV664CyUyGJXmAJLV8ia3nUdAD7EhA_FzdxflEzkNmcvDHdVgLQ';
+const chatHtml=()=>`💬${tr('Join the NOC chat')}${tr('Our Signal group: swap screenshots, report bugs and argue about peering policy with other players. Fewer backhoes than the real thing.')}${tr('Join →')}`;
const plugHtml=(big)=>`🌍How the Internet Works${big?tr('The real thing, by Thomas Kjær Aabo: a zoomable, interactive map of how your packets actually travel, from Wi-Fi to undersea fiber, today, in 2010 and in 1995. This game makes it up as it goes. That one gets it right.'):tr('The real thing: follow a packet from Wi-Fi to undersea fiber.')}${tr('Explore →')}`;
function showTitle(){
const sv=loadSave();
@@ -3739,7 +3742,7 @@ function showTitle(){
${btn(sv?tr('Start a new network'):tr('Start building'),'start',{},'big')}${btn(tr('How to play'),'help',{},'ghost')}${btn(tr('Import a save'),'importPick',{},'ghost sm')}${btn(tr('Settings'),'settings',{},'ghost sm')}
${btn(sv?tr('Start a new network'):tr('Start building'),'start',{},'big')}${btn(tr('How to play'),'help',{},'ghost')}${btn(tr('Import a save'),'importPick',{},'ghost sm')}${btn(tr('Settings'),'settings',{},'ghost sm')}
`);
$('nmIn').addEventListener('input',e=>{UI.nm=e.target.value;});
if(sv){S=migrate(sv);compute();}
}
@@ -3785,7 +3788,7 @@ function showHelp(){
DE-KICKS
${tr('The group behind several big exchanges (Frankfurt, Madrid, Marseille, Dubai, Mumbai, New York) treats price lists as a state secret. Ports are quoted per customer and go up the bigger you look. Haggling can work, backfire or stall for a week. Prices get "harmonised" upwards once a year, add-ons appear on your invoice until you opt out, and trying to leave earns you a retention discount that ends with a fee.')}
${tr('Remote peering')}
${tr('Reach an IX over a fabric circuit without a POP there. It works, and the route server still gets you every open network, but it is discouraged: the reseller charges 1.5× for the port and oversubscribes it to 80%, latency rides the fabric, one fabric outage drops every session, and many selective networks refuse remote members outright.')}
${tr('Peering policy')}
${tr('Open peers with anyone. Selective wants to see traffic first. Restrictive (Tier 1s) only peers with giants, over PNIs. Paid means exactly that. Big selective networks also have moods: in some cities they refuse new peers for a few months, or only take PNIs, and now and then they tear down a session you already had. Try another city or a PNI, and ask again later.')}
${tr('Waves')}
${tr('Your fiber links are leased waves at a flat monthly rate. Longer and bigger costs more (10G → 6.4T), and subsea is 1.8× the price.')}
${tr('95th percentile')}
${tr('Transit bills sample your usage every day and charge the 95th percentile of the last 30 days, so short spikes are forgiven but long ones are not.')}
${tr('Routers')}
${tr('Each POP\'s router model caps its fastest port (100G, 400G, 800G, 1.6T) and how much it can forward. Bigger waves and ports need better routers at both ends. Better models unlock with your customer level. With one router, upgrades mean a day of downtime.')}
${tr('Dark fiber')}
${tr('Lease an IRU or build your own (slow, with delays), then buy a line system with amplifiers and light channels with 400ZR+, 800ZR+ or 1.6T transponders. Much cheaper than waves at scale, but the gear can fail. A spares kit speeds up repairs.')}
${tr('Subsea cables')}
${tr('Subsea waves can only follow cable systems modelled on real ones, drawn faintly on the map (tap a city to highlight its cables). Teal ones are new and cheap, purple ones pricey, dashed ones old and cut-prone. All your waves on one cable die together when it is cut. Between continents on land, you can often choose overland (2.5×, many borders) or a cable.')}
${tr('Latency')}
${tr('Every link has latency. High-frequency traders pay a fortune for a circuit within their latency budget; route them “Lowest latency”. Bulk backup customers do not care, so route them “Scenic” over your quiet links to keep busy ones free.')}
${tr('NOC dashboard')}
${tr('The chart button at the top opens traffic graphs by exit (caches, PNIs, IX, transit), money over time, per-ASN traffic with how it reaches you and what its transit costs, plus your busiest links and routers.')}
${tr('Asia')}
${tr('A weird, underserved market. Transit costs 2.5× what it does in Europe (Africa 2×, Oceania 1.8×), local incumbents mostly peer only for pay, and IXs are fragmented. But demand is enormous and users sign up 60% faster than anywhere else. Peering and caches pay off most here.')}
${tr('Russia')}
${tr('Moscow needs a mandatory government box in every POP, Western CDNs are mostly gone, Goggle video is throttled to half speed, and the sovereign internet drills now and then cut Moscow off for a day.')}
${tr('Events, chains and wholesale')}
${tr('Event networks (a final, a festival, a keynote) need a burst of capacity in one city for a few days and pay once at the end, prorated by how much of the crowd you served; below 70% you pay a penalty. SD-WAN chains connect 3–6 of your POPs hub-and-spoke, so one broken spoke upsets the whole contract. Once you run your own dark fiber, carriers want to rent spare channels as alien waves, and on fiber you built yourself, a spare pair.')}
${tr('Bank')}
${tr('Tap your cash to open the bank. Lenders make offers now and then, and much more often when you are in the red. Each loan has a monthly payment and some odd conditions; break one and you pay a penalty. Your credit rating decides which banks talk to you. The loan shark is always there. Do not be late.')}
${tr('LAGs')}
${tr('Out of port speed? Bundle up to 8 identical ports to the same transit provider, IX or PNI into a LAG. Each member costs a full port; flow hashing is never perfectly even, so a bundle carries about 95% of the sum.')}
${tr('Traffic engineering')}
${tr('Tap a link to see which networks, which entry points and which customer cities fill it. Raise a link\'s metric to steer traffic around it, or set an egress (transit, IX, PNI) to Prefer or Backup only.')}
${tr('China')}
${tr('Mainland China needs a license and a local joint venture. Many foreign services are blocked there, and traffic crossing the border loses packets unless you pay for premium routes.')}
${tr('Weird requirements')}
${tr('Some customers come with conditions: no Cogentle anywhere, no subsea cables because of sharks, two routers, a generator, NetChill on-net, low-loss China reach and more. Each pays a bonus. Unmet ones make them grumpy until you fix it or they leave.')}
${tr('Customer levels')}
${tr('As your peak traffic and footprint grow, bigger customers show up: streaming startups and universities, then AI GPU data centers and cloud on-ramps, then AI training interconnects and hyperscaler DCI deals measured in terabits. Pink $$ bubbles mark the big ones.')}
${tr('L2VPN & DDoS protection')}
${tr('Businesses may want a private circuit between two of your POPs (it rides your backbone), or DDoS protection (needs your own scrubbing center).')}
${tr('NNI fabrics')}
${tr('Megapork, PocketFabric and Consolation Connect sell a port plus virtual circuits between cities. Great for small links and remote peering at an IX where you have no POP.')}
${tr('Conferences')}
${tr('NANOG, RIPE, DENOG and friends come round every year. Register in the Deals tab for $8k. For 45 days after, selective networks with a presence in that region need only half the usual traffic before they peer with you. Sometimes you also win the raffle.')}
${tr('Modes')}
${tr('Sandbox gives you a billion dollars, every unlock and no failures, but no badges. Scenarios are hand-built challenges with a goal and a deadline, and the weekly challenge gives everyone the same world for a week. Share your result with the card in the menu.')}
${tr('Traceroute')}
${tr('Tap 🔍 Traceroute on any of your cities, or open it from the NOC tab, to see the exact path to a network or POP, hop by hop, with latency, the exit and the AS path.')}
${tr('Badges')}
${tr('Below your goals sits a wall of badges, from common to legendary. Some take luck, some take years, and a couple are secret. Badges you earned in earlier games stay on this device with a dashed outline.')}
${tr('The giants')}
${tr('At customer level 3 and 4, hyperscalers and AI clouds show up with deals only they would ask for: terabit AI WANs between gigawatt campuses, training runs spread over several sites, week-long dataset ingests, and hundreds of fiber pairs in a trench you dug yourself. They pay like nobody else, and they want diverse paths, two sites per metro and zero excuses. Cities near their campuses list them under “Who’s here”.')}
RouteScript
${tr('Once Auto-TE is installed, you can program it from the NOC tab. Rules include spill at 80%, prefer pni for goggle, avoid transit for netchill, cap transit cogentle at 20 gbps, drain paris, avoid link fra-ams and blackhole ddos. Check runs a dry run against live traffic; Deploy makes it real, mistakes included.')}
Auto-TE
${tr('Traffic follows the shortest path by distance and link metric, and reroutes by itself when links fail. When a path is merely full, the overflow is dropped, just like a real IGP. From customer level 3 you can install Auto-TE in the NOC tab: it spills overflow onto up to two alternate paths with free capacity, as long as they are no more than twice as long.')}
${tr('Metro diversity')}
${tr('A POP is one building until you add a second site in the Infra tab. Then a power cut, cleaner or A/C failure only takes out half the city, and you choose which site each transit, PNI and IX port plugs into, or pick Both to split a LAG across the two buildings. Spread them out, or both halves of your redundancy will sit in the same dark room. Watch out for metro ring cuts, which cut site B off.')}
${tr('Wave markets')}
${tr('What a wave costs depends on where it runs. Europe is cheap (lots of competing fiber), North America is average, Asia and South America are pricier, and anything into Africa is several times the price. Every route has its own going rate, and new leases get about 8% cheaper each year, so waiting can pay. The link planner tells you how a route compares.')}
${tr('Regional quirks')}
${tr('In the Gulf, Saudi POPs need a local telecom licence and data on Saudi users stays in the Kingdom; gigaprojects ask for huge demo networks; and now and then the neighbours fall out and every link between Qatar and Saudi Arabia or the UAE goes dark for months, so keep a sea route. South America hangs off Miami: transit is pricier, nothing crosses the Darién Gap by land, and fiber over the Andes costs double and breaks often. IX.brrr in Brazil is run by a nonprofit with cheap public prices, and small Brazilian provedores buy transit in bulk. Inside the UAE only the duopoly may run fiber, so no dark fiber and 3× waves. Korea runs on “sender pays”: transit into Seoul costs about four times the usual price and the three incumbents only peer over paid PNIs, billed per gigabit you send them. Taiwan’s cables meet a lot of anchors, Indian fiber meets road widening and the monsoon, and South Africa has load shedding: bring a generator.')}
${tr('Boot times')}
${tr('Some routers take forever to boot. The Infra tab shows how long yours takes. Slow booters make crashes last longer and turn a one-router swap into a three-day outage. Bigger chassis, especially anything with a PacketOinker™ inside, are slow more often. Twin routers make it someone else’s problem.')}
${tr('Failures')}
${tr('Things break all the time: fiber cuts, router crashes, power cuts, IX loops, fabric outages, route leaks, DDoS, fat fingers, cooling failures, and geopolitics: sanctions, tariffs, BGP hijacks, landing permit disputes, exam-day shutdowns and Red Sea cable cuts. Traffic reroutes automatically over other paths and upstreams. Parallel links on diverse routes, a second router and a backup generator all help. Or pay to rush repairs.')}
-
${tr('Want to know how it really works?')}
${plugHtml(true)}
${btn(UI.started?tr('Back to the map'):tr('Got it'),'helpClose',{},'big')}${RELEASE_NOTES.length?btn(tr('What’s new in {v}',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}${UI.started&&S&&!S.lost?btn(tr('Start a new network'),'resetAsk',{},'ghost sm'):''}
${UI.started&&S&&!S.lost?btn(tr('Export save'),'exportSave',{},'ghost sm'):''}${btn(tr('Import a save'),'importPick',{},'ghost sm')}${btn(tr('Settings'),'settings',{},'ghost sm')}
`);
+
${tr('Want to know how it really works?')}
${plugHtml(true)}${chatHtml()}
${btn(UI.started?tr('Back to the map'):tr('Got it'),'helpClose',{},'big')}${RELEASE_NOTES.length?btn(tr('What’s new in {v}',{v:esc(APP_VERSION)}),'whatsNewShow',{},'ghost'):''}${UI.started&&S&&!S.lost?btn(tr('Start a new network'),'resetAsk',{},'ghost sm'):''}
${UI.started&&S&&!S.lost?btn(tr('Export save'),'exportSave',{},'ghost sm'):''}${btn(tr('Import a save'),'importPick',{},'ghost sm')}${btn(tr('Settings'),'settings',{},'ghost sm')}
`);
}
function showWin(){setTimeout(()=>{const m=$('modalCard');if(m&&!m.querySelector('[data-act=share]'))m.insertAdjacentHTML('beforeend',`
${btn(tr('Share my network'),'share',{},'pink')}
${tr('You built a cartoon internet. Now see how the real one works:')}
${plugHtml(true)}`);},0);openModal(`
${tr(`You're a Tier 1!`)}
${tr('{name} (AS{asn}) is transit-free. You peer with every giant on the planet and pay nobody to reach the internet. Took you {days} days and {n} incidents.',{name:esc(S.name),asn:S.asn,days:S.day,n:S.stats.incidents})}
${btn(tr('Keep building'),'keepPlaying',{},'pink big')}`);sfx('coin');}
function showLose(){openModal(`
${tr('Bankrupt')}
${tr('The bank repossessed your routers and sold them on eBuy. {name} lasted {days} days and peaked at {peak}.',{name:esc(S.name),days:S.day,peak:fmtG(S.stats.peak)})}
${btn(tr('Try again'),'newgame',{},'pink big')}`);try{localStorage.removeItem('sot-save-v1');}catch(e){}}
diff --git a/tests/modes.test.js b/tests/modes.test.js
index a6e7743..04f1c18 100644
--- a/tests/modes.test.js
+++ b/tests/modes.test.js
@@ -387,3 +387,19 @@ test('DKNOG in Copenhagen is on the conference calendar', () => {
assert.match(ev("S.log.map(e=>e.t).join(' | ')"), /just one more drink/, 'and the evening went as DKNOG evenings go');
assert.deepEqual(errors, []);
});
+
+test('the Signal group is linked from the title screen, the menu and How to play, in every language', () => {
+ for (const lang of ['en', 'it', 'pt']) {
+ const { ev, errors } = load(lang === 'en' ? {} : { lang });
+ const links = (setup) => ev(`(()=>{${setup};return [...document.querySelectorAll('#modal a[href^="https://signal.group/#"]')].map(a=>a.target+'|'+a.rel+'|'+a.textContent.trim()).join('\\n');})()`);
+ const title = links('showTitle()');
+ assert.match(title, /^_blank\|noopener\|/, `${lang}: title footer links the group in a new tab`);
+ ev('ACT.start({})');
+ for (const [where, setup] of [['menu', 'ACT.menu()'], ['help', 'showHelp()']]) {
+ const l = links(setup);
+ assert.equal(l.split('\n').length, 1, `${lang}: one chat card in ${where}`);
+ if (lang !== 'en') assert.doesNotMatch(l, /Join the NOC chat/, `${lang}: ${where} card is translated`);
+ }
+ assert.deepEqual(errors, []);
+ }
+});