Keywords

1 Introduction

The interest and applications for Internet of Things has in recent years increased significantly. According to the forecast about IoT market from the global leaders such as Juniper Research, Research Nester, Cisco, Ericsson, Gartner, in just a couple of years tens of billions of different kind of “things” are estimated to be connected [1, 2]. Most of these devices will be deployed in WAN (Wide Area Network) solutions [3]. This introduce a demand for new communication standards that targets the key features needed to deploy the technology in society such as low power consumption and long range coverage. This led to the creation of LPWANs (Low Power Wide Area Network) which is designed for low bit rate long range communication [4]. The goal is to replace devices that today rely on cellular communications like GSM and 4G at a higher cost and power consumption with new ones that adapt this low bit rate communication style to provide battery lifetimes up towards 10 years while maintaining a communication range up to 30 Km under optimal circumstances.

Due to the LPWA technology being new and not thoroughly fleshed out together with being accessible and completely open to the public this paper will have a focus on measuring and evaluating one of these LPWAN technologies LoRa and its communication protocol LoRaWAN. Currently, the research on LoRa is very limited and mainly focused on how certain factors like temperature, humidity and precipitation affect the maximum range and battery life while the research on how a LoRa network actually performs and the research in this field is limited mostly by simulations and theories.

In this work we provide further insight over how performance of a LoRa network is affected by placement by showing signal quality, signal-to-noise ratios and packet loss in various environmental areas. By analyzing performance on the end-devices and gateways we hope to bring some light over how such kinds of systems should be set up to fit different use cases and also giving a hint to whether the technology is feasible given a specific use case.

2 Wireless Technologies for IoT

2.1 LPWAN Technologies

Currently, in the world a great variation of technologies is used for the IoT where each is made to fit a certain domain. For “smart homes” it fits Wi-Fi when possible and Bluetooth when not. A relatively new candidate, however, used for several home products is ZigBee which low-power and low-rang, it perfect fits for applications like home automation i.e. lighting, temperature, security and sensors. As distance increases the possibilities of using such technologies gets limited since both Wi-Fi and ZigBee are limited up to 100 m, so for products that require a higher range the cellular networks like GSM up to 5G are used, these however come at a heavy price in both licensing costs and battery lifetime [5]. The interest in adding this missing piece in radio communication technologies led to the creation of LPWANs. A comparison of the trade-offs in range and data rate for the various technologies can be seen on Fig. 1.

LPWAN or Low-Power Wide-Area Network is an umbrella term for technologies that focus on having very high power efficiency while maintaining a high transmission range to meet this goal a sacrifice in data rate is made. The goal of these technologies is to fill the niche of products that require long battery lifetime, have low duty cycles and require medium or long range [6]. Examples of such products can be agriculture and industrial sensors, “smart cities” applications such as traffic, trashcan and parking sensors. There are several variants of these LPWAN technologies such as LTE-M, SigFox, LoRa, Symphony Link, Ingenu RPMA, Weightless W, N and P, and NB-IoT.

Common features of LPWAN technologies are summarized in Table 1.

Table 1. High level comparison between different technologies competing in the LPWAN space.
Fig. 1.
figure 1

Data rate vs. range capacity of radio communication technologies.

Lora is a technology based on open protocol but limited to Semtech’s chips. It has low data rate that varies according to the SF and the bandwidth (27 kbps with SF = 12 and 500 kHz channel or 50 kbps with FSK). The LoRa uses Chirp Spread Spectrum (CSS) modulation when the signal is modulated by chirp pulses to increase resilience against interference, Doppler effect and multipath.

SigFox is not an open-protocol but one of the most developed. It is not limited to particular chips and the vendors can produce chips with SigFox compatible radios. SigFox is not cheap technology, it sells its network as a service. It is extremely narrow band and provide up to 30 km range. It has daily messages limit that depends on the contract you subscribed for. The maximum limit is then 140 messages in UL with a payload up to 12 bytes and 4 messages in DL with a payload of 8 bytes. These restrictions and business model shifted the interest to LoRaWAN that is considered more flexible and open.

LTE-M and NB-LTE (NB-IoT) from 3GPP group are part of LTE infrastructure. They use licensed spectrum and an LTE-based synchronous protocol and provide optimal QoS at the expense of cost.

Ingenu technology is open standard based on Random Phase Multiple Access (RPMA). It has high energy consumption that’s why is not so popular.

The Weightless standards has three types of protocols: Weightless-W, Weight–less-N and Weightless-P. Weightless-W and Weightless-P have bidirectional communication. Weightless-N was developed to increase the transmission range of Weightless-W, decrease data rate and reduce the power consumption. Weightless-N operates in Ultra Narrow Band (UNB) 800–900 MHz and provides only uplink communication.

