Open Access

Priority-based resource allocation in layering LoRaWAN

  
Nov 20, 2024

Cite
Download Cover

Introduction

The Internet of Things (IoT) seeks to facilitate communication and cooperation between disparate devices so that they can offer users transparent smart services in various settings. Billions of IoT devices will be installed globally over the next several years, enabling smart systems for various applications [1]. These applications include smart farming, smart cities, manufacturing, transportation, and many other areas. Wireless networks are necessary for these applications to cover a large area within a city, building, or farm [2, 3]. The wireless technologies utilized for this purpose, such as ZigBee, Wi-Fi, and Bluetooth, have a range of a few meters or tens of meters [4]. Mesh network structures can increase the coverage area by utilizing multihop communication [5].

Low-Power Wide Area Networks (LPWAN) were recently developed to offer a workable solution for applications that need energy efficiency and wide area coverage [6]. In licensed bands, the most popular topologies are Long-Term Evolution for M2M (LTEM) and Narrowband IoT (NB-IoT) [7] for LPWAN, and in unlicensed bands, Long-Range Wide Area Network (LoRaWAN) and SigFox are the most common topologies. Because it is possible to create private networks using unlicensed frequency bands (868 MHz in Europe and 915 MHz in the USA and Brazil), Long-Range (LoRa) communication is one of the most popular applications. LoRaWAN technology offers low data rates and low energy consumption for LoRa communication. According to certain tests, the technology can travel several kilometers in open spaces or rural areas. However, due to attenuation and fading effects, LoRaWAN’s range is significantly reduced in situations with obstacles or inside buildings, leading to packet losses and errors.

Numerous obstructions in cities can deteriorate the signal, which also reduces the coverage area. The topography of the terrain has a significant impact on rural areas; for example, a mountain may produce a shadow area. A device operating in unfavorable conditions will need more power to transmit, which increases energy consumption and shortens the device’s lifespan. The endpoints that make up the LoRaWAN network send data to gateways in the form of a star network topology. Only one hop between LoRa devices and the gateway is permitted by the specification [8]. However, multihop networks, which require less transmission power than single-hop networks, are well known for increasing coverage, improving energy efficiency, and extending battery life [9,10,11]. The scalability and network capacity of LoRaWAN networks are some open research issues.

Studies in the literature have indicated that crowded networks with a higher number of devices can lead to decreased network performance, resulting in higher latencies and lower reliability. The LoRaWAN protocol utilizes ALOHA as the MAC protocol, which may not provide an efficient solution with increased traffic load or node density due to interference and packet collisions [12, 13]. Utilizing the multihop approaches can improve scalability, capacity, and reliability. Gupta et al. [14] focused on analyzing the number of collisions and their impact on the network; the study enhances the throughput of LoRa nodes while optimizing parameters such as energy harvesting (EH) duration, spreading factor (SF), and transmit power. A mathematical expression for packet collisions has been developed, and an algorithm is proposed to assign SFs to nodes depending upon collisions and distance. The study demonstrates improved packet error rates (PER) and time on air (ToA) with fewer LoRa nodes using lower SFs compared to higher SFs through simulation results.

With SF = 7, nearly four times as many LoRa nodes can communicate as with SF = 11 while still maintaining a low PER. Additionally, SF = 7 sees a 20 ms increase in ToA when the coding rate is changed from 1 to 4, whereas SF = 12 experiences a 1,200 ms increase in ToA. Additionally, comparisons are made between the energy efficiency for various transmission powers and SFs. Six SFs are partially orthogonal to each other, and eight different uplink channels are orthogonal to each other, which allows a maximum of 48 messages to be sent without interference [15]. For shorter distances, lower SF and transmission powers are more appropriate, as they offer superior energy efficiency [16, 17].

The paper is organized as follows: Section 2 presents the work, Section 3 presents the results and simulations, and finally, the paper is concluded in Section 4.

Proposed Work

Consider the network with gateways gil,1iG g_i^l,1 \le i \le G , the total number of LoRa nodes as r,1rR,ril r,1 \le r \le R,r_i^l and number of layers formed are denoted by l, 1 ≤ lL, where G,R, and L denote the maximum number of gateways, LoRa nodes, and layers formed respectively in the network. The proposed delay monitoring layered (DML) scheme considers the IoT applications listed as three main categories: delay sensitive, delay tolerant, and delay insensitive (DIS) [18]. The abbreviations used are listed in Table 1.

Parameters abbreviation

Parameter Abbreviation
Spreading factor SF
Delay-sensitive services DSS
Delay-tolerant service DTS
Delay insensitive DIS
Offered load OL
Delay-sensitive services (DSS)

This includes services used for the purpose of security and safety; their occurrence is random, and they require an urgent or timely response. They can be modeled as Class A uplink transmissions, which are nonperiodic in nature.

Delay-tolerant service (DTS)

These are basically control services that work on remote commands, and they can be modeled as downlink Class C transmissions, which are automated in nature.

DIS

These are periodic measurements of the sensors and basically used for monitoring, and these are periodic uplink transmissions, which can be modeled as Class A.

With a kilometer-level transmission range and microampere-level power consumption, LoRaWAN is one of the most widely used LPWA technologies. This leads to an increase in the number of LoRaWAN nodes to grow exponentially, resulting in increased interference and a higher rate of packet collisions. The scarcity of channel resources, due to the utilization of unlicensed bands, escalates the resource competition, which increases the probability of delayed information transfer for delay-sensitive applications and might lead to damage to life, property, etc. Therefore, the proposed DML scheme provides resource allocation based on the sensitivity of the application, i.e., the SFs are assigned to applications in each layer depending on their sensitivity. The order of their priority is DSS > DTS > DIS. A priority-based resource allocation scheme that prioritizes emergent packets and reduces overall packet collision is suggested as a solution to these problems.

