Networking

Star vs Bus vs Ring vs Mesh Topology — Difference, Diagrams, and Pros/Cons

Compare Star, Bus, Ring, and Mesh network topologies with diagrams, advantages, disadvantages, and real-world use cases. Easy comparison table included.

Network topology refers to the physical or logical arrangement of computers and devices in a network. This topic is asked frequently in CBSE Class 11 and 12 Computer Science exams, and understanding the four main topologies, Star, Bus, Ring, and Mesh, is essential.

What is Network Topology?

Network topology is the layout or structure in which devices (nodes) are connected to each other. The choice of topology affects the network's speed, cost, reliability, and scalability.

There are four main types of topology in the CBSE syllabus:

  1. Star Topology
  2. Bus Topology
  3. Ring Topology
  4. Mesh Topology

1. Star Topology

In a star topology, all devices are connected to a central hub or switch. Every device has a dedicated connection to the central device.

How it works: All communication passes through the central hub. If Device A wants to send data to Device B, the data goes from A to the hub, and the hub forwards it to B.

Advantages

  • If one cable or device fails, the rest of the network is unaffected, Easy to add or remove devices without disturbing the network, Easy to detect and isolate faults, Good performance because each device has a dedicated link to the hub

Disadvantages

  • If the central hub fails, the entire network goes down, Requires more cable compared to bus topology, The cost of the hub/switch adds to the overall expense, Performance depends on the capacity of the central device

Real-World Example

Most school and office LANs use star topology with a network switch at the center.


2. Bus Topology

In a bus topology, all devices are connected to a single central cable called the backbone or bus. Data sent by one device travels along the entire cable, and all devices receive it, but only the intended recipient processes it.

How it works: The cable has terminators at both ends to prevent signal reflection. When a device sends data, it travels in both directions along the bus.

Advantages

  • Easy to set up and requires the least amount of cable, Cost-effective for small networks, Simple layout and easy to understand

Disadvantages

  • If the main cable (backbone) fails, the entire network goes down, Difficult to troubleshoot faults, Performance degrades as more devices are added (collisions increase), Limited cable length and number of devices, Not suitable for large networks

Real-World Example

Early Ethernet networks (10Base2, 10Base5) used bus topology with coaxial cables.


3. Ring Topology

In a ring topology, each device is connected to exactly two other devices, forming a closed loop or circle. Data travels in one direction (unidirectional) from one device to the next.

How it works: Each device has a receiver and a transmitter. A device receives data from its predecessor and forwards it to its successor. A special frame called a token circulates around the ring, and a device can only transmit data when it holds the token.

Advantages

  • Equal access to the network for all devices, Performance does not degrade much with more devices, No collisions because of the token-passing mechanism, Orderly data transfer

Disadvantages

  • If one device or cable segment fails, the entire network can go down, Difficult to add or remove devices (network must be temporarily shut down), Troubleshooting is difficult, Slower than star topology for small networks because data must pass through each device

Real-World Example

IBM Token Ring networks used this topology. Modern fiber-optic rings (SONET/SDH) use a dual-ring variation for redundancy.


4. Mesh Topology

In a mesh topology, every device is connected to every other device in the network. This provides multiple paths for data to travel.

How it works: If there are n devices, the number of connections needed is n(n-1)/2. Data can take any available path from source to destination.

Advantages

  • Extremely reliable, if one connection fails, data can take an alternative path, No traffic congestion because of multiple paths, Faults are easy to diagnose, Provides high security and privacy (dedicated links)

Disadvantages

  • Very expensive due to the large number of cables and ports required, Complex installation and configuration, Difficult to manage as the network grows, Impractical for large networks due to the formula n(n-1)/2

Calculating Connections

For n devices in a full mesh:

  • Number of connections = n(n-1)/2
  • Example: 5 devices need 5 x 4 / 2 = 10 connections, Example: 10 devices need 10 x 9 / 2 = 45 connections

Real-World Example

The core of the internet backbone uses a partial mesh topology. Military and banking networks use mesh for reliability.


Complete Comparison Table

Feature Star Bus Ring Mesh
Central Device Hub/Switch None (backbone cable) None None
Cable Required Moderate Least Moderate Most
Cost Moderate Low Moderate Very High
Reliability High (except hub) Low Low Very High
Fault Tolerance Good Poor Poor Excellent
Ease of Adding Devices Easy Moderate Difficult Difficult
Troubleshooting Easy Difficult Difficult Easy
Performance Good Degrades with load Moderate Excellent
Single Point of Failure Hub Backbone cable Any device/cable None
Scalability Good Poor Poor Poor (cost)
Data Direction Hub to device Both directions One direction Multiple paths

