Next Article in Journal
A Scalable Framework for Map Matching Based Cooperative Localization
Previous Article in Journal
PRASH: A Framework for Privacy Risk Analysis of Smart Homes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Refined Node Energy Consumption Modeling in a LoRaWAN Network

by
Sébastien Maudet
*,
Guillaume Andrieux
,
Romain Chevillon
and
Jean-François Diouris
Université de Nantes, CNRS, IETR UMR 6164, F-85000 La Roche-sur-Yon, France
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(19), 6398; https://doi.org/10.3390/s21196398
Submission received: 26 August 2021 / Revised: 17 September 2021 / Accepted: 22 September 2021 / Published: 25 September 2021
(This article belongs to the Section Communications)

Abstract

:
LPWAN technologies such as LoRa are widely used for the deployment of IoT applications, in particular for use cases requiring wide coverage and low energy consumption. To minimize the maintenance cost, which can become significant when the number of sensors deployed is large, it is essential to optimize the lifetime of nodes, which remains an important research topic. For this reason, it is necessary that it is based on a fine energy consumption model. Unfortunately, many existing consumption models do not take into account the specifications of the LoRaWAN protocol. In this paper, a refined energy consumption model based on in-situ measurements is provided for a LoRaWAN node. This improved model takes into account the number of nodes in the network, the collision probability that depends on the density of sensors, and the number of retransmissions. Results show the influence of the number of nodes in a LoRaWAN network on the energy consumption of a node and demonstrate that the number of sensors that can be integrated into a LoRaWAN network is limited due to the probability of collision.

1. Introduction

The integration of sensor networks into IoT solutions has opened the way for new services. In the very near future, many objects will be connected to improve the daily life of users through direct interactions with their environment [1,2]. Examples of applications are numerous, from smart city management [3] to process monitoring in Industry 4.0 [4], including the improvement of agricultural production [5,6], as well as the prevention of natural disasters [7] and the protection of ecosystems [8].

1.1. Related Works

1.1.1. General LoRa Works

The LoRa technology still arouses curiosity and interest in the scientific community. This solution has been deeply studied and analyzed in order to validate use cases, to check the operating limits [9], to compare the technology with its peers or to propose improvement paths [10,11,12]. In [13], the authors measure the performance of a LoRa network in a real-world sensor-based monitoring environment. To verify the quality of service provided by the network, they generate data traffic to extract various metrics such as packet error rate (PER), received signal strength indicator (RSSI) and signal-to-noise ratio (SNR). Data rates and transmission times are determined in [14] to analyze transmission parameters. The authors of [15] define the maximum number of end devices (EDs) and their spatial distribution around a single gateway (GW). The maximum range of a LoRa modulated signal for fixed and mobile objects is measured in [16] under different transmission conditions. In [17], the authors highlight the 6720 possible combinations of transmission parameters. They propose an algorithm to maximize performance and energy consumption. In [18], a standalone LoRa sensor is developed to measure the transmission efficiency for different situations. All these studies validate the use of LoRa technology in IoT applications and the fact that transmission characteristics have a significant impact on the network’s behavior and reliability. In [19,20,21], the authors make a comparison between LoRa and other IoT technologies. They conclude that the advantages of the LoRa protocol are the lifetime, the cost and the capacity, and the disadvantages are the quality of service, the latency and the reliability. Finally, different surveys on the LoRa technology or LPWANs in general are introduced in [22,23,24]. These works review the state of the art and discuss future research challenges.

1.1.2. Energy Consumption in LoRa

The energy criteria have been addressed by many works in the literature. In [25], the authors present an energy model in which the consumption of each element of a LoRa sensor has been analyzed (measurement stage, processing stage, radio interface). Transmission characteristics are chosen and compared with the aim of achieving energy autonomy. However, their model does not take into account transmission errors and collisions that depend on the density of sensors in the network. A Markov chain is used in [26] to model the consumption and the optimization of a LoRa node powered by a battery-free power source. They demonstrate the possibility of operating a sensor with an unreliable power source by optimizing operating properties (packet size, time between transmissions, optimization of the power circuit). A tool is suggested in [27] to compare IoT communication protocols. The solution calculates the energy consumption for a given protocol according to the operating time and the power required for a use case. Their modeling is intended to be generalist and does not fully consider the operating and modulation parameters of LoRa technology. An analytical model of LoRa node energy consumption is provided in [28]. The average current consumed by the sensor in a communication phase is estimated considering a given collision probability, a fixed transmission error rate and retransmissions. This work also introduces measurements carried out in a laboratory. However, their model does not take into account the environment, and in particular the density of devices in the network that will have a strong impact on the number of collisions. Other works use energy consumption as a metric to study scalability or reliability. In [29], the authors develop an experiment-based model to build a simulator. In [30], the authors develop a LoRa simulator in OMNET++ to evaluate the performance of a network using an Adaptive Data Rate (ADR) mechanism. They propose solutions that significantly increase the energy efficiency in dense networks. In [31], the authors introduce a cross layer simulation framework to evaluate and optimize the energy consumption of a device under realistic conditions. These works are based on simulations that do not really take into account all the recommendations of LoRaWAN specifications. Moreover, these studies consider the whole network’s energy consumption, whereas our analytical model focuses on the energy consumption of a LoRaWAN node in its environment.

1.2. Contributions and Organization

Our original works consider the energy consumption modeling of a LoRaWAN node in its environment. When the number of nodes increases in the network, the energy consumed by a node increases and its lifetime is reduced. The main contributions of our paper are as follows :
  • In-situ measurements are made through a complete LoRaWAN testbed including the network server. The results allow us to characterize the consumed energy and the time spent for each LoRaWAN communication step;
  • A refined energy consumption model for a LoRaWAN node is presented. This model takes into account the in-situ measurements, the number of nodes in the network, the collision probability that depends on the density of sensors, and the number of retransmissions.
This article is organized as follows. The LoRa protocol and LoRaWAN framework are described in Section 2. In-situ measurements that permit the evaluation of the LoRa node energy consumption are presented in Section 3. Section 4 introduces collision probability, transmission error rate and number of retransmissions. Then, the energy consumption model is presented, depending on the number of nodes in a LoRaWAN network. Finally, we draw a conclusion in Section 5.

2. LoRaWAN Overview

2.1. LoRa/LoRaWAN Architecture

The architecture and operations performed by an IoT network using LoRa/LoRaWAN technology have been described in detail [1,2,23,24,32,33]. The topology is star of stars, as shown in Figure 1. IoT nodes or End Devices (EDs) form the sensor network and are positioned as closely as possible to the physical environment. They interact with the medium and transmit data to one or more GWs using a wireless link with LoRa modulation. GWs perform a protocol transition in order to facilitate the communication from the wireless sensor network to the network server. Application servers store data and offer new services to the users. The network server administrates and secures the data transmission from the EDs.
The LoRa/LoRaWAN solution fulfills the functions of the PHY and MAC layers of the OSI model. The LoRa physical layer is in charge of the modulation and the adaptation of the signal to the media. The LoRaWAN link layer provides an Aloha-type media access method. Figure 2 shows the deployment of LoRa technology in each network element. EDs encapsulate the data to be transmitted to application servers using both LoRa/LoRaWAN layers. The GW forwards the packet by re-encapsulating the LoRaWAN layer and data into an IP stack more suitable for communication with servers. The network server uses LoRaWAN and frame layers to acknowledge and manage the data transmissions of the wireless sensor network.
Nodes can communicate with one or more GWs. Packets from the various GWs are filtered by the network server before sending the data to application servers.

2.2. LoRa Modulation

