Network Topologies (Star, Bus, Ring, Mesh)

A network topology is the physical or logical layout of how devices in a network connect to each other. In a bus, devices share one cable; in a star, each connects to a central hub or switch; in a ring, they form a closed loop; and in a mesh, they have multiple redundant paths, trading cost for fault tolerance.

3 min read

A network topology describes the arrangement of connections between devices on a network, essentially the shape the network forms if you drew it out. The topology chosen affects cost, how easy the network is to expand, and crucially, what happens when one connection or device fails.

The main topologies

Bus topology. Every device connects to a single shared cable (the "bus"). It's cheap and simple to set up, but the entire network depends on that one cable: if it breaks anywhere, the whole network goes down, and only one device can transmit at a time without collisions.

Star topology. Every device connects individually to a central hub or switch, rather than to each other directly. This is by far the most common topology in real networks today. If one device's connection fails, only that device is affected, the rest of the network keeps working. The tradeoff is that the central hub is now a single point of failure: if it goes down, every device connected to it loses connectivity.

Ring topology. Each device connects to exactly two neighbors, forming a closed loop, and data travels around the ring from device to device until it reaches its destination. A single break in the ring can take down the whole network, though some ring implementations add a second counter-rotating ring specifically so traffic can be rerouted around a single break.

Mesh topology. Devices connect to multiple other devices, sometimes every other device (a full mesh), providing many possible paths between any two points. This is the most fault-tolerant option, since traffic can route around a failed connection, but it's also the most expensive and complex to wire, since the number of connections needed grows quickly as devices are added.

A worked example

An office with 20 computers wired in a star topology: each computer has its own cable running to a central switch. If one employee's cable gets unplugged or damaged, only their computer loses network access, everyone else keeps working normally. If the central switch itself fails, though, all 20 computers lose connectivity simultaneously, which is exactly the tradeoff a star topology makes: isolated device failures are contained, but the central point becomes critical infrastructure.

Where this matters in real systems

Nearly all modern office and home networks use star topology in practice, because switches became cheap enough that the single-point-of-failure tradeoff is easily worth it for the fault isolation it provides. The internet's own backbone, at a much larger scale, is closer to a mesh: major network hubs have multiple redundant connections to each other specifically so that a single fiber cut or router failure doesn't take down an entire region's connectivity, traffic simply reroutes through an alternate path.

What interviewers actually ask about network topologies

  • "What's the most common topology used in real networks today, and why?" Star topology, because a switch failure is rare and the fault isolation (one device's connection failing doesn't affect anyone else) outweighs the single-point-of-failure risk at the center.
  • "What's the main weakness of a bus topology?" The entire network depends on one shared cable; a single break anywhere takes down the whole network.
  • "Why would someone choose a mesh topology despite the extra cost?" Fault tolerance: with multiple paths between devices, the network can keep functioning even if individual connections fail, which matters for critical infrastructure like the internet backbone.
  • "How does a ring topology handle a broken connection?" A single break can take down the whole ring unless the implementation includes a second counter-rotating ring to reroute traffic around the failure.

Key takeaways

  • Network topology describes the layout of connections between devices, and directly affects cost, fault tolerance, and ease of expansion.
  • Bus topology is cheap but has a single shared point of failure; star topology isolates device failures but makes the central hub critical.
  • Ring topology forms a closed loop; mesh topology provides multiple redundant paths at higher cost and complexity.
  • Star topology is the most common in practice today; large-scale infrastructure like the internet backbone leans toward mesh-like redundancy.
All 101 Computer Networks interview questions

Log in to save which topics you've read across every subject.

Frequently asked questions

What's the most common topology used in real networks today, and why?

Star topology, because a switch failure is rare and the fault isolation (one device's connection failing doesn't affect anyone else) outweighs the single-point-of-failure risk at the center.

What's the main weakness of a bus topology?

The entire network depends on one shared cable; a single break anywhere takes down the whole network.

Why would someone choose a mesh topology despite the extra cost?

Fault tolerance: with multiple paths between devices, the network can keep functioning even if individual connections fail, which matters for critical infrastructure like the internet backbone.

How does a ring topology handle a broken connection?

A single break can take down the whole ring unless the implementation includes a second counter-rotating ring to reroute traffic around the failure.