Hybrid Topology

A hybrid topology combines two or more topologies. For example, a large office may use a star topology within each floor and connect floors using a bus backbone. This is called a Star-Bus hybrid.

Most real-world networks are hybrid topologies that balance cost, performance, and reliability.


Tree Topology

A tree topology is a hierarchical combination of star topologies connected by a bus backbone. It is also called a star-bus topology.

  • Used in large organizations with multiple departments, The root node connects to second-level nodes, which connect to third-level nodes, Failure of a branch does not affect other branches

Common Exam Questions

Q1: What is the main disadvantage of star topology?

If the central hub or switch fails, the entire network becomes non-functional. The hub is the single point of failure.

Q2: Which topology is most fault-tolerant and why?

Mesh topology is the most fault-tolerant because every device has multiple paths to every other device. If one link fails, data is automatically routed through an alternative path.

Q3: In a mesh topology with 6 computers, how many cables are needed?

Number of cables = n(n-1)/2 = 6 x 5 / 2 = 15

Q4: Why is bus topology not suitable for large networks?

As more devices are added, data collisions increase and performance degrades. The backbone cable also has a limited length. A break anywhere in the backbone brings down the entire network.

Q5: Name the topology where a token is used for data transmission.

Ring topology. A token circulates around the ring, and only the device holding the token can send data.

Q6: Compare star and bus topology (3 points).

  1. Star uses a central hub; bus uses a shared backbone cable.
  2. In star, failure of one cable affects only one device; in bus, a cable break affects the entire network.
  3. Star is easier to troubleshoot and scale; bus is cheaper to install.

How to Remember the Topologies

  • Star = Think of a star shape with a center, all devices connect to one central point
  • Bus = Think of a bus route, one long road (cable) with stops (devices) along the way
  • Ring = Think of a ring, devices form a circle, data goes round and round
  • Mesh = Think of a mesh net, every point is connected to every other point

This comparison is frequently tested in CBSE board exams. Practice drawing the diagrams and writing the advantages and disadvantages from memory to score full marks.


Frequently Asked Questions

Which network topology is the most reliable?

Mesh topology. Because every device connects to every other device, multiple alternate paths exist between any two points. Even if several links fail, the network keeps working. The downside is cost — a full mesh of N devices needs N(N-1)/2 cables, so it's only used where reliability is critical (military, telecom backbones, top-tier data centers).

Which topology is most common in modern networks?

Star topology — by a wide margin. Every Wi-Fi router at home is the center of a star (all devices connect to it). Every Ethernet switch in an office runs star topology. It's popular because adding or removing a device is trivial and a single cable fault only takes down one node.

What is a hybrid topology?

A hybrid topology combines two or more topology types. The most common example: a large company has multiple star-topology offices, and those office hubs are connected to each other in a partial mesh. Most real-world networks above a certain size are hybrid, even if a single floor is "pure star."

Why is ring topology rarely used today?

Two reasons: (1) a single break in the ring brings down the whole network unless you add redundancy (dual ring), and (2) data has to hop through every node between source and destination, adding latency. Modern switched Ethernet solved both problems with star topology. Ring is still used in some industrial control networks (FDDI, Token Ring legacy) and in fiber-optic backbones (SONET rings).

What is the difference between physical and logical topology?

Physical topology is how the cables are actually laid out (star, bus, ring, mesh). Logical topology is how data flows on those cables — independently of the wiring. For example, a network can be physically star-wired (all to a switch) but use a logical ring protocol like Token Ring. In modern networks, physical = logical = star most of the time.

What is tree topology?

Tree topology is a hierarchy of star topologies — a "root" hub at the top, branching out to lower-level hubs, which branch out to end devices. It's how large university or campus networks are wired: a core router connects to building-level switches, which connect to floor-level switches, which connect to user devices.

Which topology uses the least cable?

Bus topology uses the least cable because all devices share one backbone — you just tap into the existing cable to add a device. That's why bus was popular in the 1980s when cable was expensive. Today cable is cheap and switches are cheap, so star wins.

What happens if the central switch fails in star topology?

The entire network goes down for the devices connected to that switch — that is star topology's single point of failure. The fix is redundancy: a backup switch with automatic failover, or a partial mesh between switches so traffic can re-route. Critical networks always have redundant central devices.

Want to learn more?

Explore free chapter-wise notes with quizzes and code playground

Prefer watching over reading?

Subscribe for free.

Subscribe on YouTube