3. Network Topology
What is Network Topology?
Network topology refers to the arrangement or layout of devices and connections in a computer network.
In simple words:
Topology describes how computers, network devices, and communication links are connected to each other.
For example:
PC ─── PC ─── PC
and
PC │ PC ─ Switch ─ PC │ PC
are two different network topologies.
Topology can describe both:
- Physical topology → How devices and cables are physically arranged.
- Logical topology → How data actually flows through the network.
Types of Network Topology
The major network topologies are:
- Bus Topology
- Star Topology
- Ring Topology
- Mesh Topology
- Tree Topology
- Hybrid Topology
- Point-to-Point Topology
1. Bus Topology
In Bus topology, all devices are connected to a single main communication cable, called the backbone.
Main Backbone ──────────────────────────────── │ │ │ PC1 PC2 PC3
All devices share the same communication medium.
How it works
When one computer sends data:
PC1 ────────────────> PC2 │ │ └────────> PC3 ──────┘
The signal travels along the backbone, and the intended device processes the data.
Terminators
Traditional bus networks require terminators at both ends of the backbone.
[T]──PC1──PC2──PC3──PC4──[T]
[T] = Terminator
Terminators help prevent signals from reflecting back along the cable.
Advantages
- Simple design
- Requires less cable
- Relatively inexpensive
- Easy to understand
Disadvantages
- Backbone failure can bring down the network
- Troubleshooting can be difficult
- Performance decreases as traffic increases
- Limited scalability
- A break in the main cable can affect multiple devices
Historical example
Older Ethernet networks using coaxial cable commonly used bus topology.
2. Star Topology
In Star topology, every device connects to a central device, usually a switch.
PC1 │ │ PC2 ─────── Switch ─────── PC3 │ │ PC4
This is one of the most common topologies used in modern Ethernet LANs.
How it works
If PC1 wants to communicate with PC3:
PC1 │ ↓ Switch │ ↓ PC3
The switch forwards the traffic toward the appropriate device.
Advantages
- Easy to install
- Easy to manage
- Easy to troubleshoot
- Failure of one cable usually affects only one device
- Easy to add or remove devices
- Good performance with switches
Disadvantages
- Central switch is a critical point
- Requires more cable than bus topology
- If the central switch fails, connected devices lose network connectivity
Real-world example
A computer lab:
Switch / │ \ PC1 PC2 PC3 │ │ │ PC4 PC5 PC6
3. Ring Topology
In Ring topology, each device is connected to two neighboring devices, forming a closed loop.
PC1 ───── PC2 │ │ │ │ PC4 ───── PC3
Data travels around the ring according to the technology being used.
Example
PC1 → PC2 → PC3 → PC4 → PC1
Some historical ring networks used token passing, where a token controlled which device could transmit.
Advantages
- Predictable access in token-based implementations
- Every device has an organized communication path
- Can perform consistently under certain traffic conditions
Disadvantages
- A single link/device failure can disrupt the ring in a simple implementation
- Troubleshooting can be harder
- Adding/removing devices can interrupt the network
- Less common in modern ordinary LANs
Important
Don't assume that every ring network sends data in exactly one direction. Some implementations use dual rings or other mechanisms for redundancy.
4. Mesh Topology
In Mesh topology, devices have multiple connections to other devices.
There are two main types:
- Full Mesh
- Partial Mesh
Full Mesh
In a full mesh, every device is directly connected to every other device.
For example, with four devices:
PC1 / | \ / | \ PC2──┼──PC3 \ | / \ | / PC4
More conceptually:
PC1 ───── PC2 │ \ / │ │ \ / │ │ \ / │ PC3 ─────── PC4
The important idea is that each node has a direct connection to every other node.
Number of links
For n devices, a full mesh requires:
n(n − 1) / 2
links.
For example:
- 3 devices → 3 links
- 4 devices → 6 links
- 5 devices → 10 links
This is why full mesh becomes expensive as the network grows.
Advantages
- Very high redundancy
- Multiple paths between devices
- Failure of one link doesn't necessarily disconnect devices
- Good reliability
Disadvantages
- Very expensive
- Requires many cables/ports
- Difficult to install
- Difficult to maintain as the network grows
Partial Mesh
In partial mesh, only some devices have multiple connections.
Router1 / \ / \ Router2 ─── Router3 │ Router4
Partial mesh is much more practical than full mesh for many real-world networks.
5. Tree Topology
Tree topology combines hierarchical organization with multiple star-like networks.
It looks like a tree:
Core │ ┌──────┴──────┐ │ │ Switch1 Switch2 / \ / \ PC1 PC2 PC3 PC4
A central/core device connects to distribution devices, which connect to other devices.
Advantages
- Highly scalable
- Easy to organize hierarchically
- Suitable for large networks
- Easier management by network layers
Disadvantages
- Failure of an important higher-level device can affect many devices
- More complex than a simple star
- Requires more infrastructure
Example
Large organizations and campus networks often use hierarchical designs resembling tree topology.
6. Hybrid Topology
Hybrid topology combines two or more different topology types.
For example:
Star Network / | \ PC PC PC \ | / ── Switch ── │ Backbone │ ┌────┴────┐ Ring Star
A network could combine:
- Star + Bus
- Star + Ring
- Star + Mesh
- Multiple other combinations
Advantages
- Flexible
- Scalable
- Can be designed according to requirements
- Suitable for large and complex networks
Disadvantages
- More expensive
- More complicated
- Requires careful planning
- Troubleshooting can be more difficult
7. Point-to-Point Topology
Point-to-point topology provides a direct connection between two devices.
Device A ───────────────── Device B
There are only two endpoints.
Examples
- Router-to-router link
- Dedicated communication link
- Direct serial communication
- Some WAN connections
Advantages
- Simple
- Fast
- Easy to configure
- Dedicated connection
Disadvantages
- Only connects two endpoints
- Not suitable by itself for connecting many devices
Physical vs Logical Topology
This is an important concept.
Physical Topology
Describes how devices and cables are physically arranged.
Example:
Switch / | \ PC PC PC
This is physically a star.
Logical Topology
Describes how data flows through the network.
The physical arrangement and logical data flow don't necessarily have to be identical.
For example, a network may physically use a particular wiring arrangement while the communication protocol determines a different logical flow.
Topology Comparison
| Topology | Main Structure | Main Advantage | Main Disadvantage |
|---|---|---|---|
| Bus | Single backbone | Low cable usage | Backbone failure affects network |
| Star | Central switch/device | Easy management | Central device is critical |
| Ring | Closed loop | Organized communication | Failure can disrupt simple rings |
| Mesh | Multiple interconnections | High redundancy | Expensive |
| Tree | Hierarchical | Scalable | Higher-level failures can affect branches |
| Hybrid | Combination | Flexible | Complex |
| Point-to-Point | Direct link | Simple and fast | Only two endpoints |
Star vs Bus
This is a common exam comparison.
Bus
PC ─── PC ─── PC ─── PC Backbone
All devices share a common backbone.
Star
PC │ PC ── Switch ── PC │ PC
Every device has a separate connection to the central device.
Key difference
Bus: One shared backbone.
Star: Central connecting device.
Star vs Mesh
Star
PC │ PC ── Switch ── PC │ PC
Mesh
PC1 ───── PC2 │ \ / │ │ \ / │ │ \ / │ PC3 ─────── PC4
Star: Simpler and cheaper.
Mesh: More redundant but more expensive.
Real-World Example
Consider a college network:
Internet │ Router │ Core Switch ┌─────┴─────┐ │ │ CSE Switch Admin Switch / | \ / \ PC1 PC2 PC3 PC4 PC5
At different levels, this can be viewed as a hierarchical/tree-like network, while each individual access segment may be a star topology.
This is why real networks don't always use just one topology.
Important Terms
Node
A device participating in a network.
Link
A communication connection between devices.
Backbone
A major communication path carrying traffic between network segments.
Central Device
A device such as a switch that connects multiple devices in a star network.
Redundancy
Having alternative paths or components so that one failure doesn't necessarily stop communication.
Easy Memory Trick
Remember the shapes:
BUS ──────────────────── │ │ │ PC PC PC STAR PC │ PC ── SWITCH ── PC │ PC RING PC ─── PC │ │ PC ─── PC MESH PC ───── PC │ \ / │ │ \ / │ PC ───── PC TREE Core / \ Switch Switch / \ / \ PC PC PC PC
One-line definitions
- Bus: All devices share one backbone.
- Star: All devices connect to a central device.
- Ring: Devices form a closed loop.
- Mesh: Devices have multiple interconnections.
- Tree: Devices are arranged hierarchically.
- Hybrid: Combination of multiple topologies.
- Point-to-Point: Direct connection between two devices.