Next Article in Journal
Seismic Event Detection in the Copahue Volcano Based on Machine Learning: Towards an On-the-Edge Implementation
Previous Article in Journal
An Improved Dual-Gate Compact Model for Carbon Nanotube Field Effect Transistors with a Back-Gate Effect and Circuit Implementation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Advancing Performance in LoRaWAN Networks: The Circular Region Grouped Bit-Slot LoRa MAC Protocol

1
Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650500, China
2
Yunnan Key Lab of Computer Technology Applications, Kunming University of Science and Technology, Kunming 650500, China
*
Author to whom correspondence should be addressed.
Electronics 2024, 13(3), 621; https://doi.org/10.3390/electronics13030621
Submission received: 17 December 2023 / Revised: 23 January 2024 / Accepted: 30 January 2024 / Published: 1 February 2024
(This article belongs to the Section Networks)

Abstract

:
LoRaWAN is an emerging Low-Power Wide-Area Network (LPWAN) technology, widely adopted in various Internet of Things (IoT) applications due to its long transmission range, low power consumption, and robust anti-interference capabilities. However, using the ALOHA medium access control (MAC) protocol in LoRaWAN significantly reduces the packet delivery rate, particularly in high-density networks where end devices (EDs) access the network randomly. It seriously affects the overall network performance. This paper introduces the Circular Region Grouped Bit-Slot CGBS-LoRa MAC protocol to address this challenge. The protocol takes a proactive approach by allocating transmission parameters for end devices, executing regional segmentation based on the distance between EDs and the gateway using different spreading factors. Concurrently, improving the ALOHA access method ensures the efficient communication of EDs in the region. Experimental results demonstrate that our proposed protocol markedly improves the scalability of LoRa networks and minimizes device collisions compared to three other MAC protocols. Even as the LoRaWAN network expands, the proposed protocol maintains a high packet delivery rate and low latency.

1. Introduction

In recent years, the application of the Internet of Things (IoT) in the civilian sector has witnessed rapid growth, encompassing various domains such as agriculture, environmental monitoring, and smart cities. These application areas urgently need wireless technologies that can provide low-cost, scalable, and robust connectivity on a large scale [1,2,3]. The successful deployment of IoT applications depends on seamless connectivity and ensuring the security and integrity of transmitted data in diverse IoT environments [4,5]. In this regard, the emergence of Low-Power Wide-Area Networks (LPWAN) precisely caters to the specific requirements of these applications. LoRa, derived from the chirp spread spectrum (CSS) modulation technology developed by Semtech, represents a long-distance communication technology. As one among several LPWAN technologies [6], LoRa has undergone rapid development and possesses relatively mature technology. Upon its introduction, LoRa garnered significant attention due to its remarkable sensitivity, robust interference resistance, and outstanding network capacity [7]. Addressing the unique challenges of IoT environments, including the need for secure and reliable data transmission, is paramount to the advancement of LPWAN technologies such as LoRa [8,9].
LoRaWAN is an LPWAN specification protocol based on LoRa technology introduced by the LoRa Alliance [10], which still has much room to improve its network performance. In the LoRaWAN network, the end device (ED) access adopts a pure ALOHA protocol, which adheres to a simple principle: transmit data whenever there is data to send. Although this straightforward approach simplifies LoRa network deployment, it concurrently heightens the probability of collisions during data packet transmission [11]. As the number of connected end devices (EDs) continues to increase, large-scale data conflicts become more likely, resulting in data loss and retransmission. This, in turn, amplifies the energy consumption of EDs and substantially undermines the performance of the LoRaWAN network. Consequently, mitigating the high collision rate in the connection of large-scale EDs emerges as a primary challenge in the evolution of LoRaWAN. In response to this challenge, researchers have proposed various solutions leveraging existing LoRaWAN functionalities at the physical or MAC layer.
The configuration of LoRa physical layer transmission parameters significantly influences the network’s overall performance. Among these parameters, the spreading factor (SF) is a critical factor influencing the distance, time, and data transmission rate in LoRa networks. Consequently, the allocation strategy for SF has garnered significant attention in research. A study [12] suggested that EDs in LoRa networks use the highest SF, ensuring comprehensive city coverage. However, this approach only considers the path loss and neglects the transmission latency when using SF12. Furthermore, several studies propose enhancements at the MAC layer of the LoRaWAN network to address resource allocation challenges within the LoRa network. In [13], the Slotted ALOHA protocol is employed to reduce collisions. However, inadequate configuration of transmission parameters in these studies may lead to severe collision problems under high loads, ultimately compromising communication efficiency and diminishing overall network performance.
To alleviate congestion and collisions resulting from a large number of connections in the LoRaWAN network, we propose the Circular Region-Based Grouped Bit-Slot LoRa protocol. This protocol allocates transmission parameters for EDs across the entire region and completes partitioning based on different SFs. It employs the CGBS-LoRa protocol instead of the ALOHA MAC protocol to optimize resource utilization in the LoRaWAN network. By reducing collision probability, it aims to enhance the throughput of the LoRaWAN network, therefore improving overall performance.
The remaining sections of this paper are organized as follows: Section 2 introduces related work. Section 3 provides an overview of the LoRa physical layer and LoRaWAN protocol. Section 4 details the CGBS-LoRa protocol, including improvements in parameter allocation and ED access algorithm. Section 5 evaluates the proposed method through simulation and compares it with other approaches. Finally, Section 6 concludes the paper.

2. Related Work

