What is LoRaWAN?
LoRaWAN, or Long Range Wide Area Network, is a low-power networking protocol that carries short radio messages from devices through gateways to an application.
One network can collect short reports from several battery-powered sensors. A gateway relays the messages to a network server, which passes the readings to the application server. LoRa Alliance developer overview

Why it was developed
The LoRa Alliance published LoRaWAN v1.0 in 2015 to give battery-powered devices a common way to send short messages over wide areas. LoRa carries the radio signal. LoRaWAN sets the rules for the exchange, with gateways forwarding radio packets to a network server over IP. LoRaWAN v1.0, §1
A Class A device listens for replies in short windows after it sends, so it can turn off its receiver between reports. If a command arrives after those windows close, it has to wait for the device to send again. LoRaWAN v1.0, §§1.1 and 3.3
LoRa and LoRaWAN
LoRa is the radio technology that carries the signal. LoRaWAN defines how devices format messages and exchange them with the network. A gateway forwards the radio frames it receives over IP. The network server manages the link and routes the application payload to the application server. The device’s payload format tells the application which bytes hold the measurement, how to scale the value and which unit to display. LoRaWAN Backend Interfaces, architecture overview · LoRaWAN L2 1.0.4, §§4.3.2–4.3.3
How a device joins before sending readings
With over-the-air activation (OTAA), a provisioned device sends a Join-Request on a channel allowed by its regional plan. A gateway relays it to the network. If the network authorizes the device, a gateway transmits a Join-Accept during one of the designated join receive windows. The device derives session keys from the join exchange and its provisioned key. After activation it can send ordinary data uplinks using those session settings. The following example starts with an activated sensor. LoRaWAN L2 1.0.4, §§6.2.3–6.2.6
One transmission, two gateways
A sensor sends one reading in a message to the network, called an uplink. Two gateways within radio range receive the same packet. Each forwards a copy over IP. The network server recognises the duplicate copies and forwards a single reading to the application. If only one gateway hears the packet, it can still deliver the reading. If both gateways share an internet connection, an outage can stop both from forwarding packets. LoRaWAN L2 1.0.4, §3.1 · The Things Stack network server, uplink options · LoRa Alliance capacity white paper, pp. 4–5
What the radio frame carries
The sensor’s reading is carried inside a LoRaWAN data frame. The frame type indicates whether the sensor requested an acknowledgement. The frame header carries a device address and a frame counter so the network can associate the transmission with the device’s session and track the sequence of messages. The recipient uses the network session key to verify the frame’s message integrity code. LoRaWAN L2 1.0.4, §§4.1–4.4
FPort identifies the port used by the payload. Port 0 is reserved for network commands in that payload. On an application port, the application server decrypts the payload and decodes the reading using the device’s format. Headers and the integrity code add bytes to every report, including a report with a single measurement. LoRaWAN L2 1.0.4, §§4.3.2–4.4
When the device can receive a message
A downlink is a message the network sends to the sensor. After an uplink, the Class A sensor listens in RX1 so the network can send a message through one gateway. If a valid frame for the sensor arrives in RX1, it skips RX2. Otherwise it listens again in RX2. For example, RX1 can open one second after the sensor transmits and RX2 two seconds after it. A command that reaches the server after both windows have closed must wait for another uplink. The network can configure other receive delays. LoRaWAN L2 1.0.4, §§3.3, 8 and 15
Class | When the device listens | Trade-off |
|---|---|---|
A | It listens in RX1 and, if needed, RX2 after sending a reading. | The sensor can turn off its receiver between reports. |
B | It also listens at scheduled times, called ping slots, timed by network beacons. | The network can send a command between reports. Listening for beacons and ping slots adds receiver activity. |
C | It still uses the Class A windows and listens almost continuously between transmissions. | The network can send a command sooner if it has an available gateway and a working connection to it. The extra listening uses more energy. |
Acknowledgements and repeat transmissions
A confirmed uplink asks the network for an acknowledgement. With LoRaWAN 1.0.4, a confirmed uplink can repeat within the configured transmission limit if the acknowledgement fails to reach the device. An unconfirmed uplink carries no acknowledgement request. The network can still configure the device to send that frame more than once. Two gateways hearing one transmission is a separate event from the device transmitting again. LoRaWAN L2 1.0.4, §§4.3.1.2–4.3.1.3 and 5.2
An acknowledgement tells the sensor that the network received its uplink. If the application must confirm that it stored or acted on a reading, that confirmation belongs at the application layer. The sensor can send routine readings without asking for an acknowledgement on every reading if an occasional missed report is acceptable. For a time-sensitive alert, budget the downlink opportunities, retry time and airtime before choosing how to confirm delivery. LoRaWAN L2 1.0.4, §4.3.1.2 · LoRa Alliance capacity white paper, pp. 6–9
What makes a packet take longer to send
With the same packet size and channel bandwidth, a higher LoRa spreading factor generally gives longer airtime. A slower setting can help a weak link, while a faster setting can free airtime and shorten the transmitter’s active period when the signal is sufficient. With Adaptive Data Rate (ADR) enabled at the device, the network can adjust the data rate, transmit power and number of transmissions. A stationary device often gives the network a steadier link to assess than a device in motion. Choose the channel plan for the region and check which data rates, payload limits and transmission restrictions apply there. The same data-rate index can denote different radio settings in different regions. LoRaWAN L2 1.0.4, §4.3.1 · LoRaWAN Regional Parameters RP002-1.0.5
Ballerini and colleagues measured a structural monitoring node with a Semtech SX1276 radio at a 3 V radio supply. For a single 12-byte sample, Table I reports 641.28 mJ per packet exchange at DR0 (spreading factor 12) and 28.32 mJ at DR5 (spreading factor 7) in the study’s configuration. The authors include transmission, the wait for RX1, receive activity for an acknowledgement and processing for encryption and decryption. Longer airtime was associated with higher packet energy in this setup. A site’s usable settings will depend on its link quality and regional plan. Ballerini et al., §V-A and Table I · Published article
Where LoRaWAN is used
- Collecting readings from many locations. Devices can send short readings through a shared network of gateways. Longer packets and more frequent reports occupy more airtime, increasing the chance that transmissions on the same channel overlap.
- Periodic status reports and occasional commands. A battery-powered Class A device can report its state and listen briefly afterward. If a command arrives after those receive windows close, the network must wait for the next transmission from the device.
How to measure the sensor and gateway energy budgets
Measure | What to include |
|---|---|
Sensor energy per delivered reading (J) | Divide measured sensor energy over the test by the number of readings the application received. Include transmit and receive activity, unsuccessful attempts and sleep. Report delivery rate and delay alongside energy. |
Sensor energy per day (Wh/day) | Measure a full reporting day, with the sensor and controller running as deployed. Check peak current and voltage at the device during transmission, then continue logging until any recharge of a buffer capacitor has ended. Repeat at representative signal levels and temperatures. |
Gateway energy per day (Wh/day) | Measure the gateway and any separately powered backhaul equipment over a full day. Include idle draw between packets. A gateway serving multiple sensors has this load even while they sleep. |
Compare schedules using the same measurements, delivery target and deadline. Packing readings together shares the packet overhead, but the first reading waits for the rest and one missed packet can lose the whole batch. Measure the device’s total energy if a shorter encoding adds processing. Compare the resulting sensor measurements with NB-IoT under the same reporting requirements. Ballerini et al., §V-A and Table I · Saft LS 14500 specification, §1
Pros and cons
Pros
- Network choice. Use an available operator network or run a private network with your own gateways and server.
- Low-power sensing. Class A suits short, infrequent reports when the device can spend most of its time asleep.
- Overlapping reception. Several gateways can hear an uplink from the same device without adding another transmission at the sensor.
Cons
- Limited capacity for frequent or large messages. Devices share radio airtime. The regional channel plan determines which frequencies and data rates are available.
- Command timing depends on class. A Class A device that reports only occasionally gives the network few opportunities to send a command. Class B and C trade extra receiver activity for more receive opportunities.
- Gateways need infrastructure. A private network needs power at the gateways and a connection from each gateway to the server.
LoRa Alliance developer overview · LoRaWAN Regional Parameters RP002-1.0.5