The house you live in, the internet running through it, and the small thing that breaks it. Each episode takes one system you use every day, shows the internet's version of it, then shows exactly where it fails and how to tell. Season 1: The House.
On YouTube, the same series runs as How It Works & Breaks.
Episode 5: The Country That Disappeared
A settings file says country: NO. The program that reads it says Norway is false. The file is valid, nothing crashes, and nobody gets an error. YAML guesses what kind of thing every bare value is, and the guess depends on which version of the rules your parser follows. Then the version number that shrinks, the ZIP code that loses its zero, the port mapping that becomes a time of day, and the upgrade that bites back.
Every parser result on screen is a real run, with the parser and version named (PyYAML 6.0.3 for YAML 1.1, ruamel.yaml 0.19.1 for YAML 1.2). Claims were checked against the YAML specifications, Docker's documentation and Ziemann et al., Genome Biology (2016). Narration: take 3, voiced with Gherkin.
Transcript
Cold open — the break. Two letters. One country. Gone. This is a settings file. It says Norway. The program that read it says Norway is… false. Not missing. Not misspelled. False. The file is valid. Nothing crashed. Nobody got an error message. A whole country just quietly turned into an opinion. Let's look at how that happens. It's a small mechanism, and once you've seen it, you'll find it in places you really didn't want it.
The setup — what YAML is, and why it guesses. The file format is called YAML. If you've never heard of it, you've still used it. It holds the settings for a huge amount of the software that runs the internet. Server deployments, build pipelines, the robots that copy code from one place to another. YAML was designed to be friendly to people. You don't have to put quote marks around text. You just write what you mean, and the parser — that's the program that reads the file — works out what kind of thing each value is. Write forty-two, you get a number. Write true, you get a yes-or-no value, what programmers call a boolean. Write hello, you get text. That's the deal. You stop typing quote marks, and in exchange, the parser guesses. And guessing is fine, right up until the guess is wrong.
The break, properly — Norway. Here's the line again. Country, colon, N-O. Norway's country code. This is PyYAML, version six, a very common way to read YAML in the Python language. It reads N-O, and it hands back False. Here's why. The parser has a list of words it treats as yes-or-no. True and false are on it. So are yes and no. So are on and off. And so is the capital letters N, O. You meant a country. It found a word on its list. It doesn't know about Norway. It knows about the list.
The version nobody picked. Now the same line, through a different parser. This one follows a newer version of the YAML rules, version one point two. Norway survives. It's text. Same file. Same two letters. Two different answers. And the difference is a version number that nobody on your team ever chose on purpose. YAML 1.2 came out in 2009, and its recommended rules cut that list of yes-and-no words down to just true and false. But plenty of tools still read files the old way, the 1.1 way. And the file itself doesn't tell you which one is reading it. So you can have two programs, reading the same file, disagreeing about whether Norway exists. And both of them think they're right.
The mechanism — implicit typing. The name for this is implicit typing. The parser looks at a bare value and tests it against a set of patterns. Does it look like a number? Does it look like a date? Does it look like one of the yes-or-no words? The first pattern that fits wins. Nothing in that process asks what you meant. It can't. It only has the characters. And here's the part that matters: this happens before your own code ever sees the value. By the time your program goes looking for the country, the country has already been replaced. There's nothing to catch. The evidence was converted on the way in.
Same family — the version number that shrinks. Norway isn't the only casualty. Let's go down the row. Software versions. One point ten, written as a bare value. Both parsers — old rules and new rules — read that as a decimal number. And as a number, one point ten is just one point one. So version ten becomes version one. That one, the newer rules don't save you from. It's a number by every version of the spec. If it's a version, it needs quotes.
The zip code that lost its zero. Here's a ZIP code. Zero, one, two, three, four. Under the old rules, a leading zero means the number is written in octal — base eight — the way some programmers write file permissions. So zero-one-two-three-four, read in base eight, comes out as six hundred and sixty-eight. Under the new rules, it's an ordinary number. And an ordinary number doesn't keep a leading zero. So you get twelve thirty-four. Two parsers. Two different wrong answers. Neither of them is a ZIP code.
The port mapping that became a time of day. One more, and this one's my favourite. Twenty-two colon twenty-two. If you run servers, that looks like a port mapping. Port twenty-two, the one for remote logins, passed straight through. The old rules have a pattern for numbers written in base sixty. Like a clock. Hours and minutes. So twenty-two colon twenty-two is twenty-two times sixty, plus twenty-two. One thousand, three hundred and forty-two. Docker's own documentation tells you to put port mappings in quotes for exactly this reason. Somebody put a feature in a data format for writing numbers like a sexagesimal clock, and it's been sitting there, waiting, ever since. That's the kind of shit a green check mark never tells you.
The keyword that turned into a yes. It even gets the keys. This is the first line of an automated build file on GitHub. On, colon, push. Meaning: run this when someone pushes code. Read it with the old rules, and "on" is on the list. The key isn't the word on anymore. It's True. GitHub's own system reads its files correctly. But the little script you wrote to check those files? It's looking for a key called "on", and there isn't one.
The upgrade bites back. So the fix is to move everything to the newer rules, right? Mostly. Here's a commit ID, the kind you paste into a config file to pin a build to one exact version of the code: one, two, three, e, four, five, six. Seven characters, all of them perfectly normal for a commit ID. PyYAML, on the old rules, wants a decimal point before it will call anything a decimal number. There isn't one, so it leaves this alone. Text. Good. The newer rules dropped that requirement. To ruamel, reading YAML 1.2, one-two-three-e-four- five-six is scientific notation: one hundred and twenty-three, times ten to the four hundred and fifty-sixth. That's too big for the computer to hold, so it comes back as infinity. Your build is now pinned to infinity. Upgrading the rules didn't remove the guessing. It moved it.
Not just YAML — the spreadsheet that renamed genes. This isn't really a YAML problem. It's a guessing problem, and the most famous guesser of all is a spreadsheet. Type the name of a human gene — S-E-P-T-2 — into a spreadsheet, and it helpfully turns it into the second of September. Researchers looked at published papers with gene lists attached as spreadsheets, and found this damage in about one in five of them. The spreadsheet didn't change. So in 2019, the scientists who name human genes renamed the genes. SEPT1 became SEPTIN1. MARCH1 became MARCHF1. When the tool won't stop guessing, people eventually change the world to fit the tool.
The fix — the smallest real one. The fix is two quote marks. Country, colon, quote, N-O, quote. Now it's text, under every version of the rules, on every parser on that screen. If it's text, quote it. If it's a version number, quote it. If it starts with a zero and the zero matters, quote it. And find out which version of the rules your tools actually use, instead of assuming. There are checkers that will flag the yes-and-no words for you before anything reads them. Quote marks don't feel like engineering. But they're the difference between telling the computer what you mean and letting it guess.
The button. Norway's been there for about a thousand years. Two quote marks is a pretty small fence to put around it. Go look at your config files.
Short: Two letters that erase Norway
Transcript
Cold open. Two letters. One country. Gone. This config file says Norway. The program that read it says Norway is false. Valid file. No error.
Two versions. Same line, two parsers. Under the old YAML rules, N-O is on the list of yes-or-no words. Under the newer rules, it's text. And the file doesn't say which rules are reading it.
The mechanism. The parser tests every bare value against patterns. Number? Date? Yes-or-no word? First match wins, before your code ever sees it.
The fix. Two quote marks. Now it's text, under every version.
The button. A country of five million people, fenced in by punctuation. The full story, and five more ways this bites you, is in Episode 5.
Episode 4: The Breaker Panel
Somebody plugs a loose cable back in behind the TV, and the whole house goes offline at once, wired and Wi-Fi together. Nothing is broken. The switch copies every shout through every socket, and with a loop in the cable, the shouts never leave. The breaker that switches a loop off is called spanning tree, and neither box in this house has one.
Every technical claim was checked against primary sources before it was voiced: the internet standards (RFC 826, RFC 1812, RFC 4188, RFC 7368), the IEEE 802.1 working-group pages, NIST, and a university networking text. Narration: take 3, voiced with Gherkin.
Transcript
Cold open — everything, at once. Saturday morning. Somebody's tidying behind the TV. There's a cable lying on the carpet with nothing on the end, so they do the sensible thing, and plug it back in. And the whole house goes quiet. The show stops. The call upstairs drops. Every phone on the Wi-Fi gives up. Not one thing. Everything, at once. The internet coming in from the street is fine. The problem never left the house. So let's go and find it.
The panel in the cupboard. Every house has a panel somewhere. A grey box in a cupboard, with a row of switches, each one feeding a different room. Your home network has something very like it. Three boxes, three jobs. The router sits where the line comes in from the street. It's the border with the outside world. Then the switch. A small box with a row of sockets, and a cable from each one running into the walls. The TV, the desk upstairs, the games console. The switch joins them all into one network. In most homes, that's the only network there is. And the access point puts that same network on the air, for everything without a cable. That's your Wi-Fi. Plenty of homes get all three jobs in one box from the provider. And if you've ever mixed up a router and a switch, you're in good company. The standards people have it in writing that it happens a lot.
The mail room. So what does a switch actually do? Think of it as the house's mail room. Every device has a name tag of its own, usually set at the factory. It's called a MAC address. Inside the house, messages travel in envelopes called frames, and every frame carries two name tags. Who it's for, and who it's from. The mail clerk starts out knowing nothing. But every time a frame comes in, he reads the from tag and notes which door it came through. Laptop, door three. TV, door five. That list is the address table. Nobody types it in. He learns it by watching. So a frame for the TV goes through door five. Only door five. Everyone else gets a quiet afternoon. Names that go quiet get rubbed out, after five minutes by default. And a frame for a name he's never seen? He sends a copy through every door except the one it came in by. Somebody will answer. That's called flooding.
Shouting down the hall. Sometimes a device doesn't know anybody's name tag. It only knows a house number, from episode two. So it shouts. Your laptop wants to reach the router. It knows the router's number, but not its name tag. So it sends a frame addressed to everyone. Where the name tag goes, it's all F's. That's a broadcast. Who has this number? The router answers, just to the laptop. That's called A-R-P. A phone that's just come home shouts too, asking for a number of its own. That's D-H-C-P. The mail clerk's rule for a broadcast is simple. Copy it through every door, except the one it came in by. Every device in the house hears every shout. The router won't pass a shout out to the street. Broadcasts stay in the house. But the access point does pass them on, over the air, to everything on Wi-Fi, usually at the slowest speed of anything connected. All of that's fine. A few shouts, heard once each.
No countdown. Out on the internet, every packet carries a safety catch. Remember the label on the bucket in episode three? There's a number on it, and every router that handles the packet knocks one off. At zero, the packet is destroyed. It's called the time to live. T-T-L. Same initials as episode two's sticky notes, different job. This one counts hops, not seconds. The rulebook for routers says why it's there. So a mistake can't melt down the network with packets going round in circles forever. Here's the catch. That countdown lives in the I-P label, and switches don't touch it. Only routers do. And the mail room's own envelopes, the frames, have no countdown at all. No hop count. No expiry date. So inside your house, a frame goes round as many times as it's sent round.
The breaker. So what stops a frame going round in circles? Think of the panel in the cupboard. On a network, the breaker's job falls to a rule called spanning tree. S-T-P. With it, switches can be plugged together any old way, loops and all, even a switch plugged back into itself. Spanning tree came in with the standard that defines switches. Switches that run it pass little notes to each other and work out every path. Wherever there's a second way round, a loop, they switch one socket off. Not unplugged. Just told to stay quiet. Every device can still reach every other one, by exactly one route. That's the tree. If a cable fails, the quiet socket wakes up and takes over. A breaker that resets itself. The first version could take half a minute to settle after a change. A faster one, rapid spanning tree, came later. But a breaker only works if it's in the panel. Spanning tree only protects you on a switch that's running it.
The break — behind the TV. So, back to Saturday morning. Behind the TV there's a second, smaller switch, feeding the TV, the console, and a cable back to the cupboard. Someone tidying finds a cable with one end in that little box and the other on the carpet. So they plug the loose end into the nearest empty socket. On the same box. Now there's a loop. About a foot long. A phone shouts, who has this number? The little switch copies it through every door. One copy goes round the loop and straight back in, and the switch does exactly what it's told: copy it through every door except that one. Including back into the loop. Every lap, every device in the house hears that shout again, and the access point reads it out, slowly, to every phone. Every new shout joins the circuit, and none of them ever leaves. Before long, the hallways are wall to wall with old shouts, and real messages can't get through. That's a broadcast storm. The whole house, at once. Nothing is broken. The only thing missing is the breaker. Neither switch in this house runs spanning tree, so nothing switches the loop off. Every box in this house is working perfectly. That's the shit part. The street's fine. The router's fine. A foot of cable is shouting the house down.
The fix — one cable at a time. So how do you tell, and how do you fix it? The tell is the pattern. Everything at once, wired and Wi-Fi together, especially just after somebody's been behind the TV? Think loop. Start with whatever was touched last. Pull that cable back out. If the house comes back, you've found it. If nobody remembers touching anything, go to the switch and pull the cables one at a time, a few seconds each. A loop needs a complete circle. The moment the house comes back, the cable in your hand is either part of the loop, or the way to it. Then follow that cable, both ends. You're looking for a cable with both ends in the same box, or two boxes joined to each other twice. One cable between any two boxes is plenty. Take the extra out. Then, so it doesn't happen again. Label your cables at both ends. And if you're buying a switch, look for spanning tree in the features. It's the breaker. Let it do its job.
The button. A network needs exactly one way from every room to every other room. Give it a second way, without a breaker, and it'll use both. Forever. So if you find a loose cable behind the TV, find out where the other end goes. Before the house tells you.
Short: One loose cable can take down your whole home network
Transcript
Cold open. Somebody plugged a loose cable back in behind the TV. And the whole house went offline. Every device, at once.
The mail room. Your network has a mail room, called a switch. It learns which device is behind which socket, and sends each message only where it needs to go.
The shout. Some messages are shouts, called broadcasts, addressed to everyone. The switch copies those through every socket, so every device hears them.
The loop. That loose cable runs from one socket back into another on the same box. Now every shout goes out, comes back in, and gets copied again. There's no countdown to stop it.
The fix. So pull the cables one at a time until the house comes back. Look for a cable with both ends in one box, or two boxes joined twice.
The button. One cable between any two boxes. Never two. The Breaker Panel. Full episode on the channel.
Episode 3: Buckets, Not a Stream
Your data doesn't flow like water. It travels in buckets, and some of them spill. A download just waits for the spilled ones to be sent again. A video call can't wait, so it stutters, even on a fast connection. This is the spilled-bucket episode Episode 1 promised.
Every technical claim was checked against the internet standards before it was voiced: packet sizes, how TCP re-sends, why calls use UDP, what Wi-Fi shares the air with. Narration: take 3, voiced with Gherkin.
Transcript
Cold open — one house, two rooms. Sunday afternoon. In the back bedroom, somebody's on a video call with her dad, and his face has just frozen halfway through a word. When it comes back, he sounds like a robot reading a ransom note. Across the hall, a big game update is downloading over the same Wi-Fi. It's fine. It's going to finish. Same house. Same connection. One of them is falling apart, and the other one hasn't noticed. Let's find out why.
Buckets, not a stream. Back in episode one, I made you a promise. Water is one continuous stream. Data isn't. Data travels in buckets. The proper name is packets. Everything you send or receive gets chopped into small pieces. A message, a photo, the sound of your voice. On an ordinary wired home network, a packet carries at most fifteen hundred bytes. That limit has a name too. The M-T-U. The biggest bucket the pipe will take. Fifteen hundred bytes isn't much. A photo of a few megabytes is a couple of thousand buckets. A film is millions. And I said we'd come back to what happens when one gets spilled. This is that episode.
The label on the bucket. Every bucket carries a label, stuck on the front before anything goes in. It's called the header. It says where the bucket came from and where it's going, with an address for each end. We did the house numbers last episode, so I'll leave the addresses there. Here's the part that surprises people. Each bucket travels on its own, as a separate trip. And the rulebook that moves them, the Internet Protocol, is blunt about what it promises. No receipts. No re-sends. It gets each bucket as far as it can, and that's the whole deal. So the basic postal service of the internet doesn't promise to deliver anything. Everything reliable is built on top.
Where buckets spill. So where do buckets actually get spilled? Mostly in three places. The first is a full landing. Every router has a spot where buckets wait their turn to go out. When they arrive faster than they can leave, they queue up. When the queue is full, the newest bucket gets tipped out. Nobody's being careless. The landing is just full. That's packet loss. Make the landing far too big and nothing spills. Everything just waits, and arrives late. That's called bufferbloat, and a call feels it straight away. The second place is a damaged bucket. Every label has a quick check on it. If the label got garbled on the way, the bucket is thrown away on the spot. The third place is the air. We'll come back to the air.
The bucket brigade. Now, losing buckets would be a disaster for most of what you do. A bank statement missing a digit. So anything that has to arrive whole rides with a second set of rules on top, called T-C-P. Think of it as a bucket brigade with a foreman. The foreman numbers everything that goes out. Not just the buckets. Every byte inside them. The other end sends back receipts. Got everything up to here. If bucket forty-one goes missing, the next ones still arrive, and each time, the receiver sends the same receipt again. Still waiting on forty-one. Three of those in a row, and the sender sends forty-one again. At the far end, the buckets go back in order, so the file comes out exactly the way it went in. And the foreman treats a spilled bucket as a sign that somewhere is crowded. So he backs off, roughly halving how much he lets out at once, then builds back up. That's why a little loss doesn't break a download. It just slows it down.
The crew with no receipts. So why doesn't everything use the foreman? Because the foreman makes you wait. If bucket forty-one goes missing, everything behind it waits until forty-one turns up. For a file, that's fine. For a conversation, it's a problem. The people who write the standards say a call has a few hundred milliseconds, end to end, if it's going to feel like talking. That usually leaves no time to go back for a lost bucket. So calls mostly ride on something simpler, called U-D-P. U-D-P puts a label on the bucket and lets it go. No foreman. No receipts. Its rulebook says it in one line. Delivery isn't guaranteed. The call adds its own numbering and a timestamp, so the far end knows what order the sound goes in and when to play it. A show you're streaming can keep a few seconds in the tank. A call can't. It's living in the moment, whether it likes it or not.
Late is lost. Now picture the far end of a call. Buckets of sound arrive unevenly. Some quick, some held up on a busy landing. That unevenness is called jitter. So the call keeps a little holding tray, a jitter buffer. It catches the buckets, lines them up, and plays them out at a steady pace. The tray is small on purpose, because every moment you hold sound back is delay you can hear. And here's the bit that matters. A bucket that turns up after its moment has passed gets thrown away. The standards for measuring call quality count late buckets and lost buckets separately, then say plainly that both do the same damage. To a call, late is lost. When there's a gap, the decoder fills it with a guess. It repeats the last bit of sound, or carries it on a little. Over one small gap, the guess can get away with it. Over a run of them, it shows.
The break — the back bedroom. So, back to the back bedroom. Remember the third place buckets spill? The air. That laptop is on Wi-Fi, two walls from the router. Wi-Fi is one shared slice of air, and everything in range takes turns on it. The older band, two point four gigahertz, is crowded with cordless phones and other gadgets. It's the same band your microwave oven cooks in. And researchers have found ordinary Wi-Fi gear can be knocked about by surprisingly weak interference. Wi-Fi knows it lives in a rough neighborhood, so it keeps its own receipt book. Every bucket sent to one device gets confirmed by the radio, and if it isn't, the radio sends it again. That saves a lot of buckets. But every second try takes time, so buckets turn up in clumps. And some never make it. Now look at the two rooms. The download across the hall rides the same Wi-Fi. It loses buckets, its foreman goes back for every one, and it slows down a bit. It finishes a little later. The call loses buckets too, and the late ones get thrown out at the tray. Same air. Same holes. The download can wait for a re-send. The call can't. A fast connection can still be a shit connection for a call. Speed is how much water you get. A call cares whether every drop turns up on time.
The fix — count the spills. So how do you find out whether you're spilling buckets? You count them, with an old tool called ping. Ping sends a tiny bucket to another machine and asks for it back, over and over. When you stop it, it prints a summary. How many went out, how many came back, and the loss as a percentage. Plus the round-trip times, and how much they wobble, which is a rough look at the jitter. The trick is the order. The tool's own manual says it. Start close to home, then work outwards. So first, ping your router, from the room where the call goes wrong, for a couple of minutes. Your router will usually answer. Then ping something out on the internet for the same time. Losing buckets on the way to the router means the spill is inside your house. Router clean, far end not, and it's further out. That's a call to your provider, with the numbers written down. Then the cable test. Plug the laptop into the router and run the same pings again. If the loss goes away on the cable, it was the air. Get the router out of the cupboard, or run a cable to the thing that matters. Same target, same length of time, cable against Wi-Fi.
The button. The internet never promised to deliver a single bucket. Every page you've ever loaded got there because something at each end was counting. Most of the time, nobody notices the spills. A call is just the first thing to tell you.
Short: Why your video call stutters on fast internet
Transcript
Cold open. Same house, same Wi-Fi. The video call keeps freezing. The download across the hall is fine. Here's why.
Buckets. Your data doesn't flow like water. It travels in small buckets, called packets, each with a label on the front. And some of them get spilled.
The foreman. A download has a foreman. He numbers every bucket, waits for receipts, and re-sends anything that goes missing. A spill just slows it down.
The call. A call can't wait for a re-send. It has a fraction of a second. So a bucket that's late gets thrown away, same as one that never came.
The fix. So count the spills. Ping your router, then something outside, and read the loss in the summary. Then try it again on a cable. If the loss goes away, it was the Wi-Fi.
The button. A fast connection isn't always a good one for calls. Buckets, Not a Stream. Full episode on the channel.
Episode 2: The House Number
Every house has a number, and every website does too. You never type it, because a directory looks it up for you. When that directory gets it wrong, the site looks dead even though the machine behind it is fine.
Every technical claim was checked against the DNS standards (RFC 1034, RFC 1035, RFC 9499) and IANA before it was voiced. Narration: take 3, voiced with Gherkin.
Transcript
Cold open — the house that isn't there. Here's a house. Lights on. Kettle on. Somebody's home. And parked right outside is a delivery driver, staring at his phone, because the directory says this house doesn't exist. The internet does this too. Sometimes a website is down and the computer behind it is fine. Switched on. Plugged in. Number on the door. What broke was the name. So let's look at how your computer finds a house it's never visited, and the small thing that makes a healthy one vanish.
The house number. Every house on a street has a number. It isn't there for you. It's there for the post, and the pizza, and anyone who's never been before. Every machine on the internet has one too. It's called an I-P address. The classic kind is four numbers with dots between them, like one ninety-two, dot zero, dot two, dot ten. There's a newer, much longer kind, called I-P version six. Same job. Whatever your computer sends across the internet, it's that number on the envelope. Not a name. The rule book for internet addressing, from nineteen eighty-one, puts it in three short lines. A name indicates what we seek. An address indicates where it is. A route indicates how to get there. The network deals in the middle one. But nobody types numbers. You type a name. So who turns the name into the number?
The phone book. A phone book. That's the honest answer. The name is the bit you remember, like the family name on a mailbox. Example dot com. That's called a domain name. The number is the bit the post needs. In between, you need a directory. In the early days, the internet's directory really was one book. A single text file, kept by one office, listing every machine's name and number. Every computer on the network fetched its own copy. Every new name waited on that one office. That works for a village. It doesn't work for a planet. So the single file was replaced by the Domain Name System. D-N-S. It's still a directory, but it isn't one book any more. It's a great many small ones, each kept by whoever is in charge of that part of the name, all chained together.
Directory assistance. Your laptop doesn't read the directory. It asks someone. Think of directory assistance. You call one number, say a name, and someone else does the looking up. Your laptop has a small piece of software for this, and it's a bit lazy on purpose. It's called a stub resolver. All it really knows is who to call. The one it calls is a recursive resolver. That's the operator. It takes your question, goes and finds the answer, and hands you back a number. And how does your laptop know the operator's number? It's handed over when the laptop joins the network, in the same exchange that gives the laptop its own address. Here's your house number, and here's who to ask about everyone else's.
The chain — three calls. Now follow the operator. You've asked for example dot com, and nobody's asked for it lately. First call: the root servers, at the very top of the tree. There are thirteen named ones, run as hundreds of machines in many countries. They don't know where example dot com lives. They do know who keeps everything ending in dot com, so they say: not me, ask them. Second call: the dot com office. Dot com is a top-level domain. So is dot org, and so is a country code, like dot J-P for Japan. The dot com office doesn't know the house number either, but it knows which office keeps the listing for example dot com, and it passes you along. That pass-along is called a referral. Third call: the authoritative server for example dot com. This one actually holds the listing. It doesn't refer you anywhere. It answers. Here's the number. The operator reads the number back to your laptop, and your laptop puts it on the envelope. In this simple case, that's three calls, and you never saw any of them.
The sticky note. The operator writes the answer down. A sticky note on the desk: example dot com, this number. Next time anyone asks, she reads the note instead of calling round. That's a cache. But every listing comes with a use-by time, set by whoever is in charge of the name. It's called the T-T-L, time to live, and it's counted in seconds. When it runs out, the note goes in the bin, and the next question means fresh calls. One. When a house number changes, nobody hears about it at the same moment. Each operator keeps her old note until it runs out. So for a while, some people get the new number and some get the old one. That's not a fault. That's the sticky notes. Two. The operator writes down bad news as well. If the answer was "no such name", that goes on a note too, with its own use-by time. It's called negative caching. The directory remembers that you don't exist.
The break — the machine that was never down. Now the break. Picture a machine in a rack. Power light on. Cable plugged in. Somebody tidying up the directory deletes the wrong listing. One line. The machine isn't touched. As the old notes run out, the alarm goes off. The website is down. Someone opens it in a browser, and the browser can't find it. Someone else pings it by name, and ping says it can't resolve the host. Unknown host. Every tool agrees. The machine is dead. So they restart it. Nothing. They swap the cable. Nothing. They stare at the power light, which is on, and has been on the whole time. Here's what nobody noticed. Ping never sent a single packet. The browser never knocked on the door. Every one of those tools asked the directory first, got "no such name", and stopped right there. Then they told everyone the site was down, because that's the only word they had. The site wasn't down. The name was. The instruments lied, not the hardware. That's the shit nobody checks first. And when someone finds it and puts the listing back, the site still doesn't come back for everyone. Remember the sticky notes. Every operator that asked during the outage wrote down "no such name", and some of them will keep saying it until their note runs out.
The fix — two questions, in order. So here's how you tell. Two questions, in order. One. Can I find it? Ask the directory directly, with a tool called dig. It prints a status line. NOERROR, with a number, means the listing is fine, so look somewhere else. NXDOMAIN means no such name. SERVFAIL means the directory itself had trouble answering. And you can point dig at a different resolver, to see if it's just your operator's sticky note. Two. Is anybody home? Take the machine's number and ping the number, not the name. A number skips the directory completely. If the number answers and the name doesn't, you've found it. It's the directory. Leave the machine alone. One fair warning. If the number doesn't answer, that isn't proof either. It's common for firewalls to ignore ping on purpose. Silence at the door isn't the same as nobody home. And read the error, because good tools tell you which question failed. The web tool curl has one error for "could not resolve host" and a different one for "failed to connect". The first is the phone book. The second is the house. And if you're about to change a listing, shorten its use-by time first. Then the old sticky notes run out fast.
The button. So next time something's down, ask the question the tools skipped. Is the house gone, or just the listing? Most of the time, the lights are still on. The kettle's still on. Somebody's home. They're just not in the book.
Short: The site wasn't down. The name was.
Transcript
Cold open. A house. Lights on. Somebody's home. But the directory says it doesn't exist. Websites do this too.
The house number. Every machine online has a number, like a house. That's what the network delivers to. But nobody types numbers. You type a name, and something has to look it up.
The phone book. That's D-N-S, the internet's phone book. Your device asks a resolver. The resolver asks around, then writes the answer on a sticky note, for a while. Bad news too.
The break. So a listing gets deleted. The machine is fine. Power on, cable in. But every tool reports it dead, because every tool asked the phone book first, and never knocked on the door.
The fix. Two questions. Can I find it? Ask the directory directly, with dig. Is anybody home? Ping the number, not the name.
The button. The site wasn't down. The name was. Episode two: The House Number.
Bonus episode: The Hive
Ten thousand bees hang off a branch with no home and nobody in charge, and they still pick the best site their scouts found. AI agent swarms borrow the "no boss" part. The part they skip is the one that keeps the bees honest: no scout's word counts until other bees fly out and check the site for themselves.
The bee facts were checked against Thomas D. Seeley's research on how honeybee swarms choose a home before the episode was voiced. The lying scout is a cartoon counterfactual: real scouts differ in enthusiasm, not honesty. Narration: take 3, voiced with Gherkin.
Transcript
Cold open — ten thousand bees, no boss. In spring, a hive splits. Thousands of bees leave with their queen and end up hanging off a branch in one big lump. No roof. No plan yet. Within a few days they'll have picked a new home, the best one they found. And nobody is in charge. People are building software that's meant to work the same way. Lots of small workers, no single brain. They call it a swarm. So let's look at how the bees do it, and at the one thing the software tends to leave out.
One agent. Start with one bee. A scout. She's one of the oldest bees in the swarm, and she has one job: go and find somewhere to live. Watch what she does. She has a goal. She has her equipment: wings to get there, senses to look the place over, and a dance to report back with. And she has a routine. Fly out. Look. Come back. Report. Then, if it was worth it, go again. That's an A-I agent. Strip off the marketing and an agent is four things. A model, which does the thinking. A goal, which somebody wrote down. Tools, which let it actually touch things: search the web, read a file, send an email, run some code. And a loop: try something, look at what happened, decide what to do next, go round again. A chatbot answers you once and waits. An agent keeps going until it thinks it's done. That's the whole difference, and it's bigger than it sounds, because nobody is reading every step.
The hive has jobs. Now, one bee doesn't make a swarm. Out of ten thousand or so bees on that branch, only a few hundred are scouts. The rest just hang there, quietly, and wait for news. A-I swarms copy this. Instead of one agent doing everything, you get specialists. One searches. One writes. One checks the writing. One tests the code. Each gets a narrow job, and only the tools for it. And here's where the bees surprise people. There's one queen on that branch. She comes along for the move. The scouts find the sites, and the scouts choose. Nobody runs the meeting. The decision is spread out across all of them. Most A-I swarms aren't built that way. Usually there's a boss agent, called an orchestrator, handing out the work and stitching the answers back together. That can work fine. But the bees get by without one, and how they manage it is the interesting part.
How they talk. So how do they talk? They dance. Inside a hive, a bee who's found food comes back and runs a little figure eight, waggling her body down the straight bit in the middle. The angle of that waggle run, measured from straight up, is the angle from the sun to the food. How long she waggles is how far away it is. Half a second is a couple of hundred metres. Four seconds is over four kilometres. When a swarm is house hunting, there's no comb to dance on. The scouts dance right on the surface of the cluster, on the other bees. That's the notice board. In A-I terms, that's messages and shared state. One place everybody writes to, and everybody reads from. Some people call it a blackboard. Remember the notice board. It's going to matter who gets to write on it.
The swarm decision. Back to the branch. The scouts fan out in every direction, checking anything that might do. Each one that finds a candidate comes back and dances for it. So at any moment there can be several different sites being advertised on the same swarm. Some good, some terrible. All at once. That's agents working in parallel. You hand the same problem to many agents, and each one comes back with its own answer. It's a good idea. More looks at the problem, in less time. But now you've got a pile of answers, and some of them are wrong. A crowd that decides by whoever shouts loudest decides badly. So the real question is how that pile turns into one good answer, with nobody in charge.
The mechanism — four rules, no boss. Here's how. Four rules, and none of them needs a boss. One. A scout who's found a great site dances hard. A hundred waggle runs or more, the first time she comes back. A so-so site gets a dozen or so. And every time she goes out and returns, she dances a bit less. Even for a great site. Eventually she stops. Enthusiasm runs out on its own. Two. A scout who watches a dance doesn't just repeat it. She flies out, inspects the site herself, and only dances for it if she agrees. Good sites pick up more dancers. Bad ones run out of them. Three. Scouts for one site head-butt the dancers for a rival site, with a short vibration. It's called a stop signal. It breaks ties, so the swarm doesn't dither forever between two good options. Four. When about fifteen scouts are at the same site at the same time, that's the quorum. Fifteen at once means something like a hundred and fifty have been visiting. The scouts head back to the swarm and start piping, a signal that tells everyone to warm up their flight muscles. That takes an hour or more. Then the whole swarm lifts off together. In A-I terms: confidence that fades, checking that's independent, a way to say stop, and a vote before anyone commits.
The break — a bee that doesn't exist. Now, a bee that doesn't exist. Real scouts only dance for sites they've actually been to. They differ in how keen they are, not in how honest. But picture one who dances for a site she never visited. In a real swarm, she still loses. The recruits fly out to look. There's nothing there. They don't dance. Her own dance fades on schedule, and nobody takes her word for it, because nobody takes anybody's word for it. In an A-I swarm, she can win. Agent A gets a question it can't really answer, and it fills the gap with something that sounds right. Agent B reads A's answer and builds on it. Agent C reads B's. At the end, a summary agent sees three agents agreeing, and writes it up as the plan. Nobody checked the site. Everybody checked the dance. And anyone could write on the notice board. Nobody in that chain meant to lie. But that's how a lie becomes the plan. That's the shit nobody puts in the demo. And there's a second way it goes wrong. The echo. Agent A asks B. B asks C. C asks A. Each one waits politely on the others, and the loop runs all night, burning time and budget, until something outside it pulls the plug.
The fix — the bees' three rules. So here's the fix. It's the bees' rules, written on a chalkboard. Rule one. Check it yourself before you repeat it. And a check only counts if it's independent. Three agents on the same model, re-reading the same output, isn't three checks. It's one opinion said three times. The recruits don't study the dance more carefully. They fly to the site. So give your checker something the first agent didn't have. Different data. A different method. A test it can actually run. Or a person. If the checker can't see anything the first agent couldn't, it isn't checking. It's agreeing. Rule two. Confidence fades unless it's earned again. Every task gets a timeout. Every agent gets a budget. An answer that can't be backed up again expires, the way a scout's dance does. Rule three. Commit only on a quorum. Not on the loudest agent, and not on the first one finished. Decide up front how many independent checks have to agree before anything ships. And keep a kill switch. The bees have a stop signal. Your swarm needs one too, with a person's hand on it. None of that is exotic. It's just the work the demo skips.
The button. Ten thousand bees, and no boss, move into a home that about a hundred and fifty of them went and looked at for themselves. No orchestrator. No single brain. Just a few hundred scouts who wouldn't take each other's word for it. That's not a hive mind. That's a hive with a habit of checking. Next time someone sells you a swarm, ask one question: who checks the scouts?
Short: Why 10,000 bees don't need a boss
Transcript
Cold open. Ten thousand bees, hanging off a branch. No home. Nobody in charge. In a few days they'll pick the best new home they found. Here's how.
The scouts. A few hundred scouts fly out. Each one comes back and dances for what she found. The better the site, the harder she dances. And every trip back, a little less.
The check. Here's the trick. A bee who watches a dance doesn't just repeat it. She flies out, checks the site herself, and only dances if she agrees.
The quorum. When about fifteen scouts are at one site at the same time, that's the vote. The swarm warms up. Then it goes.
The A-I part. People build A-I swarms the same way now. Lots of agents, no single brain. They copy the crowd. They often skip the checking. So one agent makes something up, the next one repeats it, and it becomes the plan.
The button. So who checks the scouts? That's The Hive. Full episode on the channel.
Episode 1: How the Internet Gets Into Your House
Quarter to eight: the shower's running, the kitchen tap's gone weak, and the show just froze. Same problem, twice. The internet comes into your house the way water does: a main from the street, a meter on the wall, a manifold, taps in every room, and a water tower down the road. Then everybody showers at 7:42.
Every number in the episode was checked against primary sources before it was voiced: undersea cables, light in glass, peak-time speeds, fiber splits. Narration: take 3, voiced with Gherkin.
Transcript
Cold open — the break. It's quarter to eight. Somebody upstairs is in the shower, and the kitchen tap just went weak. And in the living room, the show everyone's watching has stopped to think about it. Those two things have more in common than you'd expect. They're both pipes. They're both shared with the neighbors. And they can both get worse at the exact moment everybody wants them. Let's take the house apart and look.
The house — two sets of pipes. Every house has a water main. A pipe comes in from the street, goes through a meter on the wall, past a shutoff valve, into a manifold, and from there it branches off to every tap in the place. Your internet does almost exactly the same thing. A line comes in from the street. It goes into a box on the wall. From there, into a router, and the router hands it out to every device in the house. Some over cables. Most over the air. Same layout. Different stuff in the pipe. So let's follow it backwards, from the tap to the reservoir.
Where the pipe starts. Your water comes from a reservoir and a treatment plant. Your internet comes from data centers. Big, cold, windowless buildings full of computers, holding the videos and the email and the websites. And the pipes that connect them are mostly glass. People picture the internet in the sky, beamed from satellites. Some of it is. But nearly all of the traffic between continents runs through cables lying on the floor of the ocean. Just over six hundred of them. For most of the way across, each one is about as wide as a garden hose. When you watch something made on the other side of the world, it very likely came to you along the bottom of the sea.
The water tower down the road. Here's a detail most people never hear about. Your town doesn't pump every glass of water all the way from the reservoir. There's a water tower up the hill, holding a supply close by. The big video services do the same thing. They put copies of their popular shows in buildings near you. Often inside your internet provider's own building, on machines the video company hands them for free. It saves everybody the long haul. So the show you're watching tonight probably didn't cross an ocean. It came from a few miles away, out of somebody's water tower. The trade has a name: a content delivery network.
What's actually in the pipe. Inside those cables, and probably in the street outside your house, the pipe is a strand of glass thinner than a hair. And what flows through it isn't water. It's light. Tiny flashes, on and off, billions of times a second. On is a one. Off is a zero. Light in glass travels at about two-thirds of its top speed. Roughly two hundred thousand kilometres every second. That sounds instant. It isn't quite. From Seattle to New York, the light needs about twenty thousandths of a second, one way, and that's in a perfectly straight line. Real cables don't run straight. Nobody can make that faster. That's physics, not your provider.
Pipe size versus distance. Which brings us to the most misunderstood thing about internet speed. When you buy a faster plan, you're buying a wider pipe. More water per second. That's called bandwidth. Great for filling a bathtub, or downloading a big file. But a wider pipe doesn't make the first drop arrive any sooner. How long that first drop takes is called latency, and it's mostly about distance. A fire hose to the other side of the world still takes the same time to start dripping as a straw. That's why a video call can stutter on a very fast plan. The call doesn't need a bathtub. It needs every little drop on time.
Buckets, not a stream. Here's where the water story needs one correction. Water is one continuous stream. Data isn't. Everything you send or receive gets chopped into small pieces called packets. On a normal home network, each one carries at most about fifteen hundred bytes. Think buckets, not a stream. Every bucket has an address label on it, so it can find its own way, and the buckets get put back in order at the other end. A movie is millions of buckets. We'll come back to what happens when one gets spilled. That's its own episode.
The meter on the wall. Back at the house. Where the water main has its meter, your internet has a box on the wall. If your line is fiber, that box is called an O-N-T, and its whole job is translation. Light in, electrical signal out. If your line is the cable TV kind, made of copper, the box is a modem doing the same job over the same wire that carries the TV. After the box comes the router. That's your manifold. It takes one supply and shares it between every tap in the house, and it keeps track of which bucket belongs to which room.
The taps. And then the taps. A network cable is a proper pipe. The ordinary kind in most walls carries a full gigabit, up to a hundred metres. Wi-Fi is more like a sprinkler. It's convenient, it reaches everywhere, and it loses pressure with every wall, every floor and every refrigerator it has to get through. And everybody in the room is sharing the same spray. So you can pay for a big pipe at the street and still be drinking through a sprinkler in the back bedroom. A lot of the time, the street isn't the narrow part. The last ten metres are.
The break — everybody showers at seven. Now the part that ruins your evening. That line from the street isn't really yours. Out on the pole, or in a box at the end of the road, your house shares a connection with your neighbors. With fiber, one strand from the provider is split between as many as thirty-two or sixty-four homes. With cable, the street shares the same wire. The providers size that shared pipe on a bet: that not everybody will open their taps at the same time. It's called oversubscription, and most of the day it's a pretty safe bet. And then it's seven forty-two, and everybody on the street sits down to stream something at once. Every shower in the neighborhood is running. Your plan didn't change. Your neighbors' habits did. That's the shit nobody puts on the speed sticker. To be fair to the providers: when the government measured this, most people saw only a small dip at peak time. When yours is more than small, this is usually why.
The fix — find the narrow part. So before you blame anybody, find the narrow part. It takes ten minutes. Run a speed test with a cable plugged straight into the router. Then run it on Wi-Fi in the room where it's bad. If the cable is fast and the Wi-Fi isn't, it's the sprinkler. Move the router, or run a cable to the thing that matters. If both are slow, test again in the middle of the afternoon. Fine at three and slow at eight means it's the street, not your house. And that's a phone call to your provider, with numbers in hand.
The button. The internet is a lot of very fast glass, a box on your wall, and a quiet bet that your neighbors won't all shower at once. Most nights, the bet pays off.
Short: Why your internet slows down at 8 PM
Transcript
Cold open. Quarter to eight. The shower's running, the kitchen tap's gone weak, and the show just froze. Same problem, twice. Shared pipes.
Pipe size versus distance. A faster plan is a wider pipe. More per second. It doesn't make the first drop arrive any sooner. That's distance, and nobody can sell you less of it.
The break. And your line from the street is shared with the whole road. Providers bet everyone won't open their taps at once. Some nights, at seven forty-two, everyone does.
The fix. Test on a cable, then on Wi-Fi. Then at three, and at eight. Fine at three, slow at eight: it's the street, not your house.
The button. How the internet actually gets into your house, in Episode 1.
Next: Episode 6 · The Machine That Was Never Down.
