1. Introduction
Since the 1990s, the IoT has been present in our daily lives, and there are articles pointing to the presence of IoT devices - around 22 billion by 2025 [
2] - which, in a way, confirms the exponential technological development that has been observed in recent decades. In addition to the interest in developing new IoT devices and their enormous versatility of use, there is a need to automate, control and simplify processes in different economic sectors. Today, it has been proven that practically everything produced in industry (except for a few sectors) uses an IoT device to make processes more efficient, economical and with substantially lower energy consumption, and the main aim in introducing these devices is to keep them running constantly, thus alleviating high energy burdens, and speeding up mass production. The appliance of IoT in smart cities scenarios took the challenges faced to another level and, as well, improved the life of their residents [
3]. IoT is enabling and shaping smart cities by integrating various devices and technologies and reducing the need for human intervention. This integration allows for sustainable living, increased comfort, and enhanced productivity for their population. Various domains benefit from IoT in smart cities, including transportation, energy management, healthcare, environmental monitoring and even innovative ways to integrate some of these applications with blockchain and IoT technologies [
4]. Unfortunately challenges like privacy, security and scalability need also to be faced and resolved. Especially in the new emerging applications like industry 4.0 (advanced manufacturing), smart financing or intelligent transportation (connected mobility).
Of course, not all the applications described above, need the same type of security or the same type of quality of service. And understanding QoS in networking is essential for managing traffic effectively [
5]. Different IoT services will have different IoT requirements regarding the quality of service. They will be based, among other things, in aspects like functionality (e.g., monitoring, control, processing and analyzing data), type of message (occasional, regular or interactive response), data rate (low, high), latency and reliability, security and privacy (needs of encryption, authentication and access control) and scalability (must manage the growing of devices efficiently) [
6].
In this context the tendency it’s the increasing of devices End Devices (ED) and Gateways (GW) and networks, having different types of services and generating different types of messages (meaning different types of payloads co-existing).
During the network design process, critical variables include determining the optimal placement of GWs and EDs. Considering factors such as coverage, interference, and signal strength, as well as assessing the desired coverage area and density to achieve a balance between coverage and capacity, is essential. Additionally, the successful deployment of devices depends on various factors, including data rate, payload frequency, and battery life. Regarding this last three we can detail the following:
- ▪
Data Rate: Low data rate schemes allow more devices to share the network. However, this will affect the payload size and latency.
- ▪
Payload Frequency: Devices transmitting frequently (e.g., every hour) will consume more resources.
- ▪
Battery Life: Longer battery life requires efficient power management and for this, data rate and payload frequency will have a big role and impact.
In the design of a LoRaWAN network, it is crucial to carefully weigh trade-offs among these key variables and network capacity [
7]. Additionally, precise configuration of parameters—such as spreading factors, bandwidth, transmit power, and duty cycling—has a significant impact on LoRaWAN performance [
8]. Besides the geographical arrangement of GWs and EDs, interference—both internal within the network and external from other sources—plays a pivotal role and managing it well will be crucial for a LoRaWAN network Efficiency [
9,
10]. Consequently, the design and implementation of these IoT LoRaWAN networks present a series of challenges, making their study a wide field of experience and interest. The reliability and quality of service in these networks will, this way, significantly influence their overall performance and scalability.
In our research, we explore interference effects related to the SF and Collision Effects in the 868 MHz LoRaWAN Radio Interface. We create real-world scenarios with devices transmitting varying information at different distances, potentially leading to packet overlap and increased packet loss probability. Our study involves practical tests, including approximately 500 field measurements between a gateway and a LoRa device, which we detail in this paper. If simulations tools are valuable during network projects, field tests remain decisive. And correctly setting LoRaWAN parameters is pivotal for achieving optimal network performance and to substantiate design considerations, measuring tools will be necessary. This way tools like RSSI, ToA and PDR will be used to test the reliability and quality of service of a LoRaWAN link in real tested scenarios and to validate this measuring tools for a good quality of LoRa signal. Generally, and about the tests that can be made with these tools, we can detail the following appliance:
RSSI:
- ▪
RSSI measures the strength of the received signal from a transmitter, and it help to determine if the signal is strong enough for a reliable wireless connection.
- ▪
In LoRaWAN networks, both gateways and end devices benefit from accurate RSSI measurements, because this way we can determine the best location for both. If actual RSSI deviates significantly from expected values, adjustments might be needed (e.g., EDs or GWs placement, EDs or GWs density).
ToA :
- ▪
ToA estimates the total air transmission time for a LoRa packet. Its primary purpose is to determine the duration between transmitting a signal and receiving it at the remote receiver and it provides (indirectly) information about the propagation delay helping assess link quality, as variations in ToA can indicate changes in signal path length or interference.
- ▪
By analyzing ToA, we can optimize routing and minimize latency. Latency refers to the delay experienced by data packets as they traverse the network. By minimizing ToA (and thus propagation delay), we reduce overall latency. For example, if we know that one route has significantly lower ToA (and hence lower propagation delay) than another, we can preferentially route traffic through that path.
- ▪
ToA estimation informs this way, both link quality assessment and network optimization.
PDR:
- ▪
PDR represents the proportion of successfully delivered packets over the total transmitted packets. A high PDR indicates a reliable link, while a low PDR suggests issues such as interference or weak signals.
- ▪
Monitoring PDR will help to validate the quality and reliability of the LoRa signal and will ensure efficient data transmission. If PDR falls short of expectations, we might need to reconsider factors like SF (Spreading Factor), duty cycle, or collision handling.
In this study, validating the tools within the proposed scenarios could extend their applicability to other types of scenarios with a different scale. As said before, the designer’s theoretical choices regarding LoRa parameters significantly impact network performance and scalability.
Among the various parameters considered, the SF, for example, may not be as obvious as it seems [
11]. Depending on the selected parameters (and the presence of neighboring networks), both intra-SF interference and inter-SF interference can occur. This way managing both types of interference will be essential for optimizing network efficiency and scalability [
12,
13] and designers should conduct field tests to validate their choices and optimize their networks. These measurements will also shed light on the importance of the SF and the impact of overlapping SFs within the same channel, particularly concerning interference and collisions. Detailing:
SF:
- ▪
SF determines the signal’s bandwidth and data rate.
- ▪
Higher SF (e.g., SF12) provides better resistance to interference but increases airtime, while lower SF (e.g., SF7) allows faster data rates but can be more susceptible to interference. A low SF spreads the signal across a broader frequency range due to longer chirps, impacting interference susceptibility.
- ▪
PDR can reflect how well the chosen SF copes with interference and collisions.
Interference:
- ▪
High interference can degrade signal quality, leading to packet loss and reduced reliability and quality of service.
- ▪
RSSI helps detect interference by measuring signal strength. A sudden drop in RSSI may indicate interference.
Collisions:
- ▪
Collisions occur when multiple devices transmit simultaneously. When two or more devices attempt to send data at the same time, their signals can interfere with each other, leading to packet loss. And ToA helps estimate collision timing. Longer ToA can indicate more collisions.
- ▪
Optimizing SF (and duty cycle) can minimize collisions.
- ▪
PDR quantifies successful packet delivery despite collisions.
After the designer has made theoretical choices for a network, utilizing measuring tools such as RSSI, ToA, and PDR becomes essential for validating those decisions. By adjusting the SF, monitoring RSSI and ToA and analyzing PDR, LoRaWAN networks can effectively mitigate interference and manage collisions.
So, these tools validate the practical feasibility of theoretical choices, ensuring that the network performs as expected in real-world scenarios.
To simulate real-world behavior, we transmitted packets with different SFs and data sizes in a pseudo-random manner. These transmissions overlapped within the same channel, creating an inter-SF interference scenario. By doing so, we explored the theoretical orthogonality between these parameters. Even though we transmitted from a single source, this approach allowed us to model the behavior of multiple devices within a LoRa network.
Different possibilities of orthogonalize transmissions were set. This way Carrier Frequency (868.2 MHz), Code Rate (CR) of 4/5 and BW 125 kHz were fixed, while testing different SFs (7, 9, 12). Our goal was to increase the likelihood of packet loss by adjusting the emitted power and shortening the transmission distance while transmitting packages of different SFs and different payload sizes. This deliberate interference was intended to create a significant impact, as discussed in the previous study by D. Croce et al. [
14] where in their analysis of LoRa modulation, they demonstrated that collisions between packets of different SFs can indeed lead to packet loss, particularly when the received interference power is strong enough.
In
Section 2, we present related work. In
Section 3 and
Section 4, we will discuss the fundamental mechanisms and concepts of LoRa technology, exploring their impact on network performance. We also analyze the causal relationships between various factors affecting network efficiency and summarize the challenges specific to LoRaWAN networks.
Section 5 describes the specific experimental environment and methods and provides a discussion of the results. Finally,
Section 6 presents our conclusions.
2. Related Work
IoT is characterized by ongoing growth and innovation. It has moved beyond its initial stage of basic connected devices and has transformed into a sophisticated ecosystem of interconnected sensors, devices, and platforms. Understanding interference and collisions in real-world scenarios is essential for achieving successful scalability when deploying efficient LoRaWAN networks. However, this scalability faces a significant challenge due to the use of a variant of the Aloha protocol in its Medium Access Control (MAC) layer. As the number of devices (EDs and GWs) increases, performance degrades rapidly. Therefore, making balanced and informed choices and tuning the physical layer (PHY) parameters becomes crucial. These decisions will significantly impact LoRaWAN performance and help mitigate the limitations introduced by the pure Aloha protocol, ultimately enhancing LoRaWAN scalability, reliability, and overall service quality.
Several studies related to the theme under study in this paper have been conducted. In [
15], Yuya Ishida et al. investigated the influence on communications that results when other devices exist in the same area. To do this, they used pairs of transmitters and receivers that were moved around to create collisions, thus being able to measure the number of packets sent and received in the various test scenarios. Three separate scenarios were carried out (
Figure 1) using Carrier Sense (CS), where:
- In the first, the transmitters were located close to each other and far away from the LoRa module.
- In the second, the transmitter and receiver are close, but the distance between the pairs is large.
- In the third, the distance between transmitter and receiver and the distance between the pairs is long.
To evaluate the experimental results, the authors focused on the relationship between distance and the total number of packets transmitted and received. About the first scenario, it was observed that only one of the transmitters, the one that was able to transmit first, was always sending packets and the receiver received practically all the 100 sent even when they were separated at the maximum distance of 860 meters. In the second scenario, as the distance between the transmitters increases, we could see that both transmitters are sending packets, but we could also see that the number of packets received is less than the number of packets transmitted, and there have been some losses. Finally, in the third scenario, as the transmitters moved further apart it was possible to confirm that 100 packets had been sent, however, apart from at the smallest distance, it was not possible to confirm that any packets had been received.
Jetmir Haxhibeqiri et al. [
16]in their study focuses on assessing the scalability of LoRaWAN networks in terms of the number of end devices per gateway. They performed measurements to understand the interference behavior between two physical end nodes. Their conclusion was that even under concurrent transmission, one of the packets can be received under certain conditions. Based on these measurements, the researchers created a simulation model. When the number of nodes increases up to 1000 per gateway, the losses can be up to 32%. However, with a lower application layer duty cycle (below the allowed radio duty cycle of 1%), losses decrease further. While this study provides a solid basis and is important, our objective differs. We aim to establish real-world scenarios and investigate the impact of interference and packet length on the scalability of LoRaWAN networks, with the goal of enhancing their reliability and overall quality of service.
In another study on scalability, Bor et al. [
17] investigated the relationship between physical layer parameter settings (such as bandwidth, coding rates, spreading factor, and center frequency) and the capacity of LoRa networks. Their research focused on scenarios where devices communicate directly with a sink node, eliminating the need for complex multi-hop networks. LoRa offers various communication options, allowing transmitters to choose from Center Frequency (CF), SF, BW, and CR. Through simulations, the researchers demonstrated that the choice of physical layer parameters impacts the number of LoRa nodes that can access the channel simultaneously, thereby limiting the network’s capacity. However, effective scalability can be achieved in LoRa networks through dynamic communication parameter selection and/or the use of multiple sinks.
Lavric et al. [
18] also address challenges posed by the IoT concept, including scalability and sensor integration. They focused on LoRa communication technology, which is considered an ideal solution for these issues. In their empirical evaluation, they analyze communication collisions in various scenarios. Despite an increased packet payload, communication resistance to interferences remained relatively unaffected. In a subsequent stage of the experiment, they employed a LoRa Traffic Generator with new Software Defined Radio (SDR) technology. And despite using orthogonal variable spreading factor techniques within the same communication channel, they concluded collisions between LoRa packets significantly impact communication performance showing that different spreading factors also exhibit conflict and greatly reduce LoRa performance. Moreover, the authors find that packet length is not a key factor affecting LoRa performance. Our study aims to demonstrate the opposite.
Other researchers have already explored the reliability of communication links in smart cities. They considered various distances between end nodes and base stations, along with different spreading factors. Some early studies were conducted by S. Kartakis et al. [
19] and M. Centenaro et al. [
20]. In [
19] they analyzed standard technologies like LoRa, Sigfox, NB-IoT, and LTE-M. Their findings highlighted the potential of these Low-Power Wide-Area Network (LPWAN) technologies for cost-effective and energy-efficient IoT applications. However, real-world performance remains an ongoing area of investigation. In turn, [
20] describe LPWANs as an emerging wireless connectivity paradigm. These networks utilize low-rate, long-range transmission technologies in unlicensed sub-GHz frequency bands. The star topology of LPWANs offers advantages over established paradigms, particularly for Smart Cities applications, emphasizing efficiency and effectiveness.
In a work aimed to study the LoRaWAN Performance Evaluation, Sanchez-Iborra, R. et al. [
21] investigated three distinct scenarios—urban, suburban, and rural. They emphasized the importance of evaluating deployment scenarios for successful system implementation. They achieved that propagation conditions significantly impact LoRaWAN performance, and a balance between network robustness and transmission data rate is essential. However, their study did not explore all parameter configurations, leaving some details about the relationship between physical layer parameters and LoRa performance unspecified.
Regarding interference and robustness, B. Reynders et al. [
22] compared Chirp Spread Spectrum (CSS) modulation with Binary Phase-Shift Keying (BPSK) in terms of robustness and interference. Despite symbols not being perfectly orthogonal, CSS demonstrated robustness against interfering signals. However, in long-range communication, relying solely on robustness is insufficient due to the considerable impact of propagation losses. A solution like deploying more gateways can improve coverage (reduces the distance between end devices and gateways), but the challenge of scalability of the networks becomes a major question.
Qingjie Guo et al. [
23] in their study aim to understand how physical layer parameters impact LoRa packet reception performance and energy efficiency. Their study was conducted to an evaluation experiment under a negative Signal-to-Noise Ratio (SNR). They clarified the specific details of the relationship between physical layer parameters (such as bandwidth, spreading factor, and coding rate) and LoRa packet reception performance. Their study also examined the effect of packet length on reception performance. Their conclusion was that, for large amounts of data, longer packets outperformed shorter ones. In the end and considering both physical layer parameters and packet length, the authors proposed a transmission scheme that balances reliability, delay, and energy consumption. Yet, the paper lacks specific scenarios such as Line-of-Sight (LOS), NLOS, or different distances. That we propose in our study. And without these scenarios, it would be quite challenging to assess the study’s impact in real-world applications.
As previously mentioned, our study diverges from the related previous research. We aim to obtain important details regarding the influence of various SFs on LoRaWANs packet reception performance over the same channel, while also considering different packet length settings. Additionally, we propose validating the measuring tools introduced in the study’s introduction—namely, RSSI, ToA, and PDR—within the proposed scenarios. This validation aims to assess the practical feasibility of theoretical decisions made by the designer and to evaluate the reliability and quality of service of our link. By doing so, we gain insights into how these results will impact performance and scalability in other networks. Our focus lies not on simulations but on conducting real-world field tests.
3. LoRa Technology
LoRa is a LPWAN technology owned by Semtech [
24] based on CSS modulation.
Figure 2 represents a typical IoT network architecture. The End Nodes—represented by icons—correspond to various IoT devices, including animal collars, temperature sensors, motion sensors, smart bins, energy meters, etc. These End Nodes collect data from their environment or specific devices they monitor.
Subsequently, the collected data is transmitted to the ‘Concentrator/Gateway.’ This gateway receives data from the End Nodes and forwards it to the Network Server via a 4G/5G/6G/Ethernet backhaul.
The Network Server plays a crucial role in managing the network. It processes the data and then forwards it to the Application Server. Additionally, the Network Server performs security tasks, aggregates and filters data, and ensures its integrity.
Finally, the Application Server receives the processed data from the Network Server. It utilizes this data for specific applications, such as monitoring, data analysis, and automation
This architecture exemplifies a scalable IoT solution where data is collected from various field devices (End Nodes), transmitted through an intermediate infrastructure (Concentrators/Gateways and Network Server), and finally utilized in specific applications (Application Servers). This approach ensures efficient data management and the ability to scale the network as needed.
The frequencies used may vary depending on the region, as they are unlicensed, those being: 433 MHz and 868 MHz for Europe [
25]. LoRa is highly efficient in terms of power usage, wireless data transfer and license-free sub-gigahertz radio frequency bands, which is why it is often used in IoT systems.
3.1. LoRa Basics
The LoRa network uses CSS Modulation, which is a spectral spreading technique. Spread spectrum techniques use a greater communication bandwidth than the original signal band to combat fading and shadowing problems. Fading can be originated in reasons like, signal strength variations (due to obstacles), reflections or interference and shadowing can be originated walls, hills or other objects blocking the signal and causing attenuation.
By spreading the signal, the impact of fading and shadowing will be minimized. Even if part of the spectrum is affected, other parts remain usable. Analyzing more in detail:
Spread Spectrum: Spread spectrum techniques distribute the signal energy over a wider frequency band.
-
Types:
- ▪
Frequency Hopping Spread Spectrum (FHSS): Rapidly changes the carrier frequency according to a predefined pattern.
- ▪
Direct-Sequence Spread Spectrum (DSSS): Spreads the signal using a pseudorandom code sequence.
- ▪
CSS: Utilizes linear frequency-modulated chirp pulses.
-
Advantages:
- ▪
Robustness: They enhance resistance to interference, noise, and multipath fading.
- ▪
Security: Spread spectrum signals are harder to intercept or jam.
- ▪
Low Power: They allow low-power communication.
CSS modulation prioritizes stability over data rate, making it suitable for extremely long-range communication. Additionally, to address scalability issues, Semtech introduced LR-FHSS (Long Range-Frequency Hopping Spread Spectrum) for satellite connectivity [
26,
27], which enhances network capacity and robustness through intra-packet frequency hopping without sacrificing communication range or power efficiency. It also introduced DSSS modulation as an alternative to the original CSS modulation used in LoRa. While CSS provides long-range communication with ultra-low power requirements, DSSS offers some distinct advantages like:
- ▪
Robustness: DSSS is less sensitive to interference and noise, making it suitable for challenging environments.
- ▪
Clock Independence: Unlike CSS, DSSS does not require a highly accurate reference clock, simplifying implementation.
- ▪
Spectral Spreading: In DSSS, the signal’s spectrum spreads by directly encoding data bits across a wider bandwidth, enhancing robustness.
Overall, DSSS complements CSS, providing more flexibility and robustness in LoRa-based solutions [
7] making the logical choice to use CSS for long-range, low-power applications, and DSSS for robustness in challenging environments or when moderate data rates are acceptable. In addition, CSS LoRa modulation has the following advantages [
28]:
- ▪
It is easily scalable in both frequency and bandwidth.
- ▪
Resistant to multipath, fading, and Doppler phenomena.
- ▪
Allows communication via multiple signals due to orthogonality between different Spreading Factor (SF).
As written before the LoRa modulation technique (CSS) essentially consists of varying the frequency of a given wave. In chirp modulation, the frequency of the transmitted signal changes linearly over time. This allows LoRa signals to be robust against interference and noise. Frequency will increase linearly in the case of an up-Chirp and decreases in the case of a down-Chirp.
Figure 3 and
Figure 4 shows a graphical representation of this variation.
Figure 5 below shows the representation of an up-chirp for its frequency as a function of time.
By observing
Figure 6 we can draw some conclusions about a chirp. There is an increasing, linear variation in frequency over time. Also, an interesting thing about chirps is that the maintenance of a constant bandwidth over their duration means that even as the frequency changes, the overall width of the frequency band that the chirp occupies remains the same. This property is quite important for the operation of a LoRa network and is one of the reasons why it’s able to provide long-range communication with low power consumption.
When growth reaches the upper end of the frequency band (fmax), there is a “jump” to the minimum frequency end (fmin). The slope of these chirps (rate at which the frequency changes) is determined by the Spreading Factor (SF). A higher SF results in chirps with a slower slope, while a lower SF results in chirps with a steeper slope.
Looking at
Figure 6, we can obtain the expression (1) for the bandwidth of this symbol,
Equation (2) below, shows that the symbol time depends not only on the bandwidth but also on the spreading factor (
Figure 6).
In the modulated signal of
Figure 6 we could also see 4 symbols represented, having each one a time duration that we can further represent by
Ts, and
Ts can be expressed by [
24]:
This formula tells us that if the band is fixed the higher the SF the higher the symbol time. For example, if BW=125 kHz and SF=7 (7 bits in a symbol), Ts will be:
, or 1.024
To the same BW if the SF=9 the Ts will be:
, or 4.096 (4 times higher than the previous example)
Increasing
Ts means the message transmission time (ToA) will also increase (and this way, bigger distances will be achieved). Furthermore, the number of chips per chirp is given by
[
24]. The chip count is given by the development seen in [
24]:
The symbol rate can be given by:
And
representing the number of chips per chirp [
24].
As an example, being BW=125 kHz and SF=7,
Rs will be:
So, if, as the example before, SF increases from 7 to 9, and the symbol time (Ts) increase by 4 times, it means the symbol rate Rs (being the inverse of Ts) will be reduced 4 times.
The BW equals the chip rate, just changing the units (Hz per Chips/s) and the formula (3) could also be written in the form of:
So, the chip rate is given by:
To note that the chip rate (Rc) is always higher than the Symbol Rate (Rs) because multiple chips can form one symbol.
Also, a very common term, is the chirp rate. The chirp rate (and like the chip rate) is also equal to the bandwidth, being measured in chirps per second (chirps/s). The difference it’s not in the numbers but in the definition: while the chip rate can be defined by the number of chips transmitted per time unit, the chirp rate will be defined by the rate of change of the frequency of a signal. This means that the chirp rate measures how quickly the frequency of the signal is changing at any given point in time. In
Figure 6, and as an (illustrative) example, the slope of the spectrogram of each symbol can gives us the chirp rate (rate of change of frequency).
One of the most important expressions in characterizing a LoRa signal is expression (6)
[24], which correlates some of the most important factor’s characteristic of signals from this technology.
Where:
- ▪
, bit rate (or data rate) [bit/s]
- ▪
, Bandwidth [Hz]
- ▪
, Code Rate (varies between 1 and 4)
- ▪
, Spreading Factor
This expression defines the nominal binary rate of a LoRa signal according to its CR, SF and BW.
3.1.1. Spreading Factor
The SF is a parameter in the LoRa modulation scheme that affects the data rate, range, and processing time. A higher SF means a longer range and a lower data rate, while a lower SF means a shorter range and a higher data rate. The SF is one of LoRas most important parameters and essentially represents the speed at which a chirp changes frequency. For higher SFs we have a slower frequency change, which means that each chirp will also have a longer symbol time than signals with lower SFs.
Table 1 tells us that higher SF results in a higher number of chips per chirp (or a higher symbol count), and a lower SF results in a lower number of chips per chirp (or a lower symbol count). This implication takes to the conclusion that a higher symbol count (means a longer transmission time for each symbol) results in a lower data rate (Rs). On the other hand, a lower symbol count leaves to a higher data rate.
Another important factor to consider is the importance of SF for the
binary throughput data rate of a LoRa signal. In expression (6) we can see the direct implication this has on this output. Using MATLAB to produce the function steps, for a bandwidth of 125 kHz and CR = 4/5, we obtained
Figure 7. This figure shows the influence of SF on data rate. This graph reinforces the proposition set out in the previous paragraphs: for higher SFs, lower binary data rate.
A key characteristic in LoRa is orthogonality. Orthogonality allows different Spreading Factors (SFs) to coexist in the same channel without interfering with each other. This is because different SFs result in different data rates, which in turn produce signals with different slopes (rate of change of frequency versus time) when viewed in the frequency-time plane. However, this orthogonality is not perfect. When the bandwidth is fixed, different SFs can cause packet loss if the interference power received is strong enough. This imperfect orthogonality can significantly deteriorate the performance, especially on the higher SFs. Moreover, there can be combinations of SF and bandwidth which would have the same slope as other combinations, and thus not be as fully orthogonal from them. This could potentially lead to more problems, especially when SFs are close to each other.
3.1.2. Code Rate
The CR refers to the ratio associated with error detection and correction for the Hamming code used by LoRa. The CR can take 4 different values: 4/5, 4/6, 4/7 and 4/8, and these ratios being equivalent to the H(5,4)...H(8,4) codes [
24]. For the values 4/5 and 4/6 only error detection is possible, while for 4/7 and 4/8 its possible error detection and correction [
29]. These ratios correspond to the number of data bits and the number of redundant bits for error detection, e.g., for a 4/5 CR, there are 4 data bits and 1 bit for error detection. For CRs with more redundant bits (i.e., decreasing of the coding rate), the bit rate will decrease in practical terms, since for the same binary output we can have a variable number of redundant bits and, consequently, a variable number of data bits [
24].
Figure 8 shows that for CRs with a higher number of redundancy bits, the bit rate will decrease, as would be expected.
Another parameter that was studied in the previous section is the SF, and again in this situation there are implications in terms of bit rate for higher SFs. A higher SF increases the signal’s ability to resist interference (effectively increasing the range), but it also reduces the data rate. In this case we can once again see a much lower bit rate for a high SF, but it should be kept in mind that a CR of 4/8 when compared to one of 4/5 will also cause a considerable decrease in bit rate. A higher CR (more redundant bits) provides better error correction at the expense of data rate.
So, in a scenario where long range and robust error correction are needed, we might opt for a higher SF and CR, even though this would result in a lower data rate. On the other hand, if high data rate is the priority and the devices are close to each other, a lower SF and CR might be more suitable.
The choice of SF and CR will therefore depend on specific network communication needs.
3.1.3. Bandwidth
The BW used in LoRa can be 125 kHz, 250 kHz and 500 kHz (the latter not used in Europe).
Producing the graphical progression again based on the previous expressions,
Figure 9 shows the graphical result of equation 6 for two different SFs.
Looking at the graph in
Figure 9, it’s clear from the outset that when the bandwidth increases, the data rate of the link also increases. This means that a given amount of data can be transmitted in a shorter amount of time, reducing the ToA. A shorter ToA has several advantages. For one, it reduces the likelihood of the signal suffering from interference, as the signal is “on air” for less time and thus has less opportunity to collide with other signals. Additionally, effects such as fading or noise have less time to impact the signal, potentially improving the quality of the received signal. However, it’s important to note that increasing the bandwidth also increases the potential for interference with other signals, as it requires a larger portion of the frequency spectrum. Once again, the correlation and impact that SF, CR and BW have on data rate becomes increasingly clear, as does the influence of each parameter on reducing the likelihood of the signal being affected by interference. If, on the one hand, an SF12 is used for communication over long distances, a high CR must be used so that the signal is more robust, the tradeoff being the fact that we have a lower binary data rate (which can be manipulated through the bandwidth used). Therefore, when choosing signal specifications for the communication the balancing of these three parameters is crucial.
1.1.4. Frame format and Duty Cycle
Figure 10 represents the structure of packets in LoRa and LoRaWAN communications. Here is a decomposition of its components:
Radio Physical Layer
Preamble: This is a sequence of bits used to synchronize the receiver with the transmitter. It helps the receiver to lock onto the signal before the actual data starts.
PHDR (Physical Header): The Physical Header contains information about the payload, such as its length.
PHDR_CRC (Physical Header CRC): This is a Cyclic Redundancy Check (CRC) for the Physical Header to ensure its integrity.
Physical Payload
The Physical Payload includes all data following the physical layer headers.
MHDR (MAC Header): Provides information for the MAC layer, specifying the message type and protocol version.
MAC Payload: The core transmitted data, further divided into the Frame Header (FHDR), FPort, and FRMPayload
MIC (Message Integrity Code): Ensures message integrity and authenticity, detecting tampering or corruption.
MAC Payload
FHDR (Frame Header): Contains essential fields for the MAC layer, including device address, frame control, frame counter, and frame options.
FPort (Frame Port): Specifies the payload’s port number, distinguishing different data types being transmmited.
FRMPayload (Frame Payload): Carries the actual application data, possibly including MAC commands if FPort is set to 0.
4. Collision Management and MAC Protocols in IoT Networks
Operating an IoT system in unlicensed Industrial, Scientific and Medical (ISM) bands, on the one hand, reduces the cost of license fees, on the other hand, we are forced to share the spectrum which causes an inevitable increase in interference as new devices are added and limits the maximum duty cycle which in EU 868 ISM is 1%. This issue has been addressed in some studies, where broadband measurements (200-3000 MHz) were carried out in urban environments in 2016 and it was observed that compared to 2004 data, the average spectral occupancy has increased considerably, which means the emergence of a multitude of new radiation sources.
There is also a problem of possible electromagnetic interference affecting IoT networks that occurs in the access between sensors and access points (AP). When it comes to LoRa, two sources can be identified, LoRa signals and other signals that use the spectrum. In the first case, it occurs during the simultaneous transmission of two or more LoRa devices with the same transmission parameters, function that defines the chirp signal, bandwidth and spreading factor. In this case, the individual chirp signals would not be mutually orthogonal, making it impossible to differentiate between the transmissions at the receiver. In the second case, as these signals are from sources outside LoRa, they become even more unpredictable and more difficult to control.
As mentioned earlier, LoRa is based on CSS technology where chirps are used to transmit information. The spreading factor is the variable that controls the chirp rate and in turn the data transmission speed, which varies between SF7 and SF12. Thus, for higher spreading factors, we have higher coverage distances because the processing gain is increased and the data rate decreases, allowing us to receive a signal with fewer errors compared to a lower factor. This factor also affects the ToA, which increases as the SF increases and so does the probability of collisions. Another very important factor that is affected by SF is battery life, which in these types of networks is essential to consider and which, when larger SFs are used, increases transmitter uptime and in turn reduces battery life. By being able to manipulate this factor, we can design a network that can adapt to various end device usage scenarios. Another feature of this factor is traffic control, which is possible due to its orthogonality, allowing modulated signals with different spreading factors that are on the same frequency at the same time not to interfere with each other.
4.1. Collisions and Interference in LoRaWAN
In LoRaWAN, the spreading factor can cause two types of interference: intra-SF interference and inter-SF interference. Detailing:
- ▪
Intra-SF interference may occur when more than one end-devices transmit with the same SF on the same radio resource (bandwidth and channel frequency) and overlap in time
and frequency. A received signal can be demodulated properly if the Capture effect happens [
11].
- ▪
Inter-SF interference may occur when transmissions using different SFs overlap in time and frequency. The signals with a lower SF (higher data rate) can interfere with the signals with a higher SF (lower data rate), leading to packet loss [
11].
In LoRaWAN, frames collide due to various factors. A collision can be said to occur when two frames appear at the same time and the receiver is unable to process them or the channel is busy, and a sender sends a frame. Due to the time delay between sending and receiving the frame, a problem is created in accessing the medium in communication networks. When collisions occur in wireless networks, the information sent in these frames will collide and mix resulting in noise, so that it cannot be recovered unless the receiver can filter out the desired information. In cases where this filter doesn’t exist, the sender needs to resend the information until it is successfully delivered, which causes a major problem for the network when thinking on a large scale. However, there are various techniques for dealing with this problem, some of which select a random resend time when collisions are detected, others which test the medium to check that the receiver is listening and free before transmitting.
CSS allows packets with different SFs to be transmitted simultaneously on the same channel without interfering with each other, a feature known as orthogonality. However, this orthogonality is not perfect in real-world conditions, and packets with different SFs can interfere with each other under certain circumstances, leading to packet loss.
Some factors that can cause collisions and packet loss:
- ▪
Timing: If two packets with different SFs arrive at the receiver at the same time, they can interfere with each other and cause a collision.
- ▪
Power: If a packet with a lower SF (which means it’s transmitted with higher power) is received at the same time as a packet with a higher SF (lower power), the stronger signal can drown out the weaker one, causing the packet with the higher SF to be lost (.
- ▪
Doppler Effect: The Doppler effect can cause shifts in the frequency of the received signals, which can disrupt the orthogonality between different SFs and lead to packet collisions.
In our study, since both devices, end node and gateway, are not on movement, doppler phenomena doesn’t apply.
So, while LoRa technology is designed to minimize packet collisions and loss using different SFs and CSS modulation, it’s not immune to these issues.
Also, in LoRaWAN, frame collisions can occur when several packets overlap in time and use the same sending parameters, such as SF, bandwidth, and carrier frequency. When many devices use the same configuration, the probability of a collision is higher. In addition, the selection of SF and transmission power influences the coverage area and, due to signal attenuation and distance, some packets might not collide. The probability of packet collisions is also affected by the periodicity of the transmission size and the size of the data.
Packet loss in LoRaWAN can have several impacts:
- ▪
Data Integrity: Packet loss can lead to incomplete or incorrect data being received, which can affect the integrity of the data. This is particularly problematic in applications where accurate data is critical, such as health care applications.
- ▪
Network Efficiency: Packet loss can reduce the efficiency of the network. When packets are lost, they often need to be retransmitted, which uses additional network resources and can lead to congestion.
- ▪
Latency: Packet loss can increase latency, as lost packets need to be detected and retransmitted. This can be problematic in applications that require real-time data, such as control systems.
- ▪
Application Performance: Depending on the application running on top of the LoRaWAN, packet loss can have varying degrees of impact. For example, in a temperature monitoring application, occasional packet loss might be tolerable, but in a fire alarm system, every packet is critical.
Retransmission of lost packets can also increase energy consumption, which is a significant concern in IoT networks where devices are often battery-powered and expected to operate for long periods without recharging.
To mitigate the impact of packet loss, LoRaWAN often employ various strategies such as error correction codes, packet acknowledgment schemes, and Adaptive Data Rate (ADR) mechanisms. However, it’s important to note that no network can eliminate packet loss, and the goal is often to manage it to an acceptable level given the specific requirements of the application and network.
4.2. MAC Protocols
One of the main topics of our project is to study collisions in LoRa communications, so medium access protocols are essential to understanding how they work and in which scenarios they occur. Medium access protocols are protocols that operate at the Medium Access Control (MAC) layer and allow several users to access a shared network, with the aim of optimizing transmission time and minimizing collisions (
Figure 12).
These protocols can be categorized as random and controlled, and in this experimental study we will study random protocols and specifically Pure ALOHA. Among some of the main characteristics of a randomized protocol are that it does not have a time restriction for sending data (devices can attempt to transmit whenever they have data to send, without waiting for specific time slots) and the number of active stations transmitting data is not fixed. Multiple stations will contend for access to the shared communication channel.
4.2.1. ALOHA Protocol
In this experiment we’re going to use an end node device that implements the ALOHA access protocol, using the LMIC libraries. The LMIC library provides a complete LoRaWAN Class A and Class B. This library is intended to be used with plain LoRa transceivers, connecting to them using SPI (Serial Peripheral Interface) protocol. In particular, SX1276 LoRa transceiver.
ALOHA is a random multiple access protocol which, to solve the problem of collisions, implements the logic of transmitting a packet immediately, without any detection of the medium (for example CSMA), and if no ACK is returned, a retransmission will be made after a random waiting time. There are two variants of this protocol, Pure ALOHA [
36] and Slotted ALOHA [
37].
The version of the protocol that is now called Pure ALOHA is a simplified version of the original ALOHAnet. This protocol works on the basis that if there is data to be sent, it is sent and if, while transmitting, data is received from another station, a collision has occurred. In this scenario, all the stations will try to retransmit the later one. It should be noted that as this protocol does not detect the availability of the medium, there will be collisions and therefore the need for retransmissions, which means that ALOHA cannot utilise the full capacity of the communication channel. Therefore, the most important aspect of this protocol that determines its quality and efficiency is the backoff scheme chosen.
For this to be efficient, a scheme must be chosen which aims to achieve maximum throughput, which adapts easily to changes in traffic intensity and the number of active stations, and which can be applied to both Pure ALOHA and Slotted ALOHA. Let’s see some differences between them:
Pure ALOHA:
Allows any station to transmit data at any time without synchronization.
Collisions occur, and colliding frames are destroyed.
Feedback informs stations if their frames were successfully transmitted.
Maximum Efficiency: 18.4%
Slotted ALOHA:
Divides time into discrete intervals called slots, each corresponding to a frame.
Stations synchronizes transmissions and transmit data only at the beginning of each slot.
This approach reduces collisions and improves overall efficiency compared to unslotted (Pure) Aloha.
Maximum Efficiency: 36.8%
Resuming, in Pure Aloha, the higher collision probability leads to lower efficiency compared to Slotted Aloha. Slotted Aloha’s synchronization reduces collisions and improves overall performance of the network.
LoRaWAN is very similar to Pure ALOHA, but contrary to ALOHA it allows a variable packet length. Also, another (very important) difference, Pure ALOHA detects collisions after transmission and uses a simple retransmission strategy, while LoRaWAN employs a spread spectrum technique, which reduces the likelihood of collisions by spreading the signal across a wide frequency range. This will lead also to a bigger energy efficiency compared with Pure ALOHA (lesser the retransmissions, less need of spending energy) allowing battery-powered devices to operate for extended periods.
5. Results and Discussion
In this section we will describe the specific experimental environment and methods and provide a discussion of the results.
5.1. Hardware Used in this Experimental Study
The hardware used (
Figure 13) was: LG02 Dual Channels LoRa Gateway [
22], LoRa Bee SX1276 [
38] and Arduino UNO REV3 [
39].
The LoRa Bee module consists of an SX1276 transceiver, which allows the user to send data. This module enables transmission in multiple modes, working at a frequency of 868 MHz, thus supporting the LoRa networks spread spectrum technology and supporting I/O voltage values of 3.3V. The Sensitivity of this module can be seen in
Table 3.
The LoRa Bee module was working in a class A operational mode (base class for all LoRa devices). Class A devices support bi-directional communication, but the downlink (server to device) communication must follow an uplink (device to server) communication from the device. This means the server can only send data to the device when it’s expecting to receive it, which is a short window after it sends data. Some key characteristics of a Class A end device:
- ▪
Uplink Transmission: A Class A device can send an uplink message at any time. The uplink slot is scheduled by the end device itself based on its need.
- ▪
Downlink Transmission: Once the uplink transmission is completed, the device opens two short receive windows for receiving downlink messages from the network. There is a delay between the end of the uplink transmission and the start of each receive window, known as RX1 Delay and RX2 Delay, respectively.
- ▪
Low Power Consumption: Class A end devices have very low power consumption. Therefore, they can operate with battery power. They spend most of their time in sleep mode and usually have long intervals between uplinks.
- ▪
High Downlink Latency: Class A devices have high downlink latency, as they require sending an uplink to receive a downlink.
The LoRa Bee module has been connected to the Arduino (SPI connection), enabling long-distance communication, and guaranteeing good connection stability and consistency. It has encryption algorithms that prevent data from being intercepted and compression algorithms that allow small data to be transmitted, making the process faster and more efficient, thus providing good sending reliability.
The LG02 is a two-channel LoRa Gateway. It allows the LoRa network to be connected to Wi-Fi, Ethernet, 3G and 4G. This gateway can support the LoRaWAN protocol and uses the same transceiver module (SX1276) to communicate with the node. The computational design of the LG02 is done using Linux, which allows the LoRa to work in full duplex LoRa mode and increase communication efficiency.
The LG02 gateway can support various modes, such as: LoRa repeater mode, MQTT mode, TCP / IP client mode, TCP / IP server mode. This equipment is often used to extend the signal to other devices on a LoRaWAN or Wi-Fi network.
The LoRa gateway has been registered and configured in the The Things Network (TTN) [
41], as has the end device (Arduino with LoRa Bee).
5.2. Experimental Test Scenarios
In our study we have created a scenario of inter-SF interference, transmitting sequentially packets of different sizes and different SFs, (pseudo) randomly. The goal was to create a real scenario of having several devices transmitting different types of information at different distances in a way that packets could overlap, leading to a scenario of high probability of packet losses. Different fading propagation conditions were also created tested in a way that we could study the implication of the signal strength (evaluated by RSSI) in the reliability of our link for this scenario conditions, and the implication of possible SIR reduction when comparing the LOS and in a the NLOS scenarios (leading to an increase in probabilities of inter-SF interference). The impact of the payload size on the choice of the best spreading factor for each of the conditions tested, was also analyzed.
We strategically selected positions for both the gateway and the LoRa module to evaluate various factors affecting our communication link. These factors included vegetation, obstacles, building features, distance between the gateway and module, and line-of-sight (LOS) versus non-line-of-sight (NLOS) connections at different distances.
Our testing approach involved the following:
By analyzing these scenarios, we aimed to understand how distance, payload size, and interference affect LoRa packet transmission for the several SFs tested. We also compared LOS and NLOS scenarios to assess signal quality and strength.
5.3. LOS Results
In this first scenario, the configurations used are summarized in
Table 4.
We began by studying the influence of the payload size for each SF on the received signal strength (where RSSI indicates the level of the received signal strength), and the relationship of a given chosen SF (with a certain payload size) in ToA. The gain of the antenna of the transceiver SX1276 was 1.5 dBi and for the LG02 the same.
Figure 14,
Figure 15 and
Figure 16 show the direct results taken from measurements under these conditions. To note that from the 10 packets sent, some of them had very similar values, that’s why some “dots” are not seen.
As expected, the larger the SF used, the greater its ToA (symbol time is directly proportional to SF and the higher the symbol time the higher the ToA).
In terms of RSSI, we can see that, for the same distance, different SFs, and payload sizes we have at:
- ▪
20m: Highest value for Sf=7 with 14 Bytes (-63 dBm). Lowest for (also) SF=7 and 51 Bytes (-91 dBm).
- ▪
40m: Highest value for SF=9 with 51 Bytes (-74 dBm). SF=12 with 51 bytes also achieves a good result at this distance (-76 dBm). Lowest for SF=7 with 51 Bytes (-106 dBm). Yet this value it’s just for one packet. In all the other 9 the worst value was -89 dBm.
- ▪
60m: Highest value for SF=7 with 32 Bytes (-82 dBm). Lowest for both SF=9 with 12 and 32 Bytes (-106 dBm).
It’s revealing that the payload size has quite an impact on the RSSI. At 20m and for the same spreading factor, SF=7, having a difference of 28 dB (-63-(-91) =28) between the best packet (14 bytes) and the worst (51 bytes) it’s quite a lot. The best values for SF=7 and 14 Bytes are not so different (-63 dBm) of the best values of SF=7 and 51 Bytes (-74 dBm) but the worst packets of each payload size can be 23 dB (-68-(-91) = 23) down, for the worst case.
Looking for the distance of 20 meters and considering payloads with just 14 bytes, the SF=7 at 20 meters has the best performance, while for 32 and 51 bytes the SF=9 would be the better choice.
In the distance of 40 meters and making the same considerations the SF=7 will have better performance for payloads sizes of 14 bytes while for packets with 32 and 51 bytes, SF=9 perform better.
Looking for the distance of 60 meters we have some mixed results. For 14 bytes SF=7 and 9 are quite similar (with a slightest advantage for SF7), while for 32 and 51 bytes, SF=7 performs better.
Considering just each one of the spreading factors, for the 3 distances tested and for the different payload sizes we achieved the following results:
- ▪
SF7 has the best result of RSSI for 14 bytes at 20 meters (-63 dBm) and the worst for 51 bytes at 60 meters (-95 dBm).
- ▪
SF9 has the best result for 32 bytes at 20 meters (-67 dBm) and the worst for 32 bytes at 60 meters (-106 dBm). Yet this value it’s just for one packet while the worst of the other 9 packets was -96 dBm.
- ▪
SF12 has the best result for 20 meters (-73 dBm) and payload of 51 bytes and the worst for 14 bytes at 60 meters (-106 dBm). Yet, 8 of the 10 packets were higher than -102 dBm.
From here we can consider that SF7 perform quite well for the shortest distance (20 meters) and for the smallest packet sizes tested (14 bytes), while SF9 at 20 meters and 40 meters and for the packets size of 32 and 51 bytes it’s the best option. SF12 for the longest distance (60 meters) and for the smallest packet (14 bytes) have the worst performance.
Some more insights: Among the several distances tested, the difference between the highest value (-63 dBm for SF=7 (14 Bytes) at 20 meters) and the lowest (-106 dBm for SF=12 (14 bytes) at 60 meters) is of 40dB, which reveals quite a big difference between this two different SFs (7 and 12) and makes us consider the right choice of the SF for this conditions critical (e.g the SF7 for 60m have the his highest value=-82 dBm (at 32 bytes) and the lowest -95 dBm (at 51 bytes) . And in this case, we have a difference of 13 dB.
On other hand and considering that at different distances, different SFs might be sending packets received by the gateway, inter-SF interference must be considered. If we consider that for 20 meters an SF7 will be the logical choice, signals with an RSSI between -63 and -68 dBm would be arriving to the gateway. If a more distant node with SF9 is sending packets to the same gateway, in our case we would have values of RSSI between -77 dBm and -83 dBm for 40 meters or -86 to -96 dBm in the case of the same SF9 to 60 meters. Observing the values in
Table 2, if a desired packet with SF9 is arriving at the same time as a packet with SF7, for the SF9 packet to be demodulated successfully, a separation of at least 27 dB would need to be guaranteed between the RSSI signals from the two different FS. And it’s far from that. Thus, we are facing a scenario of probable inter-SF interference and packet loss.
Next, we have studied, more in particular, the impact of the choice of SF for different file sizes on their ToA. The results obtained were in line with the expectations, and with increasing SF, ToA increases considerably. In relation to the impact of file size, ToA is also greater and grows proportionally, as can be seen in
Figure 17. A very important factor in the choice of SF is the fact that the larger the SF used, the greater the ToA, (which can lead to more collisions as the channel is occupied for longer).
Figure 18,
Figure 19 and
Figure 20 makes a graphical resume of what has been said about the values of RSSI for different SFs, payload sizes and distances. RSSI according to different data size and different distances for SF7/9/12.
In the case of SF7 (
Figure 18), we can see that for 20 meters, as the file size increases, the quality of the connection decreases, since the power received is lower. For the 40- and 60-meters cases, the connection quality is lower than for 20 meters, but the values of RSSI are more stable.
In SF9 (
Figure 19), we obtained the more balanced results for the three scenarios tested since the quality of the connection is very stable This could be a viable solution for a scenario where you want to send packets of various sizes and you need signal stability.
For SF12 (
Figure 20), at distances of 20 and 40 meters, the quality of the connection improves as the file size increases and its values converges at 51 bytes, while at 60 meters the value oscillates between -98 and -90 dBm.
Thus, and reaffirming what was said before, given that for medium-distance connections (40 meters), the use of SF9 is ideal and with the variation in file size there is only an oscillation of at least. In the case of the SF7 measurement, the impact of varying the file size is noteworthy, even if for larger files (and distances) the quality of the connection doesn’t varies much, which can lead to very interesting optimizations. SF12 is also quite stable for the two bigger file sizes tested. We were also able to conclude that larger SFs can handle larger files.
Then, we studied the possibility of packet loss for various values of SF, payload sizes and distance (
Figure 21). And even in LOS scenario, for 60 meters, SF=12 and the payload of 51 bytes, we can already observe packet loss due to the conditions described in the beginning of the section 5.2. The test was repeated several (5) times always with the same result. All the tests done for SF12, and the three different payload sizes were repeated 5 times, so in total 50 packets for each data size were sent and, in the end, we observed that for SF12 and 51 bytes at the distance of 60 meters, we lost one packet in 10, leaving to a PDR or 90%. The long time on air of packets using SF12 and a 51-byte payload increased the probability of collisions with other packets transmitted with different SFs and payload sizes (with lower ToA), thus leading to connection degradation and loss of packages for transmissions with these characteristics.
5.4. NLOS Results
After carrying out the measurements for the previous scenario and stablishing a pattern we have now checked the impact of obstacles in the quality of our link and the possibility of also having some number of packets lost for the same SFs and payload sizes. The distance tested will only be one (60 meters) of the previous three. To do this, we visualized two types of scenarios: sparse vegetation and a building (concrete wall) between the module and the gateway. The configurations of
Table 5 resume the settings.
As in the previous scenario, we began by studying the influence of ToA on the RSSI of the payload size for each SF on the received signal strength of the connection, considering the size of the files sent and the relationship of a given chosen SF in ToA . Comparing
Figure 22 and
Figure 23 with the previous figures, we can see that, the fact that there is no line of sight does not alter the ToA values of the connection. As far as RSSI is concerned, the values obtained in the case of the NLOS with vegetation, the best performance at this distance and for the three packets sizes it’s the SF7, with the highest value being -76 dBm for 32 bytes and the worst -91 dBm for the case of the 51 bytes. This values, are all better than the ones recorded previously, for the same distance at 60 meters in LOS, and for the three different packets sizes (with SF7).
However, the building concrete wall will introduce a greater decay in the quality of the connection than all the previous situations study until now.
And analyzing the results for the case of the buildings concrete wall, we can see that for the three packet sizes, both the transmission with SF7 and the transmission with SF12 have very similar values, but with SF12 having the smallest variance between the highest values and the lows for the three packet size situations. And choosing the SF12 spreading factor could be the best option in these cases. For SF12, the highest value is -94 dBm (51 bytes) and the lowest is -102 dBm (14 bytes), thus showing very robust behavior under these conditions. For SF7, the highest value is -92 dBm (for the 32 byte packet) while the worst is -103 dBm (also for 32 bytes). This stability of SF12 values is also an advantage, if we think about the possibility of inter-SF interference, because a connection with the latter’s characteristics is less likely to have inter-SF interference (arising from communications with different SF), than one with more dispersed values, thus resulting in an advantage for the designer.
Next, we looked, more in particular, at the effect of SF on ToA for various file sizes. As mentioned earlier, ToA only depends on the SF used and the size of the file (it also depends on the frequency and BW used, but these are fixed values in this scenario) being sent, so as the parameters are the same as in the LOS scenario, there was no variation in ToA values (
Figure 24).
As in the previous scenario,
Figure 25 (vegetation as an obstacle) and
Figure 26 (concrete wall of a building as an obstacle) makes a graphical resume of what has been said about the values of RSSI for different SFs and payload sizes at 60 meters. It compares the impact on connection quality of varying file sizes at this distance, using the average value of the 10 packages sent. It is important to emphasize that in the case of the building as an obstacle, SF9 performed worse than SF12.
Finally, the number of packets sent and received in both obstacle scenarios was analyzed. In the case of the vegetation obstacle (
Figure 27) there was only the loss of one packet in SF12 for a 51 byte file. To resolve any doubts, the test was repeated 5 times, with a total of 50 packets sent. And the result was always the same.
With the concrete wall of the building has an obstacle (
Figure 28), there was also the loss of one packet in SF12 and, this time, for all file sizes. As in the LOS situation and the previous one, we decided to send more (5 times) packets, for a total of 50, and the result was the same. So, if by one hand the stability of values could be an advantage for the SF12 choice, on the other hand we had lost packets we experienced packet loss, and in situations that it’s important not to lose packets (e.g., Surveillance systems, Energy monitoring and management - smart grids, Autonomous vehicles, Monitoring of electrical signals) the option for the SF7 will be the correct one. Considering the problem of inter-SF interference, we see that, for the three SFs tested and, in a case, where a gateway may be receiving communications packets from different SFs with different packet sizes (at the same distance), the RSSI values are much closer together than in the case of the LOS scenario, making this case the worst for the SIR (lowest).
Packet loss in the case of the NLOS (concrete wall) scenario of SF12 and 51 bytes was expected. Considering that previously for the case of payload with 51 bytes and SF12, in the LOS and NLOS (with vegetation) scenarios, it had already been verified, the loss of a packet in this case of the concrete wall also happened. The long ToA led to this.
Furthermore, in this latter scenario, signals must penetrate, diffract, or reflect around obstacles (such as concrete walls or objects), which can cause multipath propagation (in addition to normal attenuation). Signals will reflect off surfaces and arrive at the receiver at different times. If we think that in addition, we have a long ToA (which for the case of SF12 and the three data sizes, varies from 1155 ms (14 bytes) to 2465ms (51 bytes)) we will most likely cause destructive interference to the signals and increase thus the probability of collisions and packet loss for the case of SF12 and the other two data sizes (14 and 32 bytes), thus leading to a result in the PDR, for each one, of 90%.
6. Conclusions
This study aimed to investigate the impact of collisions and interference in LoRaWAN networks, specifically focusing on transmission periodicity and payload sizes. We used measuring tools such as RSSI, ToA, and PDR to test the reliability of LoRaWAN links in real-world scenarios. Additionally, we validated the effectiveness of these measurement tools in ensuring a good quality of the LoRa signal.
RSSI was one of the tools that provided a measure of our links reliability. Initially, we established a reference by determining the values of RSSI, ToA, and PDR in a LOS scenario, for various SFs, payload sizes, and distances. Subsequently, we conducted experiments at a 60 meters distance, but in a NLOS environment (with vegetation and a concrete wall).
Ultimately, PDR offered a more realistic assessment of link reliability. Although RSSI consistently indicated good or at least acceptable signal strength, we still observed packet losses due to specific conditions: inter-SF interference, fading, shadowing, multipath effects, and extended ToA (especially for SF12 with varying packet sizes). These experiments underscore that selecting an appropriate SF for a given link is not straightforward and designers should do field tests to validate their choices and optimize their network(s).
Additionally, and due to our short distance scenario, close range RSSI values revealed established probabilities of interference and collisions due to inter-SF interference. This limitation will affect scalability for end nodes positioned very close to gateways, as they interfere with more distant nodes.
In this context of an inter-SF interference environment, we conclude that the length of packet payloads and the choice of SFs will impact the ToA, leading to packet loss (NLOS scenario). That’s because when dealing with multiple devices located near the gateways, the combination of different SFs and varying packet lengths leads to increased latency and longer ToA. As a result, the risk of packet loss becomes more significant, especially if the SIR is low.
For the type of networks with devices far from gateways, addressing higher ToA values (e.g., SF12) also poses a significant risk of packet loss due to latency. This limitation, either to short or long distances, will affect scalability, especially in NLOS scenarios, such as those involving buildings.
This way, a balance between emitted and received power will, therefore, be critical in a large network, especially at the two “extreme” points. This balance is important because ADR don’t solve everything. Ensuring this balance helps prevent the nearest nodes from suffering from inter-SF and intra-SF interference from the farthest nodes, and vice versa. This balance also mitigates the issues of latency and poor signal strength experienced by the farthest nodes; this is a good way for future work.
That’s why in a next study we intend to increase the distances and expand the network number of devices. The further extension of this scenarios, already proposed, will leave to further validations of this tools in all kinds of scenarios. This will lead us to also test the scalability of a network with several end nodes and different SFs at greater distances and aspects like collisions and interference in the performance of does networks.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Andri Rahmadhani and Fernando Kuipers (Del. University of Technology), “Understanding collisions on LoRaWAN”, Conference: the 12th International Workshop, pag.1, 2018.
- Oracle - “What is IoT?”. Available online: https://www.oracle.com/internet-of-things/what-is-iot/ (accessed on 21/03/2024).
- Abbas Shah Syed, Daniel Sierra-Sosa, Anup Kumar and Adel Elmaghraby, “IoT in Smart Cities: A Survey of Technologies, Practices and Challenges”, Smart Cities 2021, 4(2), 429-475.
- Malik, Hassaan; Anees, Tayyaba; Faheem, Muhammad; Chaudhry, Muhammad Umar; Ali, Aatka; Asghar, Muhammad Nabeel, “Blockchain and Internet of Things in smart cities and drug supply management: Open issues, opportunities, and future directions”, October 2023. Available online. https://core.ac.uk/reader/589149010, (accessed on 19/07/2024).
- Leeban Moses, Perarasi Sambantham, Muhammad Faheem, Shoukath Ali, Arfat Ahmad Khan, “Joint delay and energy aware dragonfly optimization-based uplink resource allocation scheme for LTE-A networks in a cross-layer environment”, January 2024. Available online, The Journal of Engineering 2024(2):12353, (accessed on 19/07/2024). [CrossRef]
- Rajkumar Buyya, Satish N. Srirama, Redowan Mahmud, Mohammad Goudarzi, Leila Ismail, and Vassilis Kostakos, “Quality of Service (QoS)-driven Edge Computing and Smart Hospitals: A Vision, Architectural Elements, and Future Directions”, 2021. Available online. https://arxiv.org/pdf/2303.06896v1, (accessed on 19/07/2024).
- Semtech Corporation, “LoRa® and LoRaWAN®: A Technical Overview”, December 2019 (accessed 17/05/2024).
- Davide Magrin, Martina Capuzzo, Andrea Zanella, “A Thorough Study of LoRaWAN Performance Under Different Parameter Settings”, IEEE Internet of Things Journal, Vol: 7, Issue: 1, January 2020. Available online. https://ieeexplore.ieee.org/document/8863372, (accessed 20/05/2024). [CrossRef]
- Eugen Harinda, Andrew J. Wixted, Ayyaz-UI-Haq Qureshi, Hadi Larijani, and Ryan M. Gibson, “Performance of a Live Multi-Gateway LoRaWAN and Interference Measurement across Indoor and Outdoor Localities”, Computers 2022, 11(2), 25. Available online. https://www.mdpi.com/2073-431X/11/2/25, (accessed 25/05/2024). [CrossRef]
- Prachi V. Wadatkar; Bharat S. Chaudhari; Marco Zennaro, “Impact of Interference on LoRaWAN Link Performance”, IEEE Xplore, 2019 5th International Conference On Computing, Communication, Control And Automation (ICCUBEA), September 2019. Available online. https://ieeexplore.ieee.org/abstract/document/9128417, (accessed 25/05/2024).
- Poonam Maurya, Aatmjeet Singh and Arzad Alam Kherani “A review: spreading factor allocation schemes for LoRaWAN”, May 2022, available online. https://link.springer.com/article/10.1007/s11235-022-00903-4, (accessed on 17/05/2024).
- Aamir Mahmood, Emiliano Sisinni, Lakshmikanth Guntupalli, Raúl Rondón, Syed Ali Hassan, Mikael Gidlund, “Scalability analysis of a LoRa network under imperfect orthogonality”, August 2018, IEEE Transactions on Industrial Informatics, vol. 15, issue 3, p. 1425-1436. Available online. https://ieeexplore.ieee.org/abstract/document/8430542, (accessed on 18/05/2024). [CrossRef]
- Antoine Waret, Megumi Kaneko, Alexandre Guitton, Nancy El Rachkidy, “LoRa Throughput Analysis with Imperfect Spreading Factor Orthogonality”, March 2018. Available online. https://arxiv.org/pdf/1803.06534, (accessed on 16/05/2024). [CrossRef]
- Daniele Croce, Michele Gucciardo, Stefano Mangione, Giuseppe Santaromita, Ilenia Tinnirello, “Impact of LoRa Imperfect Orthogonality: Analysis of Link-level Performance”. Available online: https://www.researchgate.net/publiction/319486965_Impact_of_Spreading_Factor_Imperfect_Orthogonality_in_LoRa_Communications, (accessed 17/05/2024).
- Yuya Ishida, Daiki Nobayashi, Takeshi Ikenaga, “Experimental Performance Evaluation of the Collisions in LoRa Communications”, 2018 International Conference on Computational Science and Computational Intelligence (CSCI).
- Jetmir Haxhibeqiri, Floris Van den Abeele, Ingrid Moerman and Jeroen Hoebeke, “LoRa Scalability: A Simulation Model Based on Interference Measurements”, Sensors 2017, 17(6), 1193. [CrossRef]
- Bor, M.C.; Roedig, U.; Voigt, T.; Alonso, J.M.; “Do LoRa low-power wide-area networks scale?”, In Proceedings of the 19th ACM International Conference on Modeling, Analysis and Simulation ofWireless and Mobile Systems, Valletta, Malta, 13–17 November 2016; pp. 59–67.
- Lavric, A.; Petrariu, A.I.; Coca, E.; Popa, V.; “LoRa traffic generator based on software defined radio technology for LoRa modulation orthogonality analysis: Empirical and experimental evaluation”. Sensors 2020, 20, 4123. [CrossRef]
- Sokratis Kartakis, Babu D. Choudhary, Alexander D. Gluhak, Lambros Lambrinos, Julie A. McCann, “Demystifying Low-Power Wide-Area Communications for City IoT Applications”, WiNTECH ‘16: Proceedings of the Tenth ACM International Workshop on Wireless Network Testbeds, Experimental Evaluation, and Characterization, October 2016.
- Marco Centenaro, Lorenzo Vangelista, Andrea Zanella, and Michele Zorzi, “Long-Range Communications in Unlicensed Bands: the Rising Stars in the IoT and Smart City Scenarios”, IEEE Wireless Communications, 23(5), October 2015. [CrossRef]
- Sanchez-Iborra, R.; Sanchez-Gomez, J.; Ballesta-Viñas, J.; Cano, M.-D.; Skarmeta, A.F. , “Performance evaluation of LoRa considering scenario conditions”. Sensors 2018, 18, 772. [CrossRef]
- Brecht Reynders, Sofie Pollin, “Chirp Spread Spectrum as a Modulation Technique for Long Range Communication”, IEEE Symposium on Communications and Vehicular Technology (SCVT), November 2016. Available online. https://ieeexplore.ieee.org/document/7797659, (accessed on 19/07/2024).
- Qingjie Guo, Fengxu Yang and Jianming Wei, “Experimental Evaluation of the Packet Reception Performance of LoRa”, Sensors 2021, 21(4), 1071. [CrossRef]
- Semtech Corporation, “AN1200.22 LoRa™ Modulation Basics”, May 2015.
- LoRa Alliance. Available online: https://lora-alliance.org/wp-content/uploads/2020/11/what-is-lorawan.pdf, (accessed 9/4/2024).
- Semtech. Available online: https://Semtech Blog: LoRa Delivers Internet of Things Capabilities Worldwide, (accessed on 17/05/2024).
- Rakwireless. Available online: https://news.rakwireless.com/lora-css-vs-lora-fhss/, (accessed on 17/05/2024).
- K. Olsson and S. Finnsson, Exploring LoRa and LoRaWAN: A suitable protocol for IoT weather stations? Master’s Thesis, Department of Electrical Engineering, Chalmers University of Technology, Sweden 2017.
- T. Elshabrawy e J. Robert, “Evaluation of the BER Performance of LoRa Communication using BICM Decoding”, 2019 IEEE 9th International Conference on Consumer Electronics (ICCE-Berlin), p.162-167, 2019.
- LoRa. Available online: https://lora.readthedocs.io/en/latest/, (accessed 18/5/2024).
- The Things Network. Available online: LoRa Physical Layer Packet Format | The Things Network, (accessed 17/5/2024).
- The Things Network. Available online: https://www.thethingsnetwork.org/docs/lorawan/spreading-factors/, (accessed 17/5/2024).
- Courjault, J.; Vrigenau, B.; Berder, O.; Bhatnagar, M. A Computable Form for LoRa Performance Estimation: Application to Ricean and Nakagami Fading. IEEE Access 2021, 9, 81601–81611. [CrossRef]
- Dias, C.F.; Lima, E.R.D.; Fraidenraich, G. Bit error rate closed-form expressions for LoRa systems under Nakagami and Rice fading channels. Sensors 2019, 19, 4412. [CrossRef]
- Claire Goursaud, Jean-Marie Gorce, “Dedicated networks for IoT : PHY / MAC state of the art and challenges”. Available online https://hal.science/hal-01231221, (accessed 18/05/2024).
- N. Abramson and F.F. Kuo, Eds., Computer-Communication Networks, Englewood Cliffs, NJ: Prentice-Hall, Chapter 13, 1973.
- R. Metcalfe, Steady state analysis of a slotted and controlled ALOHA system with blocking, Proc. 6th Hawaii Int. Conf. Sys. Sci., January 1973.
- Dragino. Available online: https://www.dragino.com/ (accessed on 9/4/2024).
- Arduino. Available online: https://www.arduino.cc/ (accessed on 11/3/2024).
- Semtech Corporation. Available online: https://www.semtech.com/products/wireless-rf/lora-connect/sx1276#features, (accessed 09/04/2024).
- The Things Network. Available online: https://www.thethingsnetwork.org/, (accessed on 23/2/2024).
Figure 1.
Three scenarios tested: first – left, second – center and third – right (extracted from [
15]).
Figure 1.
Three scenarios tested: first – left, second – center and third – right (extracted from [
15]).
Figure 2.
Lora Network (extracted from [
25]).
Figure 2.
Lora Network (extracted from [
25]).
Figure 3.
Graphical representation of an up-Chirp.
Figure 3.
Graphical representation of an up-Chirp.
Figure 4.
Graphical representation of a Down-Chirp.
Figure 4.
Graphical representation of a Down-Chirp.
Figure 5.
Representation of an up-chirp, where
B represents the Bandwidth and
Ts the symbol time (modified from [
29]).
Figure 5.
Representation of an up-chirp, where
B represents the Bandwidth and
Ts the symbol time (modified from [
29]).
Figure 6.
SF defines the number of bits that can be encoded by a symbol (at left an unmodulated signal and at right a modulated one) (modified from [
30]).
Figure 6.
SF defines the number of bits that can be encoded by a symbol (at left an unmodulated signal and at right a modulated one) (modified from [
30]).
Figure 7.
Bit rate as a function of SF.
Figure 7.
Bit rate as a function of SF.
Figure 8.
Bit rate according to SF and varying CR, for a bandwidth of 125 kHz.
Figure 8.
Bit rate according to SF and varying CR, for a bandwidth of 125 kHz.
Figure 9.
Bit rate to SF=7 and 12 and varying BW, for a CR of 4/5.
Figure 9.
Bit rate to SF=7 and 12 and varying BW, for a CR of 4/5.
Figure 10.
Fields of a LoRaWAN Data Message.
Figure 10.
Fields of a LoRaWAN Data Message.
Figure 11.
Structure of LoRa packet format with CR n ∈ {1..4}.
Figure 11.
Structure of LoRa packet format with CR n ∈ {1..4}.
Figure 12.
MAC protocol schematic (adapted from [
25]).
Figure 12.
MAC protocol schematic (adapted from [
25]).
Figure 13.
Hardware for experimental experience.
Figure 13.
Hardware for experimental experience.
Figure 14.
Influence of the payload size (for SF7) on ToA and on the RSSI (aggregated by payload size).
Figure 14.
Influence of the payload size (for SF7) on ToA and on the RSSI (aggregated by payload size).
Figure 15.
Influence of the payload size (for SF9) on ToA and on the RSSI (aggregated by payload size).
Figure 15.
Influence of the payload size (for SF9) on ToA and on the RSSI (aggregated by payload size).
Figure 16.
Influence of the payload size (for SF12) on ToA and on the RSSI (aggregated by payload size).
Figure 16.
Influence of the payload size (for SF12) on ToA and on the RSSI (aggregated by payload size).
Figure 17.
ToA according to SFs and data size.
Figure 17.
ToA according to SFs and data size.
Figure 18.
RSSI according to different data size and different distances for SF7.
Figure 18.
RSSI according to different data size and different distances for SF7.
Figure 19.
RSSI according to different data size and different distances for SF9.
Figure 19.
RSSI according to different data size and different distances for SF9.
Figure 20.
RSSI according to different data size and different distances for SF12.
Figure 20.
RSSI according to different data size and different distances for SF12.
Figure 21.
Send/Receive packets different SF and distances.
Figure 21.
Send/Receive packets different SF and distances.
Figure 22.
Influence of the payload size (for the three SFs) on ToA and on the RSSI (with vegetation).
Figure 22.
Influence of the payload size (for the three SFs) on ToA and on the RSSI (with vegetation).
Figure 23.
Influence of the payload size (for the three SFs) on ToA and on the RSSI (with building).
Figure 23.
Influence of the payload size (for the three SFs) on ToA and on the RSSI (with building).
Figure 24.
ToA according to SFs and data size in NLOS scenario.
Figure 24.
ToA according to SFs and data size in NLOS scenario.
Figure 25.
RSSI according to data size for different SFs, including vegetation.
Figure 25.
RSSI according to data size for different SFs, including vegetation.
Figure 26.
RSSI according to data size for different SF, including a concrete wall of a building.
Figure 26.
RSSI according to data size for different SF, including a concrete wall of a building.
Figure 27.
Send/Receive packets different SF and distances, including vegetation.
Figure 27.
Send/Receive packets different SF and distances, including vegetation.
Figure 28.
Send/Receive packets different SF and distances, including a concrete wall of a building.
Figure 28.
Send/Receive packets different SF and distances, including a concrete wall of a building.
Table 1.
Relationship between SF, Rs, chips per chirp and Rc, for a 125 kHz BW.
Table 1.
Relationship between SF, Rs, chips per chirp and Rc, for a 125 kHz BW.
SF |
|
Chips per chirp |
|
7 |
976,56 |
128 |
125000 |
8 |
488,28 |
256 |
125000 |
9 |
244,14 |
512 |
125000 |
10 |
122,07 |
1024 |
125000 |
11 |
61,04 |
2048 |
125000 |
12 |
30,52 |
4096 |
125000 |
Table 2.
SIR Margin for all combinations of SF – for the desired and interferer user (extracted from [
18]).
Table 2.
SIR Margin for all combinations of SF – for the desired and interferer user (extracted from [
18]).
Interferer SF |
7 |
8 |
9 |
10 |
11 |
12 |
Desired SF |
|
|
|
|
|
|
7 |
-6 |
16 |
18 |
19 |
19 |
20 |
8 |
24 |
-6 |
20 |
22 |
22 |
22 |
9 |
27 |
27 |
-6 |
23 |
25 |
25 |
10 |
30 |
30 |
30 |
-6 |
26 |
28 |
11 |
33 |
33 |
33 |
33 |
-6 |
29 |
12 |
36 |
36 |
36 |
36 |
36 |
-6 |
Table 3.
RF Sensitivity (dBm) of the SX1276 considering SF and BW [
40].
Table 3.
RF Sensitivity (dBm) of the SX1276 considering SF and BW [
40].
SF |
7 |
8 |
9 |
10 |
11 |
12 |
BW |
|
|
|
|
|
|
125 kHz |
−123 |
−126 |
−129 |
−132 |
−133 |
−136 |
250 kHz |
−120 |
−123 |
−125 |
−128 |
−130 |
−133 |
500 kHz |
−116 |
−119 |
−122 |
−125 |
−128 |
−130 |
Table 4.
LOS scenario settings.
Table 4.
LOS scenario settings.
SF |
7,9,12 |
Distance |
20, 40, 60 m |
Emitting Power |
8 dBm |
Frequency |
868.2 MHz |
Data size |
14, 32, 51 bytes |
Code Rate |
4/5 |
Bandwidth |
125 kHz |
Duty Cycle |
1% |
Time between messages |
1 s |
Table 5.
NLOS scenario settings.
Table 5.
NLOS scenario settings.
SF |
7,9,12 |
Distance |
60 m |
Emitting Power |
8 dBm |
Frequency |
868.2 MHz |
Data size |
14, 32, 51 bytes |
Code Rate |
4/5 |
Bandwidth |
125 kHz |
Duty Cycle |
1% |
Time between messages |
1 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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).