Networking
Difference Between Star, Bus, Ring, Mesh Topology, CBSE Computer Networks
Compare Star, Bus, Ring and Mesh network topologies with diagrams and advantages. CBSE Class 11 and 12 Computer Science exam-ready guide.
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:
- Star Topology
- Bus Topology
- Ring Topology
- 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 = 10connections, Example: 10 devices need10 x 9 / 2 = 45connections
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).
- Star uses a central hub; bus uses a shared backbone cable.
- In star, failure of one cable affects only one device; in bus, a cable break affects the entire network.
- 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.
Want to learn more?
Explore free chapter-wise notes with quizzes and code playground
Prefer watching over reading?
Subscribe for free.