The LoRa physical layer is open source and supports two-way communications using Chirp Spread Spectrum (CSS) modulation in unlicensed sub-GHz frequency bands. The spectrum is spread, that is, the modulated signal occupies a higher bandwidth than the source signal. This modulation technique has the advantage of making the signal more resistant to noise and interference [34,35,36], but also promotes orthogonal separation of signals transmitted on the same channel. The data rate is greatly reduced, which results in a significant increase in range. The main features of this protocol are summarized in Table 1.
LoRa equipment operates in a sub-GHz frequency band, depending on the regional regulations [37] and the network settings. Each channel occupies a bandwidth (BW) of 125, 250 or 500 kHz. In Europe, two frequency bands are allowed: EU863–870 and EU433. Figure 3 shows an example of division for the 863–870 MHz band. In this case, the LoRa node must support at least 868.1 MHz, 868.3 MHz and 868.5 MHz channels, which are necessary for the joining process. Other channels can be used for uplink and downlink depending on the configuration of the GW, except for the 869.525 MHz channel, which is reserved for the downlink transmission of messages from the GW to the ED.
During the development of a frame, the transmitter carries out a number of processing operations to improve the robustness of the signal and to increase the sensitivity of the receiver. In particular, an Error-Correcting Code adds one to four cyclic redundancy bits to each 4-bit packet of data. The resulting binary data blocks are then grouped together to form SF-bit symbols (SF denotes the spreading factor) that modulate an up-chirp signal by frequency hopping [34,35,36]. Figure 4 shows an example of this modulation, where f c is the carrier frequency. On the left, it is an unmodulated sinusoidal up-chirp signal whose frequency varies proportionally over time. When it reaches the high frequency f m a x = f c + BW 2 , it switches to the low frequency f m i n = f c BW 2 . On the right, several symbols have been modulated, each containing SF bits (the number of possible value is 2 SF ). In this example, the spreading factor SF is 7 and the numerical value can range from 0 to 127. Downlink frames transmitted by the GWs to the EDs are done using inverse polarization [38].

2.3. Data Rate

The data rate is directly derived from the previous analysis and is given by:
R b = SF BW 2 SF CR ,
where R b , SF, BW and CR denote the data rate (in bits per second), the spreading factor, the bandwidth of the channel and the error code correction (from 4/5 to 4/8), respectively. The LoRa node adapts this coding rate according to the distance to the GW, but also when it resumes transmission after a failure. Table 2 presents the operating modes defined and implemented in LoRaWAN equipment [39]. Each mode, called Data Rate (DR5 to DR0), is a combination of modulation parameters chosen in order to reduce the data rate. The chosen spreading factor SF i depends on the mode DR i . The LoRa/LoRaWAN specifications do not enforce a particular DR management strategy but recommend the following usage. A node close to the GW transmits in DR5 mode. If the transmission fails, it retransmits the same frame in DR5 mode and then decrements the DR every two retransmissions. A node further away transmits its first frame with a smaller DR and decrements the DR in the same way as every other retransmission [39].

2.4. Pathloss Model

Various pathloss models are taken into account in the literature. The authors of [30,31,40] use a log-distance pathloss model that includes small-scale fading. This model is well adapted for dense environments. The authors of [41] provide models for deployment in urban, forest and/or coastal environments. In [42], the authors propose a model for indoor environments and in [43,44], the authors use models for rural and urban environments based on field measurements. These models are more or less complex and can have a significant impact on the results. In order to simplify and facilitate the generalization of our energy model, we have chosen to use a simple pathloss model. According to European regulations, the maximum power allowed for transmission is set to 25 mW or 14 dBm [37]. In these conditions, for our considered model, the distance from the sensor to the GW is given by:
d = c 4 π f 2 P TA P RA 1 n ,
where d, c, f, P TA , P RA and n denote the distance between the considered ED and the GW, the velocity of the electromagnetic waves, the transmission frequency, the transmitted power, the received power and the path loss exponent, respectively. The values of the path loss exponent are n = 2 in free space, n = 3 in urban environments and n = 6 in highly obstructed environments. In our study, the path loss exponent is considered equal to 3 and P RA is determined with the SX1272 circuit datasheet [45]. In our energy model, we determine the data rate used by the sensor during its first transmission attempt using (2) by first computing P RA , which allows us to determine SF i then DR i with Table 3.

2.5. LoRaWAN Media Access Method

LoRaWAN is a solution based on an Aloha-type media access method that uses LoRa modulation on the physical layer. In order to share access to the media, European regulations impose the use of a duty cycle limitation or the so called “Listen Before Talk” transmission management. The LoRaWAN specification only implements the first solution with a duty cycle that must be less than 1%. Three classes of operation—A, B and C—are defined. In this article, we focus only on class A, which is the most energy-efficient and the only one mandatorily implemented in an equipment [37,39]. This operation mode is represented in Figure 5.
When a LoRa node has data to send, it randomly selects a channel and opens a transmission window (tx) followed by two reception windows (rx1 and rx2) used by the network server to acknowledge messages and administrate the communication. The sensor uses the same operating mode DR i and the same channel to receive the acknowledgment in the first reception window as those used during the transmission window. Then, a preconfigured and fixed operating mode and channel are used in the second window [37,39], which are DR0 and 869.525 MHz in Europe. The duration of the transmission ( t tx , i ) and the duration of the first reception windows ( t rx 1 , i ) depend on the DR mode used; i represents the index of the DR and all the transmission parameters, as shown in Table 2. The duration of the second reception window ( t rx 2 , 0 ) depends on the DR0, where i = 0 . The LoRa node will only open the second reception window if it has not received an acknowledgment in the first window. In order to minimize power consumption, the LoRaWAN specification recommends leaving the equipment in the receive state only if a preamble is detected at the beginning of one of the receive windows. Otherwise, the equipment returns to the idle state after a preamble detection time. The duration of a reception window can therefore take two values given by:
t rx 1 , i = t ack , i if a preambule is detected in rx 1 . t pre , i if no preambule are detected in rx 1 .
t rx 2 , 0 = t ack , 0 if a preambule is detected in rx 2 . t pre , 0 if no preambule are detected in rx 2 .
Transmission and reception slots are spaced by two idle times named t id 1 and t id 2 , i . t id 1 can typically take a value between 1 and 15 s (classically, t id 1 = 1 s ). t w 2 represents the time between the end of the transmission and the beginning of the second reception window ( t w 2 = t id 1 + t rx 1 , i + t id 2 , i ). It can take a value between 2 and 16 s (classically, t w 2 = 2 s ) [37,39]. In our study, and respecting the recommendations of the specifications, we consider that all messages must be confirmed and that the network server only sends acknowledgments, which is the case in a normal operating LoRaWAN network.

2.6. Payload

Figure 6 shows a LoRa physical layer frame. It contains a header, a payload and an optional 16-bit CRC calculated on the payload. The physical header begins with the preamble, which is required for receiver synchronization. In Europe, the size (NP) is eight up-chirp symbols, followed by two symbols containing the network identifier, called the synchronization word (SW), and 2.25 down-chirp symbols. The rest of the header is not required in implicit mode. In explicit mode, an 8-bit field defines the length of the payload, a CRC bit indicates if the optional CRC is presented at the end of the frame, a 3-bit field contains the CR value used to encode the payload, and an 8-bit CRC is calculated on the header. The payload, from 0 to 255 bytes, contains the MAC header and the MAC payload as shown in Figure 7.
Three fields comprise the MAC header: the MAC type, the RFU for a future use, and the major field that indicates the protocol version. The 4-byte MIC field is used to check data integrity. In the MAC payload, the Frame header contains information about the data. FPort, DevAddr, FCtrl, FCnt, FOpts are, respectively, the service port, the address of the ED, information about the transmission, the frame counter and MAC commands transmitted by the network server to manage the communication of an ED. For the rest of the study, and for the sake of simplification, we consider a constant load of 50 bytes for the data frames and a physical explicit mode header. According to the standard, ACK frames are load-free at the application layer and there is no CRC at the physical level. The considered elements are summarized in Table 4.
Based on Figure 6 and Figure 7, the physical payload is given by:
PL data = H 2 + H 3 + FPayload , PL ack = H 2 + H 3 ,
where PL data , PL ack , H 2 , H 3 and FPayload denote, respectively, the size of the physical layer payload for a data frame, the size of the physical layer payload for an ACK frame, the size of the MAC header and the MIC, the size of the application header and the size of the data frame payload. From these equations, the number of symbols contained in the data and the ACK frames are determined in (6), where H 1 , CR, CRC and DE denote, respectively, the size of the physical header, the coding rate, the size of the CRC used for the data frame and the low data rate optimization factor. Note that DE = 1 when SF i = 11 or SF i = 12 , 0 otherwise [39].
N data , i = 8 + max ceil H 1 + 8 · PL data + CRC + 8 4 · SF i 4 · ( SF i 2 · DE ) 4 CR i , 0 , N ack , i = 8 + max ceil H 1 + 8 · PL ack + 8 4 · SF i 4 · ( SF i 2 · DE ) 4 CR i , 0 .