As specified earlier, 7 ≤ SF ≤ 12, which means we have six SFs per channel to select for fairness in terms of transmission range and data rate. The work uses the orthogonality nature of SF to reduce packet collision probability. By using algorithm stated in Ref. [19], the success probability of a packet for the LoRa nodes in the MAC layer using a SF can be determined as follows: pSF=1ToASFT2nSF1 p\left( {SF} \right) = {\left( {1 - {{ToA\left( {SF} \right)} \over T}} \right)^{\left( {2n\left( {SF} \right) - 1} \right)}} where n(SF) denotes the number of LoRa nodes using that SF, and T is the duration in minutes. The work considers that each LoRa node generates a packet of payload B bytes randomly at an instant of time and this is uniformly distributed with respect to time period. This leads to an offered load (OL) [19] generated by a rth LoRa nodes in bits per second equal to OLr=8L×BTbits/sec O{L_r} = {{8\left( {L \times B} \right)} \over T}{\rm{bits}}/{\rm{sec}}

At this point, the priority factor used for LoRa nodes at each layer is introduced. PFmlr=OLr×mr=1LOLr PF_m^{{l_r}} = {{O{L_r} \times m} \over {\sum\nolimits_{r = 1}^L {O{L_r}} }} Where 1 ≤ m ≤ 3 integer value only; a higher value means higher priority. The flowchart of algorithms is shown in Figure 1.

Figure 1:

Flowchart of algorithms.

Root gateway sends the available message to all the gateways.

Gateways and LoRa nodes discovery

Broadcast message to all gateways for discovery of gateways.

Broadcast message received by the ith gateway in layer 1 is denoted as gi1 g_i^1 . It sends acknowledgment to the root gateway and introduces itself as gi1 g_i^1 .

gi1 \forall g_i^1 broadcast to all gateways and LoRa nodes.

gi1 \forall g_i^1 gets connected to LoRa nodes in its coverage area denoted by ri1 r_i^1 , meaning ri1gi1 r_i^1 \in g_i^1 for connection to root gateway.

For 2 ≤ lL

Broadcast message to all gateways for discovery of gateways.

Broadcast message received by ith gateway in layer l is denoted as gil g_i^l . It sends acknowledgment to the gateway in layer (l + 1) and introduces itself as gil+1 g_i^{\left( {l + 1} \right)} .

gil+1 \forall g_i^{l + 1} broadcast to all gateways and LoRa nodes.

gil+1 \forall g_i^{l + 1} gets connected to LoRa nodes in its coverage area denoted by ril+1 r_i^{l + 1} , meaning ril+1gil+1 r_i^{l + 1} \in g_i^{l + 1} for connection to the lth gateway.

SF assignment

Find LoRa nodes with maxmPFmlr \mathop {\max }\limits_m PF_m^{{l_r}} , let the number of LoRa nodes are nr.

If nrn(SF = 6)

Assign SF = 6 to all nr nodes.

Else

Assign SF = 7 to all (nrn(SF = 6)) nodes.

End

Repeat step 1–6 for next m = 2,1 and SF = SF + 1 when required.

Results and Simulations

The simulations are done on an Intel Core i7 series processor with 32 GB of RAM using LoRaSim [20]. The simulation parameters are given in Table 2. In Figure 2, the packet delivery rate (PDR) of the proposed work is plotted for nodes increasing from 40 to 100. When priority is used, the average PDR is lower than when DML is used without priority due to preference given to some applications over others, which slows down the overall performance of the setup. In Figure 3, energy consumed is plotted and compared for DML with and without priority. DML with priority consumes less energy as the priority applications use lesser SF, which reduces their ToA. The result shows that the number of messages sent for both schemes is the same, and it depends on the number of layers to be formed, which gives clarity that adding priority does not provide added complexity and can be used for the purpose of scaling.

Figure 2:

Energy consumption versus number of nodes. DML, delay-monitoring layered.

Figure 3:

Average packet delivery ratio versus number of nodes. DML, delay-monitoring layered; PDR, packet delivery rate.

Simulation parameters

Parameters Value
Frequency 125 kHz
SF 6–12
Data rate 250 bps
Payload 59
Coding rate 4/5
LoRa nodes 40–100
Number of layers 1–15
Number of gateways 20

LoRa, long-range; SF, spreading factor.

The throughput DML and DML without priority is compared as a function of the varying number of LoRa nodes in the network in Figure 4. An increase in number of LoRa nodes adds offered traffic, and throughput improves with increased load. Given the high PDR, the throughput of DML scheme and the DML without priority scheme perform close to each other.

Figure 4:

Throughput of the proposed DML schemes versus number of nodes. DML, delay-monitoring layered.

In Figure 5, the throughput of the network when 200 LoRa nodes are present versus varying numbers of available channels in the network is compared; the work indicates the effect of the number of available channels on the proposed scheme. From the result, it is clear that the number of channels improves the throughput of the network, or, in other words, the proposed schemes.

Figure 5:

Throughput of the proposed DML schemes versus number of available channels. DML, delay-monitoring layered.

Conclusion

This article introduces a low-power system utilizing LoRa technology. Many applications based on LoRaWAN have been developed due to its benefits of long range, low power usage, and private network deployment. However, as the number of LoRaWAN applications increases, packet collisions have become a more significant issue due to limited resources. This article categorizes LoRaWAN application services into safety, control, and monitoring, each with varying levels of importance. To address this, the DML scheme was created to allocate SFs based on the highest priority parameter, ultimately enhancing average PDR, energy efficiency, and throughput.

Language:
English
Publication timeframe:
1 times per year
Journal Subjects:
Engineering, Introductions and Overviews, Engineering, other