2.2 LoRa and LoRaWAN

LoRa is a long-range wireless communications technology promoted by the LoRa Alliance. It operates on the license free ISM bands and uses Chirp Spread Spectrum (CSS) radio modulation technique on physical layer, and a MAC layer protocol LoRaWAN. Depending on the frequency band the LoRaWAN duty cycle can be 0.1%, 1% or 10% but recommended is less than 1%. Value of duty cycle is considered as delay between the successive frames sent by the end node. If the value is 1% the device will have to wait 100 times of the duration of the last frame before sending again in the same channel. Last document  [7] from LoRa Alliance specifies frequency and bandwidth parameters for different regions over the world. Also, document [8] describes all parameters required to the device communication on physical and MAC levels, the formats of messaging, explains how devices of different types should operate.

The payload of each transmission can range from 2 to 255 octets, and the data rate can reach up to 50 Kbps when channel aggregation is used. The maximum data rate varies according to the SF and the bandwidth. The spreading factor is a logarithm, in base 2, of the number of chirps per symbol, i.e. the number of bits encoded into each symbol. And a symbol is an instantaneous change in frequency. So, in an unique variation of frequency it is associated not only one bit, but more (e.g. in SF7 it is 7 bits). The chirp rate depends only on the bandwidth: the chirp rate is proportional to the bandwidth (one chirp per second per Hertz of bandwidth). Changing of spreading factor is a process in which we add more information, redundancy, to obtain a better receive sensitivity. The relationship between the data bit rate, sensitivity and chip rate for LoRa modulation can be observed in Table 2.

Table 2. Spread factor specification.

On the MAC layer LoRa uses the communication protocol LoRaWAN. So again, using the WiFi analogy, if LoRa is the WiFi connection, LoRaWAN is the IP protocol. It is intended primarily for wireless long battery time devices and targets key points of the Internet of Things such as mobility, localization and bi-directional communication. LoRaWAN [8] specifies three different types of end-devices to address the various needs of applications. Class A is bi-directional, Class B is bi-directional with scheduled receive slots and class C is bi-directional with maximal receive slots. Last type has the maximum power consumption because device is almost all time in open receiving mode.

LoRaWAN doesn’t support device-to-device communications, data can be transmitted only in way device-to-gateway, or vice versa. Device-to-device communication could be set up through gateway communication. The architecture of a LoRaWAN network is typically laid out in a star-of-stars topology where gateways act like bridges relaying messages between the end-point devices and a central network server. Devices in a LoraWAN network are remote objects that can range from anything between a thermometer to a geolocation based tracking system.

3 Related Work

According to [9] many of LPWAN technologies will have a share on the IoT market in the future as each of the technologies are more fit for different use cases where some focus more on a higher battery lifetime while others on maximum range and throughput. A comparison is made for various possible implementations of LPWAN such as smart farming which heavily favors the LoRa and Sigfox as they do not rely on cellular coverage while applications such as a terminal for retailers sale require low latency due to do not limit the number of transactions, in such cases a Narrow Band implementation more attractive but the power consumption is more.

The research of Centenaro in [10] describes how in 2009 led by the company Sigfox there was a huge interest for a new wireless long range and lower bit-rate technology compared to the commonly used GSM and 3G.

LPWAN technologies can suffer greatly at various environmental variables. This is shown by Cattani in [11] in their studies of how variables such as weather conditions, temperature, humidity affect the performance of an LPWAN solution. For example, increasing the temperature by 10 \(^\circ {\text {C}}\) will reduce the RSSI by 1 dBm. The decrease in signal strength caused by temperature change could in theory render a perfectly good LoRa link unusable.

This aspect is also mentioned by Wennerström [12] in their long-term study of meteorological affects where they show that in Uppsala, Sweden, the PRR can fluctuate more than 20% from day to night where a higher fluctuation is present during the dryer and hotter months June, July and August.

Another variable that can highly affect PRR is oversaturation of the network as there is a large risk for package collision when several devices transmit radio signals in the same time. This is shown by Ferre [13] in his mathematical theory and simulation of approximated packet loss. To avoid this congestion a specification was created with recommendation to limit duty cycles up to 1% for the EU bands that allows the device to transmit a signal for 1 time unit every 100 time units  [14] .

Petäjäjärvi in the article [15] evaluates a LoRa network performance when end-node devices are mobile which could be a potential use case. Their results indicate that moving at speeds exceeding 40 km/h causes the communication performance to deteriorate while speeds around 25 km/h the communication is relatively reliable. They discuss that this behavior can be caused by the doppler effect and that lower SF values could be less affected by it.