2.7. Time on Air

As seen in Figure 5, a LoRa device has different states during a communication phase. Times corresponding to data processing, waking up and switching off the radio interface are incompressible, do not change and depend solely on the electronic circuits implemented on the board. Transmission and reception times ( t tx , i , t rx 1 , i and t rx 2 , 0 ) vary according to characteristics of the LoRa modulation that correspond to the time on air used to transmit a data frame and to receive an ACK frame. t tx , i , t ack , i and t pre , i are obtained by the following equations:
t tx , i = ( NP + SW + 2.25 + N data , i ) · T S , i , t ack , i = ( NP + SW + 2.25 + N ack , i ) · T S , i , t pre , i = NP · T S , i ,
where T S , i = 2 SF i BW is the duration of a symbol.

3. LoRa Node Energy Consumption

3.1. Theoretical Analysis of Energy Consumption

With the elements obtained in the previous section, the first model of the energy consumption is proposed without taking into account transmission errors and collisions. From Figure 5, the energy consumed by a node that receives the ACK in the first window is given by:
E bit = P tx · t tx , i + P id · t id 1 + P rx · t ack , i 8 · FPayload ,
where E bit , P tx , P rx , P id are the average energy consumed by the node for each useful bit transmitted, the power consumed by the node during the transmission, the power consumed by the node during the reception and the power consumed by the node in the idle state, respectively. FPayload is multiplied by eight to obtain it in bits.
Similarly, the energy consumed by a node that receives the ACK in the second window is given by:
E bit = P tx · t tx , i + P id · t id 1 + P rx · t pre , i + P id · t id 2 , i + P rx · t ack , 0 8 · FPayload .

3.2. Measurement of Consumed Powers

3.2.1. Current Measurement Protocol

The current consumed and the time spent by a LoRa circuit in the different operating states were measured. An end-to-end LoRaWAN communication between one sensor node and a network server was implemented. Figure 8 and Figure 9 show the testbed. The current analyzer was a Keysight CX3300 with a CX1102A dual channel current probe.
The sensor node was made of a Nucleo F070RB board equipped with an sx1272mb2das LoRa shield. The gateway was a Dragino LPS-8 and the network server was built around a Chirptack solution installed on a Debian OS. All the communications respected the LoRaWAN specifications. Authentication of the node to the network server was done with the ABP method for its simplicity. The end device transmitted random data of 50 bytes at regular intervals, respecting the duty cycle, by decreasing the DR at each transmission attempt. Several parameters used by the node were configured in the network server and transmitted to the end devices with MAC commands. The minimum and the maximum values of the DR were set to 0 and 5, respectively; the Rx2 slot was configured with DR = 0 on the channel at 869.525 MHz and the maximum power allowed was 14 dBm. For a new transmission attempt, the channel was selected randomly by the node and no offset was set for the ACK in the first reception window. Idle times t id 1 and t id 2 , i were configurable using the RXTimingSetupReq and RXTimingSetupAns MAC commands. We configured t id 1 and t w 2 at the minimum value, t id 1 = 1 s and t w 2 = 2 s. In order to avoid collisions, measurements were made with only one end device connected to the gateway.

3.2.2. Current Measurement Results

Figure 10 shows the measurement results of the current consumed by the node in a communication phase when the ACK was received in the first reception window (a), when the ACK was not received in the first reception window but in the second reception window (b) and when no ACK was received by the node (c).
These figures show the measurement results for various operating states. In each case, the circuit begins by positioning itself in a transmission state followed by one or two idle and reception states. Transmission and reception durations ( t tx , i , t rx 1 , i , t rx 2 , 0 ) depend on the DR mode used by the node and its location. If an ACK is received in the first receive window, the equipment does not open the second receive window (Figure 10a). If the network server does not send an acknowledgment or if it is not received by the node, the latter stays in the reception state for a time less than or equal to the duration of the preamble and open a second receive window (Figure 10b). Finally, if an ACK is not received in the second receive window, the node stays in a reception state only during a preamble (Figure 10c) and goes to sleep mode. Figure 11a details the moment when the sensor is in a transmission state and Figure 11b when the sensor is in a reception state. Each event starts with a wake-up and finishes with the standby of the circuit.
We performed acquisitions for all the DR modes and the results are summarized in Table 5 and Table 6. Table 5 contains currents drawn by the circuit in the different operating states during a communication phase. The theoretical values are those specified in the datasheet [45] and the experimental values are those obtained by the measurements. Current consumed for the wake-up ( I txwu , I rxwu ), for the standby ( I rxoff , I rxoff ) and for the reception ( I rx ) are constant, whatever the used DR. Current consumed by the circuit during the uplink phase ( I tx ) varies according to the transmission power. Measurement values are of the same order of magnitude as those specified in the datasheet [45], except for the idle current, which is 100 times higher. Table 5 and Table 6 also contain the time spent by the circuit in the different operating states. Time spent for the wake-up ( t txwu , t rxwu ) and for the standby ( t txoff , t rxoff ) are constant, whatever the used DR. Time spent to transmit data ( t tx , i ), to receive an ACK ( t ack , i ) and to listen to a preamble ( t pre , i ) depend on the DR mode. Theoretical values obtained with (7) correspond to the values obtained in the laboratory and are presented in Table 6. In the rest of the article, the theoretical values are mainly used. The values obtained by measurements are only used when the theoretical values are not available.

4. Node Energy Consumption in a LoRaWAN Network

Energy studies must take into account the node environment. Errors and collisions depend on the network density and affect the energy consumption of the LoRaWAN network. In this section, we model these characteristics in order to propose a more refined node energy consumption model in such a network.

4.1. Error and Collision Probabilities

Communications using an Aloha access method can suffer from numerous collisions and transmission errors, especially with a large number of devices sharing the media. It is assumed that the messages are sent over the network using a Poisson process [1]. Then, the collision probability of data transmissions is given by:
p c data , i = 1 e 2 · N sta · p i · λ · t tx , i ,
where p c data , i , N sta , p i and λ denote the probability of having a collision in the transmission of a data frame, the number of EDs in the network using the same channel, the probability that a sensor uses the SF with index i and the packet generation rate for an ED, respectively. Note that the presence of “2” in the exponent reflects the fact that a frame is vulnerable over a time that is twice as long as its duration. The product N sta · p i · λ represents the Poisson process intensity. In our study, we consider that λ is related to the duty cycle imposed by the European standard, that is, a value of 1% related to the channel occupancy time. The duty cycle dc and λ are given by:
dc = t tx , i t TR , λ = 1 N P · t TR ,
where t TR and N P denote the time between two transmissions and the number of packets in the ED, respectively. If the buffer of the ED is always full, we consider that N P = 1 . The density of sensors for each SF is summarized in Table 7, from the works explained in [1,38,46].
Regarding collisions in the transmission of an ACK frame, the synchronization of transmissions at the network server (and the GW) means that there is no collision between the different ACK frames. We have seen previously that the sensor uses the same operating mode DR i and the same channel to receive the acknowledgment in the first reception window as those used during the transmission window. However, the LoRaWAN specifications require devices to reverse the IQ polarity for downlink messages compared to uplink messages [37,39]. Moreover, this assertion was verified during the measurements. Therefore, we can consider that there is no collision between ACK frames and data frames.
The transmission error probability for a CSS type modulation is given by ([28,47]):
p e data , i = 1 1 Q log 12 ( SF i ) 2 E b N 0 1 CR · ( N data , i H 1 ) , p e ack , i = 1 1 Q log 12 ( SF i ) 2 E b N 0 1 CR · ( N ack , i H 1 ) ,
where p e data , i , p e ack , i , E b N 0 , N data , i , N ack , i denote the probability of having an error in the reception of a data frame, the probability of having an error in the reception of an ACK frame, the signal-to-noise ratio and the frame lengths determined by (6).
Subsequently, the probability of successful transmission for a data point and an ACK frame can be given by:
p data , i = ( 1 p e data , i ) · ( 1 p c data , i ) = 1 Q log 12 ( SF i ) 2 E b N 0 1 CR · ( N data , i H 1 ) × e 2 · N sta · p i · λ · t tx , i , p ack , i = 1 p e ack , i = 1 Q log 12 ( SF i ) 2 E b N 0 1 CR · ( N ack , i H 1 ) .

