Unit 2: The Internet · Routing with redundancy

Article

Redundancy and fault tolerance

6 min read

A digger cuts through a cable under a road. Thousands of people lose that cable, yet most of them keep watching videos and sending messages as if nothing happened. How? The Internet was built with spare routes, so that one broken cable is not the end of the story.

One road or many roads?

Compare two small networks. Each letter is a device, and each line is a link.

Network 1: a line

ABCD
One way from A to D. If B to C breaks, A and D are cut off.

Network 2: a ring

ABCD
Two ways from A to D, so one broken link is not a problem.

In Network 1 there is exactly one way from A to D: through B and C. If the link between B and C breaks, A is cut off from D.

In Network 2 there are two ways from A to D: A-B-C-D and A-D directly. If one link breaks, packets use the other way.

Having more than one way to get from a sender to a receiver is called redundancy. "Redundant" here does not mean "useless". It means "extra, kept ready in case it is needed".

The ability of a system to keep working when some of its parts fail is called fault tolerance. Redundancy is how a network becomes fault tolerant. Routers make it work in practice: when a link fails, they notice, and they send later packets another way.

Check your understanding

A network keeps delivering messages even after one of its cables is cut. Which term describes this ability?

Counting paths

On the exam you may have to count the different paths between two devices. A path is a list of links from the start to the end, and it never visits the same device twice. Here is a bigger network:

ABCDEF

From A to D: the paths are A-B-D and A-C-D. That is 2 paths.

From A to F: every path must go from D to E and then to F, so the paths are A-B-D-E-F and A-C-D-E-F. That is also 2 paths. But the two paths share the links D-E and E-F.

This sharing is a weakness. If the link D-E fails, both paths are broken and F is cut off. A link or device that a connection cannot do without is called a single point of failure. By contrast, if the link A-B fails, the path A-C-D-E-F still works, so no single failure of A-B can stop A reaching F.

Which links can fail one at a time without disconnecting A from F? Try each link in your head: remove it, then look for a path that is left.

Check your understanding

The devices in this network are joined in a ring. The link between B and C stops working.

A --- B --- C
|           |
F --- E --- D

Which statement is true?

Worked example

In the network above, the link B-D fails.

  1. Cross out B-D. The paths from A to D that used it are gone: A-B-D is broken.
  2. Look for what is left: A-C-D still works.
  3. A can still reach D, and it can still reach F through A-C-D-E-F.

Redundancy paid off: one failure did not stop communication. But the network is only protected where it has spare paths. A second failure, on D-E, would now cut F off for good.

Is more redundancy always better?

More links mean more fault tolerance, but they also cost money to build and to look after. Networks with important jobs, such as hospitals or banks, usually pay for extra links. A small home network often has only one connection to the Internet. The real Internet has so many links and routers that, between most places, there are a great many routes.

Common mistakes

  • "Redundancy makes the network faster." Not necessarily. It makes the network more reliable. Speed is a different question.
  • "Fault tolerant means nothing can ever fail." No. It means the system keeps working after some failures. Enough failures can still break it.
  • Counting a path that visits a device twice. A path never goes through the same device two times.
  • Forgetting shared links. Two paths that share a link both break when that link breaks.

On the exam

A diagram of devices and links is shown. You may be asked how many paths join two devices, which single link failure would disconnect two devices, or why the Internet keeps working when part of it fails. Remove the link in your mind, then search for a path that is left.

Key words

Redundancy: having extra links or paths, so that there is more than one way to deliver data.

Fault tolerance: the ability of a system to keep working when some of its parts fail.

Path: a list of links that joins a start device to an end device without visiting any device twice.

Single point of failure: a link or device that, if it fails, stops a connection from working.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this site. All lessons and questions here are written by JrCodex.