Redundancy & Fault Tolerance
Why does a car carry a spare tire it almost never uses? The answer is one of the most important ideas in keeping computers running.
Swipe or tap Next for the next section
The Spare Tire
Most days, the spare tire in a car's trunk does nothing. It's extra weight you carry around "just in case." But on the day you get a flat, it's the difference between finishing your trip and being stuck at the side of the road.
Passenger jets work the same way. A plane with two engines is designed and tested so that it can keep flying safely on just one. The second engine isn't there because the plane needs both — it's there in case one stops.
Two Words, One Idea
Redundancy
Having extra parts, copies, or paths that aren't needed when everything is working.
The spare tire. The second engine.
Fault tolerance
The system keeps working even when one of its parts fails.
You finish the trip. The plane lands safely.
Redundancy is the cause; fault tolerance is the effect. Adding extra parts (redundancy) is how you build a system that survives a failure (fault tolerance).
One Road or Two?
Imagine two towns joined by roads. If there's only one road and it floods, the towns are cut off. If there are two roads, traffic just takes the other one.
The internet is built like the second picture, only with millions of connections. When a cable is damaged or a computer along the way breaks, data simply travels a different path. That's why a single broken cable doesn't take the whole internet down — see Packets & Routing for how data finds its way.
The Single Point of Failure
Engineers hunt for any part that, if it broke, would stop everything. They call it a single point of failure. The one road between the towns is one. So is a school's only Wi-Fi router, or a business where only one person knows the password to everything.
The fix is almost always redundancy: a second road, a backup router, a second person who knows how things work.
Redundancy All Around You
- Backups. Keeping your photos on your phone and in online storage means losing your phone doesn't lose your memories.
- Data centers. Big websites keep several copies of your data on different computers, often in different buildings or even different countries, so a fire or power cut in one place doesn't wipe anything out.
- Backup power. Hospitals have generators that start automatically if the electricity goes off.
- Extra bits. The error-correcting codes on the Error Correction page add extra bits that aren't part of the message itself. Those extra bits are redundancy too — they let the computer notice, and even fix, a bit that got flipped by accident.
It Isn't Free
Every spare costs something: a spare tire takes up trunk space, a second engine costs money and fuel, and every extra copy of data needs somewhere to be stored. So engineers ask how bad a failure would be. A lemonade stand might not need a backup table. A hospital definitely needs backup power. The more a failure would hurt, the more redundancy is worth paying for.
5 quick questions. Pick one answer for each — you'll see why straight away.
A plane can fly safely on one of its two engines. The second engine is an example of…
Redundancy means extra parts that aren't needed while everything works — there in case something fails.
What does it mean for a system to be fault tolerant?
Fault tolerance is about carrying on despite a failure — usually made possible by redundancy.
Computer A can reach computer D along two separate paths. A cable on one path is cut. What happens?
Having more than one path (redundancy) is what lets the network route around the damage (fault tolerance).
What is the main downside of adding redundancy to a system?
Every spare costs something. Engineers weigh that cost against how bad a failure would be.
Which of these is a single point of failure?
If that one router breaks, the whole school loses its connection. The other three all have a backup in place.