11  Network Design & Simulation

11.1 Network Design and Simulation

This section provides a stable anchor for cross-references to network design and simulation content across the curriculum.

11.2 Learning Objectives

By the end of this chapter, you will be able to:

  • Understand fundamental IoT network design principles and topologies

Key Concepts

  • Network Topology: The physical and logical arrangement of nodes and links in an IoT network; common patterns include star (hub-centric), mesh (multi-path), tree (hierarchical), and hybrid (combined)
  • Link Budget: A calculation determining whether a radio link can maintain adequate signal quality over a given distance, accounting for transmit power, antenna gain, path loss, and required SNR
  • Coverage Area: The geographic region within which all nodes can maintain reliable connectivity to the network; determined by propagation characteristics, obstacles, and node placement
  • Scalability: The ability to add nodes to a network without degrading performance for existing nodes; mesh topologies generally scale better than star topologies
  • QoS (Quality of Service): Network performance guarantees for specific traffic types; IoT applications may require bounded latency, minimum throughput, or maximum packet loss rate
  • Network Partitioning: The condition where a network splits into disconnected segments, leaving some nodes unable to communicate with the gateway; mesh redundancy prevents this
  • Simulation Validation: Testing a network design in software before physical deployment to identify coverage gaps, bottlenecks, and protocol misconfigurations
In 60 Seconds

Effective IoT network design starts from deployment requirements — coverage area, node density, latency constraints, energy budget — and systematically evaluates topology options and protocol choices, then validates the design through simulation before physical installation.

  • Identify key network requirements and constraints for IoT applications
  • Select appropriate network simulation tools for IoT system validation
  • Design and simulate IoT networks to evaluate performance before deployment
  • Analyze network metrics including latency, throughput, packet loss, and energy consumption
  • Apply best practices for scalable and reliable IoT network architectures
  • Validate network designs through simulation before costly physical deployment

11.3 Prerequisites

Before diving into this chapter, you should be familiar with:

  • Networking Basics: Understanding network fundamentals including IP addressing, routing, protocols, and the OSI model is essential for designing and simulating IoT networks
  • Wireless Communication Protocols: Knowledge of IoT communication protocols (Wi-Fi, Zigbee, LoRaWAN, BLE) provides context for selecting appropriate technologies and configuring simulation parameters
  • IoT Reference Models: Understanding IoT architectures including edge, fog, and cloud layers helps design network topologies that match application deployment patterns
  • Sensor Fundamentals and Power Management: Familiarity with sensor power consumption and battery constraints informs energy-aware network design and duty cycling strategies

Think of network simulation like a flight simulator for pilots.

Pilots train in simulators before flying real planes—it’s safer and cheaper to make mistakes virtually. Similarly, network simulation lets you test your IoT network design before buying thousands of devices and deploying them in the field.

Why simulate instead of just building?

Physical Testing Simulation
Buy 1000 sensors = $50,000 Model 1000 sensors = $0
Change configuration = weeks Change configuration = seconds
Test failure scenarios = risky Test failures = completely safe
Limited to what you own Test unlimited scale

What can you test in simulation?

Metric Question It Answers
Latency “How long until data reaches the cloud?”
Throughput “How much data can flow through my network?”
Packet Loss “How many messages get lost?”
Energy “How long will batteries last?”
Congestion “What happens when all sensors report at once?”

Popular IoT simulation tools:

Tool Best For Difficulty
Cisco Packet Tracer Learning networking basics Beginner
NS-3 Research, academic papers Advanced
Cooja (Contiki) 6LoWPAN, mesh networks Intermediate
OMNeT++ Detailed protocol analysis Advanced

Real-world analogy: Architects don’t build 50 versions of a building to see which one works best—they create models and simulations first. IoT network simulation is the same idea: test virtually, deploy confidently.

Key takeaway: Simulation saves money, reduces risk, and lets you experiment freely. Always simulate complex IoT networks before deployment!

Network Simulation is like practicing with toy cars before driving a real one!

Imagine you’re building a giant marble run. Would you rather: - A) Buy thousands of pieces and build it, only to find out it doesn’t work? - B) Draw it on paper first and test if the marbles will roll correctly?

