Next Article in Journal
A Pure Electric Driverless Crawler Construction Machinery Walking Method Based on the Fusion SLAM and Improved Pure Pursuit Algorithms
Next Article in Special Issue
Leveraging Larger AES Keys in LoRaWAN: A Practical Evaluation of Energy and Time Costs
Previous Article in Journal
Advancing Stepped-Waveform Radar Jamming Techniques for Robust False-Target Generation against LFM-CFAR Systems
Previous Article in Special Issue
Energy-Efficient LoRa Routing for Smart Grids
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Modeling and Optimization of LoRa Networks under Multiple Constraints

Tianjin Key Laboratory of Optoelectronic Sensor and Sensing Network Technology, Nankai University, Tianjin 300350, China
*
Authors to whom correspondence should be addressed.
Sensors 2023, 23(18), 7783; https://doi.org/10.3390/s23187783
Submission received: 16 August 2023 / Revised: 5 September 2023 / Accepted: 7 September 2023 / Published: 10 September 2023

Abstract

:
With the access of massive terminals of the Internet of Things (IoT), the low-power wide-area networks (LPWAN) applications represented by Long Range Radio (LoRa) will grow extensively in the future. The specific Long Range Wide Area Network (LoRaWAN) protocol within the LoRa network considers both low power consumption and long-range communication. It can optimize data transmission to achieve low communication latency, ensuring a responsive system and a favorable user experience. However, due to the limited resources in LoRa networks, if certain terminals have heavy traffic loads, it may result in unfair impacts on other terminals, leading to increased data transmission latency and disrupted operations for other terminals. Therefore, effectively optimizing resource allocation in LoRa networks has become a key issue in enhancing LoRa transmission performance. In this paper, a Mixed Integer Linear Programming (MILP) model is proposed to minimize network energy consumption under the maximization of user fairness as the optimization goal, which considers the constraints in the system to achieve adaptive resource allocation for spreading factor and transmission power. In addition, an efficient algorithm is proposed to solve this optimization problem by combining the Gurobi mathematical solver and heuristic genetic algorithm. The numerical results show that the proposed algorithm can significantly reduce the number of packet collisions, effectively minimize network energy consumption, as well as offering favorable fairness among terminals.

1. Introduction

With the rapid development of the Internet of Things (IoT), Massive Machine-Type Communication (MMTC) [1] plays a crucial role in connecting a vast number of devices and enabling intelligent services. The emergence of MMTC is driven by the explosive growth of IoT devices and the increasing demand for low-power and long-distance transmission. According to predictions, the number of MMTC terminals connected via wireless communication will exceed 30 billion by 2025 [2], which demonstrates the immense potential and wide-ranging applications of the MMTC in the future development of the IoT [3]. Compared to traditional Internet connectivity, the MMTC generally focuses on connecting a large number of machines and IoT devices, spanning various industries and domains such as smart cities, intelligent transportation, industrial automation, and agricultural monitoring. However, the conventional IoT connectivity technologies based on cellular systems usually struggle to meet the requirements of the MMTC applications for low power consumption and independent networking, which has led to the rise of low-power wide-area networks (LPWAN) technologies, bridging the technological gap between short-distance communication and cellular technologies [4]. The LPWAN technologies offer characteristics such as low power consumption, long-distance transmission, and wide coverage, providing an ideal communication solution for the MMTC [5]. Through LPWAN technologies, it helps to realize the intelligent interconnection of massive devices, efficient data transmission, and low-power operation of terminals [6].
In particular, among the existing LPWAN, the Long Range Wide Area Network (LoRaWAN) stands out with significant advantages in large-scale IoT applications [7]. The optimization of the LoRaWAN protocol aims to improve data transmission performance and provide a favorable user experience. It can be achieved by adjusting the transmission parameters of LoRa terminals, using adaptive data rate mechanisms, implementing collision detection and conflict management strategies, and defining different QoS requirements for different types of data traffic. The LPWAN radio access technologies aim to provide cost-efficient and energy-efficient communication across massive deployments of autonomous transducers and have lately experienced tremendous growth [8]. It can connect thousands of devices and provide long-range, low-power communication capabilities.
The Long Range Radio (LoRa) is a typical LPWAN technology that works in the frequency band below 1 GHz. It can be independently networked in the license-free frequency band, and provide low power consumption and long-range communication through unique Chirp spread spectrum modulation [9]. The frequency range of LoRa technology is 486.3∼487.7 MHz. LoRa has strong flexibility in radio parameter configuration, which can reduce network energy consumption, improve radio coverage, and reduce radio interference and error rate by adjusting parameters such as spreading factor, etc. [10].
LoRaWAN is an open standard promoted by the LoRa Alliance, which defines the medium access control and network management protocol of the LoRa network. LoRaWAN provides three different terminal classes: Type A terminals transmit according to the Aloha protocol, with the lowest power consumption; Type B terminals periodically listen to beacons from the gateway; Type C terminals continuously listen to downlink incoming frames, and consume the highest power consumption [11]. LoRa networks usually adopt a star topology, as shown in Figure 1. The LoRa network architecture is divided into several parts: terminal, gateway, and network server. Generally, data transmission can be carried out between LoRa terminals and gateways through LoRa wireless technology, whereas communication protocols such as TCP/IP or UDP/IP can be used between gateways and network servers to connect through the internet. The network server can manage multiple LoRa gateways and act as a gateway for LoRa terminals to connect to the IoT cloud platform. The radio signal transmitted by the terminal is received by the gateway, which then forwards the data packet to a web server for further processing [10]. In the uplink, the terminal initiates a communication request, and after each uplink transmission, the terminal can receive the data packet and confirmation information sent by the network server.

1.1. Related Works

