👁 Preview — Study, Practice and Revise are open; mock tests and the rest of the syllabus unlock on subscription. Unlock all · ₹4,999
← Back to Network Fundamentals
Study mode

Network topologies

Network Topologies

In computer networking, a network topology refers to the arrangement or layout of different devices (also called nodes) and how they are interconnected. Think of it as the map or blueprint that shows how computers, printers, servers, and other devices connect and communicate with each other.

Understanding network topologies is crucial because the design affects how data travels, how easy it is to add new devices, how reliable the network is, and how much it costs to build and maintain.

Physical vs Logical Topology

Before diving into types of topologies, it's important to distinguish between two related concepts:

  • Physical Topology: The actual physical layout of cables, devices, and connections. For example, where the wires run and how devices are physically placed.
  • Logical Topology: How data flows within the network, regardless of physical connections. For example, data might flow in a ring pattern even if the cables are arranged differently.

Often, physical and logical topologies are the same, but sometimes they differ, which can affect network performance and troubleshooting.

Network topology impacts three key aspects:

  • Performance: How fast and efficiently data moves.
  • Scalability: How easily the network can grow by adding more devices.
  • Fault Tolerance: How well the network handles failures without breaking down.

Let's explore the common types of network topologies, starting with the basic ones.

Bus Topology

Imagine a single straight road where all houses are connected along it. In a bus topology, all devices share a single communication line or cable called the bus. Each device taps into this bus to send or receive data.

When a device sends data, the signal travels along the bus and all devices see it, but only the intended recipient processes it.

At both ends of the bus, special devices called terminators are placed. Terminators absorb signals to prevent them from bouncing back, which can cause interference and data errors.

Terminator Terminator

Advantages:

  • Simple and inexpensive to set up.
  • Requires less cable compared to other topologies.

Disadvantages:

  • If the main cable (bus) fails, the entire network goes down.
  • Performance decreases as more devices are added.
  • Terminators are essential; missing them causes signal reflection and errors.

Star Topology

Think of a bicycle wheel, where all spokes connect to the central hub. In a star topology, all devices connect individually to a central device called a hub or switch. The hub acts as a traffic controller, receiving data from one device and forwarding it to the intended recipient.

Data flows from a device to the hub, then from the hub to the destination device.

Advantages:

  • Easy to install and manage.
  • If one device fails, others remain unaffected.
  • Adding or removing devices is simple.

Disadvantages:

  • The central hub is a single point of failure; if it fails, the whole network stops working.
  • Requires more cable than bus topology.

Ring Topology

Imagine a circular track where runners pass a baton to the next runner. In a ring topology, each device connects to exactly two other devices, forming a closed loop or ring. Data travels in one direction around the ring until it reaches the destination.

Some ring networks use a special control token that circulates; only the device holding the token can send data. This method avoids collisions.

Advantages:

  • Data flows in one direction, reducing collisions.
  • Easy to identify and isolate faults.

Disadvantages:

  • If any single device or connection breaks, the entire network can be disrupted.
  • Adding or removing devices can be difficult and may require temporarily shutting down the network.

Mesh Topology

In a mesh topology, every device connects directly to every other device. This creates multiple paths for data to travel, offering high redundancy and fault tolerance.

There are two types:

  • Full Mesh: Every device connects to all others.
  • Partial Mesh: Some devices connect to multiple others, but not all.

Advantages:

  • Highly reliable; if one link fails, data can take another path.
  • Excellent fault tolerance and security.

Disadvantages:

  • Very expensive and complex to install due to many cables and ports.
  • Maintenance and configuration can be difficult.

Tree Topology

The tree topology is a hierarchical layout combining characteristics of bus and star topologies. It looks like a tree with branches: a root node connects to one or more nodes, which in turn connect to others, forming a structure of multiple star-configured segments connected by a bus backbone.

Advantages:

  • Scalable and easy to manage.
  • Fault isolation is easier compared to bus topology.

