See how a network reroutes when a link fails

Learn how OSPF, spanning tree, BGP and first-hop redundancy react to a failure, then watch it happen on your own diagram, with packets moving live.

6 minute read · 17 November 2026

A good network does not stop when one cable or one router fails. Traffic finds another way. That is the idea behind redundancy. But it is hard to picture. How long does the switch-over take? Which packets are lost on the way? Which link ends up carrying the extra load?

Reading about it helps. Watching it happen helps more. This guide explains the basics of four common mechanisms in plain words, then shows how to watch them on a diagram.

The four mechanisms in plain words

OSPF: every router has the map

OSPF is a routing protocol used inside one organisation. Each router tells the others about its links and their costs. Every router then builds the same map of the network and works out the cheapest path to every destination.

When a link fails, the routers that notice it tell the others, and everyone works out the paths again. How fast this happens depends on how the failure is noticed. If a cable is unplugged and the router sees the port go down, it reacts at once. If something in between fails silently, the router has to wait until it has not heard from its neighbour for a set time, the dead interval. On common Ethernet links this is often 40 seconds unless it has been tuned, or unless a faster detection method such as BFD is used.

Spanning tree: switches that avoid loops

Switches that are joined in a ring or a mesh can send a packet round and round forever. Spanning tree prevents that. The switches choose one of them as the root, and then block some ports so that only one active path exists between any two points.

The blocked ports are the backup. When an active link fails, a blocked port can start forwarding. Classic spanning tree can take tens of seconds to do this. Rapid spanning tree is much faster, usually a few seconds or less.

BGP: the routing between networks

BGP carries routes between networks, for example between your company and its internet providers. A router that has more than one way out chooses the best exit using rules and preferences. When the best exit fails, it picks the next one. BGP is deliberately careful and steady, so detecting a failed neighbour can take much longer than inside a network, unless faster detection is used.

First-hop redundancy: one gateway that cannot die

Your computers have one default gateway address. To make it survive a router failure, two routers can share that address, using protocols such as HSRP, VRRP or GLBP. One router is active. The other is on standby, and takes over when the active one stops answering.

What you want to learn from a failure

For any design, these are good questions:

  1. Which traffic is affected when this link or device fails?
  2. How long does it take until traffic flows again?
  3. Which path does the traffic take afterwards? Is it the one you planned?
  4. Is there a single point of failure that takes something down?

You can answer them from a lab with real equipment. But a lab takes time, and you cannot always have one. A diagram that simulates the behaviour lets you try ideas quickly.

Watch it live with TopoLive

TopoLive is a diagram editor where traffic moves. You draw devices and cables, add flows between devices, and it works out the routes and sends packets along them. It runs in Microsoft Edge or Google Chrome on your own computer, and your diagrams stay there.

  1. Start TopoLive. A new page opens with a small campus network and traffic already running: a remote user, the internet, two firewalls, two core routers, three access switches, a load balancer and a few servers. Coloured dots are packets, and each colour is a flow.
  2. Double-click a device or a cable to fail it. It turns red and crossed out. The traffic that used it finds another way. A flow that has no way through shows where it stopped, with the word LOST.
  3. Double-click again to bring it back, or press Restore everything.
  4. Watch Simulation health at the top right. It counts the devices that are down, the cables that are cut, and the flows that are still routed.
A TopoLive diagram with one core router failed, crossed out in red, and the packets taking another path
One core router has failed, and the traffic reroutes.

Find the weak spots

Press Failure analysis (what-if)… under Simulation health. TopoLive fails every cable and every device in turn, on its own, and lists the single points of failure: what would break at least one flow, and how many flows would break or reroute. Click a row to select that cable or device on the page.

Make the switch-over realistic

Real networks do not recover in an instant. In the Protocols panel, turn on Realistic convergence. A failure then goes unnoticed for a while, with traffic visibly lost, until BFD or the routing protocol’s own timer fires. Then the network converges. You can see why timers matter.

TopoLive works out behaviour from each device’s own settings: which switch is the spanning-tree root and which ports are blocked, which router is active for HSRP, VRRP or GLBP, OSPF costs, equal-cost paths, the best BGP exit and load-balancer pools.

Play a ready-made scenario

Protocol scenarios… in the Story bar opens a catalogue of ready-made scenarios, such as an OSPF cost change, a BGP hijack, a first-hop redundancy takeover or an MPLS fast reroute. Pick one, and it maps its roles onto your own devices so it plays on your diagram.

Show it to others

If you teach or present a design, build a story: a scenario in steps, with callouts. Present shows it full screen. To share it with someone who does not have TopoLive, export it as an animated HTML page or as PowerPoint, one slide per step.

A fair word of caution

A simulator is for learning, explaining and testing ideas. It is not the same as your real devices with your real configuration. Before you change a production network, check the behaviour on the real equipment too.

Try it

TopoLive is for Windows, with a free trial that has every feature on. The first diagram guide shows how to start, and fail a device and tell a story covers failures in more detail.

Do you also work from packet captures? See how to find what is slowing your network.

Stuck on something this guide did not cover? Tell us what you are trying to do and a real person will reply. Contact support