1 Introduction

Over the last years the prospects to the Internet of Things (IoT) market have been growing in quantity as well as in number of applications [1, 2]. Due to the demand imposed by this market, new wireless technologies are emerging in order to enable power efficient wireless communication over very long distances [3]. Such long-range wireless technologies deployed for the IoT usage can be divided into two main categories: Cellular and Low-Power Wide-Area Networks (LPWAN). The cellular networks, which have been so far represented mainly by General Packet Radio Service (GPRS), have currently the Narrowband (NB)-IoT as its frontrunner technology [4, 5]. Standardized by 3GPP (3rd Generation Partnership Project), NB-IoT aims at supporting a massive number of low-throughput devices, with low cost and improved power efficiency [6]. Regarding LPWAN, the long range (LoRa) technology is certainly one of the main representative technologies in this category [7]. It uses a proprietary spread spectrum modulation scheme that enables the signal to reach long distances, while transmitting with low data rate and low power [8], and usually relying on the LoRaWAN architecture to define the higher layers.

A coverage analysis for NB-IoT is addressed in [9], where simulation results indicate that improvements on Maximum Coupling Loss (MCL) in the order of 20 dB can be achieved over traditional Long-Term Evolution (LTE) technology. In [10], the authors discuss issues related to the deployment of NB-IoT only in a subset of base stations (BSs), for example the upgrade of just some BSs with NB-IoT within a region: this arrangement can cause strong co-channel interference from the non NB-IoT cells. As shown in [10], this problem can be avoided by jumping the Physical Resource Block (PRB) used by LTE-only BSs, i.e., BSs without NB-IoT deployment should leave the PRB destined for NB-IoT unused.

The coverage of LoRa is studied in [11], where a proprietary software was used to estimate the LoRa coverage for two cities in Argentina, whose result is supported by actual measurements. In [12], Hoeller et al. proposed a theoretical model to derive coverage probability which includes both internal interference, due to imperfect Spreading Factor (SF) orthogonality, and cross-technology interference.

A more detailed and wider coverage comparison is presented in [13], where LoRa, Sigfox [14], GPRS, and NB-IoT technologies are compared in a region of northern Denmark. The purpose of the authors was to evaluate the performance of these technologies for outdoor and indoor-located devices, considering realistic rural and urban environments. Moreover, in order to get more realistic results, a Digital Elevation Model (DEM) of the environment, along with the information of areas with valid household numbers, was taken into account. It was shown that NB-IoT provides better coverage among all the aforementioned technologies, for both rural and urban scenarios. An analysis performed in [15], extending the work done in [13], showed that even when considering the probability of collisions and blocking, NB-IoT outperforms the other technologies. A similar study involving coverage and capacity for rural areas was developed in [16], in which the authors compare two User Equipment (UE) categories proposed by 3GPP: NB-IoT and LTE-M. The results showed that despite NB-IoT providing better coverage, LTE-M supports more devices thanks to its lower overhead and larger bandwidth.

In this paper, we compare LoRaFootnote 1 and NB-IoT in terms of coverage in two different realistic scenarios of southern Brazil, encompassing an overall area of 8182.6 km2. Differently from [13], our analysis encompasses all the considered area when evaluating a given technology coverage, and not only the portions of the selected region with a household number, i.e., with valid addresses. Therefore, our analysis is focused on outdoor scenarios, while indoor communication has been considered by [13]. The aim is to compare different BS densities for the two proposed technologies, as well as to evaluate the effects of NB-IoT operating at stand-alone mode under two bands, namely 850 and 1900 MHz, that are currently available to GPRS technology in the regions taken into account [17].

In our analysis, we adopt the 3GPP path loss model [18], which can account for both rural and urban scenarios. In addition, a two-dimensional correlated shadowing model is employed, following [19], while we also consider the DEM of the regions under study, obtained from the TOPODATA database, provided by the Brazilian National Institute of Research (INPE) [20]. Finally, we consider the site deployment (BS positioning, antenna heights, etc.) of a given network operator for the NB-IoT, and also suppose that the LoRa BSs are placed in the same positions of the NB-IoT BSs, for fair comparison purposes. Our results indicate that NB-IoT and LoRa technologies can have more than 90% coverage in both urban and rural outdoor scenarios. Furthermore, similar to [13], we also show that NB-IoT provides wider coverage than LoRa operating in a sub-GHz band with low density of BSs. However, LoRa showed to be more advantageous than NB-IoT when the density of BSs is higher and when NB-IoT operates in the 1900-MHz band.