4.2. Node Energy Consumption for One Transmission

4.2.1. Theoretical Analysis

Figure 12 shows the state graph of a transmission. First, the ED transmits its data. Four different situations are possible after the transmission of the data, as depicted in Figure 13:
  • 1: the gateway successfully receives the data, then the sensor receives an acknowledgment in the first window, with a probability p data , i · p ack , i ;
  • 2: the gateway successfully receives the data, then the sensor does not receive an acknowledgment in the first window (with a probability p data , i · ( 1 p ack , i ) ), opens the second reception window following the failure in the first, then correctly receives the acknowledgment;
  • 3: the gateway successfully receives the data, then the sensor does not receive an acknowledgment in the first window (with a probability p data , i · ( 1 p ack , i ) ), opens the second reception window following the failure in the first, then an error occurs again, causing a reception failure in the second window;
  • 4: the gateway does not receive the data (with a probability 1 p data , i ). The node is not aware of it, so it opens the two reception slots (rx1 and rx2) for a duration, allowing it to only receive the preamble of an ACK frame.
In the case of a successful transmission (1 and 2), the node goes into the sleep state for a time, respecting the duty cycle. In the case of a transmission failure, (3 and 4), the node goes into a sleep state and gets ready for a new attempt on another channel. In the case of transmission error, we consider that the node listens to the entire frame but is unable to decode it. In the case of collision, we consider that the node only listens to the preamble detection time, as indicated in the specification [37,39]. A node is indeed able to read a collision frame if the SIR is higher than a few dB.
From Figure 12 and Figure 13, the energy consumed by a sensor for the four different situations is given by :
E 1 , i = E tx , i + E id 1 + E rx 1 , i = P tx · t tx , i + P id · t id 1 + P rx · t ack , i
E 2 , i = E tx , i + E id 1 + E rx 1 , i + E id 2 , i + E rx 2 , 0 = P tx · t tx , i + P id · t id 1 + t id 2 , i + P rx · t ack , i + t ack , 0
E 3 , i = E tx , i + E id 1 + E rx 1 , i + E id 2 , i + E rx 2 , 0 P tx · t tx , i + P id · t id 1 + t id 2 , i + P rx · t ack , i + t ack , 0
E 4 , i = E tx , i + E id 1 + E rx 1 , i + E id 2 , i + E rx 2 , 0 P tx · t tx , i + P id · t id 1 + t id 2 , i + P rx · t pre , i + t pre , 0 ,
where E 1 , i , E 2 , i , E 3 , i , E 4 , i are the energy consumed by the sensor in the situations 1, 2, 3 and 4 of the state graph, respectively.

4.2.2. Results and Discussions

Figure 14 shows the time spent by a LoRa sensor in the different operating states for each path of the state graph (Figure 12 and Figure 13). For each DR, the first bar represents the sum of the times spent by the node when an ACK is successfully received in the first window 1. The second bar represents the sum of the times spent by the node when an ACK is successfully received in the second window 2. The third bar represents the sum of the times spent by the node when no ACK is received 3 and the fourth bar when the data is unsuccessfully received by the gateway 4.
Transmission time t tx , i and reception times t rx 1 , i , t rx 2 , 0 vary according to the LoRa modulation characteristics established in (7) and the data frame size obtained with (5) and (6). Idle time t id 1 is constant regardless of the used DR and t id 2 , i varies according to the time spent by the node in the first reception window. Transmission time t tx , i and reception time t rx 1 , i increase in a ratio of two when the DR mode decreases by one. The transmission time of a frame in DR0 is more than ten times larger than in DR4 and DR5 with values of 3.219 s, 218 ms and 118 ms, respectively. Proportionally, a sensor spends more time in an idle state when the DR is high and more time in the transmission and reception states when the DR is small. Table 8 contains the cumulative time spent by a node in all the situations. The wake-up time is almost tripled when the ED opens a second reception window for the DR5 and is multiplied by 1.25 for the DR0. It can be concluded that, in order to maximize sensor sleep time, communications with high DRs should be favored and the second reception window should be minimized.
Figure 15 shows the cumulative energy consumed by a node in the different DRs, for each situation of the state graph (Figure 12 and Figure 13). This figure is obtained from (14), (15), (16), and (17). For each DR, the first bar represents the sum of the energy consumed by a node when an ACK is successfully received in the first window 1. The second bar represents the sum of the energy consumed by a node when an ACK is successfully received in the second window 2. The third bar represents the sum of the energy consumed by a node when no ACK is received 3 and the fourth bar when the data is unsuccessfully received by the gateway 4.
During a communication phase, energy is mainly consumed in the transmission state and then in the reception state. In an idle state, the energy is very low and E id 1 is constant whatever the DR. Table 9 shows the sum of the energy consumed by a device in the different operating states for each path of the state graph. It can be noticed that the energy is multiplied by three when the ED opens the second reception window in DR5 and is increased by 10% when the equipment opens the second reception window in DR0. The impact of opening the second window on energy consumption is therefore greater for high DRs. Listening to the preamble in the receive windows saves between 30 and 80 mJ by putting the equipment into the sleep state earlier.

4.3. Node Energy Consumption with Multiple Retransmissions

4.3.1. Theoretical Analysis

The LoRaWAN specifications recommend up to seven retransmissions in the case of failure, after which the packet is discarded. These attempts must be made on another randomly selected channel after a waiting time t rep . This waiting time corresponds to the RETRANSMIT TIMEOUT and is also randomly selected between 1 s and 3 s. It is possible to decrease the DR every two retransmissions from 5 to 0 and to remain at 0 for additional retransmissions. In our model, each retransmission is spaced by an average time t rep = 2 s, considering that the probability of errors and collisions remains the same at each attempt (which is due to the selection of a new channel). Thus, the average node energy consumption for each situation (success and failure) is given by:
E ¯ s , i = E [ E s , i ] = E 1 , i · p data , i · p ack , i + E 2 , i · p data , i · p e ack , i · p ack , 0 p s , i ,
E ¯ f , i = E [ E f , i ] = E 3 , i · p data , i · p e ack , i · p e ack , 0 + E 4 , i · ( 1 p data , i ) p f , i ,
where E ¯ s , i , E ¯ f , i , p s , i and p f , i denote the average energy consumed by the node for a successful transmission (1, 2), the average energy consumed by the node for a failed transmission (3, 4), the probability of a successful transmission and the probability of a failed transmission, respectively. According to Figure 12, the probabilities p s , i and p f , i are determined by:
p s , i = p data , i · p ack , i + p data , i · p e ack , i · p ack , 0 ,
p f , i = p data , i · p e ack , i · p e ack , 0 + ( 1 p data , i ) .
Then, the total energy consumed by a sensor depends on its distance from the gateway, the number of sensors in the network and the number of retransmissions allowed for the equipment. This calculation will be different if the number of retransmissions is even or odd and must take into account the double repetition of the transmission phase with the same DR, given by:
α = NR 2 1 , β = 1 + NR 2 · NR 2 ,
where α N denotes the number of double retransmissions. β = 1 if the number of transmissions ( NR ) is even and β = 0 if NR is odd. The total energy consumed by a sensor is given as the sum of energies statistically consumed during a successful transmission and the sum of energies statistically consumed during a failed transmission. Then, the average total energy consumed by a node is given by:
E ¯ tot = n = 0 α [ ( E ¯ s , max ( DR M n , 0 ) + n max ( α , 1 ) . m = 0 n 1 2 · E ¯ f , max ( DR M m , 0 ) ) × ( p s , max ( DR M n , 0 ) · m = 0 n 1 p f , max ( DR M m , 0 ) 2 ) + μ · ( E ¯ s , max ( DR M n , 0 ) + E ¯ f , max ( DR M n , 0 ) + n max ( α , 1 ) . m = 0 n 1 2 · E ¯ f , max ( DR M m , 0 ) ) × ( p s , max ( DR M n , 0 ) · p f , max ( DR M n , 0 ) · m = 0 n 1 p f , max ( DR M m , 0 ) 2 ) ] + ( β · E ¯ f , max ( DR M α , 0 ) + E ¯ f , max ( DR M α , 0 ) + n = 0 α 1 2 · E ¯ f , max ( DR M n , 0 ) ) . × ( p f , max ( DR M α , 0 ) β + 1 · n = 0 α 1 p f , max ( DR M n , 0 ) 2 ) ,
where DR M and μ = β α n max ( α , 1 ) denote the initial DR used by the sensor for its first transmission attempt (note that DR M depends on the distance) and a coefficient that allows us to adjust the calculation to the number of phases in order to respect the operation established in the state graph (Figure 12), respectively.

4.3.2. Results and Discussions

In this energy consumption model, (2) allows us to determine the SF used by the sensor for its first transmission attempt. Figure 16 shows the variation of this range as a function of the DR and the transmission power, for a loss exponent equal to three. The range of the signal increases when the DR mode decreases. A sensor located less than 4 km from the gateway can transmit using all the SF (note that the best efficiency is reached for DR5). A device located more than 10 km away can only use the SF12, corresponding to DR0. In our model, we compute the distance between the node and the gateway to determine the DR used by the node on its first transmission attempt, which corresponds to DR M in (23).
The analytical model given in (23) corresponds to the average total node energy consumption. Then, the average energy consumption by useful bit can be defined by E ¯ bit = E ¯ tot 8 · FPayload . Table 7 shows the probability that the considered node uses a specific SF. This probability is used to obtain the number of sensors using each DR. Then, the error and collision probabilities are obtained from the EDs’ distribution in the network. Thus, if the number of nodes in the network increases, the probabilities in Table 7 involve an increase of the number of nodes using the same DR, and then an increase of the collision probability. Subsequently, (10), (12) and (13) are used to determine the success and failure probabilities based on this distribution and, finally, (23) is used by varying different input parameters:
  • the transmission power of the node;
  • the load carried in the data frames;
  • the number of allowed retransmissions;
  • the distance between the sensor and the gateway; and
  • the duty cycle.
Figure 17 shows the evolution of the average energy consumed per useful bit by a LoRa sensor versus the number of sensors in the network for various transmit powers. The transmit power varies between 7 and 14 dBm, the number of transmission attempts has been set to eight and the data frame payload to 50 bytes. The duty cycle is set to 1% and the node is considered to be at a distance of 1 km from the gateway.
We can see that the average energy consumed per useful bit increases with the number of sensors, until it reaches a limit. Note that for one sensor in the network, the success transmission probability is close to 1 (1). Then, the sensor makes a single attempt and consumes energy equal to 19.56 mJ (see Table 9 for DR5), which corresponds to an energy per useful bit of 0.048 mJ, as shown in Figure 17. On the contrary, when the number of sensors is very high, for example, 4000, the failed transmission probability is close to 1 (4). In this case, the node makes eight attempts with failure, and consumes energy equal to 562.06 mJ (see Table 9 for DR5, DR4, DR3 and DR2), which corresponds to an energy per useful bit of 1.4 mJ, as shown in Figure 17. The threshold is obtained when the number of nodes is greater than 2000. Beyond this value, the number of collisions is too high, the probability of success is too low and the node uses the maximum number of allowed retransmissions without succeeding in transmitting the data. The energy consumed by the node also increases with the transmission power. We can conclude that a good Adaptive Data Rate (ADR) algorithm should take into account the distance in order to optimize the transmission power in each DR.
Figure 18 shows the evolution of the average energy consumed per useful bit by a LoRa sensor versus the number of sensors in the network for various payloads transported in the data frames. The data frame payload varies from 10 to 50 bytes, the transmission power is set to 14 dBm, the number of retransmissions to eight, the distance between the node and the gateway to 1 km and the duty cycle is set to 1%.
As seen in Figure 17, the energy consumed per useful bit increases with the number of sensors until it reaches a threshold above 2000 nodes. The energy consumed also changes according to the data frame payload, with a ratio of one third between a load of 10 bytes and a load of 50 bytes. The growth of the payload reduces the amount of energy consumed per useful bit but also increases the transmission time, and thus the probability of collisions, as seen in (10).
Figure 19 shows the evolution of the average energy consumed per useful bit by a LoRa sensor versus the number of sensors in the network for various numbers of attempts allowed. The payload is set to 50 bytes, the transmit power to 14 dBm and the duty cycle to 1%; the DR changes according to the number of attempts and the number of attempts varies between one and eight.
Once again, we can see that the energy consumed evolves with the number of sensors, reaching a maximum when there are more than 2000 devices. The number of attempts also has an impact on the consumed energy. The equipment consumes twice as much energy for eight attempts than it does for six and twice as much energy for four attempts as for two. The DR decreases with additional retransmissions, which increases the energy consumed per useful bits. Thus, each additional attempt increases the amount of energy in a ratio equal to the double.
Figure 20 shows the evolution of the average energy consumed per useful bit by a LoRa sensor versus the number of sensors in the network for various distances between the node and the gateway. The DR changes according to the distance, the payload is 50 bytes, the power is 14 dBm, the number of attempts is set to 8 and the duty cycle to 1%.
In this figure, we can see the same evolution as before. The energy consumed per useful bit also evolves proportionally with the distance between the sensor and the gateway, for reasons that are similar to the number of retransmissions. An ED that is located more than 10 km away will transmit only with a DR0, an ED that is located less than one kilometer away will use DR 5 to 2. The threshold is also reached more quickly as the distance increases, at about 750 for a distance of 10 km and 2000 for a distance of 1 km. It can be concluded that, in order to optimize the energy consumption of the entire network, the transmission of the farthest nodes should be favored over the closest nodes.
Figure 21 shows the evolution of the average energy consumed per useful bit by a LoRa sensor versus the number of sensors in the network for different values of the duty cycle. The number of attempts is set to eight, the payload to 50 bytes, the distance to 1 km and the power is set to 14 dBm.
Here again, we can observe that the energy consumed by a device increases with the number of nodes in the network. Collisions, and therefore the probability of retransmissions, follow exactly the same evolution. They cause an increase in the energy consumption per useful bit. A saturation can also be seen when the number of sensors exceeds 2000 devices. The probability of a successful transmission becomes very low and the number of collisions too high for the sensor to correctly transmit its data without the need for multiple attempts. The duty cycle also has an impact on the energy consumption. The number of sensors at which the saturation of the consumption is reached evolves with this ratio. For a value of 1%, the threshold is reached from 2000 nodes; for a value of 0.5%, the same threshold is reached from 5000 nodes; for a value of 0.25%, from 8000 nodes and beyond for a duty cycle of 0.1%.
From all these curves, it would be possible to optimize the energy consumption of the sensor network by a precise adjustment of the transmission parameters. These would be based on the use of the MAC commands that could allow us to provide the end devices with a configuration for the next transmission attempt. The ADR mechanism allows the network server to modify the DR and transmission power of the device; other MAC commands are used to request a change of the aggregated transmit duty cycle, times in idle state, channel skew or device status. Data aggregation would be the first solution. It would make it possible to decrease the duty cycle and increase the size of the data frames, which would have the effect of decreasing the energy consumption per useful bit and thus minimizing the number of transmissions and therefore transmission failures. The second solution would be to adapt the number of allowed attempts to the situation of the equipment and its environment. Sensors close to the gateway generally use a lower DR, so they consume less energy. The solution could be to allow them to make more attempts on channels with a higher sensor density.

5. Conclusions