Many existing works generally focused on the performance of LoRa networks, and analyzed from the perspective of communication link, such as scalability [12], performance limitation [13], etc. However, the performance of LoRa terminals depends not only on the communication link, but also on how each gateway manages resources. In the actual LoRa networks, resource allocation is crucial due to a range of issues, including limited network capacity, unfair resource utilization, data conflicts and collisions, energy consumption, and the lifespan of terminals.
Especially, the spreading factor and transmission power are important metrics for adjusting data transmission parameters in the resource allocation of LoRa networks. The spreading factor determines the bandwidth and transmission rate of data, whereas the transmission power determines the transmission distance and reliability of data packets. Although a high spreading factor may reduce bandwidth and data transfer rates, longer communication distances can still be achieved. The spreading factor refers to the expansion of the original signal into a wider frequency band when sending data, and a higher spreading factor means a wider frequency band, so that the interference signal is dispersed, which helps to reduce the interference of data in the transmission process and makes the data packet transmitted over a long distance. At the same time, the high spreading factor allows the network to operate under a relatively low signal-to-noise ratio, and in the process of long-distance transmission, the signal may become very weak due to path loss, but the high spreading factor still allows the receiver to correctly decode and identify these weak signals. The higher transmission power can increase the propagation range of the signal, improve the successful transmission rate of the data packet over a long distance, and improve the reliability of the packet to a certain extent when the signal is weakened. However, excessive transmission power will increase the energy consumption of the terminal and introduce interference, thereby reducing the reliability of the packet. Therefore, the requirements of data transmission rate, distance, and reliability can be effectively balanced by selecting the appropriate spreading factor and transmission power. As a special case, using a higher spreading factor in LoRa networks helps to provide a longer transmission distance but with a lower transmission rate, whereas using a higher transmission power helps to increase the transmission distance and signal penetration but at the cost of higher energy consumption. In addition, the automatic data rate (ADR) technology of LoRa networks helps to optimize the transmission parameters of the terminal devices, including spreading factor and transmission power, based on factors such as data packet quality and network congestion.
On the contrary, the use of unreasonable spreading factors and transmission power in LoRa networks, as well as the lack of ADR technology, may lead to increased unfair resource utilization, data conflicts and collisions, increased energy consumption, and shortened lifespan of terminals. Therefore, in the case of limited resources, it is necessary to select an appropriate spreading factor and transmit power, and utilize the ADR technology to ensure the stability, fairness, and efficiency of LoRa networks, so as to improve the utilization of network capacity.
Moreover, some other existing works have analyzed the effect of LoRa transmission parameters on network performance, such as spreading factor, bandwidth, coding rate, and transmission power, etc., improved LoRa performance through single resource optimization [14]. Moreover, there are adaptive mechanisms considering the configuration of LoRa network communication parameters in dense IoT scenarios, and some parameter assignment algorithms have been proposed. For example, a LoRa terminal can configure its parameters according to the link budget, energy efficiency, network load, etc. [15]. Generally, most of the existing works focused on optimizing a single radio parameter in LoRa to improve network performance. The representative work was as follows.

1.1.1. Spreading Factor (SF)

In recent years, the SF has become a popular parameter for LoRa resource allocation optimization. We take the EXPLoRa-SF algorithm [16] as an example, which determined the percentage of terminals operating for each SF based on the Received Signal Strength Indicator (RSSI), used an ordered water injection method to allocate SFs and balanced the airtime of the data package transmitted by terminals in each SF group. In addition to RSSI, the path loss was also used as a measure to optimize the allocation of SF. The terminals were ordered by the estimated path loss distance to the gateway, and the terminals closest to the gateway were assigned the lowest SF. By optimizing the SF distribution, the average packet error rate of users far from the gateway was reduced [17]. Moreover, the multi-gateway configuration has also become a consideration for allocating SF, and a distributed SF allocation algorithm was proposed based on several criteria facing multi-gateway deployments that effectively allocated SF to progressively joining terminals [18]. Particularly, linear programming has become an important tool for optimizing SF allocation, for example, some works optimized SF allocation by using an integer linear programming model to maximize the number of serving terminals [19]. Moreover, some works adopted an intelligent assignment strategy in SF assignment based on machine learning, which was optimized by using support vector machine and decision tree classifier machine learning. This mechanism usually started from learning the transmission behavior of terminals, and the network server assigned SFs according to its prediction of collisions [20]. In general, the adaptive SF allocation algorithm often had great flexibility, which took the initial SF allocation and the interference-based adaptive SF allocation in the deployment phase [21].

1.1.2. Transmission Power (TP)

The TP is also one of the optimization parameters in LoRa networks. The iterative approach has been usually used to allocate the minimum power until the minimum power index is reached, then the iterative allocation of the maximum power until the maximum power index is reached, iterating between the two to allocate the remaining TP [22]. By monitoring the channel status and link quality of the network, the dynamic optimization of transmission power was achieved based on feedback mechanisms, maximizing the efficiency of data packet transmission [23]. The mathematical model was established for LoRa networks, which considered factors such as energy efficiency, signal quality, and network capacity. The numerical methods were employed to implement an optimal transmission power control algorithm [24]. To achieve a fair data rate independent of the gateway distance, it is necessary to avoid excessive TP to reduce energy consumption.

1.1.3. Adaptive Data Rate

To optimize the adaptive data rate, some works proposed a greedy algorithm, which designed an enhanced greedy adaptive data rate algorithm with coding rate adaptation to optimize the trade-off between delivery ratio and energy consumption [25]. Moreover, some guarantee parameters were dynamically selected to compensate for the error of the adaptive data rate channel condition estimation to meet the reference data extraction rate [26]. In adaptive data rate technology, the gradient projection method was considered for addressing contention issues caused by data rate [27]. Based on the link, the binary search algorithm was used to configure the transmission parameters of terminal nodes, achieving lower complexity [28]. The terminal node status was determined, and a Kalman filter was applied to estimate the signal-to-noise ratio for mobile terminals, thus determining the terminal transmission parameters [29].

1.1.4. Packet Distribution Ratio

Some other works adopted reinforcement learning methods in the packet distribution ratio allocation strategy, and the resource allocation problem was modeled as a Multi-Armed Bandit (MAB). Through a two-phase algorithm named MIX-MAB algorithm, the terminal can determine its transmission parameters in a distributed mode [30]. Based on collected data from an actual network, including link quality and environmental conditions, the packet distribution ratio model was developed to calculate the successful transmission rate of data packets in LoRa networks [31].

1.2. Motivation and Contributions

The problem of near-far effect is one of the causes of unfairness in the LoRa network. In wireless communication, the received power varies between different locations due to the influence of path loss, fading, and other effects during data transmission. For the general case, we assume that the receive power at the receiving end close to the transmitter source may be higher than the distant receiving end, but it is not necessarily the maximum. This situation can affect the capture effect of the LoRa network. Therefore, the received power of all terminals needs to be balanced to achieve a fair data rate, regardless of their distance from the gateway [22]. However, the optimization of resource allocation in the LoRa network focused on a single parameter such as the spreading factor, and the optimization goal is limited to a single goal such as optimizing the terminal adaptive data rate. There is still a great lack of tools, methods, and models for multi-radio parameter, multi-objective optimization. In general, traditional dynamic programming and Lagrangian relaxation methods often face the curse of dimensionality when solving problems. With the development and application of commercial solution software, Mixed Integer Linear Programming (MILP) has gradually shown its good advantages [32]. In the MILP model, optimization problems can usually be modeled as seeking solutions that satisfy certain optimal properties under certain conditions [33]. These problems can be expressed by a set of decision variables, a set of constraints, and a set of objective functions. The main advantage is that it can utilize mature computing tools, and the solution methods are diverse, with controllable solution accuracy and calculation time [34].
In this paper, we use Mixed Integer Linear Programming (MILP) to optimize LoRa radio parameter configuration to improve LoRa network performance. Starting from the management of wireless resources by the gateway, we propose an optimal framework for the joint allocation of SF and TP. To maximize the data extraction rate in the LoRa network and ensure the lowest energy consumption, we develop and optimize a solution in terms of mixed integer linear programming formulations to solve problems.
Our contribution is to solve the resource allocation optimization problem in the LoRa network uplink transmission system. By establishing a multi-objective function with the lowest packet collision probability and the lowest network energy consumption, we propose an optimal joint allocation of SF and TP. In this scheme, the radio parameter assignment problem is constructed as a MILP model and solved with the aid of the optimization solver Gurobi [35]. Finally, we perform a simulation analysis of the network performance based on the obtained optimal solution.
The main contributions of this paper are summarized as follows:
  • According to the Aloha protocol mechanism adopted in the LoRa network, we classify data packets collision into three theorems, namely, no conflict, conflict avoidance, and conflict occurrence. The above theorems can provide a basis for analyzing the collision effect and capturing the effect of packets in the LoRa network.
  • Against the singleness of parameter allocation of the existing LoRa network, we propose the improvement idea of multi-parameter and multi-objective optimization, and transform the problem into a Mixed Integer Linear Programming (MILP) model. The proposal of this model fundamentally eliminates the defect of single parameter optimization in the LoRa network.
  • Since the MILP model is a non-convex optimization problem, which is difficult to solve in terms of time and efficiency, we propose the heuristic fusion algorithm, which uses the combination of Gurobi mathematical solver and the heuristic genetic algorithm. We input the better solution obtained by the heuristic genetic algorithm into the solver as the initial solution of Gurobi, and get the final results through Gurobi.
  • Numerical results demonstrate that the proposed algorithm can significantly reduce the number of data packet collisions and effectively reduce network energy consumption, with good fairness among terminals. Compared with the dynamic radio parameter allocation strategy, including Genetic Algorithm (GA) and Approximate Average Packet Airtime Algorithm (AAPA) [36], the average increase in data extraction rate is 5.2%, and the energy consumption is reduced by an average of 41.5%. Compared to traditional allocation strategies, including minimum airtime allocation, equal distribution allocation, and random allocation, the data extraction rate increases by an average of 14.3%, and energy consumption decreases by an average of 23.7%.

1.3. Organization

The rest of this paper is organized as follows. The LoRa network collision effect is analyzed in Section 2, including the transmission model and collision analysis. The LoRa network resource allocation optimization is introduced in Section 3, including the problem formulation and the MILP solution algorithm. Section 4 provides the simulation results. The conclusions are finally summarized in Section 5.

2. LoRa Network Collision Effect

2.1. Transmission Model

The transmission rate of the LoRa wireless network is given by [37]:
R b = S F × 4 4 + C R 2 S F B W H z   bps
where R b is the data rate, spreading factor SF ∈ {7, 8, 9, 10, 11, 12}, coding rate CR ∈ {1, 2, 3, 4}, bandwidth BW ∈ {125, 250, 500}. The LoRa network transmission rate varies due to the radio parameter selection of each terminal. When BW and CR are constant, the increase of SF can make the signal resist greater interference, thereby increasing the transmission range, but at the same time, it will also increase the airtime of the data packet, which will lead to a decrease in data rate and increase energy consumption, so a trade-off should be made between transmission range and energy consumption by changing SF. In particular, data packet transmission time T s consists of the preamble transmission time T p r e a m b l e and the payload transmission time T p a y l o a d , and satisfies the following equation:
T s = 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 and T p a y l o a d , respectively, satisfy the following relationship [15]:
T p r e a m b l e = ( n p r e a m b l e + 4.25 ) × T s y m
T p a y l o a d = p a y l o a d S y m b N b × T s y m
where T s y m represents the time required to send a single symbol, n p r e a m b l e is the length of the preamble, p a y l o a d S y m b N b is the number of symbols that make up the packet payload and header, T s y m and n p r e a m b l e respectively satisfy the following formula [37]:
T sym = 2 S F B W
p a y l o a d S y m b N b = 8 + max c e i l 8 P L 4 S F + 28 + 16 20 H 4 ( S F 2 D E ) ( C R + 4 ) , 0
where P L represents the length of the payload, H represents the selected header type, D E represents whether low-rate optimization is used during data transmission, and c e i l is the rounding function.
To analyze the dense LoRa network deployment scenario, we adopt the log distance propagation model [37]:
L p l ( d ) = L p l ¯ ( d 0 ) + 10 γ l o g d d 0 + X σ
where L p l ( d ) is the path loss, L p l ¯ ( d 0 ) is the mean path loss at the reference distance d 0 , γ is the path loss index, and X σ is a normal distribution with zero mean, that is X σ N 0 , σ 2 .

2.2. Collision Analysis

We assume that the terminal in LoRa network adopts the Aloha protocol, which does not require gateway authorization and allocation of time-frequency resources, and can send data packets when needed. The Aloha protocol can achieve low power consumption and low latency of the terminal when the network load is low, but in the case of massive terminal access, the data packets sent by the terminal will generate a large number of conflicts, and the success rate of data transmission will drop sharply.
At the receiving end, only when the packet received power P r x is not lower than the receiving sensitivity R X s e n , the data packet can be received successfully, and R X s e n depends on the combination of SF and BW [37,38], which satisfies:
P r x R X s e n
where P r x = P t x + G L L p l , and P t x is LoRa terminal transmission power, G is antenna gain, L is transmitter signal loss, and L p l is the path loss between the transmitter and receiver. However, in real LoRa networks, SF is not perfectly orthogonal [39,40,41]. The impact due to this imperfect orthogonality has been shown to depend on the LoRa transceiver, the signal-to-noise ratio, and the number of deployed terminals [40]. In this paper, we assume that SF is orthogonal. As shown in Figure 2, assuming that the available SFs are SF7 and SF12, consider the following three theorems:
Theorem 1. 
(No Conflict) Two data packets using the same SF arrive at the same time, and because they are on different channels, they can be successfully decoded.
Proof of Theorem 1. 
Assume that both data packets a and b use the same spreading factor S F 12 and arrive at the same time. Define a on channel C 1 and b on channel C 2 . Because C 1 and C 2 belong to different channels and are disjoint with each other, C 1 is not equal to C 2 , so there is no chance of collision between the data packets located in C 1 and C 2 , so the two data packets a and b do not interfere with each other and can be successfully decoded.    □
Theorem 2. 
(Conflict Avoidance) Since the SFs are mutually orthogonal, collisions can be avoided even if multiple terminals use the same channel.
Proof of Theorem 2. 
Assume that terminal D 1 uses spreading factor S F 7 , terminal D 2 uses spreading factor S F 12 , and both D 1 and D 2 occupy the same channel C 1 . Because the spreading factors S F 7 and S F 12 are orthogonal to each other, that is, S F 7 S F 12 = 0 , the data packets of terminal D 1 and terminal D 2 do not interfere with each other and can be successfully decoded.    □
Theorem 3. 
(Conflict Occurrence) Collisions occur because data packets using the same SF overlap in time on the same channel.
Proof of Theorem 3. 
Assume that both packets a and b use the same spreading factor S F 7 , a, and b are located on the same channel C 2 and overlap in time. Because the spreading factors S F 7 and S F 7 are the same, they do not satisfy the mutually orthogonal condition, that is, S F 7 S F 7 0 , so the two data packets of a and b on the same channel will interfere with each other and cause collisions.    □
To sum up, when two or more data packets have the same carrier frequency, use the same SF, and have overlapping arrival times, it can be considered that a collision will occur.
In addition, when a collision occurs, if the difference between the received power of two data packets is not less than 6dB, a capture effect will occur, the data packet with higher power is received, and the other is lost. When the difference is less than 6dB, the receiver will constantly switch between the two packets, unable to efficiently decode either packet [42].

3. LoRa Network Resource Allocation Optimization

3.1. Problem Formulation

How to effectively optimize the resource allocation of the LoRa network is the key issue to improve the LoRa transmission performance. Therefore, we establish the relevant constraints between different radio parameters to make the trade-off between transmission distance, energy loss, and anti-interference. We consider a LoRa network system with a single gateway and N terminals. The gateway is located in the center, and the LoRa terminals are randomly distributed around the gateway. The average data generation rate of each LoRa terminal is λ , the average transmission length is ξ bytes, and the transmission time of the data packet is T s .
Based on the access characteristics of the Aloha protocol, we define the average collision probability P c o l l as follows:
P c o l l = 1 1 N i = 1 N e ( 2 G s , i )
where G s , i represents the traffic load. Moreover, the average number of packets arriving at the channel within the packet transmission time T s , i of the terminal i determined by S F is recorded as λ × N i , where N i is the number of terminals using the same S F as terminal i, then G s , i can be expressed as:
G s , i = T s , i × λ × N i
It can be seen from Equation (10) that the more data packets arrive at the network, the greater the network load, and the higher the possibility of data packet collision. Terminals of the same SF are generally considered to interfere with each other, but given the capture effect, the following optimizations can be made:
C p w r ( i , j ) = 1 , P r x i P r x j 6 0 , o t h e r w i s e
where C p w r ( i , j ) indicates whether there will be a conflict between terminals i and j with the same SF, P rx i and P rx j represent the received power of the two terminals respectively. Therefore, the total number of conflicting terminals can be defined as:
N i = j N , j i C p w r ( i j ) i
where N i is always not greater than the total number of terminals using SF.
When the number of periodically transmitted terminals increases dramatically, the collision problem of data packets in the LoRa network will become a serious challenge. While ensuring the low energy consumption of the LoRa network, how to reduce data packet loss is an urgent problem to be solved. Due to the capture effect, the received power level will determine whether the data packet is decoded when the data packet collision occurs. Therefore, we define network energy consumption (NEC) as follows:
N E C = i = 1 N T s , i × P t x , i .
We set the optimization goal as the lowest network energy consumption while minimizing the collision rate, as follows:
min   min P c o l l   N E C s . t . S F { 7 , 8 , 9 , 10 , 11 , 12 } , T P { 2 , 5 , 8 , 11 , 14 } .
The key parameters to solve the LoRa network optimization problem are the data packet transmission time and received power. On the one hand, a larger transmission rate can be obtained by using a smaller SF, resulting in a shorter transmission time. On the other hand, a higher receiving sensitivity can be obtained by using a larger SF, but the transmission rate is lower and the transmission time is increased. Therefore, it is necessary to find an optimal solution of mutual constraints among received power, transmission time, and the number of SF terminals used.

3.2. MILP Solution Algorithm

To model the resource allocation problem of the LoRa network as MILP problem, we define the tuple W i { 1 N } = s f i , S F , t p i , T P , where SF and TP represent the list of spreading factor and transmission power available to the terminal, respectively. W i is a boolean array, used to indicate whether terminal i uses the given SF and TP. Our goal is to reduce the energy consumption of the LoRa network as much as possible under the condition of minimizing the terminal collision probability, where minimizing the terminal collision probability is equivalent to maximizing the data transmission success rate of each ( S F , T P ) combination. We define that the decision variable of each terminal has two boolean arrays S F and T P , which are used to represent the transmission parameters SF and TP used by the terminal, respectively. We define the objective function as follows:
t p i T P s f j S F U t p i , s f j U t p l , s f k t p i T P s f j S F T s , s f j × N t p i , s f j t p l : t p l T P t p i t p l ; s f k : s f k S F s f j s f k ;
where U s f , t p is the utility function of the ( S F , T P ) combination, and the objective function reflects the minimization of the difference between the utility of each ( S F , T P ) , so that each ( S F , T P ) has the least load and achieves good fairness among terminals. The utility function is expressed as:
U t p i , s f j = N t p i , s f j × T s ( s f j ) × λ ;
U t p l , s f k = N t p l , s f k × T s ( s f k ) × λ
where N t p i , s f j is the number of terminals using ( S F j , T P i ) , and N t p l , s f k is the number of terminals using ( S F k , T P l ) . To improve the receiving reliability of the system, we use the receiving sensitivity as a constraint condition to manage the selection of spreading factor, so that the terminal can allocate the best parameters under the premise of ensuring that the data packets reach the gateway:
P d e r i = 1 , P r x R X s e n S F 0 , P r x < R X s e n S F .
Therefore, N t p i , s f j , N t p l , s f k can be expressed separately as:
N t p i , s f j = i N t p i , t p i × s f i , s f j × P der i
N t p l , s f k = i N t p i , t p l × s f i , s f k × P der i .
In addition, considering that each terminal is only assigned one SF and one TP, the following constraints exist:
t p T P t p i , t p = 1 i : 1 . . N
s f S F s f i , s f = 1 i : 1 . . N .
Equations (19) and (20) belong to the product of multiple binary variables and is a nonlinear expression. Therefore, we introduce auxiliary variables for linearization transformation for terminal i:
z i , t p , s f = t p i , t p × s f i , s f .
There are the following constraints:
z i , t p , s f t p i , t p
z i , t p , s f s f i , s f
z i , t p , s f t p i , t p + s f i , s f 1 .
In the same way:
r i , t p , s f = z i , t p , s f × P der i .
The following constraints exist:
r i , t p , s f z i , t p , s f
r i , t p , s f P der i
r i , t p , s f z i , t p , s f + P der i 1 .
In this paper, by establishing a MILP model, the system performance optimization problem is transformed into a mathematical problem to achieve the allocation of spreading factor and transmission power. In the model, the spreading factor and transmission power are used as decision variables, and the network data extraction rate and network energy consumption are used as objective functions, with constraints introduced. We use the hierarchical sequence method to solve this problem, that is, first obtain the optimal solution set corresponding to the minimum conflict rate under the constraint conditions, and then solve the optimal solution corresponding to the lowest energy consumption under the premise of ensuring the optimal solution of the previous goal. For the MILP model, we use the mathematical solver Gurobi, the heuristic genetic algorithm, and the combined algorithm of the two to solve them separately, and input the better solution obtained by the heuristic genetic algorithm into the solver as the initial solution of Gurobi. The algorithm flow is as shown in Algorithm 1.
Algorithm 1 Heuristic fusion algorithm.
Input: 
Available S F and T P lists,
Output: 
Optimal spreading factor and transmission power configuration for each terminal.
  1:
Step 1: Describes the utility function U t p , s f , transmission energy consumption, and enter the constraints;
  2:
Step 2: Encode the parameters S F and T P and initialize the population;
  3:
Step 3: Calculate the fitness, and determine whether the stopping conditions are met;
  4:
Step 3.1: If the stop condition is satisfied, the solution ( S F , T P ) is assigned to the decision variable in Gurobi;
  5:
Step 3.1.1: Resolve to determine the optimal solution ( S F , T P ) ;
  6:
Step 3.2: Select, cross, mutate, and repeat step 3 until the stopping conditions are met;

4. Simulation Results

To show the performance of different parameter selection strategies, we choose the LoRaSim simulation platform for performance verification [43]. With this tool, we deploy terminals as well as a gateway in a two-dimensional area, assuming that a single gateway can decode concurrent signals on all SFs. The parameters set in the simulation are shown in Table 1.
We use three types of indicators to evaluate the performance of the LoRa network, namely data extraction rate (DER), the number of collisions, and network energy consumption, in addition to evaluating the effectiveness of the model.
It can be found from the analysis that our proposed MILP model is a non-convex optimization problem. Therefore, when using the mathematical solver, we first set a fixed solution time of 3600 s to obtain as good a solution accuracy as possible within this time. For the proposed MILP model, we combined the Gurobi mathematical solver and heuristic genetic algorithm to solve the problem. The parameter allocation strategies we selected include minimum airtime allocation, equal distribution allocation, random allocation, Genetic Algorithm (GA), and Approximate Average Packet Airtime Algorithm (AAPA) [36].
(1) Data extraction rate: We evaluate the data extraction rate of the LoRa network within the value range between 0∼1. The closer the DER is to 1, the more effective the LoRa deployment will be. The following is the calculation formula of DER:
D E R = N r C N s
where N r represents the number of received packets, C represents the number of conflicting packets, and N s represents the number of sent packets. As shown in Figure 3, compared with the genetic algorithm, AAPA algorithm, minimum airtime allocation, random and equal distribution allocation, the DER optimal solution obtained by using the Gurobi tool increased by 2.7%, 7.6%, 10.7%, 14.8%, and 17.3%. It can be found that the genetic algorithm has a poor search ability and low search efficiency in the face of high-dimensional and complex problems, and it is prone to premature convergence problems and falls into local optimal solutions. In addition, random allocation and equal distribution allocation are suitable for the situation with few LoRa network terminals. The disadvantage is that random allocation may have terminals close to the gateway using high SF, thereby increasing the airtime of data packets and increasing the probability of collision, whereas equal distribution allocation only distributes the number of terminals evenly among ( S F , T P ) , without considering the different applicable distances of SF. The model proposed in this paper is a global optimization that considers all terminals in the entire network, providing the optimal spreading factor and precise transmission power values for each terminal. Accurate parameter allocation helps to reduce packet collisions and interference, thereby improving the data extraction rate of the network.
(2) Number of collisions: When there are two or more terminals in the LoRa network sending data at the same time, if a collision occurs, the transmitted data may be lost. When two LoRa transmissions occur at the same time, by analyzing the SF, TP, energy, and time conditions, it is determined that the receiving end can simultaneously decode the received packets. From Figure 4 and Figure 5, it can be found that the number of data packet collisions and the collision rate are under different parameter allocation strategies. It shows that the number of data packet collisions caused by the Gurobi optimization strategy is the lowest, which is far lower than other parameter allocation strategies. After optimization, the network strives to ensure that each terminal has an equal transmission opportunity by maximizing the fairness among terminals, thereby balancing the utilization of resources among different terminals. When resource allocation is more balanced, the transmission timings of different terminals are less likely to overlap, thereby reducing packet collisions.
(3) Network energy consumption: The NEC is defined as the energy consumed by the network to successfully extract information. Generally, the energy consumption of the LoRa terminal depends mostly on the energy consumption of the transceiver. Since terminals are mostly battery-powered, the energy consumption of the transmission must be kept to a minimum. Figure 6 shows the trend of NEC changing with the number of terminals. For every increase in SF of 1, the transmission rate is halved, the transmission duration is doubled, and the final energy consumption is doubled [42]. It can be seen from the results that using Gurobi to solve the MILP model can not only maximize the DER of the network, but also effectively ensure the lowest level of energy consumption. The reason is that packet collisions may cause data transmission failures and retransmissions, but this not only consumes network bandwidth and resources, but also consumes additional energy, affecting the overall efficiency of the network. By selecting the appropriate spreading factor and transmission power, packet collisions and packet retransmissions can be reduced, enabling the network to more effectively utilize limited resources and improve terminal energy efficiency. The energy consumption caused by random allocation, equal distribution allocation, genetic algorithm, AAPA algorithm, and minimum airtime allocation is 8.3 times, 6.4 times, 6.5 times, 1.9 times, and 1.8 times the Gurobi optimization strategy, respectively.
(4) Throughput: Due to the low power consumption characteristics of LoRa, high throughput can be achieved through appropriate parameter selection, as selecting a lower SF can improve the transmission rate, whereas selecting the appropriate transmission power can balance packet quality and energy consumption. The model proposed in this paper can improve the data extraction rate while minimizing energy consumption. As shown in Figure 7, the model proposed in this paper also has good performance in throughput. This model enables terminals in the network to achieve the optimal balance between data transmission rate and energy consumption, and can accurately determine the optimal SF and transmission power of each terminal. The parameters of terminals can be dynamically adjusted based on network status and requirements for global optimization, which helps to maximize the performance of the entire network and maintain high throughput. In the minimum airtime allocation, all terminals use the minimum spreading factor, which means that the signal bandwidth is narrow and more data can be transmitted, resulting in high network throughput. Random allocation, equal distribution allocation, and genetic algorithm have certain uncertainties in parameter selection, and cannot achieve global optimization results.
(5) Effectiveness of the MILP model: We compare the performance of the MILP model under different channel qualities, and the model shows good applicability. From Figure 8 and Figure 9, it can be found that changing σ in the path loss model will hardly affect the DER and energy consumption of the Gurobi optimization parameter allocation strategy, whereas the random allocation and equal distribution allocation strategies are greatly affected by channel interference. This model has dynamic adaptability, allowing terminal parameters to be optimized based on network status and requirements to adapt to worse channel conditions. In addition, based on mathematical programming methods, this model can obtain reliable parameter decisions and maintain stable performance.
Furthermore, we take 500 terminals as an example, Figure 10 shows the selection result of SF in the case of a single gateway and multiple terminals. The Gurobi allocation strategy is to select the SF that satisfies the constraints as small as possible, which means that it can achieve lower data packet transmission time, reduce the possibility of collision, and at the same time, it can also achieve network energy consumption under the premise of without reducing the data extraction rate. According to the data packet transmission time formula, the transmission time is the smallest when the BW and CR are fixed and SF equals seven. Therefore, when the terminal transmission time is all concentrated in SF7 in the minimum airtime allocation scheme, the probability of data packet collision is also greatly increased.
To evaluate the fairness level of different algorithms, the Jain’s fairness index is introduced as follows [44]:
ζ = i = 1 N D E R i 2 N i = 1 N D E R i 2
where N is the number of terminals in the LoRa network, and D E R i is the data extraction rate of terminal i. The range of the fairness index is 0∼1, and the higher the value, the fairer the terminals are. Under the assumption that SF is completely orthogonal and the capture effect is considered, the results for different numbers of terminals are shown in Figure 11. It can be seen that regardless of the number of terminals, the fairness index of the proposed model is close to 1, showing good fairness among most terminals in the LoRa network. This model has the characteristic of global optimization, which means that it can simultaneously consider the mutual influence between multiple terminals, which helps to avoid excessive concentration of resources on certain terminals. In Equation (15), the optimization objective is transformed into minimizing the difference in the utility function of nodes, thereby improving overall fairness. However, in the comparison scheme, as the number of terminals increases and the conflicts increase sharply, the fairness index will decrease obviously, which reflects the effectiveness of the MILP model.
In Equations (16) and (17), the data packet generation probability λ is fixed. Further, in order to analyze the effect of changes in λ on the algorithms, we assume that the time interval between LoRa terminal data packet transmissions follows a Poisson distribution, and the results shown in Figure 12 are obtained. It can be found that when the packet generation intervals in the network obey the Poisson distribution, the data packet extraction rate decreases synchronously. In this scenario, the proposed algorithm still outperforms the AAPA algorithm. The randomness of the Poisson distribution provides a more realistic simulation of packet generation, but may also increase the probability of data packet collisions and collisions, which demonstrates the excellent performance of the proposed MILP model in LoRa networks.
Moreover, when using the Gurobi tool to solve the MILP problem, to further improve the solution accuracy and take into account the solution efficiency factor, the optimal solution of the model obtained by the heuristic algorithm is used as the initial calculation solution of Gurobi. Figure 13 is a comparison of DER under the fusion algorithm, Gurobi without an initial solution, and the heuristic algorithm. It can be found that using the hybrid solution combining the heuristic algorithm and Gurobi, the quality of the obtained solution is higher, and the data extraction rate is further improved. The computational complexity of the model is O ( 2 K × B M ) , where K is the number of decision variables, B is the number of binary decision variables, and M is the number of constraints. In large-scale terminal and massive machine communication scenarios, it usually requires a lot of computing power for the resource allocation in LoRa networks to be modeled as MILP. This may lead to delayed responses, adversely affecting time-sensitive service operations. In addition, as the network size increases, the scalability of the model may be limited.

5. Conclusions

Aiming at the resource allocation optimization problem in the LoRa network uplink transmission system, we proposed an optimal scheme for the joint allocation of spreading factor and transmission power, constructed the radio parameter allocation problem as a MILP model, and solved it with the help of the optimization solver Gurobi. Compared with other algorithms, the parameter allocation we proposed has a higher data extraction rate, and can significantly reduce the number of data packet collisions during transmission, while effectively reducing network energy consumption and increasing network throughput. In the face of changing channel quality, the model can maintain a certain level of stability, and still exhibits good performance under different data generation rates. In particular, the model was evaluated by a fairness index, which verified good fairness among terminals. Finally, the optimal solution obtained by the heuristic algorithm was used as the initial solution of the MILP problem for re-simulation to obtain higher-quality resource allocation and further improved the data extraction rate. Through the scheme proposed in this paper, the performance of the LoRa network can be effectively improved, and the conflict problem in the transmission process can be reduced.

Author Contributions

Conceptualization, H.Z.; Methodology, H.Z.; Formal analysis, M.Y.; Writing—original draft, Y.S.; Writing—review and editing, Q.J. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Nature Science Foundation of China under Grant 61871239, and 61671254.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Dawy, Z.; Saad, W.; Ghosh, A.; Andrews, J.G.; Yaacoub, E. Toward massive machine type cellular communications. IEEE Wirel. Commun. 2017, 24, 120–128. [Google Scholar] [CrossRef]
  2. Centenaro, M.; Vangelista, L.; Zanella, A.; Zorzi, M. Long-range communications in unlicensed bands: The rising stars in the iot and smart city scenarios. IEEE Wirel. Commun. 2016, 23, 60–67. [Google Scholar] [CrossRef]
  3. Liu, L.; Zhou, Y.; Yuan, J.; Zhuang, W.; Wang, Y. Economically optimal MS association for multimedia content delivery in cache-enabled heterogeneous cloud radio access networks. IEEE J. Sel. Areas Commun. 2019, 37, 1584–1593. [Google Scholar] [CrossRef]
  4. Yang, W.; Wang, M.; Zhang, J.; Zou, J.; Hua, M.; Xia, T.; You, X. Narrowband wireless access for low-power massive internet of things: A bandwidth perspective. IEEE Wirel. Commun. 2017, 24, 138–145. [Google Scholar] [CrossRef]
  5. Ayoub, W.; Samhat, A.E.; Nouvel, F.; Mroue, M.; Prévotet, J.-C. Internet of mobile things: Overview of lorawan, dash7, and nb-iot in lpwans standards and supported mobility. IEEE Commun. Surv. Tutor. 2018, 21, 1561–1581. [Google Scholar] [CrossRef]
  6. Liu, L.; Zhou, Y.; Zhuang, W.; Yuan, J.; Tian, L. Tractable coverage analysis for hexagonal macrocell-based heterogeneous UDNs with adaptive interference-aware CoMP. IEEE Trans. Wirel. Commun. 2019, 18, 503–517. [Google Scholar] [CrossRef]
  7. Mikhaylov, K.; Petrov, V.; Gupta, R.; Lema, M.A.; Galinina, O.; Andreev, S.; Koucheryavy, Y.; Valkama, M.; Pouttu, A.; Dohler, M. Energy efficiency of multi-radio massive machine-type communication (mr-mmtc): Applications, challenges, and solutions. IEEE Commun. Mag. 2019, 57, 100–106. [Google Scholar] [CrossRef]
  8. Raza, U.; Kulkarni, P.; Sooriyabandara, M. Low power wide area networks: An overview. IEEE Commun. Surv. Tutor. 2017, 19, 855–873. [Google Scholar] [CrossRef]
  9. Edward, P.; El-Aasser, M.; Ashour, M.; Elshabrawy, T. Interleaved chirp spreading lora as a parallel network to enhance lora capacity. IEEE Internet Things J. 2020, 8, 3864–3874. [Google Scholar] [CrossRef]
  10. Finnegan, J.; Farrell, R.; Brown, S. Analysis and enhancement of the lorawan adaptive data rate scheme. IEEE Internet Things J. 2020, 7, 7171–7180. [Google Scholar] [CrossRef]
  11. Osorio, A.; Calle, M.; Soto, J.D.; Candelo-Becerra, J.E. Routing in lorawan: Overview and challenges. IEEE Commun. Mag. 2020, 58, 72–76. [Google Scholar] [CrossRef]
  12. Georgiou, O.; Raza, U. Low power wide area network analysis: Can lora scale? IEEE Wirel. Commun. Lett. 2017, 6, 162–165. [Google Scholar] [CrossRef]
  13. 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]
  14. Bor, M.; Roedig, U. Lora transmission parameter selection. In Proceedings of the International Conference on Distributed Computing in Sensor Systems, Ottawa, ON, Canada, 5–7 June 2017; pp. 27–34. [Google Scholar]
  15. Slabicki, M.; Premsankar, G.; Francesco, M.D. Adaptive configuration of lora networks for dense iot deployments. In Proceedings of the IEEE/IFIP Network Operations and Management Symposium, Taipei, Taiwan, 23–27 April 2018; pp. 1–9. [Google Scholar]
  16. 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 IEEE International Conference on Wireless and Mobile Computing, Networking and Communications, Rome, Italy, 9–11 October 2017; pp. 1–8. [Google Scholar]
  17. 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]
  18. Ochoa, M.N.; Maman, M.; Duda, A. Spreading factor allocation for lora nodes progressively joining a multi-gateway adaptive network. In Proceedings of the IEEE Global Communications Conference, Taipei, Taiwan, 7–11 December 2020; pp. 1–6. [Google Scholar]
  19. Caillouet, C.; Heusse, M.; Rousseau, F. Optimal sf allocation in lorawan considering physical capture and imperfect orthogonality. In Proceedings of the IEEE Global Communications Conference, Waikoloa, HI, USA, 9–13 December 2019; pp. 1–6. [Google Scholar]
  20. Yatagan, T.; Oktug, S. Smart spreading factor assignment for lorawans. In Proceedings of the IEEE Symposium on Computers and Communications, Barcelona, Spain, 29 June–3 July 2019; pp. 1–7. [Google Scholar]
  21. Farhad, S.; Lodhi, M.A.; Khan, W.U.; Masood, F. An adaptive and lightweight spreading factor assignment scheme for lorawannetworks. In Proceedings of the International Conference on Open Source Systems and Technologies, Lahore, Pakistan, 16–17 December 2020; pp. 1–6. [Google Scholar]
  22. Abdelfadeel, K.Q.; Cionca, V.; Pesch, D. Fair adaptive data rate allocation and power control in lorawan. In Proceedings of the IEEE International Symposium on “A World of Wireless, Mobile and Multimedia Networks”, Chania, Greece, 12–15 June 2018; pp. 14–15. [Google Scholar]
  23. Li, Y.; Yang, J.; Wang, J. DyLoRa: Towards Energy Efficient Dynamic LoRa Transmission Control. In Proceedings of the EEE Conference on Computer Communications, Toronto, ON, Canada, 6–9 July 2020; pp. 2312–2320. [Google Scholar]
  24. Al-Gumaei, Y.A.; Aslam, N.; Chen, X.; Raza, M.; Ansari, R.I. Optimizing Power Allocation in LoRaWAN IoT Applications. IEEE Internet Things J. 2022, 9, 3429–3442. [Google Scholar] [CrossRef]
  25. de Jesus, G.G.M.; Souza, R.D.; Montez, C.; Hoeller, A. Lorawan adaptive data rate with flexible link margin. IEEE Internet Things J. 2020, 8, 6053–6061. [Google Scholar] [CrossRef]
  26. Park, J.; Park, K.; Bae, H.; Kim, C.-K. Earn: Enhanced adr with coding rate adaptation in lorawan. IEEE Internet Things J. 2020, 7, 11873–11883. [Google Scholar] [CrossRef]
  27. Kim, S.; Yoo, Y. Contention-Aware Adaptive Data Rate for Throughput Optimization in LoRaWAN. Sensors 2018, 18, 1716. [Google Scholar] [CrossRef] [PubMed]
  28. Serati, R.; Teymuri, B.; Anagnostopoulos, N.A.; Rasti, M. ADR-Lite: A Low-Complexity Adaptive Data Rate Scheme for the LoRa Network. In Proceedings of the International Conference on Wireless and Mobile Computing, Networking and Communications, Thessaloniki, Greece, 10–12 October 2022; pp. 296–301. [Google Scholar]
  29. Farhad, A.; Kwon, G.-R.; Pyun, J.-Y. Mobility Adaptive Data Rate Based on Kalman Filter for LoRa-Empowered IoT Applications. In Proceedings of the IEEE Consumer Communications & Networking Conference, Las Vegas, NV, USA, 8–11 January 2023; pp. 321–324. [Google Scholar]
  30. Azizi, F.; Teymuri, B.; Aslani, R.; Rasti, M.; Tolvaneny, J.; Nardelli, P.H. Mix-mab: Reinforcement learning-based resource allocation algorithm for lorawan. In Proceedings of the IEEE Vehicular Technology Conference, Helsinki, Finland, 19–22 June 2022; pp. 1–6. [Google Scholar]
  31. Abdelghany, A.; Uguen, B.; Moy, C.; Lemur, D. Modelling of the packet delivery rate in an actual LoRaWAN network. Electron. Lett. 2021, 57, 460–462. [Google Scholar] [CrossRef]
  32. Borghetti, A.; D’Ambrosio, C.; Lodi, A.; Martello, S. An milp approach for short-term hydro scheduling and unit commitment with head-dependent reservoir. IEEE Trans. Power Syst. 2008, 23, 1115–1124. [Google Scholar] [CrossRef]
  33. Liu, L.; Zhou, Y.; Garcia, V.; Tian, L.; Shi, J. Load Aware Joint CoMP Clustering and Inter-Cell Resource Scheduling in Heterogeneous Ultra Dense Cellular Networks. IEEE Trans. Veh. Technol. 2018, 67, 2741–2755. [Google Scholar] [CrossRef]
  34. Kronqvist, J.; Bernal, D.E.; Lundell, A.; Grossmann, I.E. A review and comparison of solvers for convex minlp. Optim. Eng. 2019, 20, 397–455. [Google Scholar] [CrossRef]
  35. Anand, R.; Aggarwal, D.; Kumar, V. A comparative analysis of optimization solvers. J. Stat. Manag. Syst. 2017, 20, 623–635. [Google Scholar] [CrossRef]
  36. Sallum, E.; Pereira, N.; Alves, M.; Santos, M. Performance optimization on lora networks through assigning radio parameters. In Proceedings of the IEEE International Conference on Industrial Technology, Buenos Aires, Argentina, 26–28 February 2020; pp. 304–309. [Google Scholar]
  37. Semtech. AN1200.13 SX1272/3/6/7/8: LoRa Modem Designer’s Guide. 2013. Available online: https://www.mouser.com/pdfdocs/semtech-lora-modem-design.pdf (accessed on 15 August 2023).
  38. Sallouha, H.; Chiumento, A.; Rajendran, S.; Pollin, S. Localization in ultra narrow band iot networks: Design guidelines and tradeoffs. IEEE Internet Things J. 2019, 6, 9375–9385. [Google Scholar] [CrossRef]
  39. Mahmood, A.; Sisinni, E.; Guntupalli, L.; Rondón, R.; Hassan, S.A.; Gidlund, M. Scalability analysis of a lora network under imperfect orthogonality. IEEE Trans. Ind. Inform. 2018, 15, 1425–1436. [Google Scholar] [CrossRef]
  40. Waret, A.; Kaneko, M.; Guitton, A.; Rachkidy, N.E. Lora throughput analysis with imperfect spreading factor orthogonality. IEEE Wirel. Commun. Lett. 2018, 8, 408–411. [Google Scholar] [CrossRef]
  41. Croce, D.; Gucciardo, M.; Mangione, S.; Santaromita, G.; Tinnirello, I. Impact of lora imperfect orthogonality: Analysis of link-level performance. IEEE Commun. Lett. 2018, 22, 796–799. [Google Scholar] [CrossRef]
  42. Bor, M.C.; Roedig, U.; Voigt, T.; Alonso, J.M. Do lora low-power wide-area networks scale? In Proceedings of the ACM International Conference on Modeling, Analysis and Simulation of Wireless and Mobile Systems, Valletta, Malta, 13–17 November 2016; pp. 59–67. [Google Scholar]
  43. Zinoviev, D. Discrete-Event Simulation with Simpy; Suffolk University: Boston, MA, USA, 2018. [Google Scholar]
  44. Sediq, A.B.; Gohary, R.H.; Schoenen, R.; Yanikomeroglu, H. Optimal tradeoff between sum-rate efficiency and jain’s fairness index in resource allocation. IEEE Trans. Wirel. Commun. 2013, 12, 3496–3509. [Google Scholar] [CrossRef]
Figure 1. Example of LoRa networks.
Figure 1. Example of LoRa networks.
Sensors 23 07783 g001
Figure 2. Aloha multiple access control based on LoRaWAN.
Figure 2. Aloha multiple access control based on LoRaWAN.
Sensors 23 07783 g002
Figure 3. When using different parameter allocation strategies, DER varies with the number of terminals.
Figure 3. When using different parameter allocation strategies, DER varies with the number of terminals.
Sensors 23 07783 g003
Figure 4. The relationship between the number of packet collisions and the number of terminals.
Figure 4. The relationship between the number of packet collisions and the number of terminals.
Sensors 23 07783 g004
Figure 5. Collision rate among different terminals.
Figure 5. Collision rate among different terminals.
Sensors 23 07783 g005
Figure 6. The relationship between network energy consumption and number of terminals.
Figure 6. The relationship between network energy consumption and number of terminals.
Sensors 23 07783 g006
Figure 7. When using different parameter allocation strategies, throughput varies with the number of terminals.
Figure 7. When using different parameter allocation strategies, throughput varies with the number of terminals.
Sensors 23 07783 g007
Figure 8. DER under different channel quality.
Figure 8. DER under different channel quality.
Sensors 23 07783 g008
Figure 9. Energy consumption under different channel quality.
Figure 9. Energy consumption under different channel quality.
Sensors 23 07783 g009
Figure 10. Distribution of each spreading factor.
Figure 10. Distribution of each spreading factor.
Sensors 23 07783 g010
Figure 11. The relationship between the fairness index and the number of terminals.
Figure 11. The relationship between the fairness index and the number of terminals.
Sensors 23 07783 g011
Figure 12. Comparison of data extraction rate with different λ settings.
Figure 12. Comparison of data extraction rate with different λ settings.
Sensors 23 07783 g012
Figure 13. Heuristic fusion algorithm compared with other allocation strategies.
Figure 13. Heuristic fusion algorithm compared with other allocation strategies.
Sensors 23 07783 g013
Table 1. Simulation parameters.
Table 1. Simulation parameters.
ParameterValueUnit
Spreading Factor SF 7 12 None
Transmission Power TP 2 , 5 , 8 , 11 , 14 dBm
Carrier Frequency CF486 MHz
Bandwidth BW 125 kHz
Coding Rate CR 1None
Reference Distance d 0 40 m
Path Loss Index γ 2.08 None
Average Path Loss L pl ¯ d 0 127.41 dB
Payload Length ξ 20 bytes
Number of Gateways1None
The Furthest Deployment Distance1 km
Packet Transmission Period 10 6 s
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

Zhang, H.; Song, Y.; Yang, M.; Jia, Q. Modeling and Optimization of LoRa Networks under Multiple Constraints. Sensors 2023, 23, 7783. https://doi.org/10.3390/s23187783

AMA Style

Zhang H, Song Y, Yang M, Jia Q. Modeling and Optimization of LoRa Networks under Multiple Constraints. Sensors. 2023; 23(18):7783. https://doi.org/10.3390/s23187783

Chicago/Turabian Style

Zhang, Hui, Yuxin Song, Maoheng Yang, and Qiming Jia. 2023. "Modeling and Optimization of LoRa Networks under Multiple Constraints" Sensors 23, no. 18: 7783. https://doi.org/10.3390/s23187783

APA Style

Zhang, H., Song, Y., Yang, M., & Jia, Q. (2023). Modeling and Optimization of LoRa Networks under Multiple Constraints. Sensors, 23(18), 7783. https://doi.org/10.3390/s23187783

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