The rest of this paper is organized as follows. Section 2 briefly compares the two aforementioned technologies and present the assumptions used in the simulations. Section 3 presents the simulation model and the regions under analysis. Then, Section 4 provides simulation results and their analysis. Finally, Section 5 concludes the paper.

2 Preliminaries

2.1 LoRa versus NB-IoT

2.1.1 LoRa

LoRa [8] is a proprietary spread-spectrum modulation scheme patented by Semtech, which trades between data rate and sensitivity, enabling long range, low data rate, and low power communications [6]. A LoRa device can be configured to use different parameter settings such as transmission powers, bandwidth settings (BW), coding rates (CR), and spreading factors (SF), resulting in different trade-offs [24]. To increase receiver sensitivity and achieve higher coverage ranges, one can vary SF from 7 to 12, where higher SFs mean higher communication range at the cost of lower data rate [25].

Spreading the transmitted signal into a larger bandwidth makes it more resistant against interference, which allows the signal to be decoded even when the signal power is several times bellow the noise floor [1]. To evaluate the cross-technology interference, the authors in [26] set up an experiment to measure the interference of IEEE 802.15.4g technology in LoRa networks: they showed that LoRa can obtain high packet reception rates, even in the presence of strong IEEE 802.15.4g interference. Therefore, in our work, we follow [13] and assume that interference is negligible.

In 2015, an alliance, called LoRa Alliance [27], launched the first version of a protocol (LoRaWAN protocol) adopting LoRa at the Physical Layer, operating in the ISM sub-GHz spectrum. LoRaWAN uses ALOHA scheme at MAC Layer and has a network architecture deployed in a star-of-stars, where devices do not connect to a LoRaWAN gateway/BSs, instead the BS forwards every message received from LoRaWAN devices in range, thus exploiting redundancy of messages at different BSs [1, 6].

Since we are interested on evaluate coverage, in practice, we push these parameters to its bounds (SF = 12, BW = 125 kHz, and transmit power = 20 dBm), such that they represent the most robust setup with respect to coverage, i.e., MCL = − 157 dB [21, 28]. Besides, it is considered that LoRa BSs use omni-directional antennas with 10 dBi gain while LoRa UEs deploy 0 dBi antennas.

2.1.2 NB-IoT

NB-IoT was proposed by 3GPP in 2016 as part of Release 13 [29], aiming at improving coverage, power efficiency, and reducing the complexity for cellular IoT devices, targeting low-throughput devices with low cost [30]. It can be deployed in a stand-alone mode (with dedicated spectrum, i.e., a channel of GSM band), in an in-band mode (within the band of a LTE carrier), or in a guard-band mode (occupying the guard band of a LTE carrier) [31, 32]. Regarding its physical layer, the highest modulation enabled is QPSK and the bandwidth is fixed at 180 kHz [6, 33], and the maximum transmitted power is 23 dBm for uplink and 43 dBm for downlink [22].

In Brazil, there are currently four GSM bands available (namely 850, 900, 1800, and 1900 MHz), which are potential candidates for NB-IoT deployments [34]. Here, we will evaluate the performance of NB-IoT when operating at the extreme values of 850 and 1900 MHz, while LoRa operates in Brazil at the ISM band of 915 MHz.

Another difference between the technologies is the antenna radiation pattern: while LoRa uses omni-directional antennas, NB-IoT adopts directional antennas at the BSs. Assuming an update of the current GSM technology deployed to NB-IoT, the direction and gains for the antennas were taken from the actual site deployment, which can be obtained from [23]. For simplicity, it was assumed that all directional antennas follow the same radiation pattern, of an antenna that is common to both sites, which was taken directly from the manufacturer’s website [35]. One should also note that NB-IoT should not suffer from cross-technology interference, as it operates in a licensed band. The main characteristics of NB-IoT and LoRa are summarized in Table 1, in accordance to [21, 22].

Table 1 Main parameters of LoRa and NB-IoT

Remark 1

As uplink and downlink for NB-IoT are not symmetrical [22, 36], the uplink channel will be employed in the simulations, since it is the most critical link for a coverage analysis; i.e., we consider that a device is covered if the uplink loss is below the MCL for a given technology.

Remark 2

We assumed that NB-IoT devices can perfectly cope with handovers and choose the BS with the highest link budget.

2.2 Path loss

The path loss is an intrinsic characteristic of the wireless channels, caused by the power dissipation through the propagation environment [37]. Moreover, an additional attenuation is imposed due to the presence of obstacles between the transmitter and receiver, which is referred to as shadowing, and occurs mainly due to the absorption, reflection, scattering, and diffraction effects [37].

In this work we adopt the Rural and Urban Non Line-of-Sight (NLOS) path loss model proposed by 3GPP in [18], which considers both theoretical and empirical results to create an accurate model. According to [18], the path loss at a given separation distance d (in meters) between transmitter and receiver is obtained as:

$$ \begin{array}{@{}rcl@{}} PL (\text{dB}) \!&=&\! 161.04 - 7.1\log(W) + 7.5\log(h)\\ &&\!-\left( 24.37 - 3.7\left( h/h_{\text{BS}}\right)^{2}\right) \log\left( h_{\text{BS}}\right)\\ &&\!+ \left( 43.42 - 3.1\log\left( h_{\text{BS}}\right)\right)\left( \log(d)-3\right)\\ && \!+ 20\log\left( f_{\mathrm{c}}\right) - \left( 3.2\left( \log\left( 11.75h_{\text{UE}}\right)\right)^{2} - 4.97\right)\\ && \!+ X, \end{array} $$
(1)

where fc represents the carrier frequency (in GHz), hUE and hBS represent respectively the heights of UEs and the BSs, while h stands for the average height of the buildings between the BS and the UE. W represents the street width and X stands for the shadowing, which is modeled as a Gaussian-distributed random variable with zero mean and standard deviation σ. In (1), all the distances are in meters and the logarithm is base 10.

As suggested in [18], the parameters in (1) have different typical values depending on the environment characteristics, as presented in Table 2. It is worthy mentioning that hBS is obtained according to the actual values of the BSs considered in the analysis, as will be explained in details later.

Table 2 Typical path loss parameters [18]

2.2.1 Shadowing correlation

In practice, shadowing in (1) for devices in close vicinity is not completely independent, presenting a certain degree of correlation. In [19], the authors present a two-dimensional shadowing model that takes into account a parameter called correlation distance. This model acts as a filter for the random variable that describes the shadowing, presenting uncorrelated results when the separation distance between two points is larger than the correlation distance.

Figure 1 illustrates the effect of correlation by plotting the values of a random variable before (Fig. 1a) and after (Fig. 1b) applying the proposed filter with correlation distance set to 120 m, which according to [18] is suitable for a rural environment. Moreover, each pixel on the grid corresponds to an area of approximately 93 m×93 m, which is the same map resolution used for the selected regions. It can be seen that the shadowing in Fig. 1a is sparse, while in Fig. 1b it is concentrated in a few spots, as indicated by the blue dots.

Fig. 1
figure 1

Comparison between (a) uncorrelated shadowing and (b) shadowing with correlation distance of 120 m. Each pixel on the grid corresponds to an area of 93 m× 93m. The bluer the pixel color, the greater the shadowing losses in that location; in this example with standard deviation equals to 1, it tends toward 3 dB. On the contrary, the redder the pixel color, the smaller the shadowing losses, tending toward − 3 dB

2.3 The regions and their characteristics

In this work, two regions with different BS densities are chosen: Region 1 consists of a group of small cities (Castro, Carambeí, Tibagi, and Piraí do Sul) that have one of the largest dairy herd of Brazil. This region has been chosen due to its agribusiness importance and due to the fact that it has a low concentration of base stations per square kilometer (15 BSs in a overall area of 7560.6 km2, i.e., in average one BS every 504 km2), being mostly composed of rural areas, as illustrated in Fig. 2a.

Fig. 2
figure 2

Regions under study: (a) shows region 1 which is mainly rural and has 15 BSs distributed in 7560.6 km2; (b) presents region 2 which is a mostly urban area with 32 BSs distributed in 622 km2

Next, Region 2 comprehends, mostly, the urban area of Cascavel City, containing 32 BSs in an area of 622 km2, yielding one BS per 19.4 km2, as shown in Fig. 2b. The BS positions and characteristics (such as height, number of antennas, and coordinates) are obtained from the National Telecommunications Agency (Anatel) [23], representing the actual site deployment from a given operator.

It was assumed that devices may be anywhere in the selected region, which means that each pixel is a candidate to have an UE. Thus, the coverage analysis considers the existence of an UE in every pixel. Besides, it was also taken into account that devices could be located indoor and experience additional losses, which was simulated by adding a 20 dB penalty loss to the outdoor path loss calculation.Footnote 2

3 Simulation model

The algorithm developed in this work was implemented using Matlab. The block diagram presented in Fig. 3 illustrates the coverage simulation performed, which can be briefly explained as follows:

Fig. 3
figure 3

Block diagram illustrating the proposed simulation model. The simulation was divided into three main sections. In the first section (Input Data Pre Analysis), regional parameters are loaded and undesirable areas and BSs are withdrawn. In the following, the topology parameters along with the antenna’s radiation pattern, shadowing, and technology parameters are taken as input by the “Link Loss Estimator” module, so average losses can be estimated. After estimating the overall losses, the coverage for each pixel is determined comparing MCL with link loss. Finally, in the Post Processing section, link loss and CDF graphs are generated and plotted

3.1 Input data pre-analysis

In this pre-simulation step, the “Detach Area” block receives the terrain data from the DEM (latitude, longitude, and elevation) [20], along with the coordinates data of the BSs (latitude, longitude, and height) [23]. Both data are then mixed into a single grid with resolution no smaller than 93 m×93 m (the resolution provided by the DEM in [20]), and the area under interest is detached from the overall area in order to avoid simulations with prohibitively high time consumption. As a result, one has a grid with Np pixels, where each pixel has a latitude, longitude, and elevation, such that there exists NBS out of the overall Np pixels with a BS, whose individual heights are in accordance to [23].

3.2 Simulation