In this paper, a refined energy consumption model based on in-situ measurements is provided for a LoRaWAN node. This improved model takes into account the number of nodes in the network, the collision probability that depends on the density of sensors and the number of retransmissions. In-situ measurements are made through a complete LoRaWAN testbed that includes the network server. The results allow us to characterize the node energy consumption and the time spent on each LoRaWAN communication step.
The simulation results show the influence of the number of nodes in a LoRaWAN network on the energy consumption of a node. The energy consumption also depends on classical parameters such as the transmission power, the load of the data frame, the number of retransmissions, the distance and the duty cycle. In all cases, the energy consumed per useful bit reaches a limit value that depends on the total number of nodes in the network. This demonstrates that the number of sensors that can be integrated into a LoRaWAN network is limited due to the probability of collision.

Author Contributions

Methodology, S.M.; software, S.M.; validation, G.A. and R.C.; formal analysis, S.M.; investigation, S.M.; writing—original draft preparation, S.M.; writing—review and editing, G.A., R.C. and J.-F.D.; supervision, G.A., R.C. and J.-F.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Chaudhari, B.S.; Zennaro, M. LPWAN Technologies for IoT and M2M Applications; Elsevier: Amsterdam, The Netherlands, 2020; p. 431. [Google Scholar] [CrossRef]
  2. Balaji, S.; Nathani, K.; Santhakumar, R. IoT Technology, Applications and Challenges: A Contemporary Survey. Wirel. Pers. Commun. 2019, 108, 363–388. [Google Scholar] [CrossRef]
  3. Datta, P.; Sharma, B. A survey on IoT architectures, protocols, security and smart city based applications. In Proceedings of the 8th International Conference on Computing, Communications and Networking Technologies, ICCCNT 2017, Delhi, India, 3–5 July 2017. [Google Scholar] [CrossRef]
  4. Seferagi, A.; Famaey, J.; De Poorter, E.; Hoebeke, J. Survey on Wireless Technology Trade-Offs for the Industrial Internet of Things. Sensors 2020, 20, 488. [Google Scholar] [CrossRef] [Green Version]
  5. Dieng, O.; Diop, B.; Thiare, O.; Pham, C. A study on IoT solutions for preventing cattle rustling in African context. In Proceedings of the Second International Conference on Internet of Things, Data and Cloud Computing, Cambridge, UK, 22–23 March 2017; p. 13. [Google Scholar] [CrossRef]
  6. Farooq, M.S.; Riaz, S.; Abid, A.; Abid, K.; Naeem, M.A. A Survey on the Role of IoT in Agriculture for the Implementation of Smart Farming. IEEE Access 2019, 7, 156237–156271. [Google Scholar] [CrossRef]
  7. John Wellington, J.; Ramesh, P. Role of Internet of Things in disaster management. In Proceedings of the 2017 International Conference on Innovations in Information, Embedded and Communication Systems, ICIIECS 2017, Coimbatore, India, 17–18 March 2017; pp. 1–4. [Google Scholar] [CrossRef]
  8. Allan, B.M.; Nimmo, D.G.; Ierodiaconou, D.; VanDerWal, J.; Koh, L.P.; Ritchie, E.G. Futurecasting ecological research: The rise of technoecology. Ecosphere 2018, 9, e02163. [Google Scholar] [CrossRef]
  9. Adelantado, F.; Vilajosana, X.; Tuset-Peiro, P.; Martinez, B.; Melia-Segui, J.; Watteyne, T. Understanding the Limits of LoRaWAN. IEEE Commun. Mag. 2017, 55, 34–40. [Google Scholar] [CrossRef] [Green Version]
  10. Augustin, A.; Yi, J.; Clausen, T.; Townsley, W.M. A study of Lora: Long range and low power networks for the internet of things. Sensors 2016, 16, 1466. [Google Scholar] [CrossRef]
  11. Jovalekic, N.; Drndarevic, V.; Pietrosemoli, E.; Darby, I.; Zennaro, M. Experimental study of LoRa transmission over seawater. Sensors 2018, 18, 2853. [Google Scholar] [CrossRef] [Green Version]
  12. Reynders, B.; Meert, W.; Pollin, S. Power and spreading factor control in low power wide area networks. In Proceedings of the IEEE International Conference on Communications, Paris, France, 21–25 May 2017; pp. 1–6. [Google Scholar] [CrossRef]
  13. Petric, T.; Goessens, M.; Nuaymi, L.; Toutain, L.; Pelov, A. Measurements, performance and analysis of LoRa FABIAN, a real-world implementation of LPWAN. In Proceedings of the IEEE International Symposium on Personal, Indoor and Mobile Radio Communications, PIMRC, Valencia, Spain, 4–8 September 2016. [Google Scholar] [CrossRef] [Green Version]
  14. Noreen, U.; Bounceur, A.; Clavier, L. A study of LoRa low power and wide area network technology. In Proceedings of the 3rd International Conference on Advanced Technologies for Signal and Image Processing, ATSIP 2017, Fez, Morocco, 22–24 May 2017. [Google Scholar] [CrossRef]
  15. Mikhaylov, K.; Petajajarvi, J.; Hanninen, T. Analysis of capacity and scalability of the LoRa low power wide area network technology. In Proceedings of the European Wireless Conference 2016, EW 2016, Oulu, Finland, 18–20 May 2016; pp. 119–124. [Google Scholar]
  16. Sanchez-Iborra, R.; Sanchez-Gomez, J.; Ballesta-Vinas, J.; Cano, M.D.; Skarmeta, A.F. Performance evaluation of LoRa considering scenario conditions. Sensors 2018, 18, 772. [Google Scholar] [CrossRef] [Green Version]
  17. Bor, M.; Roedig, U. LoRa transmission parameter selection. In Proceedings of the 2017 13th International Conference on Distributed Computing in Sensor Systems, DCOSS 2017, Ottawa, ON, Canada, 5–7 June 2017; pp. 27–34. [Google Scholar] [CrossRef] [Green Version]
  18. Ameloot, T.; Van Torre, P.; Rogier, H. A compact low-power LoRa IoT sensor node with extended dynamic range for channel measurements. Sensors 2018, 18, 2137. [Google Scholar] [CrossRef] [Green Version]
  19. Sinha, R.S.; Wei, Y.; Hwang, S.H. A survey on LPWA technology: LoRa and NB-IoT. ICT Express 2017, 3, 14–21. [Google Scholar] [CrossRef]
  20. Muteba, F.; Djouani, K.; Olwal, T. A comparative survey study on LPWA IoT technologies: Design, considerations, challenges and solutions. Procedia Comput. Sci. 2019, 155, 636–641. [Google Scholar] [CrossRef]
  21. Mekki, K.; Bajic, E.; Chaxel, F.; Meyer, F. A comparative study of LPWAN technologies for large-scale IoT deployment. ICT Express 2019, 5, 1–7. [Google Scholar] [CrossRef]
  22. Raza, U.; Kulkarni, P.; Sooriyabandara, M. Low Power Wide Area Networks: An Overview. IEEE Commun. Surv. Tutorials 2017, 19, 855–873. [Google Scholar] [CrossRef] [Green Version]
  23. Erturk, M.A.; Aydın, M.A.; Buyukakkaşlar, M.T.; Evirgen, H. A Survey on LoRaWAN Architecture, Protocol and Technologies. Future Internet 2019, 11, 216. [Google Scholar] [CrossRef] [Green Version]
  24. Haxhibeqiri, J.; De Poorter, E.; Moerman, I.; Hoebeke, J. A survey of LoRaWAN for IoT: From technology to application. Sensors 2018, 18, 3995. [Google Scholar] [CrossRef] [Green Version]
  25. Bouguera, T.; Diouris, J.F.; Chaillout, J.J.; Jaouadi, R.; Andrieux, G. Energy consumption model for sensor nodes based on LoRa and LoRaWAN. Sensors 2018, 18, 2104. [Google Scholar] [CrossRef] [Green Version]
  26. Delgado, C.; Sanz, J.M.; Blondia, C.; Famaey, J. Battery-Less LoRaWAN Communications using Energy Harvesting: Modeling and Characterization. IEEE Internet Things J. 2020, 4662, 18. [Google Scholar] [CrossRef]
  27. Morin, E.; Maman, M.; Guizzetti, R.; Duda, A. Comparison of the Device Lifetime in Wireless Networks for the Internet of Things. IEEE Access 2017, 5, 7097–7117. [Google Scholar] [CrossRef]
  28. Casals, L.; Mir, B.; Vidal, R.; Gomez, C. Modeling the energy performance of LoRaWAN. Sensors 2017, 17, 2364. [Google Scholar] [CrossRef] [Green Version]
  29. Bor, M.; Vidler, J.; Roedig, U. LoRa for the Internet of Things. In Proceedings of the 2016 International Conference on Embedded Wireless Systems and Networks, Graz, Austria, 15–17 February 2016; pp. 361–366. [Google Scholar]
  30. Slabicki, M.; Premsankar, G.; Di Francesco, M. Adaptive configuration of LoRa networks for dense IoT deployments. In Proceedings of the IEEE/IFIP Network Operations and Management Symposium: Cognitive Management in a Cyber World, NOMS 2018, Taipei, Taiwan, 23–27 April 2018; pp. 1–9. [Google Scholar] [CrossRef] [Green Version]
  31. Callebaut, G.; Ottoy, G.; Van Der Perre, L. Cross-Layer Framework and Optimization for Efficient Use of the Energy Budget of IoT Nodes. In Proceedings of the IEEE Wireless Communications and Networking Conference, WCNC, Marrakesh, Morocco, 15–18 April 2019. [Google Scholar] [CrossRef] [Green Version]
  32. Tuwanut, P.; Kraijak, S. A survey on IoT architectures, protocols, applications, security, privacy, real-world implementation and future trends. In Proceedings of the 11th International Conference on Wireless Communications, Networking and Mobile Computing (WiCOM 2015), Shanghai, China, 21–23 September 2015; p. 6. [Google Scholar] [CrossRef]
  33. Jangid, A. A Survey and Challenges in IoT Networks. In Proceedings of the 2019 International Conference on Intelligent Sustainable Systems (ICISS), Palladam, Tamilnadu, India, 21–22 February 2019; pp. 516–521. [Google Scholar]
  34. Vangelista, L. Frequency Shift Chirp Modulation: The LoRa Modulation. IEEE Signal Process. Lett. 2017, 24, 1818–1821. [Google Scholar] [CrossRef]
  35. Chiani, M.; Elzanaty, A. On the LoRa Modulation for IoT : Waveform Properties and Spectral Analysis. IEEE Internet Things J. 2019, 6, 8463–8470. [Google Scholar] [CrossRef] [Green Version]
  36. Springer, A.; Gugler, W.; Huemer, M.; Reindl, L.; Ruppel, C.C.; Weigel, R. Spread Spectrum Communications Using Chirp Signals. In Proceedings of the IEEE/AFCEA EUROCOMM 2000: Information Systems for Enhanced Public Safety and Security, Munich, Germany, 19 May 2000; pp. 166–170. [Google Scholar]
  37. LoRa Alliance Technical Comitee. LoRaWAN™ 1.0.2 Regional Parameters; RP002-1.0.2; LoRa Alliance Technical Committee: Fremont, CA, USA, 2020. [Google Scholar]
  38. Rahmadhani, A.; Kuipers, F. Understanding Collisions in a LoRaWAN; Delft University of Technology: Delft, The Netherlands, 2017. [Google Scholar]
  39. LoRa Alliance Technical Comitee. LoRaWAN Link Layer Specification v1.0.4; v1.0.4; LoRa Alliance Technical Committee: Fremont, CA, USA, 2020. [Google Scholar]
  40. Bor, M.; Roedig, U.; Voigt, T.; Alonso, J.M. Do LoRa low-power wide-area networks scale? In Proceedings of the MSWiM 2016—19th ACM International Conference on Modeling, Analysis and Simulation of Wireless and Mobile Systems, Malta, 13–17 November 2016; pp. 59–67. [Google Scholar] [CrossRef] [Green Version]
  41. Callebaut, G.; Van Der Perre, L. Characterization of LoRa Point-to-Point Path Loss: Measurement Campaigns and Modeling Considering Censored Data. IEEE Internet Things J. 2020, 7, 1910–1918. [Google Scholar] [CrossRef]
  42. Xu, W.; Kim, J.Y.; Huang, W.; Kanhere, S.S.; Jha, S.K.; Hu, W. Measurement, Characterization, and Modeling of LoRa Technology in Multifloor Buildings. IEEE Internet Things J. 2020, 7, 298–310. [Google Scholar] [CrossRef] [Green Version]
  43. El Chall, R.; Lahoud, S.; El Helou, M. LoRaWAN network: Radio propagation models and performance evaluation in various environments in Lebanon. IEEE Internet Things J. 2019, 6, 2366–2378. [Google Scholar] [CrossRef]
  44. Jörke, P.; Böcker, S.; Liedmann, F.; Wietfeld, C. Urban channel models for smart city IoT-networks based on empirical measurements of LoRa-lmks at 433 and 868 MHz. In Proceedings of the IEEE International Symposium on Personal, Indoor and Mobile Radio Communications, PIMRC, Montreal, QC, Canada, 8–13 October 2018; pp. 1–6. [Google Scholar] [CrossRef]
  45. Semtech SX1272/73. Available online: https://www.semtech.com/products/wireless-rf/lora-core/sx1272 (accessed on 18 July 2021).
  46. Bankov, D.; Khorov, E.; Lyakhov, A. On the limits of LoRaWAN channel access. In Proceedings of the 2016 International Conference on Engineering and Telecommunication, EnT 2016, Moscow, Russia, 29–30 November 2016; pp. 10–14. [Google Scholar] [CrossRef]
  47. Reynders, B.; Meert, W.; Pollin, S. Range and Coexistence Analysis of Long Range Unlicensed Communication. In Proceedings of the 2016 23rd International Conference on Telecommunications (ICT), Thessaloniki, Greece, 16–18 May 2016. [Google Scholar]
