1. Introduction
As the Internet of Things (IoT) continues to pave the way for innovations in network technologies, there are a number of network options on which to build smart applications for a variety of everyday life sectors. Being the major communication paradigm in this area, LoRa technology seems to fit perfectly with the IoT philosophy. Being part of the low-power wide-area network (LPWAN) technology, which provides low-cost, low-power, and wide-area coverage, needed for the ongoing era of ubiquitous computing, LoRa adds also the ease of applicability and expandability, maintaining its position among the most popular communication technologies applied for the IoT cosmos.
Geared for IoT low traffic applications where small amounts of data are transmitted periodically, LPWAN redefines the way applications and processes are developed and established. In addition, supporting this LPWAN approach, a number of appropriate communication standards, based on the energy needs of these networks, have already achieved a level of penetration in IoT applications like city lighting, parking, utilities metering and other agriculture and industry specific uses. Among these LPWAN technologies, such as Sigfox, LoRa, NB-IoT, LTE-M, Wi-Sun, and others, LoRa has gained large popularity due to the fact that it operates in an unlicensed spectrum band, offers low deployment and operation costs without the need of a third party, and is based on a simple star topology with gateways suited for simple control and routing schemes. Apart from the aforementioned leverages, LoRa also offers high adaptability to different applications as it is highly flexible concerning the operational parameters like the SF- Spreading Factor, the coding rate, the bandwidth, the payload length and the preamble length. Configuring those parameters according to each application, one can balance between higher throughput or increased range achieving also different battery-life times.The sweet spot between these factors is crucial for the successful operation of the network and are application-specific.
While in an increased number of applications, the nodes are considered stationary, moving-related applications have started to attract more and more attention. As configuration methods of optimal settings in LoRa wide-area network (LoRaWAN) specification are only present for slowly moving or stationary end nodes [
1], moving nodes demand novel evaluation. While there are a number of works involving moving nodes (presented below) the majority use the same fixed high energy settings throughout the movement in order to achieve high reliability.
Motivated by the aforementioned parameter diversity and the lack of adaptive protocols for moving nodes with LoRa technology, in this work we propose a novel way to optimize performance and reliability in highly dense networks with fast moving nodes. The proposed algorithm acts proactively and reserves an additional slot in the higher SF region for every active scheduled transmission in a way to eliminate the possibility of a lost packet. Due to the moving nature of the nodes, there should be a kind of orchestration for the different SF zones they constantly visit. Acting as a point of segregation from the typical single-node-supervision algorithms, the proposed communication protocol enables all the nodes to take part in a decentralized way.
The reminder of this article is organized as follows. In
Section 2 background and related work is presented. The proposed algorithm along with the system configuration setup are presented in
Section 3.
Section 4 includes the evaluation of the results along with the performance analysis and in the
Section 5 we conclude this work.
2. Related Work
According to [
1], the default channel access mechanism is the pure ALOHA technique, a random access protocol where data is transmitted randomly from various end devices across a single channel in accordance with their communication requirements. Its lightweight nature as well as its simplicity and the absence of synchronization between the devices renders it quite suitable for sensor networks with low-traffic applications. The behavior of ALOHA-based protocol in terms of reliability, network latency, throughput, and energy efficiency has come under scrutiny from researchers who argue that it suffers from low scalability while at the same time its performance significantly deteriorates in cases of heavy traffic as the number of network devices increases [
2,
3,
4,
5]. In order to improve the abovementioned metrics, several extensions or modifications to the LoRaWAN MAC layer protocol have been proposed in the literature. Slotted ALOHA, introduced as an improvement over ALOHA protocol, allows the data transmission from each station only at the beginning of the time slot, achieving better performance metrics as it doubles the capacity of the wireless channel compared to pure-ALOHA. In [
2], Polinelli et al. concluded that by using the slotted ALOHA protocol over LoRaWAN, instead of the ALOHA approach, a 5.8× increase in network throughput and a 26% reduction of packet collisions is obtained in high-traffic load conditions.
In addition to the random access protocols which are generally used in LoRaWANs, channelization protocols are also of particular interest. Time-division multiple access (TDMA) is a collision free protocol which provides multiple access to end devices by dividing the available bandwidth in time. In [
6,
7], Piyare et al. proposed a receiver-initiated version of the aforementioned protocol which was tested and evaluated using a real deployment of eleven wireless sensor nodes. Ultra-low-power wake-up-radios which offer continuous listening of the wireless communication mean that extremely low power-consumption is introduced in this work to boost the overall network performance.The suggested approach was compared to the listen before talk (LBT) protocol in terms of network reliability, latency, and energy efficiency, achieving superior performance. In [
8], the authors suggested an enhanced version of [
6], also employing the WURs’ low-power capacities. More precisely, using the TDMA principles, this work composes a lightweight form of prediction in an effort to prevent an end device that has no information to relay to reserve a whole timeslot in the current transmission cycle. This way notable outcomes in terms of mean data latency and times of node polling are brought about. Spathi et al. in [
9], proposes an AI-based TDMA mechanism in an effort to extend the network’s longevity by balancing the energy consumption of the network devices. In detail, a learning automaton tool is used in order to determine, depending on the residual battery of each device, which one of the available end nodes would serve as a cluster head during the next cycle of the TDMA. The suggested mechanism attains improvements in terms of network’s lifespan of up to 1.4× and 6.7× when compared to the round-robin and static TDMA approaches, respectively.
While the transmission settings play a pivotal role in the performance of a LoRa network, as they affect the energy consumption, the data rate, and the coverage area, the optimal configuration should be a continuous process in case of the presence of moving nodes. That being said, in [
10] the authors proposed a dynamic selection of optimal transmission settings based on estimated path loss of each node and the nearest gateway. The authors in [
11] proposed an energy-efficient mechanism for LoRa networks based on the node’s state battery; in order to save most of the energy consumed, they base the node localization on trilateration and time difference of arrival as the most common solution of a GPS could jeopardize the energy efficiency in search and rescue operations. For another form or moving nodes, the UAV, the authors in [
12] proposed a distributed topology control algorithm based on the link budget between nodes and movement prediction techniques in a network formation where the nodes communicate via LoRa messages with the UAV nodes and the latter communicate over WiFi with the base station to propagate the messages to the backbone. Similar to the aforementioned work, in [
13] the authors tested a node-to-UAV LoRa mesh network by applying a slotted ALOHA approach offering a robustness to network dynamic topology.
In the next works, the use of LoRa in conjunction with moving nodes is presented in an effort to show the wide applicability of this technology. The authors of [
14] designed and implemented a bicycle location-tracking system as a proof of concept for the use of low-power and wide-area network technology for IoT under various network formations. Similarly, in the work of [
15] the authors tested the achievable transmission distance in an urban area using this time cars instead of bicycles. Again, in another use of LoRaWAN with moving nodes [
16], the authors used moving LoRa nodes to monitor another flavor of the IoT, using floating solar panels. The authors in [
17] propose the use of a LoRa transmitter via mobile phones for the dissemination of an emergency message in cases where the cellular network is inoperative. Under the proposed operation protocol, the nodes can operate as delay-tolerant transmitters depending either on timer expiration or the reception of different message types.
It should be mentioned that the proposed algorithm is unique as it is tested in dense environments and offers different characteristics from the previous works with moving nodes. It considers a two way communication as distinct from [
10] which does not take into account the response from the base station. The authors in [
11] test up to 500 nodes and consider ultra-low speed nodes that do not change their spreading factor as the proposed protocol. The same applies also for [
12], where the authors do not consider changes in the SF of the ground nodes as the data are transmitted to the base station through UAV nodes via WiFi ad hoc network. This protocol, along with the [
13], have many common components with the proposed one but we utilize only LoRa technology for the actual data transmission and do not relay on other technologies (the use of WuR is only for orchestration and energy-saving purposes). The dense network formations tested in this work are not present in the other works that lack such escalation.
Prompted from the above consideration of a delay-tolerant network in conjunction with the connectivity issues that may arise in networks with moving nodes, we present also some works that have considered IoT with the notion of opportunistic networking. In [
18] the authors propose the use of opportunistic fog computing in hazardous and volatile situations where resources and connectivity are inherently limited. One emerging field of application for this type of fog architecture is the flying IoT and drones sector. The fog devices are referred to mainly as vehicle and mobile phone nodes.Along the same lines, in [
19] the authors study the performance of the opportunistic fog network for offloading computing tasks from the IoT network. In [
20], the authors propose the use of opportunistic networks nodes and their computing features as a way of sampling of data and elaboration by involving other users in a distributed fashion without intervening in a central processing node.
4. Simulation Results
In this section, the performance of the proposed protocol is evaluated for different simulation scenarios. In that context, a LoRa network simulator has been implemented using Python 3.7 on Spyder running macOS 12.1 Monteray with 2.2-GHz Intel Core i7 Processor. The simulator models the MAC operation of the proposed protocol in detail, while using only the absolutely necessary elements to represent the physical layer. Feeding the model with the values from
Table 1,
Table 2 and
Table 3, and setting the number of simulation iterations to
, we analyze the mean data latency in these life-like scenarios as the primary metric for the network performance. This metric measures the time that elapses from the initial LoRa message of the sink to the CH until the last node transmits its data. More specifically, the mean data latency (MDL) is calculated over all the numbers of simulation runs. For every case, we set the load and we store for every run the data latency. As the data latency is related to the ID of the last node that has data to transmit, we opted to run every case for
runs in order to smooth out any discrepancies.
Before we delve into the results and in order to enhance the readership of this work, we analyze the parameters used in the simulation testbed. The moving speed value was set to 25 m/s to cover the higher segment of mobile devices from automobiles to drones. Under the same rationale, the frequency of direction changes was also selective to be indicative for the number of times per second the processing unit of the object may end up changing the direction.
While the most recent WuR transmitters have data rates well beyond 1 kb/s, we opted for this value so as to be consistent with the values from the work that we compare to the proposed protocol. All the sizes of the WuR messages are the minimum in order to transfer the required information of the protocol to the nodes. Finally, as stated above, the maximum range of the WuR was set to 9 km and for that reason every SF ring zone has a width of 1.5 km. In the following scenarios we compare the suggested algorithm with a direct transfer of the work in [
6], amended appropriately to encompass moving nodes (TDMA-PL). In detail, the sink initiates the data transmission and requests data from the EDs by sending a LoRa message to the CH. The latter notifies the EDs with a WuB message for the scheduling of LoRa messages (TDMA). Using GPS, each ED calculates its position and sends LoRa messages back to the sink using the time slot corresponding to its id and the SF according to its calculated geographic position (e.g., ED with ID = 5 and SF 7 sends its LoRa packet in ToA(7) × 5 ms). In case the ED has changed its position to a higher S, then it faces a packet loss. Moving one step forward, we test our protocol with another variation of the work in [
6] that executes a second GPS measurement as our algorithm does. This diminishes the possibility of a lost packet. The results of this aforementioned protocol are denoted as TDMA-2M. If the second GPS measurement is outside the initial SF ring and migrated to a higher SF, then the ED does not initiate the transmission as it would result in lost packet. Nevertheless, under TDMA-2M implementation the node is able to send its packet by reserving the appropriate time slot according to its id using the higher SF as determined from the second GPS measurement.
In order to have an estimation about the mean data latency, we consider the following terms:
N corresponds to the number of EDs considered in each network scenario.
L corresponds to network load and varies from 10% to 100%. For example, a value of load at 50% indicates that for this cycle, half of the nodes will have data to transmit and a 100% loads means that in this cycle all the EDs will request a slot for transmission.
(average time on air) stands for the average time (in ms) that takes for all the signals before the receiver receives them. This is a statistical factor extrapolated from the averaging between the 6 different ToA derived from the 6 SFs.
(Average LoRa message) is the time needed (in ms) for all the nodes to transmit their messages averaged by the load. This factor refers to the average time needed by the EDs to complete a simulation cycle and is directly related to the load and the number of EDS along with the average ToA.
In case of a stationary system, the average delay would be calculated from the following relation as there are 4 basic components: (a) the LoRa message from SN to the CH, (b) the WuR message from CH to the EDs, (c) the broadcast messages from the EDs to inform about their data availability, and finally (d) the actual LoRa message from the EDs to the SN:
For moving nodes, the term aToA (average Time on Air) changes as the EDs move inside the simulation area and change the SF based on the time it has elapsed from the first phase of the algorithm. While this is a continuous-time random walk and may require the probability functions for the number of jumps and the position, the averaging rationale simplifies the following formulation. We consider that for the total time of running
m EDs will change SF zone, which is directly based on the total number of EDs. A system with a small number of EDs means that there will not be enough time for the EDs to move and change SF zone. On the other hand, a system with a higher number of EDs means that numerous nodes will have ample time to move and change their SF zone as they will have to wait for a larger number of EDs to complete their transmission prior to their own time slot. Without the accuracy of the aforementioned stochastic processes, as the process is random, from the
m nodes that will have changed their SF, (
m is a small percentage of all the nodes that will have changed their SF at the end of the simulation) half of them will have moved to a higher SF and the others to the lower SF. Those who will change their SF zone to a higher one will increase the aToA by that percentage while the others will keep their initial SF. As a result, the relation (3) will read:
The term
is obtained using the Equation (
5), while the terms
,
, … and
corresponds to the number of nodes that have moved from one SF (SF) to a higher one (SF + 1) (i.e.,
refers to all the nodes that have moved from SF7 to SF8). We should note here that term
does not take part in the calculations as all the nodes that are inside the SF12 zone at phase one do not have the option to migrate to a higher SF zone but they are calculated in the mean value
.
Taking into consideration all the above, we expect a higher mean data latency, related to the stationery case, by the factor [SF] which stands for a mean value for all the nodes that will get a higher SF. This factor is not the same as the aToA as contains the nodes that have migrated to a higher SF except those that were already at the SF 12 (we assume that they will not leave the simulation area). Contradictory though it may be, MOTILO manages to mitigate this increment by adding phase one of the protocol. Utilizing the knowledge of intentions for transmitting from phase one, nodes are able to schedule their transmission program eliminating empty time slots, resulting in lower values of mean data latency. Future work will investigate the analytic form of the [SF].
For a network with 9 nodes (
Figure 4a) starting from random positions inside the testbed area, the mean data latency is shown in
Figure 5a. The nodes move in an endless random pattern subjected to the parameters of
Table 2. While the performance of the two TDMA protocols are almost identical (the second GPS measurement for the TDMA-2M as mentioned above helps to avoid lost packets) and at the levels of 1.6 s, the proposed protocol delivers a latency improvement starting from 31% and reaching 62% in case of a single node for transmission. The main advantage of the algorithm is that it spends time listening to the intentions of the nodes and then assigns slots only to the nodes that have data to transmit.
As expected, when we add more nodes to the simulation (
Figure 4b and
Figure 5b), the performance gap is widening as the MOTILO algorithm is able to achieve up to almost 85% lower latency for the lighter loads, while when all the nodes have data to transmit the gap closes up to 21%. For the same reasons as stated above, both TDMA variations have the same latency but the TDMA-2M avoids lost packets.
Finally, in the last simulation we test MOTILO in highly dense network (
Figure 4c) formations standing also as another point of segregation from existing protocols. As shown in
Figure 5c, MOTILO retains the same performance characteristics versus the TMDA-based protocols. It is interesting though to point out that while in the previous two simulation scenarios the 2M protocol had a minuscule performance advantage versus the PL, in this scenario there is no visible difference between them. This is more probably due to the smaller covariance of the system due to the high enough number of nodes.
Moreover, it is meaningful to examine the average packet loss during the implementation of the presented algorithms (TDMA-PL, TDMA-2M and MOTILO). Similarly to the mean data latency average packet loss (APL) is calculated over all the
runs in order to minimize any statistical errors. For every run, we calculate the packets that are not delivered due to node migration to higher SF Zones. The sum of all these packets is divided by the total number of runs for this metric. Again the
In detail,
Figure 6 shows the average number of lost packets per TDMA cycle when the number of network nodes varies from 9 to 999 nodes. We opted for the case of 100% loads (as our worst case scenario) as in all other network load values our algorithm significantly outperforms the other two algorithms. It can clearly be seen that the TDMA-PL algorithm which constitutes a direct transfer of [
6] presents a considerable rate of lost packets, with this number rising progressively as the number of EDs increases. This is explained by the fact that all EDs try to send their packets only to the initial time slot assigned to them, while suffering from a potential packet loss in case some of them have moved to a higher SF zone. On the contrary, pertaining to the TDMA-2M, the number of packet loss is reduced to zero for all the cases as the algorithm executes a final GPS measurement before the data transmission and amend its SF accordingly. The direct result of this process though is the increased data latency. MOTILO, on the other hand, achieves decreased data latency with minimum packet losses. proving the ability of the algorithm to adapt to the possible movements of the EDs in zones with a higher SF, since it was given the opportunity to use a time slot belonging to a higher SF. As seen from the
Figure 6, for denser network formations, MOTILO faces some packet losses as the increased number of nodes results in longer moving periods and this means increased probability for a two or more SF leaps. However, the proposed protocol maintains the mean data latency significantly lower compared to the TDMA-2M algorithm, as verified by the line graphs presented and analyzed above (
Figure 5a–c).
From the above performance analysis, it is apparent that MOTILO, being an IoT-oriented LoRa protocol can be utilized to orchestrate moving nodes in wide area coverage applications. As such, forest fire detection applications that combine terrestrial and aerial surveillance means like autonomous robots and UAVs respectively, could be benefited from the low number of lost transmissions and the low mean data latency in order to provide near time information to the monitoring headquarters. Another field of possible use would be the vehicular ad hoc networks (VANET) as the speeds and the number of nodes are in accordance to the usable range of the WuR utilized in MOTILO. That way, LoRa transceivers could be used for mobile data offloading. In agriculture and farming, as mobile network coverage may be limited due to the special characteristics of remote farms, MOTILO could be used to track and synchronize self driving tractors and other farming machines. Additionally, MOTILO could be adopted in battlefield as a primary or backup communication system to integrate all military machinery such as tanks, helis, soldier units, moving artilleries, and military drones. The number of supported nodes and their actual velocities do not differ from the scenarios that were investigated in this work. Future protocol amendment would handle unlimited number of SF zone migrations, render the future version of MOTILO an ideal candidate for applications with zero-tolerance in lost packets and minimum latency.
Another interesting set of simulation scenarios is shown in
Figure 7. In this figure, we test the link between the mean data latency and the speed of nodes and the number of direction changes of the moving pattern. As shown in this figure, there is a slight improvement with the increased speed. This is not a direct relation between the speed of the EDs and the operation of the MOTILO but more a result of the simulation testbed. Due to the operation of MOTILO, the nodes with the higher SFs affect the mostly the total mean data latency as the higher the number of them, the more the latency the system will face as the additional slots that will be reserved will be in the most time-demanding SF zones. For example, a node that is in the SF7 zone will insert a possible ToA(8) time-slot delay while a node in SF1 will insert a possible SF(12) time-slot delay. As the ToA(12) is almost 30 times higher than ToA(7) it become apparent that the EDs at the higher SF zones have a predominant effect to the total Mean data latency. Moreover, the aforementioned nodes as they are already at the boundaries of the simulation area, they only move to the inner sections of the testbed as time passes. Their final position is based on the random walk properties and as a result the most possible outcome is to be found in lower SF zone after the initialization of the simulation.
Being a protocol for IoT applications with moving nodes and limited energy resources, in
Figure 8 we calculate the expected lifetime of the network by comparing all the protocols presented in this work. MOTILO, due to the elimination of the empty slots in comparison to the other two approaches, manages to offer almost 3 times more days of operation until the energy exhaustion of the nodes. We calculated the mean energy consumption of the nodes and we projected the life time of them based on a 1200 mAh battery as shown in
Table 3. This metric is based on a 10 s cycle for all the protocols and as expected, for lighter load conditions MOTILO outperforms the other solutions and keeps that advantage for loads up to 70%. After that load, nodes in MOTILO consume higher amounts of energy in comparison to the TDMA-PL, primarily due to the second GPS measurement along with the addition of phase one where all nodes need to open their circuitry in order to inform about their intention for transmission. For 100% load, MOTILO and TDMA-2M offer the same network lifetime, while the TDMA-PL offers almost 28% more. However, one should recall that TDMA-PL does not offer lost packet protection while the other two protocols offer increased protections against lost packets due to ED motion.