In this step, the topology data generated in the previous stage is used to create the shadowing pattern and to calculate the angles and distances between each pixel and each BS. Then, the “Link Loss Estimator” block calculates the overall losses for each link between the BSs and the pixels, which, after being compared with the corresponding MCL, determines the coverage. More specifically:

  • Distance and Angle Calculator”: This block is responsible for calculating the distance and the angle from the p th pixel to the i th BS, ∀p ∈{1,…,Np}, i ∈{1,…,NBS}. The distance between each pixel and BS is calculated by doing the Harvesine distance followed by a Pythagorean distance, which takes into account the earth’s curvature and the heights from devices and BSs. We recall that while the heights of UE devices were stipulated to be 1.5 m, the heights used for the BSs antennas were also taken from ANATEL database, which corresponds to the actual site deployment.

  • Shadowing Modelling”: Takes as input the data coming from “Detach Area” block along with correlation distance and standard deviation, delivering a shadowing grid to be used for link loss estimation.

  • Link Loss Estimator”: This block takes distances, angles, and shadowing delivered by the previous process and along with technology and BS parameters, like carrier frequency and antenna gain, to compute the overall losses.

  • Coverage Decisor”: Once the losses are calculated, this module compares the minimum loss (between the pixel and the BSs) with the MCL of the technology to be tested, to decide whether the pixel is covered or not.

    Let p ∈{1,…,Np} be the index of the p th pixel among the total number of Np pixels presented in the area under consideration, and i ∈{1,…,NBS} represents the i th BS from the total number of NBS base stations. Let us also define an indicator variable ϕt(p) ∈{0,1} in order to indicate whether the p th pixel is covered by technology t∈{LoRa,NB-IoT} or not, such that ϕt(p) = 1 (resp. ϕt(p) = 0) indicates that pixel p is covered (resp. not covered) by technology t. Thus, we have that

    $$ \phi^{\texttt{t}}(p) = \left\{ \begin{array}{ll} 1, & \text{if } \min\limits_{i} Link Loss^{\textrm{\texttt{t}}}(i,p) < \text{MCL}^{\texttt{t}}; \\ 0, & \text{otherwise,} \end{array} \right. $$
    (2)

    where MCLt represents the maximum coupling loss of technology t as presented in Table 1, while LinkLosst(i,p) stands for the estimated overall losses of the UE placed in pixel p regarding BS i, calculated as

    $$ Link Loss^{\texttt{t}}(i,p) = PL^{\texttt{t}}(i,p) + L^{\texttt{t}}(i) - AG^{\texttt{t}}(i,p), $$
    (3)

    where PLt(i,p) is the path loss from BS i to pixel p obtained from (1), AGt(i,p) is the antenna gainFootnote 3 from BS i to pixel p, and Lt(i) represents additional losses, such as those referring to indoor attenuation and cable losses (when suitable). The coverage ratio of a given technology t is then obtained as

    $$ CoverageRatio^{\texttt{t}} = \frac{{\sum}_{p = 1}^{N_{p}} \phi^{\texttt{t}}(p)}{N_{p}}. $$
    (4)

3.3 Post-processing

In the post-processing step, two tasks are performed independently. First, the link loss for all pixels is plotted, which allows a visual analysis about areas lacking coverage. Then, the cumulative density function (CDF) for each scenario is computed and plotted.

Table 3 summarizes these simulation assumptions.

Table 3 Simulation parameters

Remark 3

According to [21], the MCL for LoRa is 157 dB, while for NB-IoT the minimum MCL is 164 dB [22]. Despite this clear advantage in sensitivity, there is a conceptual difference on the transmitted power. While LoRa considers transmitted power as EIRP which already includes cable losses and transmitter antenna gains [13] [38]; for NB-IoT, such parameters must be included when calculating the link budget [22].

4 Results

In what follows, we present the coverage comparison between LoRa and NB-IoT following the simulation model and parameters presented in the previous sections.

The first set of results is obtained considering Region 1, a rural area with low density of BSs, as presented in Table 3. Figure 4 represents the CDF of the Link Loss for LoRa and NB-IoT, the latter operating at both 850 and 1900-MHz carrier frequencies. The vertical dashed lines represent the LoRa and NB-IoT MCL as from Table 1, such that the part to the left of such threshold MCL represents the ratio of pixels in outage (not covered by the technology). As stated in Section 2.3, we also consider the additional attenuation of 20 dB to represent indoor located UEs.

Fig. 4
figure 4

Cumulative Density Function (CDF) of MCL for devices in Region 1 a NB-IoT at 850 MHz ; b NB-IoT at 1900 MHz

In Fig. 4, it can be seen that, when considering outdoor devices, the percentage of pixels covered was about 91.77% for LoRa users and 93.11% for NB-IoT at 850 MHz, indicating an advantage for NB-IoT, when both technologies are operating at a similar carrier frequency. However, when the NB-IoT operation band is increased to 1900 MHz, its average coverage decreases to 80.81%; this happens because the higher carrier frequency leads to a higher path loss.

As expected, the coverage decreases when indoor attenuation is also taken into account, but the comparative results remain unchanged. For indoor devices, as exposed in Fig. 4b, the percentage of covered areas decreases to 34.80% for LoRa and 40.79% for NB-IoT at 850 MHz, reaching only 20.01% of coverage when NB-IoT is operating at 1900 MHz .

Figure 5 visually illustrates the coverage under Region 1 for outdoor users, by presenting the Link Loss between each pixel and the BS that provides the best link budget. The bluer the pixel color, the greater the loss and consequently the greater the possibility of not being covered. The opposite is also true: the more red the pixel, the lower the losses. In order to ease the visualization of Figs. 5 and 7, the link loss of LoRa is plotted with less 7 dB, which corresponds to the difference between the MCL threshold for LoRa and NB-IoT.

Fig. 5
figure 5

Link loss, Region 1. a NB-IoT at 850 MHz; b NB-IoT at 1900 MHz; c LoRa. The bluer, the greater the loss

From Fig. 5, it can also be seen that directional antennas provide better link budget than omni-directional antennas for devices that are far away from the BSs (in the direction of the main lobe), therefore improving coverage for this set of devices. This effect is particularly relevant when analyzing rural environments, where UEs are usually far from BSs. On the other hand, for urban environments, most devices are near a BS and most of them are already covered; hence, increasing link budget in one direction does not improve the coverage rate.

Figures 6 and 7 present the same results as Figs. 4 and 5, but now considering Region 2, with a higher density of BSs. We can see in Fig. 6a that, due to the higher BS concentration, the amount of pixels not served by both technologies is smaller than 1% for outdoor devices. For indoor devices, due to 20 dB additional attenuation, the percentage of covered areas decreases to 79.61% for LoRa and 78.77% for NB-IoT at 850 MHz. Even for NB-IoT operating at 1900 MHz (the worst configuration among the three candidates), it still reaches 53.67% of coverage. These results show that for Region 2 LoRa has a slightly better coverage ratio, which is justified by the better performance of omni-directional antennas in serving UEs apart from the main beam direction of directional antennas.

Fig. 6
figure 6

Cumulative Density Function (CDF) of MCL for devices in Region 2 a NB-IoT at 850 MHz; b NB-IoT at 1900 MHz

Fig. 7
figure 7

Link loss, Region 2. a NB-IoT at 850 MHz; b NB-IoT at 1900 MHz; c LoRa. The bluer, the greater the loss

The graphs in Fig. 7 reveal where the areas with bad coverage in Region 2 are located, by considering an indoor scenario. As stated, this does not change the panorama, since indoor scenarios are simulated by just adding 20 dB over outdoor scenarios. Thanks to the characteristic of omni-directional antennas in providing equal power for azimuthal directions around the BS, for the urban scenario where all devices are closer to the BS, the advantage of directional antennas becomes unimportant and LoRa presents a slightly better coverage rate.

5 Conclusion

In this paper, an extension of the simulation work introduced in [13] for regions in Brazil was proposed. The aim was to adapt the simulation to the site deployment of a local network operator, at the frequency bands allowed in Brazil and to evaluate the influence of site deployment on coverage. Therefore, two regions were chosen: one mainly rural, with low BS density; and one mainly urban, with high BS density.

In the area with low BS density, the coverage for indoor devices achieves at maximum 40.79% of the pixels when using NB-IoT at 850 MHz, 34.80% when using LoRa, and less then 20.01% of pixels are served by NB-IoT at 1900 MHz, revealing a very poor coverage for indoor devices. However, excluding the scenario in which NB-IoT operates at 1900 MHz, outdoor users for this region experience a coverage of above 91.77%. Regarding the area with high BS density, coverage reaches above 97.61% for outdoor users in all scenarios. Adding 20 dB in losses to simulate indoor attenuation reduces coverage ratio to about 79.61% for LoRa, 78.77% for NB-IoT at 850 MHz, and 53.67% for NB-IoT at 1900 MHz.

One aspect that might affect the results is that we assumed that NB-IoT devices can perfectly tackle handovers and choose the BS with the highest link budget, which could be an extra source of damage for NB-IoT coverage. On the other hand, if we consider that LoRa devices are operating with LoRaWAN, there is no handover and all messages are sent to the network server, which is in charge, among other things, to handle repeated messages.

The results show that for NB-IoT operating at 850-MHz band, it provides the best coverage for a region with low BS density, but when the scenario is changed to a mainly urban with high BS density, LoRa provides slightly better coverage. These outcomes can be attributed to the fact that NB-IoT uses a directional antenna which indeed provides a better coverage near the main bearing, especially when comparing devices away from the BS, but leaves behind coverage in side lobes. Thus, we conclude that site deployment does have influence when choosing a technology based on coverage.