Split the game page into partials under src/, assembled into one index.html at build
site/index.html (900 KB of HTML, CSS and JS in one file) becomes src/: a shell (src/index.html), styles/ and game/, concatenated in path order by scripts/lib/page.js. The assembled page is byte-identical to the old file, so load time and in-game performance are unchanged. - scripts/build.js replaces build.sh (same env vars, same output) - npm run dev: a zero-dependency dev server that assembles on every request - tests assemble the page in memory; npm test runs every tests/*.test.js - perf-bench takes --base-ref to build a git ref's page - scripts/legacy/split-index-html.js is the splitter, kept for older branches
This commit is contained in:
parent
295e68cc46
commit
67a40942b4
113 changed files with 5584 additions and 5195 deletions
110
src/game/30-networks/10-networks.js
Normal file
110
src/game/30-networks/10-networks.js
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
/* ================= NETWORKS ================= */
|
||||
const NETS=[
|
||||
{id:'lvl',name:'Level Tree',asn:3535,type:'t1',pol:'restrictive',share:.07,price:9,col:'#7B61FF',pops:['syd','hfx','bda','hnl','bde','man','edi','svg','mil','rom','lis','ath','atn','den','phx','bos','hou','slc','ber','zrh','dub','cph','osl','tor','lax','mex','mtl','sea','sjc','dal','chi','ash','nyc','mia','sao','lon','ams','fra','par','mad','rio','bue','scl','bog','lim','pan','waw','prg','vie','bud','buh','ist','kcy','cal','van','ott','bru','bet','ham','muc','cpq','gdl','mty','qro'],ix:[],blurb:tr('Grew from a seedling into a global backbone. Leaves no route behind.')},
|
||||
{id:'ntt',name:'Not That Telecom',asn:2941,type:'t1',pol:'restrictive',share:.06,price:8,col:'#4B3FC4',pops:['hnl','gum','man','mil','atn','den','bos','hou','phx','jkt','mnl','lax','dxb','icn','sea','sjc','dal','ash','nyc','lon','ams','fra','sin','hkg','tok','syd','tpe','del','maa','blr','hyd','osa','kul','bkk','sgn','kcy','dus'],ix:[],blurb:tr('Huge in Asia. "Which telecom?" "Not that one."')},
|
||||
{id:'tly',name:'Tell-Ya Carrier',asn:1229,type:'t1',pol:'restrictive',share:.05,price:8,col:'#9D4EDD',pops:['pdl','tci','svg','edi','man','mil','rom','pmo','ath','ber','osl','cph','hel','beg','sof','chi','ash','nyc','mia','lon','ams','fra','par','sto','mad','mrs','hkg','sin','tpe','tll','waw','vie','bud','buh','prg','kyv','van','bru','ham','muc','dus'],ix:[],blurb:tr('Nordic backbone that tells you exactly where your packets went.')},
|
||||
{id:'cog',name:'Cogentle',asn:714,type:'t1',pol:'restrictive',share:.04,price:3,col:'#B35CF0',pops:['hfx','bde','man','edi','bcn','mil','rom','lis','ath','atn','den','phx','bos','hou','slc','ber','zrh','dub','hel','sof','beg','tor','lax','mex','cph','icn','sea','sjc','dal','chi','ash','nyc','mia','sao','lon','ams','fra','par','mad','mrs','sto','sin','hkg','tok','rio','bue','scl','bog','lim','osa','waw','prg','vie','bud','buh','ist','kyv','kcy','van','ott','bru','oos','bet','ham','muc','dus','syd','per'],ix:[],blurb:tr('Cheapest transit on the map. Famously gentle, except during peering spats.')},
|
||||
{id:'tat',name:'Ta-Ta Comms',asn:6543,type:'t1',pol:'restrictive',share:.04,price:9,col:'#6A4C93',pops:['tci','gum','mil','pmo','lis','nbo','cai','jkt','dxb','nyc','ash','lon','fra','mrs','lag','jnb','bom','sin','hkg','tok','del','maa','blr','hyd','cpt','fuj','auh','tpe','khi','dac','cbo','kul','bkk','jed','ruh','doh','jib','dar','mba','dkr'],ix:[],blurb:tr('Waves goodbye to latency across the Indian Ocean.')},
|
||||
{id:'drz',name:'Drizzle Electric',asn:9369,type:'t2',pol:'open',share:.04,price:4,col:'#1E90FF',auIx:['syd','mel','bne','per'],pops:['man','chc','edi','svg','bde','bcn','mil','rom','pmo','lis','ath','atn','den','phx','bos','hou','slc','ber','zrh','nbo','akl','per','jkt','mnl','dub','rek','tor','mtl','lax','mex','sof','osl','icn','sea','sjc','dal','chi','ash','nyc','mia','lon','ams','fra','par','sto','mad','hkg','sin','tok','syd','jnb','for','rio','bue','scl','lim','bog','pan','del','maa','blr','hyd','tpe','auh','cpt','mel','bne','osa','kul','bkk','sgn','khi','dac','cbo','waw','prg','vie','bud','buh','tll','ist','kyv','jed','ruh','doh','kcy','cal','van','ott','bru','oos','bet','ham','muc','ccs','lpb','alg','tun','cas','dkr','dus'],ix:'ALL',blurb:tr('Will peer with anyone, anywhere. Rumored to mail out IPv6 cakes.')},
|
||||
{id:'tng',name:'Tangerine Telecom',asn:5115,type:'t2',pol:'selective',minIx:15,minPni:40,share:.03,price:6,col:'#FF8C42',pops:['tci','bcn','cai','nbo','dxb','par','mrs','mad','lon','ams','lag','jnb','waw','buh','dkr','abj','cas','tun','dla','fih'],ix:['bcn','par','mrs','mad','lon','ams','lag','jnb','waw','dkr','abj','cas','tun','dla','fih'],blurb:tr('Juicy reach into Europe and Africa.')},
|
||||
{id:'sgt',name:'SingTell',asn:7474,type:'t2',pol:'selective',minIx:15,minPni:40,share:.03,price:7,col:'#00A6A6',pops:['jkt','mnl','per','akl','icn','sin','hkg','tok','syd','bom','tpe','maa','kul','bkk','sgn','mel','bne'],ix:['sin','hkg','tok','bom','tpe','maa','kul','bkk'],blurb:tr('Sings your packets across Asia-Pacific.')},
|
||||
{id:'vdp',name:'Voda-Phony',asn:1373,type:'t2',pol:'paid',freeLv:7,paidFee:8000,share:.03,price:6,col:'#E63946',pops:['man','edi','mil','rom','lis','ath','nbo','cai','ber','dub','dxb','lon','fra','ams','mad','mrs','jnb','bom','lag','cpt','del','maa','ist','prg','bud','buh','doh','acc','dar','fih','mpm','dus'],ix:[],blurb:tr('Ended free peering across Europe and handed it to Inter.Clink, its “interconnection partner”, who will happily sell you a direct connection. Paid peering only, over a PNI. Ring ring, it’s the invoice.')},
|
||||
{id:'ctc',name:'China Telecomet',asn:4314,type:'t2',pol:'restrictive',share:.02,price:22,premium:2.5,cn:true,col:'#0B5CAD',pops:['pek','sha','hkg','sin','tok','lon','fra','nyc','sjc'],ix:[],blurb:tr('The biggest network in China. Its CN-Too premium route skips the congested border, for a price.')},
|
||||
{id:'cun',name:'China Unicorn',asn:4837,type:'t2',pol:'restrictive',share:.015,price:16,cn:true,col:'#D7000F',pops:['pek','sha','hkg','fra','sjc','lon'],ix:[],blurb:tr('Number two in China, with a horn for every backbone.')},
|
||||
{id:'cmb',name:'China Moble',asn:9880,type:'eye',pol:'paid',freeLv:10,paidFee:12000,share:.01,cn:true,col:'#0085CA',pops:['pek','sha','hkg'],ix:[],blurb:tr('The largest mobile network on Earth. Paid peering only.')},
|
||||
{id:'cmc',name:'Comecast',asn:7227,type:'eye',pol:'selective',minIx:10,minPni:30,share:.03,col:'#2C7A7B',pops:['atn','den','bos','hou','phx','slc','ash','nyc','chi','sjc','sea','mia'],ix:['atn','den','bos','ash','nyc','chi','sjc','sea'],blurb:tr('Huge eyeball network. Come for the broadband, stay because there is no other choice.')},
|
||||
{id:'dtk',name:'Doitsche Telekomm',asn:3203,type:'eye',pol:'paid',freeLv:6,paidFee:9000,share:.03,col:'#E20074',pops:['fra','ams','lon','ham','muc','dus'],ix:[],blurb:tr('Pink eyeball giant. Peering is available... for a monthly fee.')},
|
||||
{id:'nfx',name:'NetChill',asn:2906,type:'cdn',pol:'selective',minIx:5,minPni:30,share:.15,cache:{name:'Open Couch',min:12},col:'#C8102E',auIx:['syd','mel'],pops:ALLC,ix:'ALL',blurb:tr('Streams 40% of evening traffic. Hands out free caches if you send enough eyeballs.')},
|
||||
{id:'ggl',name:'Goggle',asn:15961,type:'cdn',pol:'selective',minIx:5,minPni:30,share:.13,cache:{name:'Goggle Global Cache',min:15},col:'#3A7BEA',auIx:['syd','mel'],pops:ALLC,ix:'ALL',blurb:tr('Search, video and goggles. Mostly goggles.')},
|
||||
{id:'fbk',name:'Faceplant',asn:32943,type:'cdn',pol:'selective',minIx:5,minPni:25,share:.08,cache:{name:'Faceplant Node Thingy',min:10},col:'#3B5BDB',auIx:['syd','mel'],pops:BIGC,ix:'ALL',blurb:tr('Social media. Everyone keeps falling for it.')},
|
||||
{id:'akm',name:'Akamaybe',asn:20490,type:'cdn',pol:'open',share:.07,cache:{name:'Akamaybe Box',min:6},col:'#0099CC',auIx:['syd','mel','bne','per','adl'],pops:ALLC,ix:'ALL',blurb:tr('The original CDN. Maybe it is already in your rack.')},
|
||||
{id:'cfl',name:'Crowdflare',asn:13353,type:'cdn',pol:'open',share:.05,cache:{name:'Rackstar',min:10},col:'#F48120',auIx:['syd','mel','bne','per','adl','cbr','hba'],pops:BIGC.concat(['hnl','gum','nou','ppt','dus']),ix:'ALL',blurb:tr('Shields half the web from crowds of bots. The Rackstar Partner Program (RPP) puts a cache in your rack once you send enough traffic.')},
|
||||
{id:'amz',name:"Amazin' Web Services",asn:16590,type:'cdn',pol:'selective',minIx:8,minPni:30,share:.05,col:'#FF9900',auIx:['syd','mel','bne','per'],pops:MIDC.concat(['dus']),ix:'ALL',blurb:tr("The cloud. It's just someone else's Ashburn.")},
|
||||
{id:'msf',name:'Microsnoft',asn:8705,type:'cdn',pol:'selective',minIx:5,minPni:25,share:.04,col:'#00A4EF',auIx:['syd','mel','bne','per'],pops:MIDC.concat(['dus']),ix:'ALL',blurb:tr('Updates. So many updates.')},
|
||||
{id:'bdc',name:'BiteDance',asn:39669,type:'cdn',pol:'open',share:.03,col:'#111111',auIx:[],pops:MIDC.concat(['pek','sha','dus']),ix:'ALL',blurb:tr('Short videos, very long traffic graphs.')},
|
||||
{id:'slw',name:'Slowly',asn:54311,type:'cdn',pol:'open',share:.02,col:'#E5383B',auIx:['syd','mel','bne','per','adl'],pops:MIDC,ix:'ALL',blurb:tr('An edge cloud that is, despite the name, quite fast.')},
|
||||
];
|
||||
NETS.push(
|
||||
{id:'tcs',name:'TenCents',asn:45900,type:'cdn',pol:'selective',minIx:5,minPni:20,share:.02,cn:true,col:'#1AAD19',pops:['pek','sha','hkg','sin','tok','fra','sjc'],ix:['hkg','sin','tok','fra','sjc'],blurb:tr('Chat, games and payments. Every message costs ten cents.')},
|
||||
{id:'abc',name:'AliBubble Cloud',asn:37936,type:'cdn',pol:'selective',minIx:5,minPni:20,share:.015,cn:true,col:'#FF6A00',pops:['pek','sha','hkg','sin','tok','fra','sjc','syd'],ix:['hkg','sin','tok','fra','sjc'],blurb:tr('Shopping festivals that melt traffic graphs.')},
|
||||
{id:'byd',name:'Bye-du',asn:38635,type:'cdn',pol:'selective',minIx:5,minPni:20,share:.01,cn:true,col:'#2932E1',pops:['pek','sha','hkg'],ix:['hkg'],blurb:tr('Search, maps and a cheerful goodbye.')});
|
||||
NETS.push(
|
||||
{id:'rtc',name:'Rostelecomedy',asn:12389,type:'t2',pol:'selective',minIx:20,minPni:40,share:.01,price:6,col:'#7700FF',pops:['mos','hel','sto','fra','ams'],ix:['mos','fra','ams'],blurb:tr('The national carrier. Every punchline is pre-approved.')},
|
||||
{id:'ydx',name:'Yawndex',asn:13238,type:'cdn',pol:'open',share:.008,col:'#FC3F1D',pops:['mos','hel','fra','ams'],ix:['mos','hel','fra','ams'],blurb:tr('Search, taxis and maps. Slightly sleepy.')},
|
||||
{id:'vkl',name:'VKontakt-lens',asn:47541,type:'cdn',pol:'open',share:.006,col:'#0077FF',pops:['mos','hel'],ix:['mos','hel'],blurb:tr('Social network with perfect vision.')},
|
||||
{id:'ets',name:'Etis-a-lot',asn:5384,type:'eye',pol:'paid',freeLv:9,paidFee:8000,share:.006,col:'#719E19',pops:['dxb','mrs','lon','fra','sin','auh','fuj','doh'],ix:[],blurb:tr('Charges a lot. Paid peering only, and the name says it all.')},
|
||||
{id:'tmx',name:'Tel-Mess',asn:8151,type:'eye',pol:'paid',freeLv:8,paidFee:7000,share:.008,col:'#00A0DF',pops:['mex','dal','lax','mia','qro','mty','gdl'],ix:[],blurb:tr('Mexico’s giant. Paid peering only, and the pricing is a mess.')},
|
||||
{id:'bcd',name:'Bell Canad-eh',asn:577,type:'eye',pol:'selective',minIx:10,minPni:30,share:.01,col:'#00549A',pops:['hfx','tor','mtl','nyc','chi','ott','cal','van'],ix:['tor','mtl','ott'],blurb:tr('Polite, enormous, and sorry about the bill.')});
|
||||
NETS.push(
|
||||
{id:'tsf',name:'Telkom-selfie',asn:7713,type:'eye',pol:'selective',minIx:10,minPni:30,share:.01,col:'#E4002B',pops:['jkt','sin'],ix:['jkt','sin'],blurb:tr('Indonesia’s mobile giant. Every packet poses for a photo first.')},
|
||||
{id:'pld',name:'PLDTea Time',asn:9299,type:'eye',pol:'selective',minIx:10,minPni:30,share:.008,col:'#D62027',pops:['mnl','hkg','sin'],ix:['hkg'],blurb:tr('Philippine giant. Peering requests are reviewed over a cup of tea.')},
|
||||
{id:'spk',name:'Spark-le',asn:4771,type:'eye',pol:'open',share:.005,col:'#6A2C91',pops:['akl','syd','chc','ivc'],ix:['akl','syd','chc'],blurb:tr('New Zealand’s shiniest ISP.')},
|
||||
{id:'tsy',name:'Telstraya',asn:1221,type:'t2',pol:'selective',minIx:15,minPni:40,share:.01,price:9,col:'#0099F8',pops:['hnl','gum','suv','pom','nou','hir','syd','per','sin','hkg','lax','tpe','mel','bne','drw','adl','cbr','hba'],ix:['gum','sin','hkg'],blurb:tr('Australia’s big one. G’day, that will be nine dollars a megabit. Sorry, gigabit.')});
|
||||
NETS.push(
|
||||
{id:'liq',name:'Liquid Lunch Networks',asn:30846,type:'t2',pol:'open',up:['tat','tly'],share:.006,price:6,col:'#00A0DF',pops:['jnb','cpt','dur','hre','lun','gbe','mpm','dar','nbo','mba','kla','kgl','fih','add','jib','cai','wdh'],ix:['jnb','cpt','dur','hre','lun','gbe','mpm','dar','nbo','mba','kla','kgl','fih','add','jib','cai','wdh'],blurb:tr('Cape-to-Cairo fiber across a dozen borders. Sometimes over land, sometimes over budget.')},
|
||||
{id:'scm',name:'Sea-Comedy Networks',asn:37102,type:'t2',pol:'open',up:['ntt','tat'],share:.005,price:5,col:'#1C3F94',pops:['jnb','cpt','dur','mpm','dar','mba','nbo','kla','kgl','jib','cai','mrs','bom','lon'],ix:['jnb','cpt','dur','mpm','dar','mba','nbo','kla','jib','mrs'],blurb:tr('Owns the cable that brought East Africa online, and sells you the capacity with a straight face.')},
|
||||
{id:'agc',name:'Angle-a Cables',asn:37470,type:'t2',pol:'open',up:['tly','cog'],share:.004,price:5,col:'#E30613',pops:['lad','fih','for','sao','mia','lon'],ix:['lad','for','sao','mia'],blurb:tr('Owns the cables from Luanda to Brazil, and always finds an angle on the deal.')},
|
||||
{id:'djt',name:'Djibouti Calling',asn:30992,type:'t2',pol:'selective',up:['tat','tly'],minIx:3,minPni:15,share:.003,price:8,col:'#0D7F3F',pops:['jib','add','mrs','bom','jed'],ix:['jib'],blurb:tr('A tiny telco in a country where the world’s cables come ashore. Prices to match.')},
|
||||
{id:'mtx',name:'Empty-N',asn:29977,type:'eye',pol:'selective',up:['tat','lvl'],minIx:5,minPni:20,share:.008,col:'#FFCB05',pops:['lag','acc','abj','dla','kla','kgl','jnb','cpt','dur','lun','gbe','lad'],ix:['lag','acc','abj','dla','kla','kgl','jnb','cpt','dur','lun','gbe','lad'],blurb:tr('Africa’s mobile giant, in a yellow you can see from orbit. Never actually empty.')},
|
||||
{id:'art',name:'Air-Tell Africa',asn:36928,type:'eye',pol:'selective',up:['tat','tly'],minIx:4,minPni:18,share:.006,col:'#ED1C24',pops:['lag','kla','kgl','dar','lun','fih','nbo'],ix:['lag','kla','kgl','dar','lun','fih','nbo'],blurb:tr('Mobile money and prepaid data in fourteen countries. Tells you so with every top-up.')},
|
||||
{id:'eth',name:'Ethio-Tele-Calm',asn:24759,type:'eye',pol:'selective',up:['tat'],minIx:2,minPni:12,share:.005,col:'#8DC63F',pops:['add'],ix:['add'],blurb:tr('Ethiopia’s state telco: a hundred million customers and very calm about competition.')},
|
||||
{id:'mrc',name:'Atlas Shrugged Telecom',asn:36905,type:'eye',pol:'selective',up:['lvl','tly'],minIx:3,minPni:15,share:.004,col:'#F28C00',pops:['cas','abj','dkr'],ix:['cas'],blurb:tr('Morocco’s incumbent, with sister networks down the West African coast. Carries the weight without complaint.')},
|
||||
{id:'sfc',name:'Safari-Comic',asn:33771,type:'eye',pol:'selective',minIx:5,minPni:20,share:.006,col:'#4CB848',pops:['nbo','mba','add'],ix:['nbo','mba','add'],blurb:tr('Kenya’s mobile giant. Pays you in M-Pesos.')},
|
||||
{id:'teg',name:'Tele-Comet Egypt',asn:8452,type:'t2',pol:'selective',minIx:15,minPni:40,share:.006,price:8,col:'#5B2D8E',pops:['cai','mrs','fra','lon'],ix:['cai','mrs'],blurb:tr('Owns the land crossing every Red Sea cable needs. Collects tolls like a pharaoh.')});
|
||||
NETS.push(
|
||||
{id:'clr',name:'Clarovision',asn:28537,type:'t2',pol:'selective',minIx:10,minPni:30,share:.012,price:5,col:'#DA291C',pops:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix','mvd','asu','cor','uio','mde','gua','sjo','qro','mty','gdl','bue','scl','lim','bog','pan','mex','mia'],ix:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix','mvd','asu','cor','uio','mde','gua','sjo','qro','mty','gdl','bue','scl','lim','bog'],blurb:tr('The big regional carrier. Sees everything clearly, especially your invoice.')},
|
||||
{id:'viv',name:'Viva Vivo',asn:26959,type:'eye',pol:'selective',minIx:8,minPni:25,share:.01,col:'#660099',pops:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix'],ix:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix'],blurb:tr('Brazil’s mobile giant. Very much alive.')},
|
||||
{id:'oio',name:'Oi Oi',asn:7739,type:'eye',pol:'selective',up:['lvl','tly'],minIx:6,minPni:20,share:.008,col:'#FFD000',pops:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix'],ix:['sao','rio','for','bsb','bhz','cwb','poa','aju','bel','bvb','cac','cpv','cpq','cgr','cau','cgb','cxj','fec','fln','igu','gyn','jpa','ljd','ldb','mcp','mcz','mao','mgf','nat','pmw','pvh','rao','rec','rbr','ssa','ria','sjp','slz','the','vix'],blurb:tr('Says “oi” to every home in Brazil. The fiber is great, the balance sheet is still recovering.')},
|
||||
{id:'tmt',name:'TIM-TIM Mobile',asn:26616,type:'eye',pol:'selective',up:['skl'],minIx:6,minPni:20,share:.007,col:'#004691',pops:['sao','rio','bsb','bhz','cwb','poa','cpq','rec','ssa','for','gyn','bel','mao','vix','fln'],ix:['sao','rio','bsb','bhz','cwb','poa','cpq','rec','ssa','for','gyn','bel','mao','vix','fln'],blurb:tr('A mobile network named after the sound of a toast. Cheers to every 5G tower.')},
|
||||
{id:'bsn',name:'Brisanada',asn:28127,type:'eye',pol:'open',up:['lvl'],share:.004,col:'#F7941D',pops:['for','nat','jpa','cpv','rec','cau','mcz','aju','ssa','fec','the','slz'],ix:['for','nat','jpa','cpv','rec','cau','mcz','aju','ssa','fec','the','slz'],blurb:tr('Fiber across the sertão of the Northeast, one dirt road at a time.')},
|
||||
{id:'mvs',name:'Moviestar',asn:12957,type:'t2',pol:'selective',up:['tly','lvl'],minIx:8,minPni:25,share:.008,price:6,col:'#019DF4',pops:['mex','gua','bog','mde','uio','lim','lpb','scl','bue','cor','mvd','ccs','sao','mia'],ix:['mex','bog','lim','scl','bue','mvd','ccs','sao'],blurb:tr('A Spanish carrier starring in every Latin American market, at least until it sells the next one.')},
|
||||
{id:'llt',name:'Liberty Latte America',asn:23521,type:'t2',pol:'open',up:['lvl','cog'],share:.005,price:5,col:'#6C2C91',pops:['mia','pan','sjo','gua','bog','mde','ccs'],ix:['pan','sjo','gua','bog'],blurb:tr('Cables all around the Caribbean, served with a lot of foam.')},
|
||||
{id:'ant',name:'Antelope',asn:6058,type:'eye',pol:'selective',up:['skl','tly'],minIx:3,minPni:15,share:.004,col:'#0072BC',pops:['mvd'],ix:['mvd'],blurb:tr('Uruguay’s state telco. Fast, everywhere, and a little proud of it.')},
|
||||
{id:'tgo',name:'Tiger Mobile',asn:27743,type:'eye',pol:'selective',up:['lvl'],minIx:4,minPni:15,share:.005,col:'#00377B',pops:['asu','lpb','gua','sjo','pan','bog','mde'],ix:['asu','lpb','gua','sjo','bog'],blurb:tr('Prepaid mobile from Paraguay to Guatemala, with a logo that roars.')},
|
||||
{id:'mlv',name:'Mercado Livre-ly',asn:52850,type:'cdn',pol:'open',share:.006,col:'#FFE600',pops:['sao','rio','bue','scl','bog','lim','mia'],ix:['sao','rio','bue','scl','bog','lim'],blurb:tr('Ships parcels and packets, both overnight.')},
|
||||
{id:'jio',name:'Jio-graphy',asn:55863,type:'eye',pol:'selective',minIx:10,minPni:30,share:.02,col:'#0F3CC9',pops:['bom','del','maa','blr','hyd'],ix:['bom','del','maa','blr','hyd'],blurb:tr('Gave a billion people cheap data. Knows exactly where every one of them is.')},
|
||||
{id:'atl',name:'Airtel-tale',asn:9849,type:'t2',pol:'selective',minIx:15,minPni:40,share:.01,price:7,col:'#E40000',pops:['bom','del','maa','blr','hyd','sin','lon','dxb','dac','cbo'],ix:['bom','del','maa','blr'],blurb:tr('India’s other giant. Every outage comes with a story.')},
|
||||
{id:'cht',name:'Chunghwa Tele-calm',asn:3426,type:'t2',pol:'selective',minIx:10,minPni:30,share:.008,price:7,col:'#00A0E9',pops:['tpe','hkg','tok','lax','sin'],ix:['tpe','hkg'],blurb:tr('Taiwan’s incumbent. Stays calm while ships drag their anchors over its cables.')},
|
||||
{id:'duu',name:'Du-opoly',asn:15820,type:'eye',pol:'paid',freeLv:11,paidFee:6000,share:.004,col:'#00A9CE',pops:['dxb','auh','fuj'],ix:[],blurb:tr('The other half of the UAE duopoly. Does what Etis-a-lot does, in a different colour.')});
|
||||
NETS.push(
|
||||
{id:'kdi',name:'KD-DIY',asn:2561,type:'t2',pol:'selective',minIx:10,minPni:30,share:.008,price:6,col:'#E85D04',pops:['tok','osa','lax','sin','hkg'],ix:['tok','osa'],blurb:tr('Japanese carrier that builds everything itself. Even the cable ships.')},
|
||||
{id:'opt',name:'Floptus',asn:4804,type:'eye',pol:'selective',minIx:8,minPni:25,share:.006,col:'#00837E',pops:['syd','mel','bne','per'],ix:[],blurb:tr('Australia’s number two. Once took the whole country offline for twelve hours with a routine upgrade.')},
|
||||
{id:'tpr',name:'Toilet Paper Group',asn:7545,type:'eye',pol:'selective',minIx:8,minPni:25,share:.0035,col:'#4E2A84',pops:['syd','mel','bne','per','adl','cbr'],ix:[],blurb:tr('Stockpiled bandwidth in 2020 and still has a few rolls left.')},
|
||||
{id:'abb',name:'Aussie Boyband',asn:4764,type:'eye',pol:'open',share:.002,col:'#00B140',pops:['syd','mel','bne','per','adl','cbr','drw','hba'],ix:['syd','mel','bne','per','adl','drw'],blurb:tr('Matching outfits, perfect harmonies, and they peer with absolutely everyone.')},
|
||||
{id:'voc',name:'Hocus Pocus',asn:4826,type:'t2',pol:'open',up:['ntt','tly'],share:.002,price:7,col:'#E4002B',pops:['syd','mel','bne','per','adl','cbr','drw','hba','sin'],ix:['syd','mel','bne','per','adl','hba','drw','sin'],blurb:tr('Now you see the fibre, now you don’t.')},
|
||||
{id:'ddo',name:'Doodoo',asn:9443,type:'eye',pol:'open',up:['voc'],share:.0011,col:'#FFC20E',pops:['syd','mel','bne','per','adl'],ix:[],blurb:tr('The cheapest plan in the country. Smells like a bargain.')},
|
||||
{id:'stb',name:'Musklink',asn:14593,type:'eye',pol:'selective',minIx:3,minPni:10,share:.001,col:'#1B1F24',pops:['syd','mel','bne','per','drw'],ix:['mel','bne','per','drw'],blurb:tr('Beams the outback online from 550 km up, then lands it in a Sydney data centre like everyone else.')},
|
||||
{id:'spl',name:'Speedyloop',asn:38195,type:'t2',pol:'open',up:['tly'],share:.001,price:6,col:'#FF5F00',pops:['syd','mel','bne','per','adl','sin','hkg','cbr','drw'],ix:['mel','bne','per','adl','hba','drw','sin','hkg'],blurb:tr('Speedy by name. Owns a slice of the cable to Singapore and keeps buying smaller ISPs.')},
|
||||
{id:'blg',name:'Beshort',asn:135887,type:'eye',pol:'selective',minIx:8,minPni:25,up:['tsy'],share:.0005,col:'#FF5A00',pops:['syd','mel','bne'],ix:[],blurb:tr('Telstraya’s budget brand. Cheaper, cheerier, and it still won’t peer with you.')},
|
||||
{id:'spn',name:'Spin2wintel',asn:18390,type:'eye',pol:'open',up:['voc'],share:.00015,col:'#0072CE',pops:['syd','mel','bne','per','adl'],ix:['syd','mel','bne','per','adl'],blurb:tr('Cheap broadband with the sales pitch on a permanent loop.')},
|
||||
{id:'lpt',name:'Frogtel',asn:134090,type:'eye',pol:'open',share:.0001,col:'#7AC143',pops:['syd','mel','bne','adl','per','drw'],ix:['syd','mel','bne','per','adl'],blurb:tr('Small, fast and always leaping to the next deal. Ribbit.')},
|
||||
{id:'ext',name:'Lintel',asn:10143,type:'eye',pol:'open',up:['spl'],share:.0001,col:'#F26522',pops:['syd','mel','bne','per','adl'],ix:[],blurb:tr('Bought by Speedyloop, and still working out which name goes on the bill.')},
|
||||
{id:'tru',name:'Mostly-True Move',asn:7740,type:'eye',pol:'selective',minIx:5,minPni:20,share:.006,col:'#E4002B',pops:['bkk'],ix:['bkk'],blurb:tr('Thailand’s mobile giant. Its coverage maps are mostly true.')},
|
||||
{id:'vtl',name:'Viet-tell',asn:7525,type:'t2',pol:'selective',minIx:10,minPni:30,share:.005,price:7,col:'#EE0033',pops:['sgn','hkg','sin'],ix:['sgn'],blurb:tr('Vietnam’s giant. Will tell you which subsea cable is broken this week.')},
|
||||
{id:'ptc',name:'PTC-hell',asn:17577,type:'t2',pol:'selective',minIx:10,minPni:30,share:.004,price:8,col:'#00843D',pops:['khi','dxb'],ix:['khi'],blurb:tr('Pakistan’s incumbent. Every session comes with a firewall rule.')},
|
||||
{id:'tmy',name:'Telekom Ma-lazy-sia',asn:4877,type:'t2',pol:'selective',minIx:10,minPni:30,share:.004,price:6,col:'#1F2A6B',pops:['kul','sin'],ix:['kul'],blurb:tr('Malaysia’s incumbent. In no hurry whatsoever.')},
|
||||
{id:'ttk',name:'Türk Tele-komik',asn:9211,type:'t2',pol:'selective',minIx:10,minPni:30,share:.008,price:6,col:'#1D3F8F',pops:['ath','ist','fra','sof','lon'],ix:['ist'],blurb:tr('Bridges Europe and Asia, and occasionally your BGP table.')},
|
||||
{id:'dgi',name:'Digi-tally Cheap',asn:8798,type:'eye',pol:'open',share:.006,col:'#2A5CAA',pops:['buh','bud','mad'],ix:['buh','bud','mad'],blurb:tr('Gigabit to every flat for the price of a coffee. Peers with anyone.')},
|
||||
{id:'ups',name:'UPC-You-Later',asn:6380,type:'eye',pol:'selective',minIx:8,minPni:25,share:.006,col:'#D8001B',pops:['waw','prg','vie','bud','zrh','kyv'],ix:['waw','prg','vie','kyv'],blurb:tr('Cable broadband across Central Europe. See you later, in a support queue.')});
|
||||
NETS.push(
|
||||
{id:'tlu',name:'Tell Us',asn:852,type:'eye',pol:'selective',minIx:10,minPni:30,share:.008,up:['lvl','tly'],col:'#4B286D',pops:['van','cal','tor','mtl','ott','sea'],ix:['van','cal','tor'],blurb:tr('Western Canada’s incumbent. Tell us what you need, and we will tell you the price.')},
|
||||
{id:'rgc',name:'Bodgers Communications',asn:812,type:'eye',pol:'selective',minIx:10,minPni:30,share:.01,up:['cog','ntt'],col:'#DA291C',pops:['tor','ott','mtl','van','cal'],ix:['tor','ott','van'],blurb:tr('Canada’s cable giant, held together with duct tape. Now and then all of it goes down at once, which is at least consistent.')});
|
||||
NETS.push(
|
||||
{id:'tny',name:'Telenyet',asn:6848,type:'eye',pol:'selective',minIx:10,minPni:30,share:.008,up:['lvl'],col:'#FFC421',pops:['bru','oos','ams','fra','lon'],ix:['bru'],blurb:tr('Half of the Flanders duopoly, on coax. Keeps a tiny port at Frites-IX and hides behind its international parent, so bring a PNI.')},
|
||||
{id:'pxm',name:'Proxyminus',asn:5432,type:'eye',pol:'selective',minIx:15,minPni:40,share:.008,up:['bgs','lvl'],col:'#5C2D91',pops:['bru','oos','ams'],ix:['bru'],blurb:tr('The other half of the duopoly, on copper and fiber. Strictly domestic: the world reaches it through its wholesale arm.')},
|
||||
{id:'bgs',name:'B.I.G.S.',asn:6774,type:'t2',pol:'selective',minIx:10,minPni:30,share:.005,price:5,up:['lvl'],col:'#7B2D8E',pops:['bru','bet','ams','fra','lon','par','mrs','nyc','sin'],ix:['bru','bet','ams','fra','lon','par'],blurb:tr('Proxyminus’s wholesale arm. Present at nearly every exchange on Earth, and Belgian about it.')},
|
||||
{id:'cit',name:'Citrus Belgium',asn:47377,type:'eye',pol:'selective',minIx:10,minPni:30,share:.005,up:['lvl'],col:'#FF7900',pops:['bru','par'],ix:['bru'],blurb:tr('Tangerine’s Belgian daughter: mobile, cable and a lot of Walloon highway dark fiber. Zesty.')},
|
||||
{id:'pst',name:'Poste Restante',asn:6663,type:'eye',pol:'selective',minIx:4,minPni:15,share:.001,up:['lvl','tly'],col:'#FFCC00',pops:['bet','fra','ams'],ix:['bet','fra'],blurb:tr('Luxembourg’s post office, which also runs the phones and most of the fiber. Your packets wait at the counter until somebody collects them.')},
|
||||
{id:'cms',name:'CityMess',asn:199095,type:'eye',pol:'open',share:.002,up:['cog'],col:'#00B2A9',pops:['oos','bru'],ix:['bru'],blurb:tr('Private 5G and business fiber from Oostkamp. Its traffic arrives in sudden industrial bursts.')});
|
||||
NETS.push({id:'kys',name:'Kyiv Superstar',asn:15859,type:'eye',pol:'selective',minIx:5,minPni:20,share:.006,col:'#0055B8',pops:['kyv','waw','fra'],ix:['kyv'],blurb:tr('Ukraine’s biggest mobile network. Has kept working through things most networks never have to plan for.')});
|
||||
NETS.push({id:'stc',name:'Sticky Telecom',asn:39368,type:'t2',pol:'selective',minIx:10,minPni:30,share:.01,price:8,col:'#4F008C',pops:['ruh','jed','dxb','fra','lon','cai'],ix:['ruh'],blurb:tr('The Kingdom’s incumbent. Once you are in, you stay in.')},
|
||||
{id:'ord',name:'Ooh-redoo',asn:8871,type:'eye',pol:'paid',freeLv:11,paidFee:5000,share:.004,col:'#ED1C24',pops:['doh','dxb','jkt'],ix:[],blurb:tr('Qatar’s big operator. Paid peering only, and it sings the price list to you.')});
|
||||
NETS.push(
|
||||
{id:'tim',name:'TIM-Tam Italia',asn:3269,type:'eye',pol:'selective',minIx:8,minPni:25,share:.008,col:'#004691',pops:['mil','rom','pmo'],ix:['mil','rom'],blurb:tr('Italy’s incumbent. Sweet on the outside, very firm about peering ratios.')},
|
||||
{id:'skl',name:'Sparkly Seabone',asn:6762,type:'t1',pol:'restrictive',share:.04,price:6,col:'#5B2C83',pops:['pmo','mil','rom','ath','mrs','bcn','mad','lis','par','lon','ams','fra','zrh','vie','bud','prg','waw','buh','sof','ist','ber','sto','nyc','ash','mia','atn','dal','chi','lax','sjc','tor','mex','pan','bog','lim','scl','bue','sao','rio','for','cai','jed','dxb','bom','sin','hkg','tok'],ix:[],blurb:tr('The Tier 1 that grew up in Sicily. Its Seabone backbone owns the Mediterranean and reaches deep into the Americas, and it still calls Palermo home.')},
|
||||
{id:'fwb',name:'Fast-Webby',asn:12874,type:'eye',pol:'open',share:.004,col:'#FDC300',pops:['mil','rom'],ix:['mil','rom'],blurb:tr('Fiber to the Italian home, with a website from 2003.')},
|
||||
{id:'meo',name:'MEO-w Portugal',asn:3243,type:'eye',pol:'selective',minIx:5,minPni:20,share:.004,col:'#00A3E0',pops:['pdl','lis','mad'],ix:['lis'],blurb:tr('Portugal’s incumbent. Purrs when you send it traffic.')},
|
||||
{id:'nos',name:'NOS-y Neighbour',asn:2860,type:'eye',pol:'open',share:.003,col:'#111111',pops:['lis'],ix:['lis'],blurb:tr('Peers with anyone, and wants to know everything about your routes.')},
|
||||
{id:'cos',name:'Cosmo-Note',asn:6799,type:'eye',pol:'selective',minIx:5,minPni:20,share:.004,col:'#7DC242',pops:['ath','sof'],ix:['ath'],blurb:tr('Greece’s incumbent. Takes careful notes on every peering request.')},
|
||||
{id:'spc',name:'Spectre-um Cable',asn:20115,type:'eye',pol:'selective',minIx:12,minPni:35,share:.02,col:'#0099D8',pops:['nyc','lax','dal','chi','atn','den','phx','slc','hou','bos','sjc'],ix:['nyc','lax','dal','chi','atn','den'],blurb:tr('Cable broadband for half of America. Haunts your traceroutes.')},
|
||||
{id:'vzn',name:'Very-Zone',asn:701,type:'eye',pol:'paid',paidFee:9000,share:.015,col:'#CD040B',pops:['nyc','ash','bos','dal','lax','chi','atn','mia'],ix:[],blurb:tr('Can you hear me now? Only if you pay for the PNI.')});
|
||||
31
src/game/30-networks/20-rival-exchanges.js
Normal file
31
src/game/30-networks/20-rival-exchanges.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* Rival exchanges. Big metros rarely have just one IX: challengers undercut the incumbent and
|
||||
share many members with it, but not all. The incumbent keeps the city id, challengers are 'city~n'. */
|
||||
const XIX=[
|
||||
{id:'jnb~2',c:'jnb',name:'JINXED-IX',cheap:.7,take:0.5,core:['drz','akm','cfl','tng'],blurb:tr('The older Johannesburg exchange, run by the local ISP association. Knock on wood before every maintenance window.')},
|
||||
{id:'fra~2',c:'fra',name:'KleyWrecks',cheap:.5,take:0.5,core:['drz','akm','cfl','slw','bdc','ydx'],blurb:tr('A smaller commercial exchange down the road from DE-KICKS. Publishes its prices on one web page, which DE-KICKS considers an act of war. Ports come without a sales webinar.')},
|
||||
{id:'fra~3',c:'fra',name:'Apfelwein-IX',cheap:0.3,take:0.3,blurb:tr('A community exchange run from above a cider bar. Tiny, cheap, and every member gets a glass.')},
|
||||
{id:'ams~2',c:'ams',name:'NL-Nyx',cheap:0.6,take:0.6,blurb:tr('One fabric across the whole country. Distributed, cheap and a little smug about it.')},
|
||||
{id:'ams~3',c:'ams',name:'FRIES-IX',cheap:1,take:0.5,freeTo:1,core:['drz','akm','cfl','slw','msf'],blurb:tr('Settlement-free peering with Frysian roots. The 10G and 100G ports cost nothing. Bring an ASN and an appetite for route servers. Mayonnaise is extra.')},
|
||||
{id:'lon~2',c:'lon',name:'LO-NAPS',cheap:.6,take:0.5,core:['drz','akm','cfl','slw','bdc','msf','fbk'],blurb:tr('Member-owned and not-for-profit. Smaller than LYNX, but the AGM has biscuits.')},
|
||||
{id:'par~2',c:'par',name:'Baguette-IX',cheap:0.55,take:0.5,blurb:tr('The challenger. Fresh every morning, a bit crusty by the evening.')},
|
||||
{id:'mad~2',c:'mad',name:'Paella-NIX',cheap:.6,take:0.5,core:['drz','akm','cfl','tng','bdc','slw','msf'],blurb:tr('The long-established Madrid exchange. Neutral interconnection, local flavour and a route server that never takes a siesta.')},
|
||||
{id:'mil~2',c:'mil',name:'Aperitivo-IX',cheap:0.5,take:0.45,blurb:tr('Opens at six, comes with free snacks, closes when the last session drops.')},
|
||||
{id:'ber~2',c:'ber',name:'Club-Mate-IX',cheap:0.35,take:0.4,blurb:tr('Run by hackers on caffeine. The route server has a disco ball.')},
|
||||
{id:'waw~2',c:'waw',name:'Bigos-IX',cheap:0.45,take:0.5,blurb:tr('Warsaw has more exchanges than anyone can count. This is the second biggest, this week.')},
|
||||
{id:'waw~3',c:'waw',name:'Zapiekanka-IX',cheap:0.3,take:0.35,blurb:tr('Open-faced, cheap and available at 3 a.m.')},
|
||||
{id:'prg~2',c:'prg',name:'Knedlík-IX',cheap:0.35,take:0.4,blurb:tr('Dense, filling and very cheap.')},
|
||||
{id:'buh~2',c:'buh',name:'Mici-IX',cheap:0.35,take:0.45,blurb:tr('Grilled ports, served with mustard and a cold beer.')},
|
||||
{id:'sto~2',c:'sto',name:'Fika-IX',cheap:0.5,take:0.5,blurb:tr('Every session comes with a coffee break. Strictly enforced.')},
|
||||
{id:'kyv~2',c:'kyv',name:'Kyiv-Cake-IX',cheap:0.35,take:0.45,blurb:tr('Layered, resilient and somehow always open.')},
|
||||
{id:'nyc~2',c:'nyc',name:'Bagel-IX',cheap:0.6,take:0.5,blurb:tr('A community exchange in a Hudson Street basement. Schmear not included.')},
|
||||
{id:'chi~2',c:'chi',name:'Deep-Dish-IX',cheap:0.6,take:0.5,blurb:tr('Takes forever to set up, but very filling.')},
|
||||
{id:'sjc~2',c:'sjc',name:'Garage-IX',cheap:0.55,take:0.45,blurb:tr('Started in somebody’s garage, like everything else round here.')},
|
||||
{id:'lax~2',c:'lax',name:'Smog-IX',cheap:0.6,take:0.45,blurb:tr('You can’t see the fabric, but it is definitely there.')},
|
||||
{id:'sin~2',c:'sin',name:'Kopi-IX',cheap:0.6,take:0.5,blurb:tr('Strong, sweet and cheaper than the incumbent.')},
|
||||
{id:'hkg~2',c:'hkg',name:'Dim-Sum-IX',cheap:0.6,take:0.5,blurb:tr('Lots of small sessions on little plates.')},
|
||||
{id:'tok~2',c:'tok',name:'Bento-IX',cheap:0.65,take:0.5,core:['drz','akm','cfl','sgt','msf','amz'],blurb:tr('Tokyo has more exchanges than anyone can name. This one was started by a broadband giant and comes neatly packed, every member in its own compartment.')},
|
||||
{id:'syd~2',c:'syd',name:'At-The-Edge IX',cheap:.7,take:0.5,core:['drz','nfx','ggl','fbk','akm','cfl','amz','msf','bdc','slw','abb','voc','stb','spl','lpt'],blurb:tr('The challenger to IX Straya. Pops up at the edge of every city, including the ones nobody else bothers with. An acquired taste, like Vegemite.')},
|
||||
{id:'bom~2',c:'bom',name:'Vada-Pav-IX',cheap:0.45,take:0.45,blurb:tr('Mumbai’s street-food exchange. Fast, spicy and cheap.')},
|
||||
{id:'dxb~2',c:'dxb',name:'Shawarma-IX',cheap:0.6,take:0.4,blurb:tr('The challenger to the DE-KICKS fabric, wrapped and ready to go.')},
|
||||
];
|
||||
const XIXM=Object.fromEntries(XIX.map(x=>[x.id,x]));
|
||||
95
src/game/30-networks/30-long-tail.js
Normal file
95
src/game/30-networks/30-long-tail.js
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
/* The long tail: odd little networks with a sliver of traffic each, on one or two exchanges. */
|
||||
const TAIL=[
|
||||
['Grandma’s Basement Hosting','cdn',['fra'],tr('Three servers, one dehumidifier and a very patient grandmother.')],
|
||||
['Hamster Wheel Networks','eye',['ams'],tr('Powered by renewable rodents. Uptime depends on snack schedule.')],
|
||||
['Fjordnet Kooperativ','eye',['osl'],tr('A fiber co-op for one valley. Every member owns a metre of cable.')],
|
||||
['Kebab-Link','eye',['ber','fra'],tr('An ISP run from the back of a kebab shop. Late-night support is excellent.')],
|
||||
['Mesh Collective e.V.','eye',['ber','fra'],tr('Volunteers with rooftop antennas and strong opinions about IPv6.')],
|
||||
['Village Fibre Co-op','eye',['lon'],tr('Dug the trench themselves, one field at a time.')],
|
||||
['Tiny Swiss Bank Shield','cdn',['zrh'],tr('Hosts exactly one website and three lawyers.')],
|
||||
['Clockwork ISP','eye',['zrh'],tr('Packets leave on time, to the second.')],
|
||||
['LAN-Party Federation','cdn',['ams','fra'],tr('Game servers, energy drinks and a ping obsession.')],
|
||||
['Former Church Datacenter','cdn',['ams'],tr('Racks in the nave, cooling in the crypt. Divine uptime.')],
|
||||
['WISP on a Silo','eye',['dal','chi'],tr('Wireless internet from the top of a grain silo.')],
|
||||
['Cornfield Broadband','eye',['chi'],tr('Rural fiber that follows the tractor routes.')],
|
||||
['Moose Lake Telephone Co-op','eye',['tor','mtl'],tr('Has served the lake since 1912. Now with fiber.')],
|
||||
['Surf Shop Networks','cdn',['lax'],tr('Hosting for surfboard shops. Closed when the waves are good.')],
|
||||
['Ski Lift Fiber','eye',['den','zrh'],tr('Fiber strung along the chairlifts. Seasonal latency.')],
|
||||
['Tumbleweed Telecom','eye',['phx','dal'],tr('Covers a lot of empty ground.')],
|
||||
['Crypto Bro Colo','cdn',['ash','mia'],tr('Ten thousand GPUs and a podcast.')],
|
||||
['Ye Olde University Network','eye',['bos','lon'],tr('Has had a /8 since before you were born.')],
|
||||
['Mom & Pop Packet Shop','eye',['nyc'],tr('Family-run since dial-up. Still answers the phone.')],
|
||||
['Space Cowboy Broadband','eye',['hou','dal'],tr('Yee-haw and low Earth orbit.')],
|
||||
['Fry Sauce Fibre','eye',['slc'],tr('Utah’s dipping-sauce of an ISP.')],
|
||||
['Sauna Uplink Oy','cdn',['hel','sto'],tr('Servers cooled by the lake, then used to heat the sauna.')],
|
||||
['Reindeer Relay','eye',['sto','osl','hel'],tr('Wireless links across the tundra. Antlers occasionally in the way.')],
|
||||
['Pierogi Hosting','cdn',['waw'],tr('Cheap, filling hosting. Ask for the potato-and-cheese plan.')],
|
||||
['Sunflower Uplink','eye',['kyv','waw'],tr('Kept the lights on in its town through every blackout.')],
|
||||
['Tram Line Telecom','eye',['prg','vie'],tr('Fiber laid under the tram tracks during a night shift.')],
|
||||
['Paprika Peering','eye',['bud'],tr('Spicy pricing, mild latency.')],
|
||||
['Dracula Datacenter','cdn',['buh'],tr('Only comes online at night.')],
|
||||
['Bosphorus Ferry Net','eye',['ist'],tr('Wi-Fi on every ferry, backhaul on every bridge.')],
|
||||
['Gondola Gigabit','eye',['mil','rom'],tr('Started in Venice. Upgraded to land.')],
|
||||
['Nonna’s Pasta Pipes','cdn',['rom','pmo'],tr('Hosting for every family restaurant in the south.')],
|
||||
['Tram 28 Telecom','eye',['lis'],tr('Slow on the hills, fast on the flat.')],
|
||||
['Olive Grove Online','eye',['ath'],tr('Rural broadband for the islands, one olive tree at a time.')],
|
||||
['Siesta Server Hotel','cdn',['mad'],tr('Down from 2 to 5 p.m. every day. By design.')],
|
||||
['Bouillabaisse Bits','cdn',['mrs','par'],tr('A rich mix of everything the fishermen brought in.')],
|
||||
['Baguette Bandwidth Associés','eye',['par'],tr('Delivered fresh every morning.')],
|
||||
['Pub Quiz Internet','eye',['dub','lon'],tr('Founded after a pub quiz, by the losing team.')],
|
||||
['Gaming Café Net','eye',['lag'],tr('Internet cafe turned ISP. The gamers came for the ping.')],
|
||||
['Matatu Mobile Mesh','eye',['nbo'],tr('Wi-Fi on minibuses, and the music is free.')],
|
||||
['Load-Shedding Survivors','eye',['jnb','cpt'],tr('Has more batteries than customers.')],
|
||||
['Bollywood Buffer','cdn',['bom','del'],tr('Three-hour films, zero-second start times.')],
|
||||
['Hawker Centre Hosting','cdn',['sin','kul'],tr('Cheap, fast and open late.')],
|
||||
['Karaoke Box Networks','cdn',['tok','osa','icn'],tr('Lyrics servers, low latency, high pitch.')],
|
||||
['Night Market Net','eye',['tpe','hkg'],tr('Comes alive after dark.')],
|
||||
['Kangaroo Courier','eye',['syd','mel','bne'],tr('Packets hop. Sometimes backwards.')],
|
||||
['Hobbit Hole Hosting','cdn',['akl'],tr('Cosy racks under a hill. Second breakfast at 11.')],
|
||||
['Capybara Connect','eye',['sao','poa','bue'],tr('Gets along with every other network. Famously chill.')],
|
||||
['Llama Link','eye',['lim','scl','bog'],tr('Mountain wireless. Will spit at bad routes.')],
|
||||
['Supercar Hosting','cdn',['dxb'],tr('Gold-plated servers, valet parking for packets.')],
|
||||
['Tango Transit Co-op','eye',['bue','cor'],tr('It takes two to peer.')],
|
||||
['Bánh Mì Broadband','eye',['sgn'],tr('Crispy on the outside, cheap on the inside.')],
|
||||
['Jeepney Jumpnet','eye',['mnl'],tr('Colourful, crowded and gets you there eventually.')],
|
||||
['Game Server Gremlins','cdn',['fra','ams','lon','nyc','sjc'],tr('Hosts every game you play at 2 a.m. Hates jitter.'),0.003],
|
||||
['Discord-ant Voice Relay','cdn',['ams','fra','ash'],tr('Voice chat for millions of gamers who all talk at once.'),0.003],
|
||||
['Mastodon Instance Herd','cdn',['ber','ams','par'],tr('A thousand tiny social networks on one rack.')],
|
||||
['Dutch Bike Fibre','eye',['ams'],tr('Fiber laid along the bike lanes. Fastest in the rain.')],
|
||||
['Chip Fab Cleanroom Net','cdn',['tpe','phx'],tr('Bunny suits mandatory in the server room.')],
|
||||
['Volunteer Fire Brigade Wi-Fi','eye',['vie','zrh'],tr('Runs the village network between call-outs.')],
|
||||
['Peach State Hosting','cdn',['atn'],tr('Sweet, fuzzy and surprisingly reliable.')],
|
||||
['Chowder Hosting','cdn',['bos'],tr('Thick, comforting and very New England.')],
|
||||
];
|
||||
function ixStatic(c){const o=[];if(CITY[c]&&CITY[c].ix)o.push(c);for(const x of XIX)if(x.c===c)o.push(x.id);return o;}
|
||||
TAIL.forEach(([name,type,home,blurb,sh],i)=>{const h=hstr(name),cand=home.flatMap(ixStatic),ix=[];
|
||||
if(cand.length){ix.push(cand[h%cand.length]);if(cand.length>1&&(h>>>8)%100<40){const o=cand[(h>>>12)%cand.length];if(!ix.includes(o))ix.push(o);}}
|
||||
const sel=(h>>>4)%10>=8;
|
||||
NETS.push({id:'tail'+i,name,asn:200000+(h%190000),type,tail:true,pol:sel?'selective':'open',...(sel?{minIx:1+(h>>>16)%3,minPni:6+(h>>>18)%8}:{}),share:sh||+(0.0006+((h>>>20)%15)*0.0001).toFixed(4),col:`hsl(${h%360} 55% 46%)`,pops:home.slice(),ix,blurb});});
|
||||
NETS.push(
|
||||
{id:'ktt',name:'Kay-Tea',asn:4766,type:'eye',pol:'paid',paidFee:5000,perG:90,kr:true,share:.012,col:'#E4002B',pops:['icn','hkg','tok','lax'],ix:[],blurb:tr('Korea’s incumbent. Sender pays: every gigabit you hand it is billed, on top of the port.')},
|
||||
{id:'skb',name:'SK Broadbandit',asn:9318,type:'eye',pol:'paid',paidFee:4000,perG:110,kr:true,share:.01,col:'#EA002C',pops:['icn','hkg','sjc'],ix:[],blurb:tr('Took a streaming giant to court over who pays for the traffic its own customers asked for. Paid peering, per gigabit.')},
|
||||
{id:'lgu',name:'LG You-Pay-Plus',asn:3786,type:'eye',pol:'paid',paidFee:3000,perG:80,kr:true,share:.008,col:'#E6007E',pops:['icn','tok'],ix:[],blurb:tr('The plus is a usage fee. Paid peering, per gigabit.')});
|
||||
NETS.push(
|
||||
{id:'btt',name:'Bee-Tee',asn:2856,type:'eye',pol:'selective',minIx:10,minPni:30,share:.012,col:'#5514B4',pops:['lon','man','edi','bde'],ix:['lon','man'],blurb:tr('The UK’s incumbent. Buzzes politely, stings on price.')},
|
||||
{id:'sky',name:'Sky-High Broadband',asn:5607,type:'eye',pol:'selective',minIx:6,minPni:25,share:.008,col:'#0072C9',pops:['lon','man','edi','dub'],ix:['lon','man','edi'],blurb:tr('Football, films and a router that looks like a spaceship.')},
|
||||
{id:'vmo',name:'Virgin Mediocre',asn:5089,type:'eye',pol:'selective',minIx:6,minPni:25,share:.007,col:'#E10A0A',pops:['lon','man','edi'],ix:['lon','man'],blurb:tr('Cable broadband for half of Britain. Fast on a good day.')},
|
||||
{id:'tnr',name:'Tele-Nor-Way',asn:2119,type:'eye',pol:'selective',minIx:5,minPni:20,share:.006,col:'#00A9E0',pops:['osl','svg','sto','cph'],ix:['osl','svg'],blurb:tr('Norway’s incumbent. Neither yes nor no, until you send enough traffic.')});
|
||||
NETS.push(
|
||||
{id:'hwt',name:'Hawaiian Telecombo',asn:36149,type:'eye',pol:'selective',minIx:3,minPni:15,share:.004,up:['ntt','lvl'],col:'#5B2A86',pops:['hnl'],ix:['hnl'],blurb:tr('Hawaii’s incumbent. Every plan comes with two scoops of rice and a side of macaroni salad.')},
|
||||
{id:'gtg',name:'Grand Theft Teleguam',asn:9246,type:'t2',pol:'open',share:.002,price:8,up:['ntt','tat'],col:'#0072CE',pops:['gum','ror','maj','hnl','tok'],ix:['gum','hnl'],blurb:tr('Guam’s incumbent and the way out for half of Micronesia. The prices are a heist, but nobody else is selling.')},
|
||||
{id:'dcp',name:'Docomoco Pacific',asn:3605,type:'eye',pol:'selective',minIx:2,minPni:10,share:.002,up:['ntt'],col:'#E4002B',pops:['gum','ror'],ix:['gum'],blurb:tr('Guam’s mobile network: rice, a burger, a fried egg and lots of gravy, served over 5G.')},
|
||||
{id:'dsp',name:'Digi-Sell Pacific',asn:38442,type:'t2',pol:'open',share:.005,price:9,up:['ntt','tat'],col:'#E2001A',pops:['pom','suv','tbu','apw','syd'],ix:['suv'],blurb:tr('Phones on every island from Papua New Guinea to Tonga, and transit to sell on each one.')},
|
||||
{id:'fnt',name:'FINTEL-ligent',asn:9241,type:'t2',pol:'open',share:.002,price:8,up:['ntt','tly'],col:'#00A3AD',pops:['suv','tbu','apw','ppg','syd','hnl'],ix:['suv'],blurb:tr('Fiji’s international gateway. Very clever about where your traffic should go, as long as it goes through Suva.')},
|
||||
{id:'pft',name:'Postes et Télé-Croissant',asn:56055,type:'t2',pol:'selective',minIx:3,minPni:15,share:.003,price:10,up:['tly','cog'],col:'#F7B500',pops:['nou','ppt','syd','lax'],ix:['nou'],blurb:tr('Runs the post, the phones and the internet in New Caledonia and French Polynesia. Packets arrive stamped, with a croissant.')},
|
||||
{id:'tkp',name:'Telly-Kom PNG',asn:17828,type:'eye',pol:'selective',minIx:2,minPni:10,share:.003,up:['tat'],col:'#C8102E',pops:['pom'],ix:[],blurb:tr('Papua New Guinea’s state telco: eight hundred languages, one billing system.')},
|
||||
{id:'otk',name:'Ours-Truly Telekom',asn:45891,type:'eye',pol:'selective',minIx:1,minPni:8,share:.001,up:['tly'],col:'#00843D',pops:['hir'],ix:['hir'],blurb:tr('The Solomon Islands’ incumbent. Yours sincerely, eventually.')},
|
||||
{id:'tcc',name:'Tongue-in-Cheek Comms',asn:38201,type:'eye',pol:'selective',minIx:1,minPni:8,share:.001,up:['ntt'],col:'#C10230',pops:['tbu'],ix:[],blurb:tr('Tonga’s own telco. Lived through a volcano that cut its only cable, and jokes about it now.')},
|
||||
{id:'bsk',name:'Blue-Sky-Pie Samoa',asn:17993,type:'eye',pol:'selective',minIx:1,minPni:8,share:.001,up:['tly'],col:'#0096D6',pops:['apw','ppg'],ix:[],blurb:tr('Samoa’s broadband, promised with a slice of something sweet.')},
|
||||
{id:'pnc',name:'PNC-See',asn:9534,type:'eye',pol:'selective',minIx:1,minPni:8,share:.0005,up:['ntt'],col:'#1B75BB',pops:['ror'],ix:[],blurb:tr('Palau’s telco. Snorkel down and you can see the cable.')},
|
||||
{id:'nta',name:'Never Too Atoll',asn:21581,type:'eye',pol:'selective',minIx:1,minPni:8,share:.0005,up:['ntt'],col:'#2E8B57',pops:['maj'],ix:[],blurb:tr('The Marshall Islands’ telco, two metres above the sea and proud of every centimetre.')});
|
||||
NETS.push(
|
||||
{id:'onc',name:'One Commotion',asn:3855,type:'eye',pol:'selective',minIx:1,minPni:8,share:.001,up:['lvl','tly'],col:'#E4007C',pops:['bda'],ix:[],blurb:tr('Bermuda’s phones, TV and internet from one very busy office. Half its business customers are reinsurers, and they have priced in the Triangle.')},
|
||||
{id:'cvt',name:'Curriculum Vitae Telecom',asn:37517,type:'t2',pol:'open',share:.002,price:8,up:['tat','tly'],col:'#004B87',pops:['rai','lis','for','dkr'],ix:['rai'],blurb:tr('Cape Verde’s incumbent and the islands’ way out. Its CV lists every cable between Europe, Africa and Brazil, and it brings it up at every meeting.')},
|
||||
{id:'pss',name:'Pretty Sure South Atlantic',asn:210841,type:'t2',pol:'open',share:.0005,price:12,up:['tat'],col:'#7D2B8B',pops:['jam','cpt'],ix:[],blurb:tr('The telco for St Helena, Ascension and the Falklands. Is the link up? Pretty sure.')},
|
||||
{id:'bst',name:'Beastlink',asn:11260,type:'eye',pol:'selective',minIx:2,minPni:10,share:.002,up:['cog','lvl'],col:'#EE3124',pops:['hfx','tor'],ix:['hfx'],blurb:tr('Atlantic Canada’s cable company, raised on lobster and long winters. Polite on the phone, a beast at the peering table.')});
|
||||
15
src/game/30-networks/40-traffic-shares.js
Normal file
15
src/game/30-networks/40-traffic-shares.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
const NET=Object.fromEntries(NETS.map(n=>[n.id,n])),NET_IDS=NETS.map(n=>n.id);
|
||||
// The networks a PNI with each upstream reaches: the upstream itself plus everyone who buys transit from it.
|
||||
const PNI_NETS={};for(const n of NETS)PNI_NETS[n.id]=[n.id].concat(NETS.filter(x=>x.up&&x.up.includes(n.id)).map(x=>x.id));
|
||||
for(const X of XIX){X.members=NETS.filter(n=>Array.isArray(n.ix)&&n.ix.includes(X.id)||!n.tail&&(X.core?X.core.includes(n.id):(n.ix==='ALL'||Array.isArray(n.ix)&&n.ix.includes(X.c))&&hstr(n.id+'|'+X.id)%100<(n.ix==='ALL'?72:X.take*100))).map(n=>n.id);}
|
||||
const NSH={}; {const t=NETS.reduce((a,n)=>a+n.share,0); NETS.forEach(n=>NSH[n.id]=n.share/t);}
|
||||
// After Glitch leaves Korea, Seoul viewers watch half as much of it and the rest moves to everyone else.
|
||||
const NSH_KRX={}; {const w=id=>NSH[id]*(id==='amz'?0.5:1),t=NETS.reduce((a,n)=>a+w(n.id),0); NETS.forEach(n=>NSH_KRX[n.id]=w(n.id)/t);}
|
||||
const CN_W={ctc:.2,cun:.14,cmb:.08,tcs:.22,abc:.14,byd:.08,bdc:.08,akm:.02,msf:.02,amz:.01,drz:.01};
|
||||
const RU_W={ydx:.24,vkl:.12,rtc:.14,ggl:.12,bdc:.08,akm:.05,cfl:.06,msf:.04,amz:.03,tly:.02,cog:.02,drz:.01};
|
||||
const NSH_RU={}; {const t=Object.values(RU_W).reduce((a,b)=>a+b,0); for(const k in RU_W)NSH_RU[k]=RU_W[k]/t;}
|
||||
const NSH_CN={}; {const t=Object.values(CN_W).reduce((a,b)=>a+b,0); for(const k in CN_W)NSH_CN[k]=CN_W[k]/t;}
|
||||
const CN_BLOCKED=NETS.filter(n=>!CN_W[n.id]&&n.type==='cdn').map(n=>n.name);
|
||||
const TYPE_L={t1:tr('Tier 1'),t2:tr('Tier 2'),cdn:tr('CDN / content'),eye:tr('Eyeballs')};
|
||||
const initials=n=>n.name.replace(/[^A-Za-z ]/g,'').split(' ').filter(Boolean).map(w=>w[0]).join('').slice(0,3).toUpperCase();
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue