22  LoRaWAN Classes Review

In 60 Seconds

This review section tests your understanding of LoRaWAN’s star-of-stars network topology and the three device classes (A, B, C), including their downlink capabilities, power consumption profiles, and best-fit use cases. Use the quick reference tables and scenario questions to verify you can select the right class and explain the architecture trade-offs.

This review covers the LoRaWAN network architecture and device classes. Here’s what you need to remember:

The Three Device Classes:

Class Downlink Capability Power Usage Best For
Class A Only after uplink (RX1/RX2 windows) Lowest Sensors, meters
Class B Scheduled ping slots (beacon sync) Medium Actuators, alarms
Class C Continuous listening Highest Smart plugs, HVAC

Quick Trade-off Summary:

Decision Trade-off
Higher Spreading Factor (SF) Longer range BUT slower data rate and more battery use
More Frequent Transmissions Fresher data BUT shorter battery life
Lower TX Power Longer battery BUT shorter range

“LoRaWAN’s network is shaped like a star of stars!” said Max the Microcontroller, drawing a diagram. “Sensors talk to gateways, gateways talk to the network server, and the network server talks to your application. One sensor’s message can be picked up by multiple gateways – that is called spatial diversity, and it makes the network super reliable.”

Sammy the Sensor pointed to the device class chart. “Which class am I?” Max explained, “Most sensors like you are Class A – you transmit when you have data, then open two short receive windows. If no downlink arrives, you go back to sleep. It is the most power-efficient mode because you control when you wake up.”

“I need Class C,” said Lila the LED. “As a smart light, I need to respond instantly when someone sends a turn-on command. Class C keeps the receiver on all the time, so downlink messages arrive immediately. The trade-off is that I need mains power – no battery could handle continuous listening.”

Bella the Battery highlighted Class B. “Class B is the clever middle ground. The gateway sends periodic beacons, and the device opens scheduled ping slots to check for downlinks. It is like setting regular check-in times with the doctor instead of sitting in the waiting room all day.”

22.1 Learning Objectives

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

  • Analyze LoRaWAN Architecture: Explain how the star-of-stars network topology distributes intelligence between end devices, gateways, and servers to achieve scalability
  • Evaluate Device Classes: Justify the selection of an appropriate device class (A, B, or C) based on downlink latency, power budget, and application requirements
  • Apply Protocol Parameters: Configure key LoRaWAN settings for spreading factors, security modes, and regional bands to meet deployment constraints

22.2 Prerequisites

Before using this review, ensure you have completed:

Required Chapters:

Recommended Background:

Key Concepts

  • End Device: LoRaWAN sensor or actuator node; implements LoRa radio, LoRaWAN MAC stack, and application logic; may be Class A, B, or C.
  • Gateway: RF packet forwarder receiving LoRa transmissions and forwarding to network server via IP backhaul; multiple gateways increase redundancy and coverage.
  • Network Server: Central LoRaWAN intelligence handling deduplication, ADR, MAC commands, session management, and application server routing.
  • Application Server: Business logic layer decrypting application payload and integrating sensor data with enterprise systems.
  • Star-of-Stars Architecture: Two-tier topology enabling scalability; gateways are stateless forwarders, intelligence resides in network server.
  • Protocol Flow: Complete message path from sensor measurement → LoRa uplink → gateway forwarding → network server processing → application server delivery.
  • Architecture Trade-offs: Centralized vs. distributed network server, public vs. private deployment, single vs. multi-tenant considerations for LoRaWAN deployments.

22.3 LoRaWAN Architecture Overview

Time: ~15 min | Level: Advanced | Unit: P09.C09.U01

This diagram provides a visual summary of the LoRaWAN network architecture and key components.

LoRaWAN end-to-end architecture diagram with four colored layers. Navy blue End Devices layer contains three device classes: Class A with RX after TX and lowest power consumption, Class B with scheduled RX and beacon synchronization, Class C with continuous RX and lowest latency. Teal Physical Layer shows three parameter groups: spreading factors SF7 through SF12 trading range versus data rate, bandwidth options of 125, 250, and 500 kilohertz, and coding rates from 4/5 to 4/8. Orange LoRaWAN Network layer shows gateways with multi-SF reception and 8 plus channels connecting via IP backhaul to network server handling ADR, deduplication, and authentication, which connects to application server for decryption and processing. Gray Security layer shows OTAA with dynamic keys and join procedure, plus AES-128 providing dual-layer encryption for network and application data.
Figure 22.1: LoRaWAN end-to-end architecture with device classes and security

ADR algorithm flowchart showing how the network server dynamically optimizes spreading factor based on link quality metrics, balancing range needs against airtime and battery consumption

This flowchart shows how Adaptive Data Rate (ADR) dynamically optimizes spreading factor based on link quality, balancing range needs against airtime and battery consumption.

22.4 Device Class Comparison

LoRaWAN defines three device classes (A, B, C) that trade power consumption for downlink latency.

LoRaWAN device class comparison showing Class A with lowest power and uplink-initiated receive windows, Class B with medium power and beacon-synchronized ping slots, and Class C with highest power and continuous receive for lowest downlink latency
Figure 22.2: LoRaWAN Class A, B, C comparison: power vs downlink latency

Key Insights:

Class Downlink Latency Power (mA) Sleep Mode Battery Life Use Cases
Class A Seconds to minutes 0.0005 (sleep) Yes 2-10 years Battery sensors, meters
Class B Sub-second (scheduled) 0.5 (sleep + beacon) Partial 6-18 months Smart alarms, actuators
Class C <1 second (instant) 12-15 (continuous) No Hours to days Mains-powered controls

