1078  LoRaWAN Network Topology and Components

1078.1 Learning Objectives

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

  • Understand LoRaWAN Topology: Explain the star-of-stars architecture and how it differs from mesh networks
  • Identify Network Components: Describe the role of end devices, gateways, network servers, and application servers
  • Explain Gateway Behavior: Understand why gateways are transparent bridges that forward all messages
  • Describe Network Server Functions: List the key responsibilities including deduplication, ADR, and routing
ImportantThe Challenge: Long Range + Long Battery Life

The Problem: Physics works against us when designing LPWAN systems:

  • Long range needs high power (inverse square law: power drops with distance squared)
  • High power drains batteries quickly (a fundamental constraint)
  • Cellular: Achieves 10km+ range but batteries last days, not years
  • Wi-Fi: Years of battery life possible but only 100m range

Why It’s Hard:

  • Shannon’s limit: \(C = B \times \log_2(1 + SNR)\) — capacity is fundamentally bounded by bandwidth and signal-to-noise ratio
  • Lower bandwidth = longer symbols = more energy per bit — you can’t escape the math
  • Regulatory limits: Duty cycle restrictions (1% in EU868), power limits (14-27 dBm)
  • Bidirectional requirement: Sensors need to receive configuration updates and acknowledgments, not just send

What We Need:

Requirement Target Why?
Range 10-15 km rural, 2-5 km urban Cover large areas with few gateways
Battery Life 10+ years on AA batteries Avoid costly maintenance visits
Device Cost <$5 per radio module Enable massive-scale deployments
Security End-to-end encryption Protect sensitive IoT data
Communication Bidirectional Remote configuration, firmware updates

The Solution: LoRaWAN achieves this through chirp spread spectrum modulation with adaptive data rates:

  • Spread spectrum: Spreads signal below noise floor, trading bandwidth for sensitivity (-137 dBm at SF12)
  • Adaptive Data Rate (ADR): Dynamically optimizes spreading factor per device — devices near gateways use fast SF7, distant devices use robust SF12
  • Star-of-stars topology: Simple end devices (no routing overhead), intelligent network server handles complexity
  • Dual-layer encryption: NwkSKey for network, AppSKey for application — even network operators can’t read your data

This chapter explains the network topology and components that enable LoRaWAN to achieve this balance.

1078.2 Prerequisites

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

Imagine you’re deploying 1000 soil moisture sensors across farmland. Each sensor needs to report data to a central server, but they’re spread over several square kilometers. How do you design this network?

LoRaWAN uses a clever star-of-stars architecture that’s different from mesh networks (where devices relay for each other) or cellular (expensive, power-hungry). Here’s how it works:

The Players: 1. End devices (your sensors)—send data but don’t route for others 2. Gateways (like cell towers)—multiple gateways receive signals from sensors 3. Network server (in the cloud)—routes data and handles security 4. Application server (your farm management software)—processes sensor data

The Key Insight: A sensor’s transmission can be received by multiple gateways simultaneously. Imagine shouting in a valley—multiple villages might hear you. The network server receives the same message from multiple gateways, picks the best one, removes duplicates, and forwards it to your application. This provides redundancy without complex routing at the sensor (saving power).

Term Simple Explanation
Star-of-Stars Devices connect to gateways, gateways connect to network server
End Device Sensor/actuator that transmits data (doesn’t route for others)
Gateway Antenna that receives LoRa transmissions and forwards to network server
Network Server Central brain handling routing, security, deduplication
Uplink Data from device to server
Downlink Commands/config from server to device

NoteCross-Hub Connections

Explore Related Learning Resources:

  • Knowledge Map → See how LoRaWAN architecture connects to LPWAN technologies, security layers, and IoT reference models
  • Quizzes Hub → Test your understanding of star-of-stars topology and gateway behavior
  • Simulations Hub → Use the LoRaWAN Range Calculator to model your deployment
  • Videos Hub → Watch gateway deployment tutorials

Why This Matters: LoRaWAN’s architecture differs fundamentally from mesh (Zigbee) and cellular (NB-IoT) networks—understanding these distinctions helps you choose the right LPWAN technology for your application.

1078.3 LoRaWAN Network Architecture

LoRaWAN uses a star-of-stars topology where gateways relay messages between end devices and a central network server.

1078.3.1 Network Components

The LoRaWAN architecture consists of four main components:

  1. End Devices (Nodes): Sensors and actuators that communicate wirelessly using LoRa modulation
  2. Gateways: Multi-channel receivers that forward messages between end devices and the network server
  3. Network Server: Central component that manages the network, handles security, and routes messages
  4. Application Server: Processes application-specific data from end devices

LoRaWAN architecture showing end devices (sensors and actuators) communicating via LoRa RF to multiple gateways, which forward packets over IP to the Network Server. Network Server handles deduplication, ADR, and MAC management, coordinates with Join Server for authentication, and routes application data to Application Server. Demonstrates star-of-stars topology.

LoRaWAN Star-of-Stars Network Architecture
Figure 1078.1: Source: CP IoT System Design Guide, Chapter 4 - LPWAN Protocols

Geometric diagram of LoRaWAN network architecture showing three end device classes (A, B, C) at bottom communicating over LoRa RF to multiple gateways. Gateways forward via IP backhaul to Network Server which handles MAC layer processing, ADR, and deduplication. Join Server manages device authentication and key distribution. Application Server receives decrypted application data for processing. Demonstrates star-of-stars topology with redundant gateway coverage

LoRaWAN Architecture Overview
Figure 1078.2: LoRaWAN’s star-of-stars architecture separates concerns: end devices focus on sensing, gateways provide coverage redundancy, and the network server handles all intelligence including adaptive data rate and security.

%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D', 'background': '#ffffff', 'mainBkg': '#2C3E50', 'secondBkg': '#16A085', 'tertiaryBkg': '#E67E22'}}}%%
graph TB
    subgraph devices[" End Devices "]
        ED1[Sensor Node<br/>Class A<br/>Battery]
        ED2[Actuator<br/>Class C<br/>Mains]
        ED3[Beacon Device<br/>Class B<br/>Battery]
    end

    subgraph gw[" Gateways "]
        GW1[Gateway 1<br/>8-channel<br/>Ethernet]
        GW2[Gateway 2<br/>16-channel<br/>4G Backhaul]
        GW3[Gateway 3<br/>8-channel<br/>Wi-Fi]
    end

    subgraph backend[" Network Backend "]
        NS[Network Server<br/>Deduplication<br/>ADR Control<br/>MAC Management]
        JS[Join Server<br/>Device Authentication<br/>Key Distribution]
        AS[Application Server<br/>Payload Processing<br/>Business Logic]
    end

    ED1 -.->|LoRa RF<br/>868/915 MHz| GW1
    ED1 -.->|Redundant Path| GW2
    ED2 -.->|LoRa RF| GW2
    ED2 -.->|Redundant Path| GW3
    ED3 -.->|LoRa RF| GW1
    ED3 -.->|Redundant Path| GW3

    GW1 -->|Packet Forwarder<br/>UDP/IP| NS
    GW2 -->|Packet Forwarder<br/>UDP/IP| NS
    GW3 -->|Packet Forwarder<br/>UDP/IP| NS

    NS <-->|Join Procedure<br/>OTAA| JS
    NS -->|Application Payload<br/>Deduplicated| AS
    AS -.->|Downlink Commands| NS
    NS -.->|Best Gateway| GW2

    style devices fill:#f0f0f0,stroke:#2C3E50,stroke-width:2px
    style gw fill:#f0f0f0,stroke:#16A085,stroke-width:2px
    style backend fill:#f0f0f0,stroke:#E67E22,stroke-width:2px
    style ED1 fill:#2C3E50,stroke:#16A085,color:#fff
    style ED2 fill:#2C3E50,stroke:#16A085,color:#fff
    style ED3 fill:#2C3E50,stroke:#16A085,color:#fff
    style GW1 fill:#16A085,stroke:#2C3E50,color:#fff
    style GW2 fill:#16A085,stroke:#2C3E50,color:#fff
    style GW3 fill:#16A085,stroke:#2C3E50,color:#fff
    style NS fill:#E67E22,stroke:#2C3E50,color:#fff
    style JS fill:#E67E22,stroke:#2C3E50,color:#fff
    style AS fill:#E67E22,stroke:#2C3E50,color:#fff

1078.3.2 Star-of-Stars Topology

Unlike mesh networks, LoRaWAN uses a star-of-stars topology:

  • First star: End devices connect to multiple gateways
  • Second star: All gateways connect to the network server

Key Benefits:

Benefit Description
Simplicity End devices don’t need to route messages
Low Power Devices can sleep between transmissions
Redundancy Multiple gateways can receive the same message
Scalability Easy to add more gateways for coverage

1078.3.3 Gateway Role

Gateways in LoRaWAN are transparent bridges:

  • Receive all LoRa transmissions within range
  • Forward all messages to the network server (no filtering)
  • Multiple gateways may receive the same message (by design)
  • Network server handles deduplication
WarningCommon Misconception: Gateways Don’t Filter Messages