LoRa technology and the LoRaWAN network, a wireless technology for the IoT, have received considerable attention from the research community in recent years. Scholars have extensively explored the capabilities and performance of LoRaWAN, as detailed in [14,15,16], encompassing the technology, challenges, and proposed solutions. Research [17,18] has examined the uplink traffic of LoRaWAN, identifying issues such as low reliability, high latency, and possibly poor throughput. We briefly describe some of the existing methods to improve the performance of LoRaWAN networks, as shown in Table 1. Since LoRaWAN is an ALOHA-based network [19], the probability of packet collisions increases significantly as the number of EDs increases, resulting in a decline in packet delivery rate. Consequently, it is imperative to address and improve the issue of data transmission conflicts in the LoRaWAN network.
Most existing research has primarily focused on the LoRaWAN ALOHA MAC protocol, and many different approaches have been proposed [20,21,22]. In [23], the proposal is to replace the pure ALOHA method with Slotted ALOHA to improve communication in the LoRaWAN network. In the Slotted ALOHA system, the channel time is divided into multiple slots, with each ED transmitting data packets at the beginning of a slot. The results show an overall improvement in network performance. In [24], the authors use the Carrier Sense Multiple Access (CSMA) to enable EDs to sense the channel before transmission, reducing interference in densely deployed networks. Compared with pure ALOHA, this method provides better channel utilization. In [25], the Distributed Queuing Random Access protocol is applied to LoRaWAN networks, which divides the terminal nodes into two queues: the collision resolution queue for collision resolution and the data transmission queue for transmitting data packets. The research shows that DQ-LoRa outperforms the pure ALOHA method in LoRaWAN concerning network throughput and managing a large number of EDs.
Additionally, research focused on enhancing the capacity of the LoRa network by adjusting transmission parameters. Analysis in [26] shows that the reliability of the LoRaWAN network improves if EDs select appropriate spreading factors (SFs). Allocation algorithms for SFs are proposed [27,28]. EXPLoRa-AT [27], for instance, divides EDs into six groups and assigns SFs to EDs through the server to balance the airtime of data packets transmitted by system EDs in each SF group. This algorithm significantly outperforms basic ADR strategies. However, in the case of a large number of connected EDs, the server cannot receive packets from EDs with the same SF due to collisions. As such, we propose enhancements to both the allocation of LoRa physical layer transmission parameters and the ALOHA-based medium access method of the LoRaWAN network.
Table 1. Comparision of related work research.
Table 1. Comparision of related work research.
ReferenceObjectiveMethod Description
[19]ALOHAEDs send packets randomly, and under high load conditions, this randomness can result in severe collisions, therefore diminishing the success rate of data transmission.
[23]Slotted-LoRaThe article introduces the Slotted ALOHA scheme to improve communication in the LoRaWAN network. In the Slotted-LoRa system, each ED sends packets at the beginning of the time slot, which reduces the probability of packet collisions.
[24]CSMA-LoRaThe article improves network performance by reducing interference and conflicts through channel detection; it acknowledges a limitation in the CAD mechanism. The blind spot for detection may lead to channel conflicts, reducing overall channel utilization.
[29]ADR algorithmThe algorithm aims to optimize network performance by dynamically adjusting the data rate and transmission power of EDs. However, in large-scale networks, the requirement for independent information updates for each ED by servers may escalate collisions and reduce throughput.
[26]Bit Rate Ratio algorithmThe article proposes a TP and SF allocation scheme in long-range networks to enhance performance. However, the limitation of using only the default LoRa channels constrains the potential for improving network throughput through multichannel communication.
[27]EXPLoRa-ATThe algorithm is used for SF allocation in LoRa communication. It divides the EDs into six groups and centrally assigns the recommended SFs to each ED at the server. However, using random access may decrease the number of EDs that can reach the server as the number of EDs increases.

3. Overview of LoRa and LoRaWAN

LoRa network consists of two different layers: LoRa and LoRaWAN. LoRa, representing the physical layer modulation, is a long-range wireless transmission technology designed by Semtech. LoRaWAN is an open standard established by the LoRa Alliance [10], serving as the MAC layer protocol residing above the LoRa physical layer. These two parts together form the LoRa system capable of achieving LPWAN functionality. The LoRaWAN network stack is shown in Figure 1, and it is described below.

3.1. LoRa Physical Layer

LoRa refers to the physical layer of the protocol stack, more specifically, the proprietary CSS modulation developed by Semtech [30]. It incorporates forward error correction techniques. The characteristics of LoRa modulation are determined by several parameters, including bandwidth (BW), spreading factor (SF), coding rate (CR), and transmission power (TP) [31]. In communication between EDs and gateway (GW), these parameters can be adjusted to modify the bit rate, interference resistance, and the range of the wireless communication link. During LoRa transmission, the bandwidth is typically configured as 125, 250, and 500 kHz [32], and the spreading factor takes values within SF = [7, 8, 9, 10, 11, 12]. LoRa data rates are from 0.3 kbps to 50 kbps. The choice of SF represents a trade-off between coverage range and data rate. A larger SF provides a greater coverage range for EDs but at a lower data rate, whereas a smaller SF results in a higher data transmission rate but a shorter coverage range [33,34].
During LoRaWAN communication, a LoRa symbol comprises 2 S F chips, where the chip rate equals bandwidth (BW). Therefore, the single symbol duration T s is calculated as follows [10]:
T s = 2 S F B W
The LoRa symbol rate R s is calculated as follows:
R s = 1 T s = B W 2 S F
LoRa data rate R b refers to the number of bits transmitted per second and is calculated as follows:
R b = S F × B W 2 S F × C R
Figure 2 shows the LoRa packet structure, including a preamble, an optional header, the data payload, and an optional cyclic redundancy check (CRC).
Time on Air (ToA) is the transmission time of a LoRa data packet from the ED to the gateway. The ToA depends on SF, BW, CR, and the transmitted data payload size. The specific equation for calculating ToA is as follows:   
T o A = T p a c k e t = T p r e a m b l e + T p a y l o a d
where T p r e a m b l e is the duration of the preamble, and T p a y l o a d is the duration of the payload transmission.
The preamble consists of the unmodulated symbols n p r e a m b l e and 4.25 symbols marked by the end of the preamble, which serves as the first part of the LoRa packet transmission. The receiving end utilizes the preamble to identify incoming data packets. The equation for calculating the duration of preamble transmission is as follows:
T p r e a m b l e = n p r e a m b l e + 4.25 T s
Regarding the number of symbols in the LoRa data packet payload and the transmission time, they are calculated using the following equation:
n p a y l o a d = 8 + m a x 8 P L 4 S F + 28 + 16 C R C 20 I H 4 S F 2 D E C R + 4 , 0
T p a y l o a d = n p a y l o a d × T s
where P L is the payload size (1–255 bytes); S F is the spreading factor (7–12); C R C is the cyclic redundancy check, enabled with 1 or disabled with 0, the default is C R C = 1; I H is the header mode type, where 1 is implicit mode, and 0 is explicit mode; D E is whether low data rate optimization is enabled (0 or 1); C R is the coding rate, the default is 4/5. From the above equations, the ToA of the LoRa packet can be obtained.

3.2. LoRaWAN Architecture

LoRaWAN is a low-power wide-area network communication protocol running on LoRa, which defines in detail how EDs can communicate with the gateway. LoRaWAN has a data rate of up to 50 kbps and a payload of up to 250 bytes. However, the coverage of LoRa is influenced by surrounding structures and materials, and in rural areas, LoRa signals are typically transmitted over distances of up to 10 km with a battery life of about ten years.
The architecture of a LoRaWAN network adopts a typical star topology, comprising four fundamental components: End Device (ED), Gateway (GW), Network Server (NS), and Application Server (AS), as shown in Figure 3. The work of each part is described below:
1.
End Device: The ED is a low-power sensor responsible for data collection. It communicates with the GW using the LoRaWAN protocol, enabling point-to-point transmission over long distances.
2.
Gateway: The GW is an intermediary device connecting the EDs and the Network Server. It receives data from EDs and forwards these data to the NS. In LoRa deployments, multiple GWs can be utilized, although this paper primarily considers a single gateway.
3.
Network Server: The NS is responsible for managing and controlling the entire network. It receives data forwarded by gateways, performs decoding and deduplication, and then sends the processed data to the appropriate AS.
4.
Application Server: The AS is primarily responsible for handling the data sent by the NS and processing it according to business logic
Figure 3. LoRaWAN network architecture.
Figure 3. LoRaWAN network architecture.
Electronics 13 00621 g003
LoRaWAN supports three different types of EDs to meet the various requirements of IoT applications [19]:
  • Class A: EDs randomly perform uplink transmissions and then wait to receive pending messages from the GW. This class of devices opens two short receive windows after each uplink transmission. Moreover, downlink transmissions are only allowed after uplink messages at any time. Class A has the lowest power consumption and can be used by any device.
  • Class B: EDs send messages on demand, allowing devices to receive signals at scheduled times. Therefore, the GW needs to periodically transmit beacons (BCN) to synchronize all devices in the network. Class B has moderate power consumption.
  • Class C: EDs continuously listen to the channel and keep the receive window open to receive messages from the gateway, even if they are not actively transmitting. Consequently, Class C devices have the highest power consumption.

3.3. LoRaWAN Protocol

In LoRaWAN networks, improving the scalability of the ED is possible by configuring its transmission parameters [35]. The LoRaWAN specification introduces the Adaptive Data Rate (ADR) mechanism, automatically configuring uplink transmission parameters for optimized, reliable, and energy-efficient communication. Nevertheless, the transmission parameters of the ED can be adjusted automatically by the network server or manually configured [29]. In the ADR mechanism, the NS completes transmission parameter configurations based on the ED’s received signal strength indication (RSSI). However, this adaptive mechanism involves significant information exchange and may increase energy consumption due to the extended adjustment process. Therefore, active allocation of transmission parameters can further improve the network performance by selecting the appropriate SF for the uplink transmission of EDs. Without the effective use of LoRa physical layer characteristics and optimization of MAC protocol, it may be difficult to achieve the best performance of the LoaWAN network. Consequently, we need to improve the ALOHA algorithm based on the rational allocation of parameters to the EDs.

4. Research Design and Methodology

4.1. Overview

As previously mentioned, the LoRa physical layer provides various transmission parameters. Rational allocation and use of these parameters can overcome most of the challenges LoRa networks face. Consequently, in this paper, we leverage these transmission parameters to their full extent and propose a protocol as an alternative to the ALOHA algorithm. The aim is to mitigate collisions, therefore optimizing the performance of the LoRa network. Our research is two-fold: (i) allocating transmission parameters that affect the scalability of LoRa networks and (ii) improving the medium access method of pure ALOHA. These aspects are described in the following sections.

4.2. Allocation of Transmission Parameters

In LoRaWAN, the allocation of network resources for large-scale deployment of EDs has received considerable attention. Among these considerations, the SF is one of the most critical parameters in the LoRaWAN network. Signals modulated with distinct SFs in LoRa are orthogonal [24,36], meaning non-interference when transmitted on the same channel. The SF selection range spans 7 to 12, indicating that the LoRa gateway can simultaneously receive signals from six different SFs, realizing concurrent transmissions within the LoRa network. Consequently, we propose a LoRaWAN network SF allocation method based on the distance between nodes and the gateway. By allocating different SFs to EDs, network throughput is enhanced, and information transmission is enabled. The detailed description follows below.
First, it is imperative to calculate the transmission distance relationship between devices in the LoRaWAN network. According to the theoretical equation of wireless communication:
P t P r + G t + G r = 20 l g 4 π f d c + L c + L o
where P t is the transmission power of the transmitter, P r is the sensitivity of the receiver, G t is the transmitter antenna gain, G r is the receiver antenna gain, f is the carrier frequency, d is the distance between the receiver and transmitter antennas, c is the speed of light, L c is the feeder loss of the transmitter antenna at the base station, and L o is the medium loss.
Here, π and c are constants; we carried out the conversion of the units of f and d to MHz and km to obtain the following expressions:
20 l g 4 π f d c = 32.44 + 20 l g d ( km ) + 20 l g f ( MHz )
Thus, Equation (8) can be easily converted into the following Equation (10):
d = 10 P t P r L o 32.44 20 l g f 20
In the equation, the transmission distance d is primarily determined by P t , P r , L o , and f. The transmission power P t is limited by standard specifications. Therefore, when the medium loss L o and carrier frequency f are determined, the transmission distance can be altered by changing the receiver sensitivity P r . These parameters are calculated below.

4.2.1. Transmission Medium Loss

The wireless transmission medium loss in LoRaWAN networks is commonly influenced by factors including free space path loss, terrain, and other environmental elements. Considering these factors collectively, we employ a simplified path loss model in which loss values are estimated based on the environment, assigning a loss of 35 dBm for small towns and 40 dBm for large cities. In practical applications, we consider a total medium loss of 45 dBm.

4.2.2. Receiver Sensitivity

LoRa receiver sensitivity denotes the lowest power at which the LoRa receiver can effectively receive and decode signals. This sensitivity depends on the hardware and configuration parameters of the LoRa receiver. Among these parameters, the SF not only controls the data transfer rate but also influences the sensitivity of the LoRa receiver, with sensitivity increasing as SF increases. According to the LoRa official documentation [37], the equation for calculating the:   
S e n s i S F = 174 + 10 log 10 B W + N F + S I N R S F
where −174 is the thermal noise density, the value is mainly affected by the receiver temperature, in dBm/Hz, B W is the receiver bandwidth, N F is the device noise factor, influenced only by hardware performance, in dB, S I N R S F is the signal-to-interference-plus-noise(SINR) Ratio required for LoRa SF demodulation, in dB [38]. The S I N R varies for different S F values, as shown in Table 2.
The receiver sensitivity is related to the SF and channel bandwidth. We assume a noise figure of 2 dB for the optimized LoRa gateway receiver. With a modulation bandwidth of 125 kHz and S F = 12, the S I N R is −21.5. Substituting this into Equation (12), we obtain:
S e n s i 12 = 174 + 10 log 10 ( 125 kHz ) + 2 21.5 = 142.5 dBm
Calculate the receiver sensitivity for SF (7–12) in order, as shown in Table 3.

4.2.3. The Relationship between SF and Distance

We set the transmit power P t = 12 dBm, medium loss L o = 45 dBm, and wireless frequency f = 470 MHz through the above calculation. Based on the relationship between receiver sensitivity and SF, we choose SF = 7 corresponding to S e n s i 7 = −130 dBm. Substituting the above parameters into Equation (9), we obtain:
D = 10 12 d B m + 130 d B m 45 d B m 32.44 20 l g 470 M H z 20 = 3.60 km
Sequentially calculate the corresponding distances for SF7 to SF12. Considering the comprehensive calculations above, we obtain the relationship between different SF values and distances, as shown in Equation (13):
f D = D S F 7 D < 3.60 D S F 8 3.60 D < 4.80 D S F 9 4.80 D < 6.40 D S F 10 6.40 D < 8.53 D S F 11 8.53 D < 11.37 D S F 12 11.37 D < 15.17

4.3. Circular Region-Based Grouped Bit-Slot LoRa (CGBS-LoRa) Protocol Description

According to the SF and transmission distance relationship, the LoRaWAN network can be partitioned into six subregions to mitigate partial collisions among EDs. Given that LoRaWAN uses the ALOHA access mechanism, the probability of collisions increases rapidly within a subregion with an increasing number of EDs. To mitigate collisions among EDs in the same circular subregion further, we propose CGBS-LoRa to replace the ALOHA protocol by time slot reservation and removing idle time slots, therefore improving the overall performance of the LoRaWAN network. The CGBS-LoRa algorithm is described below.
The CGBS-LoRa algorithm consists mainly of two phases: grouping EDs and detecting collision bit-slots. First, the GW sends a receive command to the EDs, randomly generating a bit sequence and transmitting it to the GW. The GW detects the collision bits in all received bit sequences, estimates the number of EDs, and proceeds with the grouping process. The bit sequence consists of L bits, as shown in Figure 4. During data transmission, the ED sets the bit-slot corresponding to the selected random number as 1, while the remaining slots are set to 0. The ED then transmits the generated bit sequence to the GW. The GW checks the received bit sequence for collision bits. A collision bit-slot indicates that at least one ED has selected the bit. If the collision bit is selected by only one ED, it is a success bit-slot, and the GW can successfully receive the data transmitted by that ED. Conversely, if more than one ED selects the collision bit, it is a collision bit-slot, and the GW cannot receive the data from the ED, requiring a retransmission in the next receive cycle. Algorithm 1 illustrates the main steps of the proposed protocol.
Algorithm 1: CGBS-LoRa Algorithm
  1:
Input:
  2:
P ED : Locations of n EDs in the LoRaWAN network
  3:
P GW : Location information of the GW
  4:
SF: Initial partition into 6 SF regions
  5:
Output:
  6:
slots: Number of slots required to complete data transmission for n EDs
  7:
procedure  PartitionSFRegions
  8:
      for each ED in P ED  do
  9:
            assign ED to an SF based on location
10:
      end for
11:
end procedure
12:
for each SF in SF do
13:
      procedure EDsReceiveAndGenerateBits
14:
            receive and generate bits
15:
      end procedure
16:
      conflict_bits ← AnalyzeReceivedBits
17:
      procedure DetectCollisionAndGroupEDs
18:
            for each ED in SF do
19:
                  conflict_bits_ED ← CheckCollisionBits(ED)
20:
                  estimated_EDs_ED ← EstimateEDsNumber(conflict_bits_ED)
21:
            end for
22:
      end procedure
23:
      for each ED in SF do
24:
            GroupEDs(GW, SF, estimated_EDs_ED)
25:
      end for
26:
      procedure DataTransmission