Disadvantages:

  • If the backbone (root) fails, large parts of the network become inaccessible.
  • More cabling and configuration required than simple topologies.

Hybrid Topology

A hybrid topology combines two or more different topologies to leverage their strengths and minimize weaknesses. For example, a network might use star topology in departments and connect these stars using a bus or ring topology.

Advantages:

  • Flexible and scalable to meet complex needs.
  • Can optimize performance and fault tolerance.

Disadvantages:

  • Design and maintenance can be complex.
  • Costs may be higher due to mixed components.

Topology Comparison

Topology Cost (Approx. in INR) Scalability Fault Tolerance Ease of Installation
Bus Low (~Rs.5,000 for 10 devices) Poor Low (single cable failure breaks network) Easy
Star Medium (~Rs.15,000 including hub and cables) Good Medium (hub failure affects all) Easy
Ring Medium (~Rs.12,000) Moderate Low (one node failure breaks ring) Moderate
Mesh (Full) High (~Rs.50,000+) Excellent Excellent Complex
Tree Medium to High (~Rs.20,000+) Excellent Medium Moderate
Hybrid Varies (Rs.20,000+) Excellent Good Complex

Relation to Other Network Concepts

OSI Model: The topology affects the physical and data link layers of the OSI model, influencing how devices physically connect and how data frames are managed.

Transmission Media: Different topologies may require different types of cables or wireless links, affecting cost and performance.

Multiplexing: The choice of topology can impact how multiplexing techniques are applied, especially in shared media like bus topology.

Formula Bank

Number of Cables in Full Mesh Topology
\[ N_c = \frac{n(n-1)}{2} \]
where: \( n \) = number of nodes, \( N_c \) = number of cables
Total Cable Length in Star Topology
\[ L_{total} = \sum_{i=1}^{n} d_i \]
where: \( n \) = number of devices, \( d_i \) = distance from device \( i \) to central hub
Example 1: Choosing a Topology for a Small Office Network Easy
A small office has 8 computers and wants a network that is cost-effective and easy to maintain. Fault tolerance is not a high priority. Which topology should be chosen and why?

Step 1: Identify key requirements: 8 devices, low cost, easy maintenance, low fault tolerance needed.

Step 2: Bus topology is low cost but poor fault tolerance and difficult to troubleshoot.

Step 3: Star topology is moderately priced, easy to manage, and if one device fails, others remain unaffected.

Step 4: Ring and mesh are more complex and costly, not suitable here.

Answer: Star topology is the best choice for this small office due to ease of installation, moderate cost, and acceptable fault tolerance.

Example 2: Calculating Cable Length in a Star Topology Medium
An office room measures 20m by 20m. A central hub is placed in the center. Ten devices are located evenly around the room's perimeter. Calculate the total cable length needed to connect all devices to the hub.

Step 1: The hub is at (10m, 10m) - center of the room.

Step 2: Devices are on the perimeter, so their coordinates lie on the edges at equal intervals.

Step 3: Approximate average distance from center to perimeter is 10m (half the room length).

Step 4: Total cable length \( L_{total} = 10 \times 10m = 100m \).

Answer: Approximately 100 meters of cable is required.

Example 3: Analyzing Fault Impact in a Ring Topology Medium
In a ring topology with 6 devices, what happens if one device or its connection fails? How is data flow affected?

Step 1: In ring topology, data flows in a closed loop passing through each device.

Step 2: If one device or its link fails, the ring is broken, and data cannot complete the loop.

Step 3: This causes network failure unless there is a dual ring or fault-tolerant mechanism.

Answer: A single failure breaks the ring, stopping data flow and causing network downtime.

Example 4: Cost Estimation for Mesh Topology Setup Hard
Estimate the approximate cost to set up a full mesh network with 5 nodes. Assume cable cost is Rs.100 per meter, average cable length between nodes is 10m, and each node requires a Rs.2,000 network interface device.