Figure 1. IoT network architecture.
Figure 1. IoT network architecture.
Sensors 21 06398 g001
Figure 2. OSI modeling of the LoRaWAN protocol.
Figure 2. OSI modeling of the LoRaWAN protocol.
Sensors 21 06398 g002
Figure 3. Example of LoRa channels used in Europe.
Figure 3. Example of LoRa channels used in Europe.
Sensors 21 06398 g003
Figure 4. LoRa CSS modulation.
Figure 4. LoRa CSS modulation.
Sensors 21 06398 g004
Figure 5. LoRaWAN class A transmission scheduling.
Figure 5. LoRaWAN class A transmission scheduling.
Sensors 21 06398 g005
Figure 6. LoRa Physical Protocol Data Unit.
Figure 6. LoRa Physical Protocol Data Unit.
Sensors 21 06398 g006
Figure 7. LoRaWAN MAC Protocol Data Unit.
Figure 7. LoRaWAN MAC Protocol Data Unit.
Sensors 21 06398 g007
Figure 8. Scheme of the experimental testbed.
Figure 8. Scheme of the experimental testbed.
Sensors 21 06398 g008
Figure 9. Experimental testbed to measure currents consumed by a LoRa shield of an IoT node.
Figure 9. Experimental testbed to measure currents consumed by a LoRa shield of an IoT node.
Sensors 21 06398 g009
Figure 10. Measured current in various transmission phases ( P tx = 14 dBm , DR = 5).
Figure 10. Measured current in various transmission phases ( P tx = 14 dBm , DR = 5).
Sensors 21 06398 g010
Figure 11. Measured current in transmission and reception states (DR = 5).
Figure 11. Measured current in transmission and reception states (DR = 5).
Sensors 21 06398 g011
Figure 12. State chart of a LoRa node for one transmission.
Figure 12. State chart of a LoRa node for one transmission.
Sensors 21 06398 g012
Figure 13. LoRa node state evolution for one transmission.
Figure 13. LoRa node state evolution for one transmission.
Sensors 21 06398 g013
Figure 14. Spent time by a LoRa sensor in various operating states.
Figure 14. Spent time by a LoRa sensor in various operating states.
Sensors 21 06398 g014
Figure 15. Total energy consumed by the node.
Figure 15. Total energy consumed by the node.
Sensors 21 06398 g015
Figure 16. Maximum LoRa node range vs. DR and transmit power.
Figure 16. Maximum LoRa node range vs. DR and transmit power.
Sensors 21 06398 g016
Figure 17. Average energy consumed per useful bit by a LoRa sensor for various transmit powers vs. number of nodes in the network ( FPayload = 50 bytes; NR = 8 ; d = 1 km ; dc = 1 % ).
Figure 17. Average energy consumed per useful bit by a LoRa sensor for various transmit powers vs. number of nodes in the network ( FPayload = 50 bytes; NR = 8 ; d = 1 km ; dc = 1 % ).
Sensors 21 06398 g017
Figure 18. Average energy consumed per useful bit by a LoRa sensor for various payload sizes vs. number of nodes in the network ( NR = 8 ; P tx = 14 dBm ; d = 1 km ; dc = 1 % ).
Figure 18. Average energy consumed per useful bit by a LoRa sensor for various payload sizes vs. number of nodes in the network ( NR = 8 ; P tx = 14 dBm ; d = 1 km ; dc = 1 % ).
Sensors 21 06398 g018
Figure 19. Average energy consumed per useful bit by a LoRa sensor for various numbers of attempts vs. number of nodes in the network ( FPayload = 50 bytes; P tx = 14 dBm ; d = 1 km ; dc = 1 % ).
Figure 19. Average energy consumed per useful bit by a LoRa sensor for various numbers of attempts vs. number of nodes in the network ( FPayload = 50 bytes; P tx = 14 dBm ; d = 1 km ; dc = 1 % ).
Sensors 21 06398 g019
Figure 20. Average energy consumed per useful bit by a LoRa sensor for various distances vs. number of nodes in the network ( FPayload = 50 bytes; NR = 8 ; P tx = 14 dBm ; dc = 1 % ).
Figure 20. Average energy consumed per useful bit by a LoRa sensor for various distances vs. number of nodes in the network ( FPayload = 50 bytes; NR = 8 ; P tx = 14 dBm ; dc = 1 % ).
Sensors 21 06398 g020
Figure 21. Average energy consumed per useful bit by a LoRa sensor for various duty cycle vs. number of nodes in the network ( FPayload = 50 bytes; NR = 8 ; P tx = 14 dBm ; d = 1 km ).
Figure 21. Average energy consumed per useful bit by a LoRa sensor for various duty cycle vs. number of nodes in the network ( FPayload = 50 bytes; NR = 8 ; P tx = 14 dBm ; d = 1 km ).
Sensors 21 06398 g021
Table 1. LoRa main features.
Table 1. LoRa main features.
ParameterValue
ModulationCSS
Radio spectrumUS 915–EU 868
Data Rates300 bps–37.5 kbps
Latency500 ms
Bandwidth(125, 250, 500) kHz
RSSI−120 to −30 dBm
Range5 km (urban)–15 km (rural)
Topologystar
Number of nodestheoretically infinite
Table 2. LoRa DR mode characteristics in EU.
Table 2. LoRa DR mode characteristics in EU.
DR i i SF i BWCRMax MAC PLData Rate
DR557125 kHz4/5250 bytes5.47 kbps
DR448125 kHz4/5250 bytes3.125 kbps
DR339125 kHz4/5123 bytes1.76 kbps
DR2210125 kHz4/559 bytes0.98 kbps
DR1111125 kHz4/659 bytes0.44 kbps
DR0012125 kHz4/659 bytes0.25 kbps
Table 3. RF Sensitivity for the SX1272 devices.
Table 3. RF Sensitivity for the SX1272 devices.
DR i i SF i RF Sensitivity
DR557−124 dBm
DR448−127 dBm
DR339−130 dBm
DR2210−133 dBm
DR1111−135 dBm
DR0012−137 dBm
Table 4. LoRa Frame Size.
Table 4. LoRa Frame Size.
FramePreambleH1H2H3+FPayloadCRC
data12.25 symb20 bits5 bytes58 bytes16 bits
ACK12.25 symb20 bits5 bytes8 bytes-
Table 5. Currents consumed in different operating states.
Table 5. Currents consumed in different operating states.
CurrentTimes
ParameterTheoreticalExperimentalParameterExperimental
I txwu 2.268 mA t txwu 1.722 ms
21.86 mA (+3 dBm)
18 mA22.36 mA (+7 dBm) depends on
I tx 23.53 mA (+9 dBm) t tx , i DR mode
( P TA ) 31.37 mA (+12 dBm) (Table 6)
28 mA32.63 mA (+13 dBm)
39.43 mA (+14 dBm)
I txoff 2.072 mA t txoff 0.3 ms
I id 1.5 μ A123.4 μ A t id 1 1 s
I rxwu 1.996 mA t rxwu 9 ms
t ack , i depends on
I rx 10.5 mA10.76 mAorDR mode
t pre , i (Table 6)
I rxoff 2.033 mA t rxoff 0.3 ms
I id 1.5  μ A123.4  μ A t id 2 , i t w 2 t id 1 t rx 1 , i
I rxwu 1.86 mA t rxwu 9 ms
0 ordepend of
I rx 10.5 mA11.12 mA t ack , 0 orDR mode
t pre , 0 (Table 6)
I rxoff 2.054 mA t rxoff 0.3 ms
Table 6. Data and ACK frame durations.
Table 6. Data and ACK frame durations.
TheoreticalExperimental
DRi t tx , i t ack , i t pre , i t tx , i t ack , i t pre , i
DR5118 ms41.2 ms8.2 ms117.9 ms39.8 ms5 ms
DR4215.6 ms82.4 ms16.4 ms204.95 ms78 ms10 ms
DR3390.1 ms144.4 ms32.7 ms371 ms140 ms21 ms
DR2698.4 ms288.7 ms65.5 ms695 ms290 ms41 ms
DR11.708 s626.7 ms131 ms1.675 s612 ms82 ms
DR03.219 s1.253 ms262.1 ms3.195 s1.134 s230 ms
Table 7. Probabilities of an end-device using a specific SF.
Table 7. Probabilities of an end-device using a specific SF.
SF i 789101112
p i 0.190.080.10.140.20.28
Table 8. Total time spent by the node in a communication phase for the various situations.
Table 8. Total time spent by the node in a communication phase for the various situations.
DR5DR4DR3DR2DR1DR0
Sensors 21 06398 i0011.17 s1.309 s1.545 s1.998 s3.346 s5.484 s
Sensors 21 06398 i0023.382 s3.480 s3.654 s3.963 s4.972 s6.746 s
Sensors 21 06398 i0033.382 s3.480 s3.654 s3.963 s4.972 s6.746 s
Sensors 21 06398 i0042.53 s2.628 s2.802 s3.111 s4.12 s5.632 s
Table 9. Total energy consumed by the node in a communication phase for the different situations.
Table 9. Total energy consumed by the node in a communication phase for the different situations.
DR5DR4DR3DR2DR1DR0
Sensors 21 06398 i00519.56 mJ35.04 mJ62.28 mJ111.75 mJ268.45 mJ507.81 mJ
Sensors 21 06398 i00670.06 mJ85.52 mJ112.72 mJ162.13 mJ318.68 mJ557.88 mJ
Sensors 21 06398 i00770.06 mJ85.52 mJ112.72 mJ162.13 mJ318.68 mJ557.88 mJ
Sensors 21 06398 i00835.2 mJ49.53 mJ75.3 mJ121.0 mJ268.26 mJ490.67 mJ
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Maudet, S.; Andrieux, G.; Chevillon, R.; Diouris, J.-F. Refined Node Energy Consumption Modeling in a LoRaWAN Network. Sensors 2021, 21, 6398. https://doi.org/10.3390/s21196398

AMA Style

Maudet S, Andrieux G, Chevillon R, Diouris J-F. Refined Node Energy Consumption Modeling in a LoRaWAN Network. Sensors. 2021; 21(19):6398. https://doi.org/10.3390/s21196398

Chicago/Turabian Style

Maudet, Sébastien, Guillaume Andrieux, Romain Chevillon, and Jean-François Diouris. 2021. "Refined Node Energy Consumption Modeling in a LoRaWAN Network" Sensors 21, no. 19: 6398. https://doi.org/10.3390/s21196398

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop