You are currently viewing a new version of our website. To view the old version click .
Mathematics
  • Article
  • Open Access

22 October 2022

A Collision Reduction Adaptive Data Rate Algorithm Based on the FSVM for a Low-Cost LoRa Gateway

,
,
,
,
,
and
1
School of Communications and Information Engineering and School of Artificial Intelligence, Xi’an University of Posts and Telecommunications, Xi’an 710121, China
2
Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang 110016, China
3
Guangzhou Institute of Industrial Intelligence, Guangzhou 511458, China
*
Author to whom correspondence should be addressed.
This article belongs to the Special Issue Deep Learning and Adaptive Control

Abstract

LoRa (Long Range), a wireless communication technology for low power wide area networks (LPWANs), enables a wide range of IoT applications and inter-device communication, due to its openness and flexible network deployment. In the actual deployment and operation of LoRa networks, the static link transmission scheme does not make full use of the channel resources in the time-varying channel environment, resulting in a poor network performance. In this paper, we propose a more effective adaptive data rate (ADR) algorithm for low-cost gateways, we firstly analyze the impact of the different hardware parameters (RSSI, SNR) on the link quality and classify the link quality using the fuzzy support vector machine (FSVM). Secondly, we establish an end device (ED) throughput model and energy consumption model and design different adaptive rate algorithms, according to the different link quality considering both the link-level performance and the MAC layer performance. The proposed algorithm uses machine learning to classify the link quality, which can accurately classify the link quality using a small amount of data, compared to other adaptive rate algorithms, and the link parameter adaptation algorithm can maximize the throughput while ensuring the link stability, by considering the link-level performance and the MAC layer performance, compared to other algorithms. The results show that it outperforms the standard LoRaWAN ADR algorithm in both the single ED and the multi ED scenarios, in terms of the packets reception rate (PRR) and the network throughput. Compared to the LoRaWAN ADR in 32 multi-ED scenarios, the proposed algorithm improves the throughput by 34.12% and packets the reception rate by 26%, significantly improving the network throughput and the packets reception rate.
MSC:
68T05

1. Introduction

Among the many LPWAN technologies, LoRa can meet the demand of large scale and wide coverages, due to its openness and flexibility [1], the LoRa physical layer adopts the linear spread spectrum modulation technology, which can flexibly adjust the data transmission rate through the different transmission parameter configurations [2]. It achieves a long-distance, a long battery life and a large-scale coverage data transmission.
In the LoRa IoT narrowband network with a wide area coverage, in actual operation, the requirements for the channel bandwidth, the ED energy consumption, and the network connection performance are high. Under the time-varying channel environment, the traditional fixed link transmission scheme cannot fully utilize the channel resources, so the network performance will be greatly reduced [3]. The dynamic link control technology refers to adjusting the link parameters, according to the real-time link quality to adapt to the channel changes, improve the network throughput, and reduce the ED energy consumption. The dynamic link control technology precisely controls the link parameters, according to the channel conditions, which can ensure a link stability, optimize the energy consumption, reduce the retransmission probability and improve the network performance of the LoRa networks [1].
Most of the existing studies on the dynamic link control technology of the LoRa network are based on the LoRaWAN network architecture [4,5], and the LoRa gateway chip that usually uses Semtech SX130x. However, low-cost gateways, based on Semtech SX126x/SX127x chips are often used in the actual deployed LoRa private networks [6] and there is no suitable dynamic link control technology for such networks. Most of the existing studies on the dynamic link control technology of the LoRa network are based on LoRaWAN network architecture [7,8], and the LoRa gateway chip is Semtech SX1301 [5,8]. There is no dynamic link control technology suitable for such networks. In this paper, an ED-GW-NS network architecture is used. The end device (ED) sends the packets to the gateway (GW). The gateway transmits the packets to the network server (NS), which is usually deployed in a cloud computing environment, through other communication technologies (Ethernet/3G/4G). Based on such a network architecture, this paper proposes a conflict-reducing adaptive rate algorithm, suitable for low-cost LoRa gateways. Aiming at the problem that the communication quality of the LoRa technology is susceptible to interference and multi-path effects during the long-distance transmission, a data-driven multi-rate link evaluation model was established. Secondly, a link parameter adaptation model is established for the different link qualities to improve the throughput of the actually deployed LoRa network and reduce the packet loss rate. Compared with the traditional adaptive rate algorithm, the proposed algorithm uses machine learning to build a link quality assessment model to quickly and accurately assess the link quality using a small amount of data, and uses the ED throughput model and energy consumption model, combined with the link budget to build a link parameter adaptation model, that takes into account not only the link-level performance and the MAC layer performance, but also the energy consumption.
The remainder of this paper is organized as follows. Section 2 introduces the current research on the adaptive rate algorithm for the LoRa network, Section 3 constructs a link quality classification model using machine learning, and Section 4 constructs an algorithm optimization objective, based on the established ED throughput and energy consumption models, and adapts the optimal link parameters. Validation and analysis of the algorithm is performed in Section 5, and the paper is concluded in Section 6.