Step 1: Calculate number of cables using formula:

\[ N_c = \frac{n(n-1)}{2} = \frac{5 \times 4}{2} = 10 \]

Step 2: Total cable length = \( 10 \text{ cables} \times 10 \text{ m} = 100 \text{ m} \).

Step 3: Cable cost = \( 100 \text{ m} \times Rs.100/\text{m} = Rs.10,000 \).

Step 4: Device cost = \( 5 \times Rs.2,000 = Rs.10,000 \).

Step 5: Total cost = Cable cost + Device cost = Rs.10,000 + Rs.10,000 = Rs.20,000.

Answer: Approximate cost for full mesh setup is Rs.20,000.

Example 5: Hybrid Topology Design for a University Campus Hard
Design a hybrid topology combining star and bus topologies for a university campus with multiple departments, ensuring scalability and fault tolerance.

Step 1: Each department uses a star topology with a central switch connecting all devices.

Step 2: Connect all departmental switches to a main bus backbone that links the entire campus network.

Step 3: This allows easy addition of departments (scalability) and isolates faults within departments (fault tolerance).

Step 4: The bus backbone simplifies inter-department communication.

Answer: A hybrid topology with star-configured departments connected via a bus backbone meets the requirements effectively.

Tips & Tricks

Tip: Remember "Bus" as a single line like a bus route, and "Star" as spokes on a wheel.

When to use: Quickly recalling topology layouts during exams.

Tip: Use the formula \( N_c = \frac{n(n-1)}{2} \) to quickly find the number of cables in mesh networks.

When to use: Calculating resources needed for mesh topology questions.

Tip: For fault tolerance, prioritize mesh or hybrid topologies over bus or ring.

When to use: Designing networks requiring high reliability.

Tip: Visualize star topology as a hub and spoke to remember the central point of failure.

When to use: Quickly answering questions on fault impact.

Tip: Compare cost vs scalability trade-offs to select the best topology in scenario-based questions.

When to use: Decision-making problems in entrance exams.

Common Mistakes to Avoid

❌ Confusing physical topology with logical topology.
✓ Remember physical topology is the actual layout of cables and devices; logical topology is the path data takes.
Why: They seem similar but affect network performance and troubleshooting differently.
❌ Assuming mesh topology is always best despite high cost and complexity.
✓ Understand mesh offers high fault tolerance but is costly and complex for large networks.
Why: Students focus on fault tolerance but ignore practical constraints like cost.
❌ Ignoring terminators in bus topology, causing signal reflection errors.
✓ Always place terminators at both ends of the bus to prevent signal bounce.
Why: Terminators are passive and often overlooked but essential for signal integrity.
❌ Overlooking the single point of failure in star topology's central hub.
✓ Recognize that if the hub fails, the entire network goes down.
Why: Students focus on ease of installation but miss fault tolerance implications.
❌ Misapplying the cable count formula for mesh topology to partial mesh networks.
✓ Use the formula only for full mesh; partial mesh requires manual counting.
Why: The formula assumes every node connects to every other node, which is not true in partial mesh.
TopologyAdvantagesDisadvantages
BusSimple, low costSingle cable failure breaks network
StarEasy management, device isolationHub failure affects all
RingOrderly data flow, easy fault isolationOne failure breaks network
MeshHigh fault tolerance, multiple pathsExpensive, complex
TreeScalable, hierarchicalBackbone failure affects segments
HybridFlexible, scalableComplex design and maintenance
✨ AI exam tools — try them free (included in every plan)
Tip: select any text above to Explain / Example / Simplify it.
Curated videos per subtopic
Top YouTube explainers, AI-ranked for your exam and language. Unlocks with subscription.
Unlock

Try Practice next.

Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.

Go to practice →
Ask a doubt
Network topologies · 10 free messages
Ask me anything about this subtopic. You have 10 free messages this session — chat history isn't saved in preview.