27:
            transmit data
28:
      end procedure
29:
      if ConflictOccurred then
30:
            RequestRetransmission
31:
      end if
32:
end for
33:
if  AllEDsTransmittedSuccessfully  then
34:
       FinishAlgorithm
35:
end if
Assuming the number of EDs within the signal range received by the GW is n, and the length of the bit sequence is L, the probability of an ED selecting a specific bit-slot within the bit sequence is P = 1/L. We then consider the use of a binomial distribution to model the activities of the EDs:
P m ; p , n = C n m p m 1 p n m = n m 1 L m 1 1 L n m
Thus, the probability of a bit-slot not being selected by EDs is:
P i = p m = 0 = C n 0 p 0 1 p n = 1 1 L n
The probability of a bit-slot being selected by only one ED is:
P s = p m = 1 = C n 1 p 1 1 p n 1 = n L 1 1 L n 1
The probability of a bit-slot being selected by multiple EDs is:
P c = p m 2 = 1 P i P s = 1 1 1 L n n L 1 1 L n 1
Within a receive cycle, the expected number of bit-slots selected by only one ED (successful bit-slots):
L s = L × P s = L × n L 1 1 L n 1
The expected number of bit-slots selected by more than one ED is (collision bit-slots):
L c = L × P c = L 1 1 1 L n n L 1 1 L n 1
If the GW detects collisions in Lc bit-slots, it requires Lc to receive cycles to receive data from all EDs. The data packet delivery rate of the CGBS-LoRa algorithm β is expressed as:
β = L s 1 + L s + L c = L n p 1 p n 1 1 + L 1 1 p n

4.4. System Model

In this research, we consider a LoRaWAN network system model consisting of a single gateway and n end devices. Both GW and EDs are static and configured with transmission parameters. The EDs are randomly distributed in a circular region with radius R centered on GW. Based on different SFs, this region is partitioned into six circular subregions, each containing randomly distributed EDs using the same SF, as shown in Figure 5. This strategy effectively prevents collisions among EDs located in the same gateway receiving region but in different subregions, thanks to using different SFs. Nevertheless, EDs positioned within the same subregion may still experience collisions due to using the same SF. The employment of the CGBS-LoRa algorithm further mitigates collisions among EDs.

5. Performance Evaluation

In this section, we conducted simulated evaluations of the CGBS-LoRa protocol utilizing MATLAB. The primary focus of the investigation is the process wherein n EDs transmit packets to a single gateway. To assess the performance of the LoRaWAN network, the connected EDs varied in number from 50 to 1000, randomly positioned within a 15 km radius of the gateway. Each ED generates a 10-byte packet, employing a transmission power of 12 dBm, a channel bandwidth of 125 kHz, a carrier frequency of 470 MHz, and an SF in the range of 7 to 12. The SF choice represents a trade-off between transmission distance and time, with a larger SF indicating the capability of longer-distance transmission at the expense of increased transmission latency. The completion of transmission is defined when the gateway receives all packets sent by n EDs. Simulation parameters for the LoRaWAN simulation are detailed in Table 4. To ensure the accuracy of the results, we executed 1000 simulations and computed the average data. Equation (9) establishes the SF-distance relationship. In the CGBS-LoRa protocol, ED devices are strategically assigned, dividing the area into zones with distinct SFs for simultaneous transmission based on their proximity to the gateway. We compare the CGBS-LoRa protocol with Slotted-LoRa [23], DFSA-LoRa [39], and the Adaptive Data Rate (ADR) algorithm [29] for LoRaWAN, evaluating the packet delivery rate (PDR) and transmission delay (TD) as performance metrics.

5.1. The Probability of Successful Packet Transmission

The packet delivery rate (PDR) is a crucial metric for assessing the reliability of LoRaWAN network transmissions. Figure 6 shows the packet delivery rate as a function of the number of EDs. As the number of EDs increases, the PDR experiences a decline across all four protocols—ADR-LoRaWAN, Slotted-LoRa, DFSA-LoRa, and CGBS-LoRa. This decline can be attributed to an increased collision probability with the growing number of EDs, consequently diminishing the reliability of data packet transmissions. When connecting some of the EDs, the ADR-LoRaWAN protocol exhibits a heightened collision probability, owing to the utilization of the ALOHA random access method, leading to a continuous decrease in PDR. However, as the number of connected EDs increases, the Adaptive Data Rate mechanism optimizes the transmission parameters, mitigating certain collision probabilities and stabilizing the PDR. In the Slotted-LoRa protocol, LoRa nodes transmit information to the gateway through time slots, theoretically reducing the probability of packet collisions. However, as the number of EDs continues to increase, a significant number of ED collisions lead to a rapid decrease in PDR. The DFSA-LoRa protocol allocates time slots to EDs, dynamically adjusting slot numbers based on collision frequencies, stabilizing the PDR at 36% with an increasing number of EDs. The CGBS-LoRa, proposed in this paper, minimizes time slot wastage by configuring ED transmission parameters and reserving slots, markedly reducing ED collisions. Notably, as the number of connected EDs increases, the PDR stabilizes at an impressive 80%.

5.2. The Transmission Delay of End Devices

Transmission Delay (TD) serves as a critical metric, representing the time required for EDs to accomplish data transmission, playing a pivotal role in assessing LoRa performance. Figure 7 shows the transmission delay as a function of the number of EDs for the four protocols. With an increasing number of connected EDs, both ADR-LoRaWAN and Slotted-LoRa exhibit a rapid escalation in the consumption of time slots. When connecting EDs to 600, the consumed time slots surpass 5000, owing to the simplistic access method in these protocols, resulting in a heightened probability of data collisions. Consequently, a substantial number of EDs necessitate retransmission, further amplifying the transmission delay. In the DFSA-LoRa protocol, the completion of data transmission by 1000 EDs requires approximately 2600 time slots, showcasing a lower transmission delay compared to ADR-LoRaWAN and Slotted-LoRa. The CGBS-LoRa, proposed in this paper, demonstrates a significant reduction in the number of time slots needed for 1000 EDs to accomplish data transmission compared to the other three protocols. Moreover, an equivalent number of EDs completing transmission consumes only half the time slots compared to the DFSA-LoRa protocol. Consequently, among the four algorithms, CGBS-LoRa emerges with the most minimal transmission delay.
Figure 8 shows the transmission delay of EDs across the four protocols with varying spreading factor (SF) assignments, demonstrating a significant impact of different SFs on transmission latency. The Time on Air (ToA) metric denotes the time SFs takes to transmit a packet [40], and Table 5 provides ToA values for a 10-byte packet, 125 kHz bandwidth, and a coding rate of 4/5. Notably, the CGBS-LoRa protocol exhibits the lowest transmission latency across different SF zones. In comparison, ADR-LoRaWAN has the highest transmission latency among the four protocols. Slotted-LoRa and DFSA-LoRa, lacking the utilization of LoRa’s multichannel functionality in the physical layer, involve communication on a single channel, further increasing latency. In particular, these two protocols do not rationally allocate SFs, as all EDs start transmission with SF12 to ensure successful gateway reception within its range. However, the prolonged ToA for data transmission using SF12, coupled with increased collision probability at the same SF, leads to extended transmission delay, severely constraining LoRa network performance. We performed the same partitioning operation for both protocols for experimental comparison. Nevertheless, the transmission delay for these protocols significantly exceeds that of the CGBS-LoRa protocol across various SFs.

6. Conclusions and Future Work

This study introduces the Circular Grouped Bit-Slot LoRa (CGBS-LoRa), an innovative MAC protocol tailored for large-scale networks. CGBS-LoRa enhances network performance by mitigating collisions arising from the ALOHA access method employed by EDs and controlling the allocation of their transmission parameters. Initially, CGBS-LoRa partitions the LoRa network into six circular subregions, each characterized by different spreading factors. It then allocates transmission parameters to EDs within each subregion, facilitating concurrent transmissions in the region. Building upon this foundation, we have improved the ALOHA access method, enabling EDs within each region to communicate with the gateway using bit sequences, diminishing the probability of collisions among EDs. Simulation results show that the packet delivery rate (PDR) and transmission delay (TD) of the LoRa network are significantly improved in the case of a single LoRa gateway. Precisely, in achieving large-scale connectivity in LoRaWAN networks, CGBS-LoRa attains twice the packet delivery rate of DFSA-LoRa. Furthermore, compared to ADR-LoRaWAN, CGBS-LoRa demonstrates noteworthy advancements in PDR and latency.
During the experiments, we randomly deployed the EDs and conducted a regional partition based on SFs, resulting in an uneven distribution of EDs within the regions. The variation in SFs introduces distinct packet transmission latencies, with larger SFs leading to extended ToA. The uneven allocation of more EDs to larger SFs in this regional division prolongs the time required for data transmission and contributes to increased energy consumption. Our future work aims to dynamically adjust transmission parameters to achieve a more balanced distribution of EDs. In practical implementation, considering the ED distribution within a single gateway’s range, we will strive for a uniform zoning strategy to enhance overall performance. This study emphasizes key performance metrics like Packet Delivery Rate and Transmission Delay. Future investigations will comprehensively analyze the power consumption of LoRa systems, contributing to an enhanced understanding of power efficiency and overall system performance.

Author Contributions

Conceptualization, J.X. and X.L.; methodology, J.X. and X.L.; software, J.X.; validation, J.X., X.L. and R.L.; formal analysis, J.X.; investigation, J.X.; resources, J.X.; data curation, J.X.; writing—original draft preparation, J.X.; writing—review and editing, J.X., X.L. and R.L.; supervision, L.J. and J.Y.; funding acquisition, L.J. and J.Y.; All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the National Natural Science Foundation of China (NNSF) under Grant No.62062035 and No.62062046.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ADRAdaptive data rate
BWBandwidth
CRCode rate
CRCCyclic redundancy check
CSSChirp spread spectrum
EDend device
IoTInternet of Things
LoRaWANLong-range wide-area network
LPWANLow-power wide-area network
MACMedium access control
NSNetwork server
PDRPacket delivery ratio
PHYPhysical layer
RSSIReceived signal strength indicator
SFSpreading factor
SINRSignal-to-interference-plus-noise ratio
ToATime on air
TPTransmit power