5. Testing and Result Analysis

5.1. Single ED Scenario

As in Figure 4 and Figure 12, the gateway is deployed on the roof of a 20 m high building, the ED is 572 m from the gateway. The ED parameters were initially configured, as follows in Table 5. The bandwidth is 500 k, the spreading factor is 7. The ED generates one packet per second, and the packets’ reception rate is calculated every 20 s. The PRR changes with 2000 s under the proposed algorithm, the standard ADR and the static parameter settings are compared.
Figure 12. Experimental scenario 1.
Table 5. Single ED initial parameter configuration.
Figure 13 shows the change of the PRR of the different algorithms. Following the final three methods are implemented, the parameters of the nodes are configured, as shown in Table 6. Figure 14 shows the comparison of the different algorithms. It can be concluded that the PRR of the proposed algorithm is improved by 27%, compared with the standard ADR, and 52% when compared with static parameters. The main reason is that the standard ADR uses the maximum SNR in the window period to evaluate the current channel, while, for the shadow fading channel, it tends to use a faster rate, resulting in a higher packet loss rate. The proposed algorithm first classifies the link quality, according to the hardware parameters. To ensure an accurate link quality evaluation, the link with the PRR lower than 90%, is classified as a bad link. To improve the link budget of the bad links, so that the link quality is stable in a good range, the PRR has to reach over 90%.
Figure 13. PRR variation for the different algorithms on a single link.
Table 6. Final parameter configuration for three methods.
Figure 14. Algorithm comparison.

5.2. Multi-ED Scenario

Thirty-two EDs were evenly distributed at 100 m, 200 m, 300 m, 500 m, 700 m, 1 km, 1.5 km, and 2 km away from the gateway, The gateway is deployed on the 20-m-tall roof of the School of Communication and Information Engineering of Xi’an University of Posts and Telecommunications. The initial parameters of all of the EDs were the lowest rate, as shown in Table 7. All EDs start working on channel 8 of the gateway, the BW was 62.5 KHz, the SF was 12, and the P was 10 dBm. The 8 channels were configured on the gateway side. The channel parameter settings are set, as shown in Table 8. Figure 15 shows the initial location distribution of the 32 EDs, the starting parameters of all of the nodes are located on channel 8 of the gateway, as shown in Table 7. Figure 16 shows the actual deployment environment. When the algorithm is running, the parameters of the nodes are changed and will be adjusted to each channel of the gateway. A 20-byte packet is generated every 5 s, and the network throughput is calculated every 20 s. The proposed algorithm counts the network throughput variation within 2000 s, and is compared with the standard ADR algorithm and the channel uniform distribution ED algorithm.
Table 7. Muti-Eds’ initial parameter configuration.
Table 8. Gateway channel parameter configuration.
Figure 15. Multi-ED location distribution.
Figure 16. ED and gateway deployment locations.
Figure 17 shows the final number of EDs per channel of the gateway after the algorithm execution is completed after 2000 s, and the final number of EDs for channel 1 is 14. This is because channel 1 has the fastest rate and the corresponding smaller conflict probability, the more EDs can be accommodated, and it can be seen that the proposed algorithm tries to adjust the EDs to the channel with a small conflict probability under the premise of ensuring a link reliability, which ensures the link reliability and the network throughput. Figure 18 shows the variation of the whole network throughput for different algorithms during the 2000 s. The throughput of the proposed algorithm is 34.12% higher than that of the standard ADR and 24.14% higher than that of the algorithm that divides the EDs into different channels, equally. This is mainly because the proposed algorithm first classifies the link quality, allocates the different link adaptation algorithms according to the different link qualities, and ensures the highest throughput of the ED on the premise of ensuring a sufficient link budget. Since the LoRaWAN ADR uses the SX1301 chip, it only supports a 125 KHz bandwidth, so only the SF and the power can be adjusted. The LoRaWAN ADR without a fixed channel limit, tends to be faster and consumes less energy, but the resulting packet loss is also more obvious. The proposed algorithm is applied to the SX1278/SX1262 gateway, which supports the multi-channel low-bandwidth, but does not support the single-channel multi-SF demodulation. On the premise of ensuring the link stability, the channel with the highest throughput is used to ensure a low packet loss rate.
Figure 17. Number of the different channel EDs after the rate adjustment by the proposed algorithm.
Figure 18. Throughput comparison of the different algorithms.
Figure 19 shows the average energy consumption of all EDs for the successful transmission of a packet calculated, as in Equation (19), and the average packet reception rate of the two algorithms for the 32 EDs, the final parameters of the 32 EDs are configured in Figure 17, and the rate is the rate of the channel where they are located. It can be seen that the packet reception rate is 26% higher than that of the LoRaWAN ADR, while the average energy consumption of the EDs for the successful transmission of a packet is slightly lower than that of the LoRaWAN ADR. The proposed algorithm can significantly improve the packet reception rate and ensure the stability of the link. Because the LoRaWAN ADR adopts a more aggressive strategy to adjust the rate [15,32], it tends to adopt a faster rate which leads to a more serious packet loss and does not consider the MAC layer conflict [33]. Although a faster rate means a lower energy consumption of the ED, the physical layer packet loss and the MAC layer conflict will bring the packet retransmission, resulting in more energy consumption to actually transmit a packet successfully [34]. If the energy consumption is calculated without considering the MAC layer conflict and the physical layer packet loss, the LoRaWAN ADR consumes less energy. Figure 20 shows the comparison of the energy efficiency of the two algorithms calculated [22], as in Equation (22), L represents a package length which is 160 bits, and E is calculated, as in Equation (19), and it can be seen that the energy efficiency of the two algorithms is essentially equal. However, the proposed algorithm is able to bring a significant improvement in the throughput and the PRR.
η E E = L E
Figure 19. Comparison of the different algorithms.
Figure 20. Energy efficiency comparison.

5.3. Algorithm Complexity Analysis

On a normal 2.4 GHz CPU main frequency and 8 GB memory server, the algorithm execution time is divided into two parts. one part is based on the link quality classification of the previously trained support vector machine model, and the time used for a single classification is 0.000322 ms. The other part is the link parameter adaptation, the algorithm complexity is O(n). The algorithm execution time for a single execution under the condition of 1000 channels is 0.7669 ms, and the total running time is 0.767 ms, which can meet the requirements of the application.

6. Conclusions

