01 / 21

Fault
Tolerance

How networks stay reliable when things go wrong: understanding redundancy, routing, and keeping systems running.

AP Computer Science Principles

What Is Fault Tolerance?

A system is fault tolerant if it can continue operating properly even when one or more of its components fail. In networking, this means a message can still travel from sender to receiver even if a cable is cut or a router goes down.

Why Does It Matter?

★ Reliability
Hospitals, banks, and emergency services require networks that never fully go down.
★ Scalability
The Internet connects billions of devices. A single failure must not disconnect millions of users.
★ Cost Savings
Downtime costs businesses thousands of dollars per minute. Redundancy is cheaper than failure.

Redundancy: The Core Idea

Redundancy means having multiple paths or backup components so that if one fails, another can take over. In a network, redundancy typically means multiple routes exist between any two devices.

No Redundancy A B C ✕ fails C unreachable With Redundancy A B D C ✕ fails C still reachable via D

The Fault Tolerance Principle

Mathematically, in graph theory terms: a network is fault tolerant (with respect to a single edge failure) if the underlying graph is 2-edge-connected. This means every edge belongs to at least one cycle.

Minimum Connections for Fault Tolerance

Tree: \( n - 1 \) edges NOT fault tolerant A B C D 4 nodes, 3 edges Cycle: \( n \) edges Fault tolerant A B C D 4 nodes, 4 edges

Redundancy vs. Fault Tolerance

Redundancy Fault Tolerance
Definition Having extra/duplicate components Ability to keep working despite failures
Relationship The method (how) The goal (what we achieve)
Example Two cables between routers Data still flows if one cable breaks
Guarantee? Not alone: unused backups don't help Requires routing that uses backups

How to Determine Fault Tolerance

1
Identify all connections. Draw or examine the network diagram. Label every node (device) and edge (connection).
2
Remove one connection at a time. For each edge, ask: "Can every device still reach every other device?"
3
Check for disconnected nodes. If removing any single edge disconnects any node, the network is NOT fault tolerant.
4
Look for "bridge" edges. An edge is a bridge if it is the only path between two parts of the network. Any bridge = no fault tolerance.

Example 1: Simple Triangle

A B C 3 nodes, 3 edges

Example 2: A Bridge Problem

A B C BRIDGE D E F Removing the bridge disconnects left from right

Example 3: Fixing the Bridge

A B C NEW: A-E direct link D E F Now fault tolerant: 2 paths between clusters

Physical connections and logical routes

A home computer connects through exposed underground cable conduits toward a building containing server racks.Cables and equipment carry data between devices. To test fault tolerance, identify the logical links and check which routes remain after a specified failure.

Add a route to protect T

Five nodes P, Q, R, S and T. Failed link S–T is dashed red and crossed out; added R–T and the route P–R–T are teal.In the original graph, S–T is T’s only connection. Add R–T: when S–T fails, the route P → R → T survives. This test keeps every device operational and changes one link.Open full diagram

How the Internet Achieves Fault Tolerance

1
Multiple Redundant Paths: Data packets can travel through many different routes across routers worldwide.
2
Dynamic Routing Protocols: Routers automatically detect failed links and reroute traffic (e.g., BGP, OSPF).
3
Packet Switching: Each data packet can take a different path. If one path fails mid-transmission, remaining packets reroute.
4
Decentralized Design: No single point controls the whole Internet, so no single failure brings it down.

Tradeoffs of Adding Redundancy

✓ Benefits
Higher reliability, better uptime, data reaches its destination even during partial outages.
✕ Costs
More hardware, more cables, higher expense, increased complexity in managing routes.

Example: Counting Paths

A B C D A-B A-C B-D C-D A-D 4 nodes, 5 edges

Common Mistakes

✕ "More devices = fault tolerant"
Adding devices does NOT help unless you also add extra connections. A chain of 100 devices with no alternate paths is fragile.
✕ Ignoring bridges
Students often see a complex diagram and assume it must be fault tolerant. Always check for bridge edges that connect sub-networks.
✕ Confusing speed with reliability
A fast network is not necessarily fault tolerant. Redundancy is about alternate paths, not bandwidth.

Summary Table

Concept Definition Key Test
Fault Tolerance System works despite failures Remove 1 edge: still connected?
Redundancy Extra components/paths Multiple routes between nodes?
Bridge Edge whose removal disconnects graph Single point of failure?
Packet Switching Packets take independent paths Can packets reroute mid-stream?
Min. Edges (FT) \( \geq n \) edges for \( n \) nodes Every edge in a cycle?

Question 1 of 5

A network has 4 devices connected in a straight line (A-B-C-D). Is this network fault tolerant?

Question 2 of 5

What is the minimum number of connections (edges) needed for a network of 6 devices to be fault tolerant against a single connection failure?

Question 3 of 5

Which of the following best explains why the Internet is considered fault tolerant?

Question 4 of 5

In a network diagram, you identify an edge that, when removed, splits the network into two disconnected groups. This edge is called a:

Question 5 of 5

A company has 4 offices. Currently each office connects to the next in a ring (A-B-C-D-A). They want to add one more connection to increase fault tolerance. Which addition would help the most?