Network simulation is like option B - we use computers to pretend we have a whole network and see if it works BEFORE we spend money on real devices!

11.3.1 The Sensor Squad Adventure: The Virtual Practice Field

The Sensor Squad had a big mission: build a network for the entire city zoo to track all the animals! But there was a problem - they couldn’t afford to buy 500 sensors just to find out if their plan would work.

“What if we test it on a computer first?” suggested Sammy the Sensor, who had heard about something called a “simulator.” Max the Microcontroller got excited. “Great idea! We can create a pretend version of the whole zoo network!”

The team built a virtual model on their computer. They created pretend sensors for the lions, elephants, penguins, and all 200 other animal exhibits. “Look!” pointed Lila the LED. “Our pretend network says there’s a problem - the penguin house is too far from the nearest gateway!”

“In real life, that would have meant lost messages about whether the penguins are okay!” realized Bella the Battery. They quickly moved a pretend gateway closer and ran the simulation again. This time, all the virtual messages arrived perfectly!

“This is amazing,” cheered the team. “We found and fixed the problem without spending a single penny on real equipment!” They tested different weather conditions, what happens if one gateway breaks, and even how the network handles 500 animals sending updates at the same time. After weeks of virtual testing, they were finally ready to build the real thing - and it worked perfectly on the first try! The end!

11.3.2 Key Words for Kids

Word What It Means
Simulation Pretending something is real on a computer to test if it works
Virtual Not real, but acts like the real thing (like a video game world)
Model A smaller or pretend version of something bigger
Topology The shape or map of how devices are connected together
Latency How long messages take to travel (like waiting for a reply)
Throughput How much data can flow through, like water through a pipe

11.3.3 Try This at Home!

Build a Paper Network Simulation!

  1. Draw a big rectangle (that’s your house)
  2. Draw small circles for devices: TV, smart speaker, phone, tablet, thermostat
  3. Draw a star in the middle for your Wi-Fi router
  4. Draw lines from each device to the router (these are your connections)
  5. Now pretend the router can only handle 3 connections at once - which devices get connected?
  6. Try moving the router to different spots - can you find a place where lines to all devices are shortest?

Congratulations! You just did network design and simulation! Real engineers use computers to do this same thing, but with thousands of devices and much more detail. The idea is exactly the same - plan first, build second!

11.3.4 Network Simulation Tool Visualizations

The following visualizations provide insights into network simulation concepts and tool comparisons for IoT system design.

Network diagram showing NS-3 simulation topology with wireless sensor nodes arranged in a mesh configuration with color-coded communication links indicating signal strength and data flow paths toward a central gateway

NS-3 Network Topology
Figure 11.1: NS-3 is the industry-standard discrete-event network simulator for IoT research. This visualization shows a typical wireless sensor network topology modeled in NS-3, with nodes arranged in a mesh configuration where link colors indicate signal quality and arrows show data flow direction toward the gateway.

Diagram of OMNeT++ simulation environment showing modular network components, event timeline, and real-time visualization of packet flows through simulated IoT network infrastructure

OMNeT++ Simulation Environment
Figure 11.2: OMNeT++ provides a component-based simulation framework with rich visualization capabilities. This visualization illustrates the modular architecture where network components are assembled graphically and packet flows can be observed in real-time during simulation execution.

Modern infographic comparing major IoT network simulators including NS-3, OMNeT++, Cooja, and Packet Tracer across dimensions of accuracy, performance, ease of use, protocol support, and community activity

Network Simulator Comparison
Figure 11.3: Selecting the right network simulator depends on project requirements and team expertise. This comparison visualizes key characteristics of popular IoT simulators, helping designers choose between research-grade accuracy (NS-3) versus ease of use (Packet Tracer) based on their specific needs.

Three-tier architecture diagram showing IoT devices at the edge layer, fog nodes providing local processing in the middle layer, and cloud services at the top with latency and bandwidth annotations between layers

Fog, Edge, and Cloud Network Architecture
Figure 11.4: Understanding the three-tier IoT network architecture is essential for simulation design. This visualization shows how edge devices connect to fog nodes for local processing before data reaches cloud services, with typical latency values (edge: 1-10ms, fog: 10-100ms, cloud: 100-500ms) annotated at each tier.

11.4 Hands-On Exercises

⏱️ ~60 min | ⭐⭐ Intermediate | 📋 P13.C05.U01

Objective: Learn network topology design by creating a complete smart home IoT network with star topology, testing connectivity, and measuring performance metrics.

Prerequisites: Download free Cisco Packet Tracer (requires Cisco NetAcad account)

Steps:

  1. Create Network Topology (20 minutes):
    • Add 1 Home Gateway (2911 Router or Home Gateway device)
    • Add 1 Wi-Fi Access Point (connect to gateway via Ethernet)
    • Add 10 IoT devices:
      • 5 Smart Sensors (temperature, motion, door)
      • 3 Smart Lights
      • 2 Smart Cameras
    • Connect all wireless devices to the AP
  2. Configure IP Addressing (15 minutes):
    • Gateway: 192.168.1.1/24
    • Access Point: 192.168.1.2/24
    • IoT devices: DHCP (192.168.1.100-254 range)
    • Verify connectivity using ping from each device to gateway
  3. Test and Measure (25 minutes):
    • Use Packet Tracer’s simulation mode
    • Send data from sensors to gateway
    • Measure metrics:
      • Latency (packet travel time)
      • Packet delivery success rate
      • Number of hops
    • Document results in a table

Expected Outcome:

  • Functional smart home network with 10+ devices
  • All devices can communicate with gateway
  • Understanding of star topology advantages (simple, centralized) and disadvantages (single point of failure)
  • Measured baseline performance metrics

Challenge Extension:

  • Add redundancy: Second gateway/AP for failover
  • Implement VLANs to separate IoT traffic from main network
  • Add firewall rules to prevent IoT devices from accessing internet directly
  • Simulate device failure: What happens when AP goes down?

Success Criteria:

  • ✓ All devices receive DHCP addresses
  • ✓ 100% packet delivery from sensors to gateway
  • ✓ Latency < 50ms for all connections
  • ✓ Network remains functional if one sensor fails

Objective: Use network simulation to understand protocol trade-offs by comparing Wi-Fi star topology vs Zigbee mesh topology for the same application.

Prerequisites:

  • Linux or WSL on Windows
  • NS-3 installed (installation guide)
  • Alternatively: Use online NS-3 sandbox (search “NS3 online simulator”)

Scenario: 20 sensor nodes in a 100m × 100m building need to send data to a gateway. Compare two approaches: - Approach A: Wi-Fi star (all → gateway) - Approach B: Zigbee mesh (multi-hop routing)

Steps:

  1. Setup Wi-Fi Star Simulation (30 minutes):
    • Create 20 Wi-Fi station nodes + 1 AP (gateway)
    • Random node placement in 100m × 100m area
    • Each node sends 100-byte packet every 60 seconds
    • Run for 1000 simulated seconds
    • Record: PDR, average latency, energy consumption
  2. Setup Zigbee Mesh Simulation (30 minutes):
    • Create 20 802.15.4 nodes with routing enabled
    • Same placement and traffic pattern
    • Enable AODV or RPL routing protocol
    • Run for 1000 simulated seconds
    • Record same metrics
  3. Analyze and Compare (20 minutes):
    • Calculate metrics for both scenarios
    • Create comparison table
    • Identify strengths/weaknesses of each approach

Expected Outcome:

Metric Wi-Fi Star Zigbee Mesh Winner
Packet Delivery Ratio ~70-85% ~95-99% Mesh
Average Latency 50-100ms 100-300ms Star
Energy per Packet High (80mA TX) Low (30mA TX) Mesh
Coverage Limited (all must reach AP) Extended (multi-hop) Mesh
Network Lifetime Days-weeks Months-years Mesh

Calculate battery life for Wi-Fi vs Zigbee to quantify the “Months vs Years” difference using average current and duty cycle.

\[ \text{Battery Life (hours)} = \frac{C_{\text{battery}}}{I_{\text{active}} \times D + I_{\text{sleep}} \times (1-D)} \]

Interactive Calculator:

Worked example: With 2000 mAh battery, 60-second reporting interval, 2-second active time: \(D = 2/60 = 0.0333\). Wi-Fi: \(I_{\text{active}} = 180\) mA, \(I_{\text{sleep}} = 0.015\) mA (15 µA); average = \(180 \times 0.0333 + 0.015 \times 0.9667 = 6.01\) mA → 333 hours (14 days). Zigbee: \(I_{\text{active}} = 30\) mA, \(I_{\text{sleep}} = 0.003\) mA (3 µA); average = \(30 \times 0.0333 + 0.003 \times 0.9667 = 1.003\) mA → 1,994 hours (83 days or 2.8 months single-AA). With 2× AA (3000 mAh): Zigbee = 125 days (4.2 months), validating “months” claim.

Challenge Extension:

  • Add node mobility (walking sensors)
  • Simulate AP/gateway failure - which recovers better?
  • Add interference from Wi-Fi channel congestion
  • Test scalability: 50 nodes, 100 nodes - when does each break?

Learning Points:

  • Star topology has lower latency but limited range
  • Mesh topology trades latency for reliability and coverage
  • Energy consumption differs dramatically between protocols
  • No one-size-fits-all solution - depends on requirements!

Resources:

Objective: Learn network optimization by using propagation models to determine optimal gateway placement for maximum coverage and minimal packet loss.

Prerequisites:

  • Pen and paper OR
  • Free online tool: RadioMobile OR
  • Python with matplotlib (for plotting)

Scenario: You need to monitor 50 soil moisture sensors across a 2km × 2km farm. Sensors transmit once per hour. Where should you place LoRaWAN gateways to ensure 99% PDR while minimizing gateway cost?

Steps:

  1. Understand Constraints (10 minutes):
    • LoRa range: 2-5km (depends on terrain, obstructions)
    • Gateway cost: $500 each
    • Sensor cost: $50 each
    • Required: 99% of sensors must reach at least 1 gateway
    • Budget: Minimize total gateway count
  2. Initial Design - Single Gateway (15 minutes):
    • Place 1 gateway at farm center
    • Use path loss formula: PL(d) = PL(d₀) + 10n log₁₀(d/d₀)
    • Assume n=2.5 (outdoor with some obstacles)
    • Calculate which sensors can reach gateway (RSSI > sensitivity)
    • Likely result: ~60-70% coverage (FAILS requirement!)

Interactive Path Loss Calculator:

  1. Optimized Design - Multiple Gateways (30 minutes):
    • Try 2 gateways at strategic locations
    • Calculate coverage for each gateway
    • Identify overlap zones (good!) and dead zones (bad!)
    • Iterate placement until 99% coverage achieved
    • Most likely solution: 2-3 gateways
  2. Validate with Simulation (20 minutes):
    • Model in Python or spreadsheet
    • Random sensor placement (simulate 100 different farm layouts)
    • Calculate average PDR for your gateway placement
    • Adjust if needed to hit 99% target

Expected Outcome:

  • Optimal gateway placement map
  • Coverage heat map showing RSSI across farm
  • Cost analysis: 2 gateways ($1000) + 50 sensors ($2500) = $3500 total
  • Understanding of coverage-cost trade-off

Code Template (Python):

import matplotlib.pyplot as plt
import numpy as np

# Farm dimensions
farm_size = 2000  # meters

# LoRa parameters
tx_power = 14  # dBm
sensitivity = -137  # dBm
path_loss_exponent = 2.5

def calculate_rssi(distance, tx_power, path_loss_exponent):
    # Log-distance path loss model
    if distance < 1:
        distance = 1
    pl = 40 + 10 * path_loss_exponent * np.log10(distance)
    return tx_power - pl

# Sensor locations (random)
np.random.seed(42)
sensors = np.random.rand(50, 2) * farm_size

# Gateway locations (you optimize these!)
gateways = np.array([
    [1000, 1000],  # Center
    [500, 500],    # Southwest
    # Add more as needed
])

# Calculate coverage
covered = 0
for sensor in sensors:
    can_reach_gateway = False
    for gateway in gateways:
        distance = np.linalg.norm(sensor - gateway)
        rssi = calculate_rssi(distance, tx_power, path_loss_exponent)
        if rssi > sensitivity:
            can_reach_gateway = True
            break
    if can_reach_gateway:
        covered += 1

pdr = (covered / len(sensors)) * 100
print(f"Coverage: {pdr:.1f}%")
print(f"Gateways needed: {len(gateways)}")
print(f"Total cost: ${500 * len(gateways) + 50 * len(sensors)}")

# Visualize coverage map
plt.figure(figsize=(10, 10))
plt.scatter(sensors[:, 0], sensors[:, 1], c='blue', label='Sensors', alpha=0.6)
plt.scatter(gateways[:, 0], gateways[:, 1], c='red', s=200, marker='^', label='Gateways')

# Draw coverage circles
for gw in gateways:
    max_range = 10 ** ((tx_power - sensitivity - 40) / (10 * path_loss_exponent))
    circle = plt.Circle((gw[0], gw[1]), max_range, color='green', alpha=0.1)
    plt.gca().add_patch(circle)

plt.xlim(0, farm_size)
plt.ylim(0, farm_size)
plt.xlabel('Distance (m)')
plt.ylabel('Distance (m)')
plt.title(f'LoRaWAN Coverage Map ({pdr:.1f}% coverage)')
plt.legend()
plt.grid(True, alpha=0.3)
plt.axis('equal')
plt.show()

Challenge Extension:

  • Add elevation data (hills block signals)
  • Consider gateway solar power and backhaul (cellular vs Ethernet)
  • Optimize for redundancy: every sensor reaches 2+ gateways
  • Calculate battery lifetime if sensors use duty cycling

Real-World Application: This exact exercise is what IoT consultants do when designing deployments! Your optimized design could save thousands in real projects.

11.5 Introduction

Network design and simulation are critical phases in IoT system development that enable architects to validate network performance, identify bottlenecks, and optimize configurations before physical deployment. Unlike traditional IT networks, IoT networks present unique challenges including massive scale (thousands to millions of devices), resource constraints (limited power and bandwidth), diverse communication patterns, and stringent reliability requirements.

Definition

IoT Network Simulation is the process of modeling IoT communication networks in software to predict performance, validate designs, and optimize parameters without requiring physical hardware deployment. Simulation enables rapid iteration, cost-effective experimentation, and risk reduction before committing to production infrastructure.

11.5.1 Why Simulation Matters for IoT

Cost Reduction: Testing network configurations with thousands of physical devices is prohibitively expensive. Simulation enables testing at any scale for minimal cost.

Risk Mitigation: Identifying network failures, congestion points, and security vulnerabilities in simulation prevents costly production issues.

Rapid Iteration: Network parameters can be modified and retested in minutes rather than weeks required for physical reconfiguration.

Scale Testing: Simulating networks with thousands or millions of nodes is trivial, while physical testing at scale is often impossible during prototyping.

What-If Analysis: Simulation enables exploration of failure scenarios, attack vectors, and edge cases difficult or dangerous to test physically.

Performance Validation: Quantitative metrics (latency, throughput, packet loss, energy consumption) can be measured precisely and reproducibly.

11.6 IoT Network Design Fundamentals

⏱️ ~25 min | ⭐⭐ Intermediate | 📋 P13.C05.U02

11.6.1 Network Topology Patterns

IoT networks employ various topologies based on application requirements, scale, and communication patterns. The following diagram compares the four primary IoT network topologies:

Comparison diagram of four IoT network topologies: Star topology with central hub and direct node connections, mesh topology with peer-to-peer multi-hop routing, tree topology with hierarchical parent-child relationships, and hybrid topology combining multiple approaches with annotations showing advantages and disadvantages of each
Figure 11.5: Comparison diagram of four IoT network topologies: Star topology shows central hub with 4 sensor nodes connected directly, offering simple design a…
Decision tree diagram showing network topology selection based on scale, fault tolerance, and range requirements with four topology types: star for small deployments, mesh for self-healing medium networks, tree for hierarchical aggregation, and hybrid for large-scale systems with recommended protocols for each
Figure 11.6: Alternative view: Decision tree for selecting IoT network topology based on requirements. Start with network scale (small/medium/large), then consider fault tolerance and range requirements. Star topology (teal) suits simple deployments under 50 devices. Mesh (orange) provides self-healing for medium-scale networks. Tree is ideal for hierarchical data aggregation. Hybrid combines approaches for large-scale deployments. Each topology maps to recommended protocols.

11.6.1.1 Star Topology

Description: All devices connect to a central hub or gateway. Most common for short-range protocols like Wi-Fi, Bluetooth, and Zigbee.

Advantages:

  • Simple to design and implement
  • Easy troubleshooting and device management
  • Hub provides centralized security and control
  • Low device complexity (nodes only talk to hub)

Disadvantages:

  • Single point of failure at hub
  • Limited range (all devices must reach hub)
  • Hub becomes bottleneck as network scales
  • No device-to-device communication

IoT Applications:

  • Smart home systems (devices → hub → cloud)
  • Bluetooth Low Energy sensor networks
  • Wi-Fi-connected IoT devices

Design Considerations:

  • Hub capacity (maximum concurrent connections)
  • Radio coverage area (ensure all devices within range)
  • Hub redundancy for critical applications
  • Bandwidth allocation per device

11.6.1.2 Mesh Topology

Description: Devices form peer-to-peer connections, enabling multi-hop routing where messages can relay through intermediate nodes.

Advantages:

  • Self-healing (automatic rerouting around failures)
  • Extended range through multi-hop
  • No single point of failure
  • Scalable to large areas

Disadvantages:

  • Complex routing protocols
  • Higher latency (multi-hop delays)
  • Increased power consumption (routing duties)
  • Network instability if nodes frequently join/leave

IoT Applications:

  • Zigbee and Thread networks
  • Smart city street lighting
  • Industrial sensor networks
  • Agricultural monitoring across large fields

Design Considerations:

  • Maximum hop count limits
  • Routing protocol selection (AODV, RPL, etc.)
  • Network density (enough nodes for connectivity)
  • Power budget for routing overhead

11.6.1.3 Tree/Hierarchical Topology

Description: Organized in parent-child relationships, forming a hierarchical structure often used in industrial and building automation.

Advantages:

  • Scalable organization
  • Clear data aggregation paths
  • Efficient for many-to-one traffic patterns
  • Simplified addressing schemes

Disadvantages:

  • Parent node failure affects all children
  • No path diversity (no alternate routes)
  • Unbalanced trees create hotspots
  • Limited flexibility

IoT Applications:

  • Building automation systems (floors → wings → building → campus)
  • Industrial control hierarchies
  • Wireless sensor network clusters

Design Considerations:

  • Tree depth (impacts latency)
  • Balancing branches (avoid hotspots)
  • Parent node reliability requirements
  • Aggregation strategies

11.6.1.4 Hybrid Topologies

Description: Combination of topologies to leverage strengths of each. For example, mesh clusters connected via backbone, or star networks linked through gateways.

Advantages:

  • Optimized for specific requirements
  • Flexibility in design
  • Can combine best features of multiple topologies

Disadvantages:

  • Increased design complexity
  • More complex management
  • Potential interoperability challenges

IoT Applications:

  • Smart city infrastructure (mesh zones + backbone)
  • Campus IoT deployments
  • Multi-protocol IoT systems

11.6.2 Network Design Requirements

11.6.2.1 Scale and Density

Device Count: How many devices must the network support simultaneously?

  • Small: <100 devices (home/office)
  • Medium: 100-10,000 devices (building/campus)
  • Large: 10,000-1M+ devices (city/industrial)

Spatial Density: How many devices per unit area?

  • Sparse: <1 device/100m² (agriculture)
  • Medium: 1-10 devices/100m² (office)
  • Dense: >10 devices/100m² (factory, stadium)

Simulation Impact: Dense networks require modeling collision avoidance, channel contention, and interference. Sparse networks focus on coverage and routing efficiency.

11.6.2.2 Latency Requirements

Real-Time (< 10ms): Industrial control, robotics, autonomous vehicles requiring immediate response.

Near Real-Time (10-100ms): Interactive applications like smart home controls, gaming, AR/VR.

Soft Real-Time (100ms-1s): Environmental monitoring, health tracking with timely but not critical updates.

Batch/Delay-Tolerant (>1s): Data logging, firmware updates, analytics where delay is acceptable.

Simulation Impact: Latency testing requires modeling propagation delay, processing time, queuing delays, and multi-hop routing overhead.

11.6.2.3 Bandwidth and Throughput

Data Rate Per Device:

  • Ultra-low: <1 kbps (temperature sensor reporting hourly)
  • Low: 1-100 kbps (sensor streams)
  • Medium: 100 kbps-1 Mbps (video doorbell, audio)
  • High: >1 Mbps (HD camera, bulk transfers)

Aggregate Network Throughput: Total bandwidth = devices × per-device rate × duty cycle

Example: 1,000 sensors × 10 kbps × 10% duty = 1 Mbps aggregate

Simulation Impact: Model channel capacity, collision probability, retransmission overhead, and bandwidth allocation strategies.

11.6.2.4 Reliability and Availability

Packet Delivery Ratio (PDR):

  • Critical: >99.99% (medical, safety systems)
  • High: 95-99.99% (industrial monitoring)
  • Medium: 90-95% (smart home)
  • Low: <90% (delay-tolerant sensor networks)

Mean Time Between Failures (MTBF): Network uptime requirements drive redundancy needs.

Simulation Impact: Model packet loss, retransmission mechanisms, error correction, and redundancy strategies.

11.6.2.5 Energy Constraints

Battery-Powered Devices: Lifetime requirements (months to years) dictate duty cycling, transmission power, and protocol efficiency.

Energy Harvesting: Variable power availability requires buffering and adaptive protocols.

Mains-Powered: No energy constraint but may still optimize to reduce infrastructure load.

Simulation Impact: Model transmission energy costs, sleep/wake cycles, and battery lifetime under various traffic patterns.

11.7 Knowledge Check

Scenario: A warehouse has 50 temperature/humidity sensors transmitting every 5 minutes. Compare battery life for star (all → gateway) vs mesh (multi-hop) topologies.

Star topology (Zigbee coordinator at center):

  • All sensors transmit directly to coordinator (1 hop)
  • TX power: 0 dBm (1 mW), TX duration: 10 ms per packet
  • Sleep current: 3 µA, Active current (TX): 30 mA
  • Duty cycle: 10 ms active / 300,000 ms sleep = 0.0033%
  • Average current: (30 mA × 0.0033%) + (0.003 mA × 99.997%) = 0.103 mA
  • Battery life (2× AA = 3,000 mAh): 3,000 / 0.103 = 29,126 hours = 3.3 years

Mesh topology (multi-hop routing, average 3 hops):

  • 40% of sensors are leaf nodes (no routing duty)
  • 60% are router nodes (relay packets for neighbors)
  • Router nodes receive + forward 2 packets/minute extra
  • RX power: 20 mA, RX duration: 10 ms per packet
  • Router current: 0.103 mA (own TX) + (20 mA × 20 ms / 300,000 ms) = 0.103 + 0.0013 = 0.1043 mA
  • Average network current: (40% × 0.103) + (60% × 0.1043) = 0.1036 mA
  • Battery life: 3,000 / 0.1036 = 28,958 hours = 3.3 years (nearly identical!)

Surprising result: Mesh topology adds negligible energy cost because routing duty is <1% of total time. The main energy cost is always the sensor’s own transmissions, not relaying. Mesh wins because it provides redundant paths (higher PDR) with no battery penalty.

When star wins: If sensors are within 10m of gateway, star avoids multi-hop latency (50 ms vs 150 ms) and complexity.

Interactive Topology Selector:

Topology Devices Coverage Latency Reliability Energy Complexity Best For
Star <100 Limited (1-hop range) Lowest (10-50 ms) Medium (SPOF at hub) Low Simple Smart home, small office, low-latency control
Mesh <500 Extended (multi-hop) Medium (50-300 ms) High (self-healing) Medium High Smart building, industrial, area coverage
Tree <1,000 Hierarchical zones Medium (100-200 ms) Low (parent SPOF) Low Medium Multi-floor building, campus, data aggregation
Hybrid <10,000 Large area Variable Highest Variable Very High Smart city, large industrial, mission-critical

Decision criteria:

  1. Range requirement > 1-hop? → Mesh or Hybrid (Star fails)
  2. Latency critical (<100 ms)? → Star or Tree (Mesh adds multi-hop delay)
  3. High reliability needed? → Mesh or Hybrid (redundant paths)
  4. Battery-powered endpoints? → Star or Mesh (Tree routers drain faster)
  5. Network scale >500 devices? → Hybrid (combines strengths)

Trade-off: Star has lowest latency but shortest range. Mesh has best reliability but highest complexity. Tree scales well but creates critical parent nodes. Hybrid optimizes all but costs most to design/maintain.

Common Mistake: Choosing Wi-Fi for Battery-Powered IoT Sensors

What they do wrong: New IoT developers, familiar with Wi-Fi from consumer devices, default to ESP8266/ESP32 for all wireless sensor projects because “Wi-Fi is everywhere and easy to program.”

Why it fails for battery sensors: Wi-Fi radios consume 80-300 mA during transmission (vs 20-40 mA for Zigbee/BLE, 30-120 mA for LoRa). A temperature sensor transmitting every 5 minutes over Wi-Fi: - TX: 150 mA × 2 seconds = 300 mAs = 0.083 mAh per transmission - Sleep: 15 µA × 298 seconds = 4.47 mAs = 0.0012 mAh - Total per 5 minutes: 0.0842 mAh → 202 mAh per day - Battery life (2× AA = 3,000 mAh): 14 days

Same sensor with Zigbee: - TX: 30 mA × 10 ms = 0.3 mAs = 0.000083 mAh per transmission - Sleep: 3 µA × 299.99 seconds = 0.9 mAs = 0.00025 mAh - Total per 5 minutes: 0.000333 mAh → 0.8 mAh per day - Battery life: 10 years!

When Wi-Fi is correct: AC-powered devices (smart plugs, cameras), high data rate needs (video doorbell), existing Wi-Fi infrastructure mandates (enterprise policy).

Real example: A startup built 500 soil moisture sensors with ESP8266 + Wi-Fi, expecting 1-year battery life based on “deep sleep specs.” Field deployment: batteries died in 2-3 weeks due to Wi-Fi association overhead (8-12 seconds at 80 mA every wake) not accounted for in prototype testing. Switching to LoRa extended life to 2+ years but required full hardware redesign ($45,000 cost).

Common Pitfalls

Selecting node placement based on coverage maps without calculating actual link budgets leads to marginal links that work in ideal conditions but fail in rain, foliage, or building material absorption. Always calculate path loss + fading margin for each proposed link before finalizing node placement.

Star topologies have a single point of failure at the gateway; if the gateway is unreachable, all nodes lose connectivity. For applications requiring high availability, use mesh or tree-with-redundancy topologies that maintain connectivity through multiple paths.

In dense star and mesh networks, nodes that cannot hear each other but share the same gateway create collision conditions (hidden node problem). Plan for CSMA/CA or TDMA scheduling to manage medium access in dense deployments.

A 10-node pilot that works perfectly may fail at 100 nodes if the gateway doesn’t have sufficient channel capacity. Calculate expected traffic load (nodes × transmit frequency × payload size) against channel capacity before scaling.

11.8 What’s Next

If you want to… Read this
Learn network topology fundamentals in depth Network Design Fundamentals
Explore available simulation tools Network Simulation Tools
Apply design principles to assessment scenarios Network Design Assessment
Master detailed simulation methodology Network Simulation Methodology
Analyze live network traffic Network Traffic Analysis
Previous Current Next
Network Design and Simulation Index Network Design Introduction Network Design Fundamentals