As LoRa networks are open for anyone to use and neighboring networks introduce interference. Thiemo Voigh [16] investigates these interferences and how they can be avoided using directional antenna or multiple gateways. First method improves RSSI and at the same time reduces interference on the neighboring gateways. Deploying more gateways are economically irrational.

In the work [17] it was tested LoRa network but for particular gateway equipment of Cisco 910 industrial router. The authors evaluated the maximal throughput that a single device can obtain, network coverage and receiver sensitivity. Their testing environment was limited by suburban area of Paris with dense residential dwellings.

4 Materials and Methods

To provide testing of the LoRa network performance the preparatory step of literature study was conducted and represented in above section. Found discussions about technology limitations and the reasons behind them were figured out. Furthermore, the company supported us in investigation had their own purpose and were interested mostly on abilities of LoRaWAN in range up to 1 km. We will try to adapt our test based on these limitations and reasons.

4.1 Case Study Topology

The first stage of setting up any network is to ensure the necessary components are configured correctly, this, in turn, will ensure the accuracy of the data collected during the investigation and analysis of the network. But as you will note a LoRa network is not too complicated to setup and run as there are very few components to configure.

The topology of the LoRa network used in this study consists of the end-node device and gateway connected trough the public network to PC with analysing and visualization tool for representing measurements (Fig. 2).

Fig. 2.
figure 2

The topology of the LoRa network.

The end-node device and gateway are powered by portable power supplies. The end-node device is configured to send a packet every 10 s on the 867.10–868.50 MHz frequencies. The gateway receives and decodes the packet and the forwarder software forwards the packet to LORIOT.io for presentation on a PC.

End-Node Device. In the real use case the end-node device collects data and then send it to the gateway. In our case and for the sake of the experiments this sensor just sends an array of chars.

The LoRaWAN node that we used is set up using the SX1272 LoRa Shield by Semtech and an STMicroelectronics NUCLEO-L073RZ MCU Board. This kit which can be seen in Fig. 2 uses the software I-CUBE-LRWAN provided by ST [18] and the app available called “End-Node”. The software has support for SX1276, SX1276 and SX1272 LoRa shields. The IDE Atollic for embedded devices was used to edit the source-code to increase the duty cycle and mocking sensor data, Atollic was also used to flash the code onto the device.

Gateway. The gateway that we used is a “Wimod LoRa Lite Gateway” by IMST and is intended for development and evaluation purposes. It consists of a Raspberry Pi and a concentrator iC880A. The LoRa specific source code running on the gateway is provided by the open-source github project LoRa-net [19]. As the gateway is a commercial product it is pre-configured with the appropriate settings upon delivery. The Raspberry Pi is running Raspbian OS and is pre-installed with the repositories “lora_gateway” and “packet_forwarder” contained in the LoRa-net project.

All experiments were conducted using the following parameters for both end-device and gateway:

  • Bandwidth: 867.1–868.5 Mhz

  • Channel size: 125 kHz

  • Spreading Factor (SF): variable = 7 to 12

  • Coding Rate: fixed = 4/5

  • Transmitting Power: 14 dBm

4.2 Types of Experiments

The measurements are conducted in similar weather and temperature conditions. All experiments are conducted during April in the timespan 11am–1pm. They are also performed in sunny weather and in a temperature range of 16 \(^\circ {\text {C}}\)–20 \(^\circ {\text {C}}\).

In all of the experiments the end-node device transmits a package with a 2 byte payload every 10 s with a transmitting power of 14 dBm. The spreading factor can vary from SF7 to SF12. The SF value is chosen automatically based on the time it takes for the gateway to acknowledge the packet. For all experiments, except the gateway elevation, the experiment is done in two forms:

  • with the antennas aligned that means both antennas are vertical,

  • when the antennas are misaligned when one antenna is horizontal and pointing towards the other that is positioned vertically.

Open space. The equipment set up on a location where we have at least one kilometer with a free line of sight. The gateway is stationary and end-node device we move far and far away from the gateway, and on each 300 meters we do a measurement. As soon as we lose a single data-packages in the transmissions we decreased the step to 100 m. We then continue until either 0 packages are received or we run out of space that still maintain free line of sight.

Dense forest. In this test we find a location where the terrain was relatively flat and with a dense vegetation. We then do the measurements starting at 300 m. The distance is increased by 100 m each step since we can expect the signal to drop more drastically compared to open space experiment. Gateway is stationary, end device gets moved further away on a straight line. Urban. In this test we do our measurements inside of a city that has houses made of a variation of materials that are located on the same height. We start our measurements at 150 m and increasing the range by another 150 m for each measurement while maintaining the same increment of houses for each measurement.