Misconception: “Multiple gateways receiving the same message wastes bandwidth, so gateways should coordinate to avoid duplicates.”

Reality: LoRaWAN gateways intentionally forward ALL messages—redundancy is a feature, not a bug.

Real-World Impact: In a 2019 city-wide deployment in Antwerp, Belgium (1,000+ parking sensors, 12 gateways), engineers initially worried about network congestion from duplicate packets. Monitoring showed:

  • 72% of uplinks received by 2+ gateways (average 2.3 gateways per message)
  • Gateway backhaul bandwidth: Each gateway forwarded ~500 packets/hour
  • Actual bandwidth used: 500 packets Ă— 50 bytes = 25 KB/hour = 0.056 kbps (negligible—a 4G connection handles 10,000Ă— this)
  • Benefit: When one gateway failed (power outage), 0 data loss—neighboring gateways provided seamless coverage

Why It Works: The network server deduplicates in <10ms using DevAddr + frame counter. The metadata (RSSI, SNR, timestamp) from multiple gateways enables geolocation and adaptive data rate optimization. Redundancy improves reliability (99.7% → 99.95% uptime) at essentially zero cost—backhaul bandwidth is ~1000× cheaper than deploying fewer gateways with coverage gaps.

Takeaway: Don’t fight the architecture—embrace redundancy. LoRaWAN’s star-of-stars topology turns “duplicate messages” into a reliability advantage.

1078.3.4 Network Server Functions

The network server is responsible for:

  1. Message Deduplication: Removes duplicate messages received by multiple gateways
  2. Security: Manages encryption keys and validates message integrity
  3. Adaptive Data Rate (ADR): Optimizes transmission parameters
  4. MAC Commands: Manages device settings and network parameters
  5. Routing: Directs messages to the appropriate application server

1078.4 Knowledge Check

Test your understanding of LoRaWAN network topology.

Question 1: In LoRaWAN’s star-of-stars topology, multiple gateways may receive the same uplink message from a device. What happens to these duplicate messages?

Explanation: LoRaWAN gateways are “transparent bridges”—they forward ALL received messages without filtering. Multiple gateways receiving the same message is actually beneficial: the network server receives redundant copies, deduplicates based on DevAddr and frame counter, and can use metadata (RSSI, SNR) from each gateway for geolocation. This redundancy improves reliability: if one gateway’s backhaul fails, another gateway’s copy ensures delivery. The network server, not gateways, handles all intelligence including deduplication, device authentication, and routing.

Question 2: In a LoRaWAN deployment, which component is primarily responsible for deduplication, MIC/frame-counter checks, and MAC-layer management (e.g., ADR decisions and downlink scheduling)?

Explanation: Gateways are largely transparent packet forwarders. The network server performs LoRaWAN MAC processing (security checks, deduplication, ADR, and downlink scheduling), while the application server focuses on application payload handling.

1078.5 Practice Exercise

NoteExercise: Star-of-Stars Topology and Message Deduplication

Objective: Understand how multiple gateways receive the same uplink and how network server handles deduplication

Tasks: 1. Network scenario: End device transmits uplink message received by 3 gateways: - Gateway A: RSSI -95 dBm, SNR 8 dB, distance 1.2 km - Gateway B: RSSI -110 dBm, SNR -2 dB, distance 5.8 km - Gateway C: RSSI -88 dBm, SNR 10 dB, distance 0.8 km 2. Network server receives all three copies with metadata (RSSI, SNR, timestamp). Determine: - Which gateway’s copy has best signal quality? (Use SNR as primary metric, RSSI as tiebreaker) - If downlink response needed (Class A RX1 window), which gateway should transmit it? - How does network server deduplicate? (Match DevAddr + frame counter FCnt) 3. Gateway redundancy: If Gateway C fails (power outage), how does network behavior change?

Expected Outcome: - Gateway C has best SNR (10 dB) → Network server forwards this copy to application server, discards A and B - Downlink transmitted via Gateway C (strongest signal ensures device receives it) - Deduplication prevents application from receiving triplicate messages - If Gateway C fails, Gateway A becomes backup → graceful degradation, no data loss - Understanding that redundancy is built-in feature, not bug

1078.7 Summary

LoRaWAN’s star-of-stars topology provides:

  • Simplicity: End devices don’t route messages, reducing complexity and power consumption
  • Redundancy: Multiple gateways receiving the same message improves reliability
  • Scalability: Adding gateways extends coverage without reconfiguring devices
  • Centralized intelligence: Network server handles deduplication, security, and optimization
TipWhat’s Next?

Continue to LoRaWAN Device Classes to learn about Class A, B, and C devices and how to select the right class for your application.