References

  1. Raza, U.; Kulkarni, P.; Sooriyabandara, M. Low Power Wide Area Networks: An Overview. IEEE Commun. Surv. Tutor. 2017, 19, 855–873. [Google Scholar] [CrossRef]
  2. Catherwood, P.A.; Steele, D.; Little, M.; McComb, S.; McLaughlin, J. A Community-Based IoT Personalized Wireless Healthcare Solution Trial. IEEE J. Transl. Eng. Health Med. 2018, 6, 1–13. [Google Scholar] [CrossRef]
  3. Hoang, Q.L.; Jung, W.S.; Yoon, T.; Yoo, D.; Oh, H. A Real-Time LoRa Protocol for Industrial Monitoring and Control Systems. IEEE Access 2020, 8, 44727–44738. [Google Scholar] [CrossRef]
  4. Atitallah, S.B.; Driss, M.; Boulila, W.; Ghézala, H.B. Leveraging Deep Learning and IoT big data analytics to support the smart cities development: Review and future directions. Comput. Sci. Rev. 2020, 38, 100303. [Google Scholar] [CrossRef]
  5. Latif, S.; Driss, M.; Boulila, W.; Huma, Z.E.; Jamal, S.S.; Idrees, Z.; Ahmad, J. Deep Learning for the Industrial Internet of Things (IIoT): A Comprehensive Survey of Techniques, Implementation Frameworks, Potential Applications, and Future Directions. Sensors 2021, 21, 7518. [Google Scholar] [CrossRef]
  6. 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]
  7. Augustin, A.; Yi, J.; Clausen, T.; Townsley, W.M. A Study of LoRa: Long Range & Low Power Networks for the Internet of Things. Sensors 2016, 16, 1466. [Google Scholar] [PubMed]
  8. Ben Atitallah, S.; Driss, M.; Almomani, I. A Novel Detection and Multi-Classification Approach for IoT-Malware Using Random Forest Voting of Fine-Tuning Convolutional Neural Networks. Sensors 2022, 22, 4302. [Google Scholar] [CrossRef] [PubMed]
  9. Saleh, M.; Othman, S.H.; Driss, M.; Al-dhaqm, A.; Ali, A.; Yafooz, W.M.S.; Emara, A.H.M. A Metamodeling Approach for IoT Forensic Investigation. Electronics 2023, 12, 524. [Google Scholar] [CrossRef]
  10. LoRa Alliance. LoRaWAN® Specification v1.1. Available online: https://resources.lora-alliance.org/technical-specifications/lorawan-specification-v1-1 (accessed on 8 October 2023).
  11. Laya, A.; Kalalas, C.; Vazquez-Gallego, F.; Alonso, L.; Alonso-Zarate, J. Goodbye, ALOHA! IEEE Access 2016, 4, 2029–2044. [Google Scholar] [CrossRef]
  12. 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]
  13. Ihirri, S.; Sabir, E.; Errami, A.; Khaldoun, M. A scalable slotted aloha for massive IoT: A throughput analysis. In Proceedings of the 2019 15th International Wireless Communications & Mobile Computing Conference (IWCMC), Tangier, Morocco, 24–28 June 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 508–513. [Google Scholar]
  14. Sundaram, J.P.; Du, W.; Zhao, Z. A Survey on LoRa Networking: Research Problems, Current Solutions, and Open Issues. IEEE Commun. Surv. Tutor. 2020, 22, 371–388. [Google Scholar] [CrossRef]
  15. Almuhaya, M.A.M.; Jabbar, W.A.; Sulaiman, N.; Abdulmalek, S. A Survey on LoRaWAN Technology: Recent Trends, Opportunities, Simulation Tools and Future Directions. Electronics 2022, 11, 164. [Google Scholar] [CrossRef]
  16. 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]
  17. Georgiou, O.; Raza, U. Low Power Wide Area Network Analysis: Can LoRa Scale? IEEE Wirel. Commun. Lett. 2017, 6, 162–165. [Google Scholar] [CrossRef]
  18. Van den Abeele, F.; Haxhibeqiri, J.; Moerman, I.; Hoebeke, J. Scalability Analysis of Large-Scale LoRaWAN Networks in ns-3. IEEE Internet Things J. 2017, 4, 2186–2198. [Google Scholar] [CrossRef]
  19. LoRa Alliance. TS001-1.0.4 LoRaWAN® L2 1.0.4 Specification. Available online: https://resources.lora-alliance.org/technical-specifications/ts001-1-0-4-lorawan-l2-1-0-4-specification (accessed on 8 October 2023).
  20. Piyare, R.; Murphy, A.L.; Magno, M.; Benini, L. On-Demand LoRa: Asynchronous TDMA for Energy Efficient and Low Latency Communication in IoT. Sensors 2018, 18, 3718. [Google Scholar] [CrossRef] [PubMed]
  21. Ahsan, S.; Hassan, S.A.; Adeel, A.; Qureshi, H.K. Improving Channel Utilization of LoRaWAN by using Novel Channel Access Mechanism. In Proceedings of the 2019 15th International Wireless Communications & Mobile Computing Conference (IWCMC), Tangier, Morocco, 24–28 June 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 1656–1661. [Google Scholar]
  22. Zorbas, D.; Fafoutis, X. Time-Slotted LoRa Networks: Design Considerations, Implementations, and Perspectives. IEEE Internet Things Mag. 2021, 4, 84–89. [Google Scholar] [CrossRef]
  23. Polonelli, T.; Brunelli, D.; Marzocchi, A.; Benini, L. Slotted ALOHA on LoRaWAN-Design, Analysis, and Deployment. Sensors 2019, 19, 838. [Google Scholar] [CrossRef]
  24. Beltramelli, L.; Mahmood, A.; Osterberg, P.; Gidlund, M. LoRa Beyond ALOHA: An Investigation of Alternative Random Access Protocols. IEEE Trans. Ind. Inform. 2021, 17, 3544–3554. [Google Scholar] [CrossRef]
  25. Wu, W.; Li, Y.; Zhang, Y.; Wang, B.; Wang, W. Distributed Queueing-Based Random Access Protocol for LoRa Networks. IEEE Internet Things J. 2020, 7, 763–772. [Google Scholar] [CrossRef]
  26. Reynders, B.; Meert, W.; Pollin, S. Power and spreading factor control in low power wide area networks. In Proceedings of the 2017 IEEE International Conference on Communications (ICC), Paris, France, 21–25 May 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 1–6. [Google Scholar]
  27. Cuomo, F.; Campo, M.; Caponi, A.; Bianchi, G.; Rossini, G.; Pisani, P. EXPLoRa: Extending the performance of LoRa by suitable spreading factor allocations. In Proceedings of the 2017 IEEE 13th International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob), Rome, Italy, 9–11 October 2017; pp. 1–8. [Google Scholar]
  28. Lim, J.T.; Han, Y. Spreading Factor Allocation for Massive Connectivity in LoRa Systems. IEEE Commun. Lett. 2018, 22, 800–803. [Google Scholar] [CrossRef]
  29. Semtech Corporation. Understanding the LoRa® Adaptive Data Rate. Available online: https://lora-developers.semtech.com/documentation/tech-papers-and-guides/understanding-adr (accessed on 8 October 2023).
  30. Semtech. AN1200.22 LoRa™ Modulation Basics. Available online: https://www.frugalprototype.com/wp-content/uploads/2016/08/an1200.22.pdf (accessed on 8 October 2023).
  31. Bor, M.C.; Roedig, U.; Voigt, T.; Alonso, J.M. Do LoRa Low-Power Wide-Area Networks Scale? In Proceedings of the the 19th ACM International Conference on Modeling, Analysis and Simulation of Wireless and Mobile Systems. Association for Computing Machinery, Malta, Malta, 13–17 November 2016; pp. 59–67. [Google Scholar]
  32. Triantafyllou, A.; Sarigiannidis, P.; Lagkas, T.; Sarigiannidis, A. A Novel LoRaWAN Scheduling Scheme for Improving Reliability and Collision Avoidance. In Proceedings of the 2020 9th International Conference on Modern Circuits and Systems Technologies (MOCAST), Bremen, Germany, 7–9 September 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–4. [Google Scholar]
  33. Premsankar, G.; Ghaddar, B.; Slabicki, M.; Francesco, M.D. Optimal Configuration of LoRa Networks in Smart Cities. IEEE Trans. Ind. Inform. 2020, 16, 7243–7254. [Google Scholar] [CrossRef]
  34. Centelles, R.P.; Freitag, F.; Meseguer, R.; Navarro, L.; Ochoa, S.F.; Santos, R.M. A LoRa-Based Communication System for Coordinated Response in an Earthquake Aftermath. Proceedings 2019, 31, 73. [Google Scholar]
  35. Kufakunesu, R.; Hancke, G.P.; Abu-Mahfouz, A.M. A Survey on Adaptive Data Rate Optimization in LoRaWAN: Recent Solutions and Major Challenges. Sensors 2020, 20, 5044. [Google Scholar] [CrossRef]
  36. Goursaud, C.; Gorce, J.M. Dedicated networks for IoT: PHY / MAC state of the art and challenges. EAI Endorsed Trans. Internet Things 2015, 1, e3. [Google Scholar] [CrossRef]
  37. Semtech. AN1200.13 SX1272/3/6/7/8: LoRa Modem Designer’s Guide. Available online: https://www.mouser.com/pdfdocs/semtech-lora-modem-design.pdf (accessed on 8 October 2023).
  38. Semtech. SX1276/77/78/79 Datasheet. Available online: https://www.mouser.com/datasheet/2/761/sx1276-1278113.pdf (accessed on 8 October 2023).
  39. Vazquez-Gallego, F.; Tuset-Peiro, P.; Alonso, L.; Alonso-Zarate, J. Delay and Energy Consumption Analysis of Frame Slotted ALOHA variants for Massive Data Collection in Internet-of-Things Scenarios. Appl. Sci. 2020, 10, 327. [Google Scholar] [CrossRef]
  40. Semtech. LoRa® Calculator. Available online: https://www.semtech.com/design-support/lora-calculator (accessed on 8 October 2023).
Figure 1. LoRaWAN network stack.
Figure 1. LoRaWAN network stack.
Electronics 13 00621 g001
Figure 2. LoRa packet structure for the physical layer.
Figure 2. LoRa packet structure for the physical layer.
Electronics 13 00621 g002
Figure 4. Generation of bit sequences.
Figure 4. Generation of bit sequences.
Electronics 13 00621 g004
Figure 5. The system model of the considered LoRaWAN network.
Figure 5. The system model of the considered LoRaWAN network.
Electronics 13 00621 g005
Figure 6. The relationship between packet delivery rate and number of end devices.
Figure 6. The relationship between packet delivery rate and number of end devices.
Electronics 13 00621 g006
Figure 7. The relationship between timeslots and number of end devices.
Figure 7. The relationship between timeslots and number of end devices.
Electronics 13 00621 g007
Figure 8. Distribution of transmission latency for each spreading factor.
Figure 8. Distribution of transmission latency for each spreading factor.
Electronics 13 00621 g008
Table 2. Required SINR to Demodulate Signal on Each SF.
Table 2. Required SINR to Demodulate Signal on Each SF.
SF789101112
SINR−9.0−11.5−14.0−16.5−19.0−21.5
Table 3. Spreading Factor and Receiver Sensitivity Relationship Table.
Table 3. Spreading Factor and Receiver Sensitivity Relationship Table.
SF789101112
SINR−130.0−132.5−135.0−137.5−140.0−142.5
Table 4. Simulation Parameters.
Table 4. Simulation Parameters.
ParameterValueParameter
SF7 to 12Spreading factors
BW125 kHzBandwidth
CF470 MHzCarrier frequency
N−174 dBm/HzNoise power density
NF2 dBNoise figure
TP12 dBmTransmission power
PL10 BytesPayload length
Table 5. ToA for different SFs, when PL = 10 bytes, BW = 125 kHz, CR = 4/5.
Table 5. ToA for different SFs, when PL = 10 bytes, BW = 125 kHz, CR = 4/5.
SF789101112
ToA [s]0.04120.08240.14430.28870.49560.9912
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, X.; Xu, J.; Li, R.; Jia, L.; You, J. Advancing Performance in LoRaWAN Networks: The Circular Region Grouped Bit-Slot LoRa MAC Protocol. Electronics 2024, 13, 621. https://doi.org/10.3390/electronics13030621

AMA Style

Li X, Xu J, Li R, Jia L, You J. Advancing Performance in LoRaWAN Networks: The Circular Region Grouped Bit-Slot LoRa MAC Protocol. Electronics. 2024; 13(3):621. https://doi.org/10.3390/electronics13030621

Chicago/Turabian Style

Li, Xiaowu, Junjie Xu, Runxin Li, Lianyin Jia, and Jinguo You. 2024. "Advancing Performance in LoRaWAN Networks: The Circular Region Grouped Bit-Slot LoRa MAC Protocol" Electronics 13, no. 3: 621. https://doi.org/10.3390/electronics13030621

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