2 Network Topologies
2.2 Learning Objectives
By the end of this section, you will be able to:
- Distinguish Physical from Logical Topologies: Contrast physical device placement with logical data flow in any network
- Classify Topology Types: Categorize star, bus, ring, and mesh configurations by their structural properties
- Interpret Network Diagrams: Analyse logical topology symbols and hierarchical layout conventions
- Design IoT Networks: Construct topology plans that meet specific reliability, cost, and scalability targets
- Produce Network Documentation: Create physical and logical network diagrams following industry standards
- Evaluate and Select Topologies: Justify topology choices based on quantified application requirements
For Beginners: Network Topologies
A network topology describes how devices are connected to each other. Think of it as a map: some networks look like a wheel with spokes (star), others like a grid of interconnected streets (mesh), and others like a family tree (tree topology). The shape you choose affects everything from reliability to cost.
Sensor Squad: The Shape of Our Network!
“How we are all connected matters more than you might think,” said Max the Microcontroller. “The topology – the shape of our network – determines how fast messages travel, what happens when a device breaks, and how much the whole system costs.”
“I am part of a star network,” said Sammy the Sensor. “All of us connect to one central gateway, like spokes on a wheel. It is simple and works great, but if that gateway fails, we all go dark.”
“I am in a Zigbee mesh,” said Lila the LED. “We connect to each other, not just to a central hub. If one path breaks, data finds another way. It is more resilient but also more complex to manage.”
“This chapter covers ALL the topology types and helps you choose the right one,” said Bella the Battery. “Star for simplicity, mesh for resilience, tree for scalability, and hybrid designs that combine the best features. Every IoT deployment starts with a topology decision – get it right, and everything else falls into place!”
Chapter Overview
This chapter provides a comprehensive guide to network topologies for IoT systems. The content is organized into focused sections for easier navigation and learning.
Chapter Sections:
Basic Topology Types - Fundamental topology concepts, the four basic topologies (star, bus, ring, mesh), visual guides, and comparison tables
Topology Analysis - Graph theory metrics, failure analysis, routing overhead calculations, and real-world protocol examples
Communication Patterns - Data flow patterns (unicast, broadcast, multicast, many-to-one), addressing schemes, and protocol mapping
Hybrid Design Patterns - Real-world hybrid topologies, design patterns, cost-benefit analysis, and deployment guidelines
Topologies Fundamentals - Physical vs logical topologies, detailed topology characteristics and variations
Topologies Labs - Design exercises and documentation practice
Topologies Review - Advanced concepts and assessment
2.3 Prerequisites
Before diving into this chapter, you should be familiar with:
- Networking Basics: Understanding fundamental networking concepts including switches, routers, hubs, and basic network design principles
- Layered Network Models: Knowledge of the OSI and TCP/IP models helps explain why physical and logical topologies can differ
Why Network Topologies Matter for IoT
Understanding network topologies is essential for designing scalable IoT systems. Whether deploying smart home sensors, industrial monitoring, or smart city infrastructure, the topology determines reliability, scalability, and performance.
Key Takeaway
In one sentence: Your network topology determines fault tolerance, latency, and scalability - star is simple but has a single point of failure, mesh is resilient but complex.
Remember this: Start with star topology for simple deployments (easy to manage), but plan for mesh when reliability matters more than simplicity.
2.4 Quick Reference: The Four Basic Topologies
| Topology | Structure | Pros | Cons | IoT Examples |
|---|---|---|---|---|
| Star | Central hub | Easy management | Single point of failure | Wi-Fi, LoRaWAN |
| Bus | Shared backbone | Low cost | Limited scalability | Industrial fieldbus |
| Ring | Circular chain | Deterministic timing | Single break disrupts | BACnet MS/TP |
| Mesh | Multiple paths | Fault-tolerant | Complex routing | Zigbee, Thread |
Real-world IoT deployments typically use hybrid topologies combining multiple types to optimize for different device requirements.
Putting Numbers to It
Topology Metrics Comparison for 10-Node Network
Compare star, ring, and full mesh topologies quantitatively:
Star topology (1 hub + 10 devices): \[ \text{Links} = n = 10 \] \[ \text{Max hops} = 2 \text{ (device → hub → device)} \] \[ \text{Avg path length} = 2 \text{ hops (all leaf-to-leaf paths pass through the hub)} \]
Ring topology (10 nodes): \[ \text{Links} = n = 10 \] \[ \text{Network diameter} = \lfloor n/2 \rfloor = 5 \text{ hops (worst case)} \] \[ \text{Avg path length} = \frac{n^2}{4(n-1)} = \frac{100}{36} \approx 2.78 \text{ hops} \]
Full mesh topology (10 nodes): \[ \text{Links} = \frac{n(n-1)}{2} = \frac{10 \times 9}{2} = 45 \] \[ \text{Network diameter} = 1 \text{ hop (direct connections)} \] \[ \text{Link cost ratio vs star} = \frac{45}{10} = 4.5\times \text{ more expensive} \]
Key insight: Star and ring both use 10 links, but star’s average path length is exactly 2 hops (all traffic through hub) versus ring’s ≈2.78 hops average. Mesh minimizes diameter to 1 hop (direct connections) but costs 4.5× more links (45 vs 10). For IoT: star trades centralization for simplicity, mesh trades hardware cost for resilience.
2.6 Knowledge Check
Decision Framework: When to Choose Hybrid Topologies
Hybrid topologies combine two or more basic topologies to balance competing requirements. Use this framework to determine when hybrid makes sense versus pure topology:
| Criterion | Use Pure Topology | Use Hybrid Topology | Reasoning |
|---|---|---|---|
| Deployment Scale | < 50 devices | > 100 devices | Hybrid adds complexity; only justified for large scale |
| Geographic Spread | Single location (< 100m radius) | Multiple buildings or campuses | Pure star/mesh works for single location; hybrid needed for wide area |
| Device Types | Homogeneous (all same protocol) | Heterogeneous (Wi-Fi + Zigbee + LoRa) | Hybrid naturally segments protocols with gateways |
| Bandwidth Needs | Uniform (all low or all high) | Mixed (cameras + sensors) | Hybrid uses star for high-bandwidth, mesh for low |
| Reliability Tier | Same requirement everywhere | Critical + non-critical zones | Hybrid provides mesh for critical areas, star for non-critical |
| Budget Constraint | Tight budget, minimize cost | Moderate budget, optimize value | Pure star minimizes cost; hybrid balances cost vs features |
| Future Expansion | No growth planned | 2x growth expected in 2 years | Hybrid tree backbone scales without redesign |
Common Hybrid Patterns:
2.6.1 Pattern 1: Tree Backbone + Mesh Access (Most Common)
- Use when: Large building, campus, or city deployment
- Structure: Wired/fiber tree connects buildings/zones; wireless mesh within each zone
- Example: University campus with Ethernet backbone and Zigbee mesh per building
- Benefits: Isolation (building failures don’t cascade), scalability (add buildings easily), high backbone bandwidth
2.6.2 Pattern 2: Star Core + Mesh Edge
- Use when: High-bandwidth core devices + battery-powered sensor swarm
- Structure: Wi-Fi/Ethernet star for cameras/controllers, Zigbee mesh for sensors
- Example: Warehouse with IP cameras (star to PoE switch) + inventory sensors (Zigbee mesh)
- Benefits: Optimize each network layer for its requirements (bandwidth vs battery)
2.6.3 Pattern 3: Dual-Star Redundancy
- Use when: Reliability critical but mesh complexity unacceptable
- Structure: Two independent star networks with failover
- Example: Hospital patient monitoring with primary and backup gateways
- Benefits: Simpler than mesh (easy troubleshooting) with gateway redundancy
2.6.4 Pattern 4: Star-of-Stars (Hierarchical Star)
- Use when: Wide geographic area, battery-powered sensors, no multi-hop needed
- Structure: Sensors star to local gateways, gateways star to central server
- Example: LoRaWAN smart city (sensors → gateways → network server → cloud)
- Benefits: Extends range without mesh complexity, preserves battery life
Decision Algorithm:
START
└─ Devices > 100? ──────────┐
│ YES
▼
Consider Hybrid ────────┤
│ │
│ │ Multiple buildings?
│ │ ──────────────────┐
│ │ │ YES
│ │ ▼
│ │ Use Tree + Mesh
│ │
│ │ Mixed bandwidth needs?
│ │ ──────────────────┐
│ │ │ YES
│ │ ▼
│ │ Use Star Core + Mesh Edge
│ │
│ │ Reliability critical?
│ │ ──────────────────┐
│ │ │ YES
│ │ ▼
│ │ Use Dual-Star or Full Mesh
│ │
│ ▼
│ Evaluate Cost
│
▼ NO (devices < 100)
Use Pure Topology
│
▼
Battery-powered? ────────┐
│ │ YES
│ ▼
│ Use Pure Star (LoRaWAN/Wi-Fi)
│
│ NO
▼
Reliability critical? ───┐
│ │ YES
│ ▼
│ Use Pure Mesh (Zigbee/Thread)
│
│ NO
▼
Use Pure Star (cheapest)
Cost-Benefit Example:
Smart city streetlight deployment (1,000 lights across 50 blocks):
| Topology | Infrastructure Cost | Operational Cost (10 yr) | Reliability | Verdict |
|---|---|---|---|---|
| Pure Mesh | $170k (mesh radios) | $0 | High (self-healing) | Good reliability, low opex |
| Pure Star (Cellular) | $50k (cellular modems) | $1.2M ($10/mo/light × 10 yr) | Medium (carrier dependent) | High opex prohibitive |
| Hybrid (Fiber + Mesh) | $850k (fiber backbone) + $120k (mesh access) | $0 | Very High | High capex, but best long-term |
| Hybrid (Wireless Backhaul + Mesh) | $300k (backhaul radios) + $120k (mesh access) | $0 | High | Best cost-benefit balance |
Winner: Hybrid wireless backhaul (point-to-point radios between blocks) + mesh within blocks. Cost-effective, no recurring fees, reliable.
Key Insight: Hybrid topologies typically cost 20-40% more upfront than pure topologies but provide 2-5x better scalability, reliability, and flexibility. Justified when deployment exceeds 100 devices or spans multiple locations.
2.7 Concept Relationships
Foundation Concepts:
- Networking Basics - Essential networking concepts underpin topology understanding
- Layered Network Models - Network layers explain physical vs logical topology differences
Core Topology Concepts:
- Physical vs Logical Topologies - Understanding this distinction is critical for IoT design
- Topology Types - Star, mesh, tree, bus, and ring form the building blocks
Design and Implementation:
- Topology Selection - Framework for choosing appropriate topologies
- Hybrid Design Patterns - Real-world deployments combine multiple topology types
Hands-On Application:
- Topology Lab - ESP32 simulation comparing star, mesh, and tree topologies
- Design Exercises - Practice drawing and documenting topologies
Protocol Implementations:
- Zigbee Mesh - Mesh topology implementation
- LoRaWAN Star - Star-of-stars for wide-area networks
- Thread Mesh - IPv6-based mesh topology
2.8 See Also
Learning Resources:
- Simulations Hub - Interactive topology visualization tools
- Videos Hub - Video explanations of topology concepts
- Quizzes Hub - Test your topology knowledge
Advanced Topics:
- Routing Fundamentals - How routing works within different topologies
- RPL Routing - Routing protocol for tree topologies
- Network Mechanisms - Packet switching and multiplexing in topologies
Architecture Patterns:
- WSN Architectures - Wireless sensor network topology patterns
- Edge Computing - Multi-tier topology architectures
- Reference Architectures - Standard IoT topology patterns
Design Tools:
- Network Design - Systematic design methodology
- Network Simulation - Simulation before deployment
Common Pitfalls
1. Starting With a Protocol and Working Backwards to Topology
Choosing Zigbee first and then “discovering” it uses mesh topology is backwards. Fix: identify topology requirements first, then select a protocol that natively implements that topology.
2. Underestimating How Much Topology Affects Power Consumption
In a mesh network, router nodes relay traffic for their neighbours and cannot sleep as aggressively as star end devices. Fix: separate router and end-device power budgets in the design spreadsheet.
3. Assuming the Same Topology Works for All Device Types in a Deployment
Security cameras (high bandwidth, mains powered) and soil sensors (low bandwidth, battery powered) have different optimal topologies. Fix: segment the network and choose a topology per device class.
2.9 What’s Next
| If you want to… | Read this |
|---|---|
| Study the four fundamental topology types | Basic Types |
| Understand graph-theoretic topology analysis | Topology Analysis |
| Learn topology selection criteria | Topology Selection |
| Design hybrid topologies | Hybrid Design |
| Run hands-on topology labs | Topology Lab |