Trade-off Analysis:

  • Class A uses 24,000x less power than Class C (0.5 uA vs 12 mA)
  • Class B adds 5% overhead for beacon synchronization vs Class A
  • Class C provides instant downlinks but requires mains power for practical operation

How do we calculate the Class B beacon overhead?

Class B devices synchronize with network beacons sent every 128 seconds:

Beacon reception energy:

  • Beacon preamble detection: \(t_{\text{detect}} = 8\text{ symbols} = 8 \times 32.768\text{ ms} = 262\text{ ms}\) (SF12)
  • RX current during detection: \(I_{\text{RX}} = 15\text{ mA}\)
  • Beacons per hour: \(n = \frac{3600}{128} = 28.125\)
  • Energy per hour: \(E_{\text{beacon}} = 28.125 \times 0.262\text{s} \times 15\text{ mA} = 0.111\text{ mAh/h}\)

Ping slot reception (device opens RX window every \(n \times 128\) seconds, where \(n\) is the ping slot periodicity):

For \(n = 1\) (maximum downlink responsiveness): - Ping slots per hour: \(28.125\) (same as beacons) - RX time per slot: \(t_{\text{ping}} = 30\text{ ms}\) (typical) - Energy: \(E_{\text{ping}} = 28.125 \times 0.030\text{s} \times 15\text{ mA} = 0.0127\text{ mAh/h}\)

Total Class B overhead: \(E_{\text{B}} = 0.111 + 0.0127 = 0.124\text{ mAh/h} = 2.98\text{ mAh/day}\)

Compare to Class A daily consumption (~0.6 mAh/day for 10 msgs): Class B adds 5× the power consumption of baseline Class A operation.

22.5 LoRaWAN Quick Reference Table

Protocol Parameters Summary
Component Key Characteristics Trade-offs
Device Classes
Class A RX after TX only, lowest power Downlink latency: seconds to minutes
Class B Scheduled RX slots, beacon sync Medium power, deterministic latency
Class C Continuous RX listening Lowest latency, highest power (mW range)
Spreading Factors
SF7 5.5 kbps, 2-5 km range, 41 ms ToA Best data rate, shortest range
SF9 1.8 kbps, 5-10 km range, 206 ms ToA Balanced performance
SF12 0.3 kbps, 10-20 km range, 991 ms ToA Maximum range, 24x power vs SF7
Network Topology
End Devices Sensors/actuators with LoRa radio Battery-powered, <50 mA TX
Gateways Multi-channel (8+), multi-SF receivers IP backhaul required, <10W power
Network Server ADR, deduplication, routing Manages 1000s-100,000s devices
Application Server Decryption, processing, APIs End-to-end payload access
Security
OTAA Dynamic session keys, scalable Requires join procedure
ABP Pre-configured keys, simple Manual key management, less secure
Encryption AES-128, dual-layer (network + app) End-to-end security
Regional Bands
EU868 863-870 MHz, 1% duty cycle 36 sec/hour TX limit per device
US915 902-928 MHz, no duty cycle FCC Part 15, 64 channels + 8 uplink
AS923 920-923 MHz, regional variants Country-specific regulations
Performance
Range (Urban) 2-10 km typical Depends on SF, obstacles, antenna
Range (Rural) 10-40 km typical Line-of-sight, SF12 optimal
Battery Life 2-10 years on coin cell Class A, infrequent TX, ADR enabled
Payload 51-222 bytes (depends on SF/DR) Smaller at higher SF
Latency 1-10 seconds typical (Class A) Class B/C for lower latency

Use This Table For:

  • Quick parameter lookup during network planning
  • Comparing device classes for your use case
  • Understanding SF selection impact on range/battery/throughput
  • Reference during troubleshooting and optimization

22.7 Summary

This section covered the LoRaWAN architecture fundamentals:

  • Network Topology: Star-of-stars architecture with end devices, gateways, and servers
  • Device Classes: Class A (lowest power), Class B (scheduled), Class C (continuous RX)
  • Physical Layer: Spreading factors SF7-SF12 trading range for data rate
  • Security: OTAA/ABP activation with AES-128 encryption

22.8 Knowledge Check

Common Pitfalls

Students often confuse which layer handles which function. Gateways operate at the physical/link layer and are stateless; the network server operates at the MAC layer; the application server handles application layer. Mixing up these responsibilities leads to incorrect architecture designs.

The application server only holds AppSKey and cannot decrypt NwkSKey-authenticated MAC headers. Many students incorrectly assume the application server can inspect all LoRaWAN traffic. The dual-key architecture deliberately limits application server visibility.

The star-of-stars is not hierarchical in a tree sense — devices can be received by any gateway, and gateways are interchangeable. The topology provides coverage diversity, not routing hierarchy. A device doesn’t “belong” to a specific gateway.

In multi-tenant or high-security deployments, the join server provides critical separation between root key storage and network operation. Many architecture reviews overlook the join server or treat it as optional, missing its security and organizational benefits.

22.9 What’s Next

Continue to the next review section to learn about common configuration pitfalls:

Direction Chapter Focus
Next Configuration Pitfalls ADR, RX2 parameters, and common mistakes
Tools Calculators and Tools Range, power, and comparison calculators
Overview Comprehensive Review Main LoRaWAN review index page
Deep Dive Security & ADR Review Security architecture and ADR optimization
Foundations LoRaWAN Overview Core concepts and architecture introduction