In this paper, an adaptive rate algorithm is proposed for the practically deployed low-cost LoRa gateways. Firstly, the link quality is classified, based on the fuzzy support vector machine, secondly, the different link parameter adaptation algorithms are designed, based on the different link qualities, considering both the link-level performance and the MAC layer performance, and finally, the proposed algorithm is verified in a practically deployed LoRa network. The experimental results show that the PRR of the proposed algorithm can be stabilized above 90% for a single link, which is 27% higher than the standard LoRaWAN ADR. For multiple EDs, with a packet generation rate of 5 s per ED and a packet length of 20 Bytes, the proposed algorithm achieves an average PRR of 97%, and the throughput is improved by 34.12%, compared with the standard ADR. Therefore, the throughput and the PRR of the LoRa network can be significantly improved with a comparable energy consumption and the LoRaWAN ADR, which verifies the effectiveness of the proposed algorithm. However, the proposed algorithm still has some limitations. On the one hand, the algorithm has a high computational complexity and cannot be deployed in some edge devices with insufficient computing power, and on the other hand, the algorithm does not consider the heterogeneity of the network, and most IoT networks in practice have heterogeneous characteristics. The future improvement of the algorithm can start from the above two directions.

Author Contributions

Conceptualization, H.W. and P.P.; methodology, R.P. and K.W.; software, P.P.; validation, P.P.; formal analysis, H.W. and Y.Z.; investigation, R.P. and J.X.; writing—original draft preparation, P.P. and J.Y.; writing—review and editing, H.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Key Industry Innovation Chain Project of Shaanxi Province (No. 2021ZDLGY07-10, No. 2021ZDLNY03-08), the Science and Technology Plan Project of Shaanxi Province (No. 2022GY-045), the Key Research and Development plan of Shaanxi Province (No. 2018ZDXM-GY-041), Scientific Research Program Funded by Shaanxi Provincial Education Department (Program No. 21JC030), the Science and Technology Plan Project of Xi’an (No. 2019GXYD17.3), Graduate Innovation Fund of Xi’an University of Posts and Telecommunications (CXJJLY202047).

Data Availability Statement

No applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kufakunesu, R.; Hancke, G.; Abu-Mahfouz, A. A Survey on Adaptive Data Rate Optimization in LoRaWAN: Recent Solutions and Major Challenges. Sensors 2020, 20, 5044. [Google Scholar] [CrossRef] [PubMed]
  2. SemtechCorporation. LoRa Modulation Basics. 2015. Available online: http://wiki.lahoud.fr/lib/exe/fetch.php?media=an1200.22.pdf (accessed on 29 August 2022).
  3. Benkahla, N.; Tounsi, H.; Song, Y.Q.; Frikha, M. Review and experimental evaluation of ADR enhancements for LoRaWAN networks. Telecommun. Syst. 2021, 77, 1–22. [Google Scholar] [CrossRef]
  4. Almuhaya, M.A.M.; Jabbar, W.A.; Sulaiman, N.; Abdulmalek, S. A Survey on LoRaWAN Technology: Recent Trends, Opportunities, Simulation Tools and Future Directions. Electronics 2022, 11, 164. [Google Scholar] [CrossRef]
  5. Arshad, J.; Aziz, M.; Al-Huqail, A.A.; Zaman, M.H.u.; Husnain, M.; Rehman, A.U.; Shafiq, M. Implementation of a LoRaWAN Based Smart Agriculture Decision Support System for Optimum Crop Yield. Sustainability 2022, 14, 827. [Google Scholar] [CrossRef]
  6. Jabbar, W.A.; Subramaniam, T.; Ong, A.E.; Shu’Ib, M.I.; Wu, W.; de Oliveira, M.A. LoRaWAN-Based IoT System Implementation for Long-Range Outdoor Air Quality Monitoring. Internet Things 2022, 19, 100540. [Google Scholar] [CrossRef]
  7. Lodhi, M.; Wang, L.; Farhad, A. ND-ADR: Nondestructive adaptive data rate for LoRaWAN Internet of Things. Int. J. Commun. Syst. 2022, 35, e5136. [Google Scholar] [CrossRef]
  8. Almuhaya, M.A.M.; Jabbar, W.A.; Sulaiman, N.; Sulaiman, A.H.A. An Overview on LoRaWAN Technology Simulation Tools. In Proceedings of the Advances on Intelligent Informatics and Computing; Saeed, F., Mohammed, F., Ghaleb, F., Eds.; Springer International Publishing: Cham, Germany, 2022; pp. 345–358. [Google Scholar]
  9. He, T.; Ren, Q.; Chen, D. Analysis of Node Performance in LoRaWAN Network Based on Markov Chain. Chin. J. Sens. Actuators 2018, 31, 1399–1405. [Google Scholar]
  10. Zacharias, S.; Newe, T.; O’Keeffe, S.; Lewis, E. 2.4 GHz IEEE 802.15.4 channel interference classification algorithm running live on a sensor node. In Proceedings of the SENSORS, Taipei, Taiwan, 28–31 October 2012; IEEE: Piscataway Township, NJ, USA, 2012; pp. 1–4. [Google Scholar]
  11. Wang, H.; Jia, J. Research on Data-Driven LoRa Link Quality Estimation. In Proceedings of the 2024 4rd International Conference on Natural Language Processing (ICNLP), Guangzhou, China, 24–26 March 2022; pp. 9–13. [Google Scholar]
  12. Dong-xu, F.; Dong-qin, F.; He-nan, Z. Mean LQI and RSSI based link evaluation algorithm and the application in frequency hopping mechanism in wireless sensor networks. In Proceedings of the 2011 International Conference on Consumer Electronics, Communications and Networks (CECNet), Xianning, China, 16–18 April 2011; pp. 3252–3257. [Google Scholar]
  13. De, D.; Daniel, C.; John, A.; Morris, B. A High-Throughput Path Metric for Multi-Hop Wireless Routing. Wirel. Netw. 2003, 11, 134–146. [Google Scholar]
  14. Liu, L.; Xiao, T.; Xia, Y. Link Quality Estimation Based on Extremely Fast Decision Tree. J. Beijing Univ. Posts Telecommun. 2021, 44, 125–130. [Google Scholar]
  15. SemtechCorporation. LoRaWAN—Simple Rate Adaptation Recommended Algorithm. 2016. Available online: https://www.thethingsnetwork.org/forum/uploads/default/original/2X/7/7480e044aa93a54a910dab8ef0adfb5f515d14a1.pdf (accessed on 29 August 2022).
  16. Cai, Q.; Lin, J.; Xia, C. Adaptive Configuration Strategy on LoRa Networks for Multi-Heterogeneous IoT Applications. Comput. Syst. Appl. Chin. 2020, 29, 1–10. [Google Scholar]
  17. Marini, R.; Cerroni, W.; Buratti, C. A Novel Collision-Aware Adaptive Data Rate Algorithm for LoRaWAN Networks. IEEE Internet Things J. 2021, 8, 2670–2680. [Google Scholar] [CrossRef]
  18. Abdelfadeel, K.Q.; Cionca, V.; Pesch, D. Fair Adaptive Data Rate Allocation and Power Control in LoRaWAN. In Proceedings of the 2018 IEEE 19th International Symposium on ”A World of Wireless, Mobile and Multimedia Networks” (WoWMoM), Chania, Greece, 12–15 June 2018; pp. 14–15. [Google Scholar]
  19. Sandoval, R.M.; Garcia-Sanchez, A.J.; Garcia-Haro, J. Optimizing and Updating LoRa Communication Parameters: A Machine Learning Approach. IEEE Trans. Netw. Serv. Manag. 2019, 16, 884–895. [Google Scholar] [CrossRef]
  20. Luo, X.; Liu, L.; Shu, J.; AlKali, M. Link Quality Estimation Method for Wireless Sensor Networks Based on Stacked Autoencoder. IEEE Access 2019, 7, 21572–21583. [Google Scholar] [CrossRef]
  21. Reynders, B.; Meert, W.; Pollin, S. Power and spreading factor control in low power wide area networks. In Proceedings of the 2017 IEEE International Conference on Communications (ICC), Paris, France, 21–25 May 2017; pp. 1–6. [Google Scholar]
  22. Li, Y.; Yang, J.; Wang, J. DyLoRa: Towards Energy Efficient Dynamic LoRa Transmission Control. In Proceedings of the IEEE INFOCOM 2020—IEEE Conference on Computer Communications, Toronto, ON, Canada, 6–9 July 2020; pp. 2312–2320. [Google Scholar]
  23. Premsankar, G.; Ghaddar, B.; Slabicki, M.; Francesco, M.D. Optimal Configuration of LoRa Networks in Smart Cities. IEEE Trans. Ind. Inform. 2020, 16, 7243–7254. [Google Scholar] [CrossRef]
  24. Amichi, L.; Kaneko, M.; Fukuda, E.H.; El Rachkidy, N.; Guitton, A. Joint Allocation Strategies of Power and Spreading Factors With Imperfect Orthogonality in LoRa Networks. IEEE Trans. Commun. 2020, 68, 3750–3765. [Google Scholar] [CrossRef]
  25. Sandoval, R.M.; Rodenas-Herraiz, D.; Garcia-Sanchez, A.J.; GarciaHaro, J. Deriving and Updating Optimal Transmission Configurations for Lora Networks. IEEE Access 2020, 8, 38586–38595. [Google Scholar] [CrossRef]
  26. Reynders, B.; Wang, Q.; Tuset-Peiro, P.; Vilajosana, X.; Pollin, S. Improving Reliability and Scalability of LoRaWANs Through Lightweight Scheduling. IEEE Internet Things J. 2018, 5, 1830–1842. [Google Scholar] [CrossRef]
  27. Finnegan, J.; Farrell, R.; Brown, S. Analysis and Enhancement of the LoRaWAN Adaptive Data Rate Scheme. IEEE Internet Things J. 2020, 7, 7171–7180. [Google Scholar] [CrossRef]
  28. Hoeller, A.; Souza, R.D.; Montejo-S’anchez, S.; Alves, H. Performance Analysis of Single-Cell Adaptive Data Rate-Enabled LoRaWAN. IEEE Wirel. Commun. Lett. 2020, 9, 911–914. [Google Scholar] [CrossRef]
  29. El-Aasser, M.; Elshabrawy, T.; Ashour, M. Joint Spreading Factor and Coding Rate Assignment in LoRaWAN Networks. In Proceedings of the 2018 IEEE Global Conference on Internet of Things (GCIoT), Alexandria, Egypt, 5–7 December 2018; pp. 1–7. [Google Scholar]
  30. Yao, Y.; Chen, X.; Rao, L.; Liu, X.; Zhou, X. LORA: Loss Differentiation Rate Adaptation Scheme for Vehicle-to-Vehicle Safety Communications. IEEE Trans. Veh. Technol. 2017, 66, 2499–2512. [Google Scholar] [CrossRef]
  31. Liao, W.S.; Zhao, O.; Ishizu, K.; Kojima, F. Adaptive Parameter Adjustment for Uplink Transmission for Multi-gateway LoRa Systems. In Proceedings of the 2019 22nd International Symposium on Wireless Personal Multimedia Communications (WPMC), Lisbon, Portugal, 24–27 November 2019; pp. 1–5. [Google Scholar]
  32. Ksiazek, K.; Grochla, K. Flexibility Analysis of Adaptive Data Rate Algorithm in LoRa Networks. In Proceedings of the 2021 International Wireless Communications and Mobile Computing (IWCMC), Harbin, China, 28 June–2 July 2021; pp. 1393–1398. [Google Scholar]
  33. Heeger, D.; Garigan, M.; Plusquellic, J. Adaptive Data Rate Techniques for Energy Constrained Ad Hoc LoRa Networks. In Proceedings of the 2020 Global Internet of Things Summit (GIoTS), Dublin, Ireland, 3–5 June 2020; pp. 1–6. [Google Scholar]
  34. Adi, P.D.P.; Kitagawa, A. Performance Evaluation of Low Power Wide Area (LPWA) LoRa 920 MHz Sensor Node to Medical Monitoring IoT Based. In Proceedings of the 2020 10th Electrical Power, Electronics, Communications, Controls and Informatics Seminar (EECCIS), Malang, Indonesia, 26–28 August 2020; pp. 278–283. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.