AP CSP Topic 4.2: Fault Tolerance | Big Idea 4 | APCSExamPrep.com
Topic 4.2: Fault Tolerance
🎯 What You Will Learn
- Define fault tolerance and explain why it is essential for the Internet
- Explain how redundancy creates fault tolerance in network design
- Analyze network diagrams to identify single points of failure
- Determine whether a network can still route data after a specific connection or device fails
- Explain the cost-benefit tradeoff of adding redundancy to a system
The Internet was designed so that if nuclear weapons destroyed major communication hubs, the remaining network could still route data. That design principle -- build in enough redundancy that no single failure can take down the whole system -- is called fault tolerance. And it's why your streaming service keeps working even when a data center in another state goes offline.
What Fault Tolerance Means
A system is fault-tolerant when it can continue to function even when some of its components fail. For the Internet, fault tolerance means that data can still be routed from sender to receiver even if specific connections or devices on the network go down.
Fault tolerance is achieved through redundancy -- including extra components that can take over when other components fail. On a network, redundancy means having more than one path between any two connected devices. If one path fails, data travels via a different route.
Redundancy and Network Diagrams
On the AP exam, fault tolerance questions almost always come with a network diagram showing devices (nodes) connected by lines (connections). You need to:
- Identify whether a path exists between two specific devices
- Determine if communication remains possible after a specific connection or device is removed
- Identify single points of failure -- connections or devices whose removal disconnects part of the network
A single point of failure is any component whose failure causes the entire system (or part of it) to stop functioning. Well-designed fault-tolerant systems eliminate single points of failure through redundancy.
Analyzing Network Diagrams: The Method
When given a network diagram on the AP exam:
- Label each device with the letter/number given (A, B, C...)
- List all direct connections shown in the diagram
- Apply the failure -- remove the specified connection or device
- Check for alternative paths between the required devices using the remaining connections
- Conclude: If at least one path exists, communication is possible. If no path exists, that was a single point of failure.
Example analysis: Network with devices A-B-C-D-E where A connects to B and C, B connects to D, C connects to D, D connects to E.
- Paths from A to E: A→B→D→E and A→C→D→E
- Remove connection B-D: A→C→D→E still works. Not a single point of failure.
- Remove device D: No path from A to E exists. D is a single point of failure.
The Cost-Benefit Tradeoff of Redundancy
Redundancy improves reliability but is not free. The CED states this explicitly: “Redundancy within a system often requires additional resources but can provide the benefit of fault tolerance.”
On the AP exam, expect questions asking you to evaluate whether adding redundancy is worthwhile for a given scenario:
| More Redundancy | Less Redundancy |
|---|---|
| Higher cost (more cables, more routers) | Lower cost |
| More reliable -- survives more failures | Less reliable -- more single points of failure |
| More complex to manage | Simpler design |
| Better scalability as new devices join | May bottleneck at high traffic |
Why the Internet Was Designed for Fault Tolerance
The original ARPANET (1969), which became the Internet, was explicitly designed so that the network would continue to function even if large portions were destroyed. Redundant paths and dynamic routing meant that data would automatically reroute around damage.
This design philosophy explains several properties of the modern Internet:
- No central controlling device -- if one router fails, traffic reroutes
- Dynamic routing protocols update path tables in real time as failures occur
- Multiple tier-1 network providers with interconnections ensure no single company failure takes down the whole Internet
- Content Delivery Networks (CDNs) replicate content across many geographic locations
Practice MCQs
Predict your answer before clicking. These questions match AP exam difficulty and phrasing.
Frequently Asked Questions
🔗 Continue Studying
Get in Touch
Whether you're a student, parent, or teacher — I'd love to hear from you.
Just want free AP CS resources?
Enter your email below and check the subscribe box — no message needed. Students get daily practice questions and study tips. Teachers get curriculum resources and teaching strategies.
Message Sent!
Thanks for reaching out. I'll get back to you within 24 hours.
Prefer email? Reach me directly at [email protected]