Gateway elevation. For this test we place the gateway and end-node 400 m apart from one another. We then elevate the gateway in steps of 10 m starting at 0 while moving the gateway to maintain a 400 m distance between the two making measurements each step. The device is partly stationary while the device is continuously getting elevated.

5 Results

For the experiment in open space results are presented on Fig. 3. At 0 m distance we see a clear difference in RSSI between the aligned and misaligned antennas but no difference when it comes to SNR. As the distance increases this difference gets smaller for RSSI and larger for SNR. After 900 m the first package loss is observed for the misaligned antenna. Aligned antenna however led to 0 packets lost even at our maximum distance of 1100 m where we ran out of space.

These results show that even at a distance of +1100m we still have a strong signal that only fades at a tiny rate if at all which could potentially last for several more kilometers. In this scenario the LoRa technology is very suitable and the limitation is primarily given by the specification of LoRa itself namely the trade-off between range and bandwidth.

Fig. 3.
figure 3

Open space experiment results.

In the dense forest the SNR starts to decrease after only 300 m and reaches negative numbers on misaligned antennas at 400 m and for the aligned at 500 m Fig. 4. This would indicate that this environment has a big impact on SNR and by proxy on RSSI as well. SNR however doesn’t follow a similar structure as a packet can seemingly be lost at an average of −5 dB while a packet with −13 dB can be read without problem. The dense forest environment did not affect the connectivity of LoRa.

Fig. 4.
figure 4

Dense forest experiment results.

The urban city experiment shows more drastic drop in both RSSI and SNR (Fig. 5) than in the previous experiments and it can be observed that the values become lower at 150 m than that of the previous experiments at 300 m. For the next distance measurement step to 300 m an extreme drop in signal quality can be observed where the PRR for having the antennas aligned gets as low as 32% while not a single packet can be read while having them misaligned.

Fig. 5.
figure 5

Urban experiment results.

While packets seemingly get lost due to poor signal quality the packets that actually get through maintain a mean SNR value of −7.1 dB while for the experiment in the forest the value could reach as low as −13.6 dB without the packet being lost. Gateway elevation improves the RSSI and gives a value of −75 dBm at 20 m height, after this RSSI value is basically unchanged up to 40 m, the SNR value however continues to rise although at a decaying rate.

Height has as we expected a great impact on the performance to the point where free line of sight and the fresnel zone is clear of obstacles is achieved from that point on any further elevation might not be considered useful. Applying this elevation to the forest and city that were previously tested would most likely improve the performance greatly and allow for use cases that would otherwise be considered impossible, i.e. large forest agriculture and city based solution that span +1 km (Fig. 6).

Fig. 6.
figure 6

Gateway elevation experiment results.

6 Conclusions and Future Work

The goal of this paper was to do a performance evaluation of a LoRa network and analyse how the limitation set by the performance affect various use cases.

In the open space the signal keeps a consistently good quality. In the forest and city tests the quality is significantly worse to the point that with our setup in a city environment reaching distances above 350 m is impossible due to the high amount of noise and quantity of dense materials. This problem can be circumvented by elevating the gateway and/or device to the point that free line of sight or close to it is achieved.

This means that large scale implementations deploying a gateway on a radio tower to prevent obstructions would have no problems reaching distances of +15 km. For implementations on a lower scale, problems can arise as barriers in the form of houses, terrain and/or vegetation quickly add up and in most cases limits the implementations range to a house or neighborhood. In some cases, elevating the gateway could be impossible then the solution is to use several gateways just like a normal telecommunication solution where a device can connect to any radio tower. Another factor is if the device is mobile as having misaligned antennas leaves a large mark on the performance and there can more than a 50% difference in PRR.

Regarding packet loss it appears that exceeding the threshold of −120 dBm causes the packet to become corrupted, i.e. unreadable or lost completely. SNR, however, seems to have less of an effect as a packet is seemingly as readable at −14 dB as it is at a positive value. This means that for most implementations it is very important to have packet loss in regard when planning placement as the RSSI can fluctuate and as in most cases there are no retransmissions in LoRa if the device is at the edge of the communication range the packet can be lost forever. This can be very painful for a lot of use cases as the duty cycles are very limited and the next transmission can be hours away.

For future investigation into this subject more case studies are needed, since this one is limited in long term tests and conducted under similar weather conditions for all of the test cases. Furthermore, an extensive comparison to theoretical and simulated results is needed to provide information about how the real-world performance compares to a simulated one as there is always external variables affecting that is not otherwise accounted for.