Next Article in Journal
Real-Time Flood Monitoring with Computer Vision through Edge Computing-Based Internet of Things
Next Article in Special Issue
Logically-Centralized SDN-Based NDN Strategies for Wireless Mesh Smart-City Networks
Previous Article in Journal
Editorial for the Special Issue on “Software Engineering and Data Science”
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

LoRaWAN Network Downlink Routing Control Strategy Based on the SDN Framework and Improved ARIMA Model

1
Low Voltage Apparatus Technology Research Center of Zhejiang, College of Electrical and Electronic Engineering, Wenzhou University, Wenzhou 325000, China
2
Zhejiang People Electric Co., Ltd., Wenzhou 325000, China
*
Author to whom correspondence should be addressed.
Future Internet 2022, 14(11), 307; https://doi.org/10.3390/fi14110307
Submission received: 10 October 2022 / Revised: 21 October 2022 / Accepted: 24 October 2022 / Published: 27 October 2022
(This article belongs to the Special Issue Software-Defined Networking for the Internet of Things)

Abstract

:
In order to improve the downlink communication performance of the traditional LoRa wide area network (LoRaWAN), a LoRaWAN downlink routing control strategy based on the software defined networks (SDN) framework and the improved auto-regressive integrated moving average (ARIMA) model is proposed. The SDN architecture is used to monitor the network traffic, and the link bandwidth occupancy rate is calculated based on the monitored downlink traffic. Taking into account the impact of data volatility on the accuracy of the prediction results, the Savitzky–Golay (S–G) smoothing filter and the sliding window method are introduced for data pre-processing. Stationarity processing is carried out for the time series data in the window, and the ARIMA model is developed to predict the downlink bandwidth occupancy rate. The triangle module operator is then used to incorporate multiple path parameters to finally calculate the selectivity of different paths, and the optimal path for LoRaWAN downlink communication is then provided. Simulation and experimental results show that the root mean square error of the improved ARIMA prediction model is reduced by 87% compared with the standard ARIMA model. The proposed routing control strategy effectively reduces the service transmission delay and packet loss rate. In the LoRaWAN test environment, as the downlink load rate increases, the average link bandwidth occupancy rate of this solution increases by 12% compared with the traditional method.

1. Introduction

With the development of Internet of Things (IoT) technology, low-power wide-area networks (LPWAN) technologies are able to fill the gap between short-range wireless multi-hop ad hoc networks and cellular networks [1]. Wireless sensor network technologies [2,3] have become an important research area. Currently, LPWANs are suitable for multiple IoT applications, such as smart city [4], smart energy [5,6], environmental monitoring [7] and other fields. One of the main technologies of LPWAN is long -range wide-area network (LoRaWAN) [8], which is an open standard framework that allows long-range communication between thousands of low-power-consumption battery-powered devices and a continuously online gateway with a cellular structure. Research into LoRaWAN communications can be mainly divided into two categories: uplink communication and downlink communication. Related research of uplink communication mainly includes the network access reliability of equipment, the performance optimization of frequency hopping transmission, the quality of service of the LoRa network, the physical performance of the LoRa signal, etc. In [9], the reliability of the terminal equipment network transmission mechanism and the network communication delay in LoRaWAN uplink communication are discussed. In [10,11,12], the dual key activation update method is used to ensure the security of physical devices in the LoRaWAN network. The LoRaWAN uplink communication research helps to solve the reliability problems of stable network access for terminal equipment and data collection. However, the reply and message confirmation of the network server are usually ignored in such types of research. As for downlink communication, the transmission of business information such as control instructions and interactive data is usually involved, which makes the downlink communication an important part of the LoRaWAN network. It is of great significance to develop the optimal LoRaWAN network downlink routing control strategy to construct the high-performance and high-reliability LoRaWAN network.
In the downlink communication of the LoRaWAN network, transmission delay and packet loss rate are important parameters to evaluate the downlink communication service quality. In [13,14], it is shown that the downlink communication performance is usually limited by the arrival rate, the retransmission times, and the data rate of uplink data. It is proposed to employ downlink channel monitoring, the cyclic broadcast, and the multicast method to improve the downlink communication performance. However, most of these studies try to improve the communication performance based on the optimization of the communication polling mechanism. The routing control is hardly studied.
It is known that in LoRaWAN communication, data control and forwarding are closely related. With the increase of the downlink load rate, communication congestion is very likely to be induced if the proper routing control is missing.
In recent years, software defined networks (SDN) technology has evolved into a flexible strategy for ensuring heterogeneous networks support a wide range of application requirements, as shown in Table 1.
In the process of data downlink transmission, when the network is overloaded or congested, by applying the proper routing control strategy, the resource allocation mechanism in SDN offers the possibility to ensure highly efficient network communication. It is known that the bandwidth occupancy rate of the downlink communication link is a system with periodic dynamic changes [22,23]. It is needed to construct the time series regression analysis for the data processing. In this paper, the auto-regressive integrated moving average (ARIMA) time series algorithm is developed to model and analyze the LoRaWAN downlink bandwidth occupancy. Aiming to solve the problems of high packet loss rate and large transmission delay in the existing LoRaWAN network downlink communication, a LoRaWAN network downlink routing control strategy is proposed based on the SDN framework and the improved ARIMA model. The SDN framework is used to establish the downlink routing model of the LoRaWAN network to realize the monitoring of the network status in the downlink routing process. In order to improve the prediction accuracy of the existing ARIMA model, an improved ARIMA model by combining the Savitzky–Golay (S–G) filtering and the sliding window method is proposed to improve the data stationarity.
  • According to the reconstructed data, an ARIMA-based link bandwidth occupancy rate prediction model (LBOP-ARIMA) is established, and the link bandwidth occupancy rate is predicted.
  • Then, according to the triangular modulus operator, parameters such as the transmission delay of the network downlink communication route, and the routing bandwidth occupancy rate at time t and time t + T are integrated, and different routing degrees are calculated.
  • The downlink routing control is simulated on the Mininet platform, and the communication performance of different routing control strategies is compared. On this basis, the LoRaWAN network application platform test is then built up, and the reliability of the downlink communication is verified for the proposed scheme.
The paper is organized as follows: The LoRaWAN network downlink communication is introduced in Section 2. In Section 3, the LBOP-ARIMA model is proposed. LoRaWAN downlink routing control strategy is presented. Experiment and analysis are carried out in Section 5. The conclusions are given in Section 6.

2. LoRaWAN Network Downlink Communication

2.1. Downlink Communication Mechanism Based on the SDN Framework

In this paper, a LoRaWAN downlink communication mechanism is proposed by combining the software defined network framework and the improved ARIMA model. The proposed downlink routing mechanism is shown in Figure 1. The routing mechanism is mainly composed of three parts, the host, the transport layer and the terminals. The link layer discovery protocol (LLDP) is developed for the host to enable the server to quickly and accurately set up the global topology of the downlink routing of the LoRaWAN network and the network status parameters. The SDN controller at the transport layer collects and manages the network status according to the traffic information, and then formulates the corresponding downlink communication routes. The link bandwidth occupancy rate prediction module sends out the received downlink bandwidth occupancy rate at time t into the time series ARIMA model for training, and the occupancy rate is predicted for time t + T, where T represents the sampling point. The selectivity Q of different routes are calculated from the routing calculation module based on the triangle module of fuzzy mathematics. According to the flow entries, data is transmitted to the LoRaWAN gateway by the SDN switch. Finally, the downlink data packet is transmitted to the terminal device by the LoRaWAN gateway. Routing protocols are applied between network server to SDN switches. The ARIMA link bandwidth occupancy prediction model (LBOP-ARIMA) in the SDN control layer is the core part of the routing mechanism. This mechanism takes advantage of the OpenFlow protocol to implement the real-time information exchange between the control layer and the gateway and separates the processes of data control and data forwarding, and thereby reduces the transmission delay and packet loss rate.

2.2. Downlink Routing Modeling Based on the SDN

The downlink routing model is developed to analyze the data packets downlink routing process of LoRaWAN based on the SDN framework. We assume the downlink routing model is represented as G = (V, L), where V = {v1, v2, …, vi} is the switch node sets in the LoRaWAN downlink routing and i denotes the different SDN switch numbers. The downlink route set is represented as L = {l1, l2, …, lj}, where j refers to the number of each downlink route. A downlink routing model of LoRaWAN network based on the SDN framework is developed and the modeling topology is shown in Figure 2. The routing of the downlink communication is set up by the SDN controller to monitor the network operation status. The OpenFlow protocol is adopted, and the flow entries are developed for the data transmitting. The downlink communication data can only be sent and received on the port connected with the corresponding SDN switch.

2.3. LoRaWAN Downlink Communication Protocol

The sequence interaction process of the downlink communication between the gateway and the server in the LoRaWAN network is shown in Figure 3. It is seen that the periodically transmit keepalive messages is needed to maintain the connection. PUSH_DATA messages are periodically sent out to inform the network server gateway of the UDP port number for receiving PULL_RESP data. The server responds to the PULL_DATA message with a PULL_ACK. Only after the interaction between the gateway and the network server is completed, the latest data can be delivered by the server. Application data is encapsulated in a JSON payload of PULL_RESP messages by the server. Lastly, the gateway decides whether to send a TX_ACK message to the network server according to the currently adopted LoRa gateway message protocol (GWMP) version. Before the network server sends data, it needs to confirm whether it has received the latest PUSH_DATA message. If the message is not received, a new PUSH_DATA needs to be sent out by the gateway.
PUSH_DATA and PULL_ACK are interactions that need to be completed before the server sends out data. The purpose is to ensure normal communication between the gateway and the service, and to keep the firewall of the gateway open. The sending period of the PULL_DATA message is set up by the gateway. In the downlink communication process, the network server calculates the modulation profiles (spreading factor, SF; code rate, CR; bandwidth, BW, etc.) of the downlink frame and the transmission timestamp in the downlink frame scheduling stage. When the internal clock reaches the downstream timestamp, the LoRaWAN gateway can only be programmed to leave one frame at a time. Therefore, downlink frames are buffered in a just-in-time queue. This hardware limitation exacerbates the problems caused by the half-duplex mode of the gateway and accelerates the duty cycle saturation process of downlink traffic, resulting in uneven link resource allocation in downlink routing and it is very likely to induce communication congestion.

2.4. Downlink Communication Status Parameters

The port parameter of the SDN switch and the status parameters of the flow entries in the LoRaWAN network are shown in Table 2. The status parameter f a ( t ) of the switch node v a from the flow entries and the port parameter p a , q ( t ) of the q port of the switch node v a are collected every ten seconds by the network traffic monitoring module, as shown in Table 2.
In Table 2, f a φ ( t ) is defined as the status parameter of the φ -type of v a from the flow entries at time t where a , φ N , and p a , q β ( t ) are defined as the status parameters of the β-type of the q port of v a from the flow entries at time t where a , q , β N . It can be seen from Table 2 that the status parameter P a , q ( t ) of the q port associated with node v a and the status parameter F a ( t ) from the flow entries can be described by the following equation.
P a , q ( t ) = [ p a , q 1 ( t ) , p a , q 2 ( t ) , , p a , q β ( t ) ] F a ( t ) = [ f a 1 ( t ) , f a 2 ( t ) , , f a φ ( t ) ]

2.5. Downlink Communication Bandwidth Occupancy

Assuming that the link l j and the q port of the SDN switch node v a are connected to the g port of node v b , the used bandwidth b j ( t ) of link l j at time t can be calculated as follows:
b j ( t ) = p a , q 4 ( t ) p a , q 4 ( t T ) + p b , g 4 ( t ) p b , g 4 ( t T ) T
In Equation (2), p a , q 4 ( t ) is defined as the transmitted data of node v a at port q at time t, and p b , g 4 ( t ) is defined as the transmitted data of node v b at port g at time t. Here, q, g are the port numbers of v a and v b ( q , g N ) .
In the process of downlink routing, max ( B j ) is defined as the maximum bandwidth of the data flow that can be transmitted by link l j , and the bandwidth occupancy rate of link l j at time t is calculated by the following equation:
μ j ( t ) = b j ( t ) max ( B j )
Here, Table 3 is set up to demonstrate the congestion level of the link bandwidth occupancy rate, in which s j ( t ) is used to represent the congestion degree of link l j at time t. The large value of s means the network tends to be congested.

3. The LBOP-ARIMA Model

For the downlink communication mechanism, when the network traffic information is collected, the link bandwidth occupancy rate (LBOP) at time t can be calculated according to Equation (3). To develop the proper downlink communication routing strategy, the bandwidth occupancy rate at time t + T needs to be determined. Here, the LBOP-ARIMA model is developed to predict the occupancy rate at time t + T. The general auto-regressive integrated moving average model ARIMA model is characterized by the terms: p, d, q, where p is the order of the AR (auto-regressive) term, q is the order of the MA (moving average) term, and d is the number of differencing required to make the time series stationary. When the second-order difference sequence is used, the ARIMA (p, d, q) is described as following, in which parameter d is 2:
y t = ε t + i = 1 p a i y t i + i = 1 q β i y t i + c
where y t is defined as the time series value at time t, ε t represents the random error at time t, y t i is the observation value of the time series at time t i , and a i , β i , and c are the regression parameters. The basic steps of establishing the ARIMA model are shown in Figure 4. Data acquisition and pre-processing is carried out in the first step. Secondly, time difference is used to check the smoothness of the time series data. Then, the p, and q terms are determined, and the model predictions are verified using the preset validation data set. The modeling process shown in Figure 4 is able to provide accurate predictions for data demonstrating periodicity and regularity. When there is data volatility involved, the process in Figure 4 may not be effective enough in providing accurate results and therefore must be improved.

3.1. The Savitzky–Golay Filtering

Compared with the standard ARIMA modeling process, the Savitzky–Golay smoothing filtering is proposed to be incorporated in the ARIMA model to take care of the data volatility problem. The main principle is to use a kth order polynomial to fit the data points collected within a window of customized length. The S–G filtering is essentially a weighted average algorithm combined with a sliding window. The coefficient is obtained by fitting the data points in the sliding window with the least square method of a given high-order polynomial.
The multi-order weighting coefficient calculation is given here. The window length is set to be n = 2 m + 1 , and m is the integer constant (m ≥ 1). The sampling time is defined as x = ( x 1 , x 2 , , x n ) , where ( x 1 , x 2 , , x n ) = m , m + 1 , , 0 , , m . The objective of the (k − 1)th degree polynomial is to fit the data points in the window. The fitting function is shown in Equation (5).
y = 0 + 1 x + 2 x 2 + + k 1 x ( k 1 )
where k 1 is the (k − 1)th coefficient and y represents the time series value at time x.
According to Equation (5), each measurement point is fitted to obtain n-related equations. To generate the solutions for the equations, it is necessary to set n as no less than k. Usually n > k is selected, and the fitting parameter A is calculated according to the least square method, A = [ 0 , 1 , , k 1 ] T ,
y m y m + 1 y m = 1 m ( m ) k 1 1 m + 1 ( m + 1 ) k 1 1 m m k 1 0 1 k 1 + e m e m + 1 e m
where e m represents the constant terms in the linear equations.
The least square solution A of A is:
A = X T · X 1 · X T · Y
where X = 1 m ( m ) k 1 1 m + 1 ( m + 1 ) k 1 1 m m k 1 , Y = y m , , y m T .
The model predicted or filtered value Y of Y is:
Y = X A = X ( X T X ) 1 X T Y = B Y
B = X ( X T X ) 1 X T
To run verifications, here the collected 12-h data set of network traffic status is trained and the time resolution is 10 s. The length of the sliding window is set when m = 5. The polynomial order is set as 3. The amount of downlink data in the specified window is calculated to obtain the sequence data of the bandwidth occupancy rate of link l j . The original sequence is fitted and reconstructed. The above S–G smoothing filtering method is introduced, and the effect after processing is shown in Figure 5. It can be seen that the proposed strategy is effective at reducing the data fluctuation and thus improving the data stability.

3.2. Model Parameter Selection

3.2.1. Determination of d

Before establishing the ARIMA model, the data stationarity of the original data series is checked. The autocorrelation function (ACF value) is described as follows:
A C F ( k ) = ρ k = C o v ( y t , y t k ) V a r ( y t )
Figure 6 shows the autocorrelation diagram of the bandwidth occupancy rate of link l j . For a stationary sequence, there are usually two main types of autocorrelation plots: tailing and truncating. Truncation means that the autocorrelation coefficients are all 0 after a certain order delay. The tail indicates that the correlation coefficient varies not only in a non-zero state, but also shows a decaying trend. It can be seen from Figure 6 that the autocorrelation diagram of the sequence is neither tailing nor truncating. The time series downlink bandwidth occupancy rate demonstrates non-stationarity, which means the proposed ARIMA model is required to analyze and predict the link load data.
The difference calculation for the original sequence is used. The unit root test is adopted to verify the stationarity of the series. The test results obtained from the calculation are shown in Table 4. It can be seen from Table 4 that the absolute values of the T value of ACF of the original sequence are smaller than the absolute values corresponding with the rejection probabilities 1%, 5%, and 10%, which means the hypothesis that the sequence is non-stationary has to be accepted. The absolute values of the T value of the second-order difference series are greater than the absolute values of the 1%, 5%, and 10% levels, which means there is no single root in the second-order difference sequence, and the sequence has the characteristic of stability. Table 4 also shows that after the second-order difference, the acceptance probability is 0, which also proves that the second-order difference sequence is stable. It can be determined that in the ARIMA model, parameter d can be taken as 2.

3.2.2. Determination of p, and q Value

There are typically two steps to choose p and q. The first step is to determine the approximate range of parameters which can be obtained according to the autocorrelation diagram and the partial correlation diagram of the d-order difference sequence. When the proper range is determined, the final p and q values can be obtained by comparing the modeling accuracy using different parameter combinations. The specific parameter determination method is shown in Table 5. Figure 7 and Figure 8 are the autocorrelation and partial autocorrelation diagrams of the second-order sequence of downlink traffic. It can be seen from Figure 7 that the autocorrelation coefficient truncation is observed after the second-order difference. So, q can be taken as MA (2), MA (3) or MA (4). Figure 8 shows that the partial autocorrelation coefficient truncation occurs after the eight-order difference, which means p can be taken as AR (2), AR (3), AR (4) or AR (5). The model parameters can be obtained as ARIMA (2, 2, 2)~ARIMA (5, 2, 4).
According to the obtained parameters range, the final values need to be determined. The Bayesian information Criterion (BIC) is employed here to choose the proper parameter. The BIC is a well-known general approach to model selection that favors more parsimonious models over more complex models. The smaller BIC score means the better parameter selection. The BIC heat map of different model parameters is obtained as shown in Figure 9. It can be seen from Figure 9 that when p = 2, q = 2, the BIC value is the minimum. Thus, the model ARIMA (2, 2, 2) can be selected.

4. LoRaWAN Downlink Routing Control Strategy

4.1. Bandwidth Occupancy of the Downlink Path

The link bandwidth occupancy rate of the LoRaWAN network downlink communication at different time point is shown in Figure 10. The bandwidth occupancy rate of route R n at time t is obtained according to the maximum value of the link bandwidth occupancy rate μ j ( t ) in the routing set, as shown in Equation (11):
C B n ( t ) = max [ μ j ( t ) ]
where C B n ( t ) is the bandwidth occupancy rate of path R n at time t, μ j ( t ) is the bandwidth occupancy rate of link l j at time t, and l j is the link included in path R n . In Figure 10 it is seen that from node v a to v b , the maximum link bandwidth occupancy rate in route R 1 at time t is 0.5. According to Equation (12), the bandwidth occupancy rate in route R 1 at time t is 0.5. Similarly, the bandwidth occupancy rate C B 2 in route R 2 is 0.3, and the bandwidth occupancy rate C B 3 in route R 3 is 0.75.
Figure 11 shows the link bandwidth occupancy rate at time t + T. The maximum link bandwidth occupancy rate score s j ( t + T ) in the routing set determines the routing bandwidth occupancy rate score P S n of the route R n at time t + T, as shown in Figure 11. s j ( t ) is defined in Table 3, which is used to represent the congestion degree of link l j at time t. The bandwidth occupancy score of route R n at time t + T can be described as follows:
P S n = max [ s j ( t + T ) ]
In Figure 11, in the process from node v a to v b , the maximum link bandwidth occupancy score s j ( t + T ) in route R 1 is 1. According to Equation (12) and Table 3, the bandwidth occupancy rate of route R1 is P S 1 = 1 at time t + T. Similarly, the bandwidth occupancy rate of route R 2 is P S 2 = 1, and the bandwidth occupancy rate of route R 3 is P S 3 = 1.

4.2. Transmission Delay of Downlink Path

The data transmission delay of the downlink communication service of the LoRaWAN network is limited by the length of the downlink route and the routing control strategy. The sum of the transmission delay is shown in Equation (13):
T n = j = 1 m 1 d j / v d a t a + m T s w i t c h + T j i t t e r
where T n is defined as the total time that the LoRaWAN downlink communication data is transmitted from the root node of route R n to the destination node, d j is the length of link l j , v d a t a represents the transmission speed of data flow between nodes, T s w i t c h represents the interaction delay between different nodes, m is the total number of all nodes in the routing set R n , and T j i t t e r is defined as the random jitter delay.

4.3. Objective Function of the Minimum Path Selectivity Routing Control Strategy

By employing the triangle module operator [24] in fuzzy mathematics to realize the routing control of the minimum routing degree. The triangle module operator is shown in Equation (14):
Y ( x 1 , x 2 ) = x 1 x 2 1 x 1 x 2 + 2 ( x 1 x 2 )
where x 1 , x 2 represent the two parameters involved in the optimization integration, x 1 , x 2 [ 0 , 1 ] . In order to ensure the metrics consistency between different parameters, C B n , P S n and T n are normalized here according to Equations (15)–(17):
C B n = C B n C B min C B max C B min
P S n = P S n P S min P S max P S min
T n = T n T max
where C B min ,   C B max are the minimum and maximum values of the bandwidth occupancy rate at time t in the alternative routing set, P S min ,   P S max represent the minimum and maximum values of the predicted bandwidth occupancy rate score at time t + T in the routing set, T max represents the maximum transmission delay that can be tolerated in the LoRaWAN downlink communication service. Based on the triangle module operator associative law, the path selectivity can be expressed with Equation (18).
Q = min { C B n * , Y ( P S n * , T n * ) }
The selectivity of multiple transmission paths between the source node and the destination node is calculated by Equation (18). When there is a downlink data packet transmission, the path with smallest Q is preferentially selected as the main transmission path. When the Q values of different paths are equal, the path with the smallest number of switches m in path R n is preferentially selected. When Q and m are still the same, the path that is preferentially selected is the path less frequently used.

5. Experimental Results and Analysis

5.1. Parameter Settings and Simulations

According to the downlink routing topology shown in Figure 2, the topology of downlink communication routing of the LoRaWAN network is established with the Mininet platform. The Ryu manager is used as the network resource analog controller for collecting, sending and receiving traffic information. The downlink data traffic is simulated by the testing software iPerf. The maximum bandwidth of each link is set as 80 Mbit/s. The distance parameters of the link are set as follows: vdata = 2 × 108 m/s, Tswitch = 0.1 ms, Tjitter = 0.1 ms. In the experiment, the distribution of downlink data types in the LoRaWAN network is simulated and modified by adjusting the network parameters such as the request bandwidth value of the downlink routing data packets and the data requests of different priorities in the LoRaWAN network. The minimum and maximum requested bandwidth of downlink communication, the average requested bandwidth of downlink communication data, and other communication parameters are all sent out by the host.

5.2. Results Analysis of the LBOP-ARIMA Model

The prediction accuracy of the ARIMA model is affected by the length of the training and testing data set. To investigate this influence, here we set the prediction length as 10 s and run the model prediction using different data set length and the results are shown in Figure 12, in which the length changes from 10 s to 70 s. It can be seen that changes of the residual and relative errors behave in almost the same trend. Here, we select 20 s as the sampling length of the data set. The length of prediction is set as 2, 4, 6, 8, 10, 12, 14 s here, and the residual and relative errors for different prediction lengths are shown in Figure 13. It can be seen from Figure 13 that both the residual and relative errors vary for different prediction lengths. The optimal prediction length can be taken as 6 s.
Now we have determined that the prediction model is developed as ARIMA (2,2,2). The optimal sampling length is 20 s, and the optimal prediction length is 6 s. In order to improve the prediction accuracy, we have proposed to improve the ARIMA model by combining the Savitzky–Golay filtering and the sliding window method to improve the data stationarity. To verify this improvement, the bandwidth occupancy sequence data of a randomly selected link lj in the LoRaWAN downlink network is selected, and the prediction comparison results have been illustrated in Figure 14, in which the red solid line represents the original sequence data, the blue dash line represents the predictions with existing ARIMA model, and the black dot line represents predictions with the proposed model. The root mean square error (RMSE) is adopted to evaluate the prediction accuracy. It is seen that average value of RMSE2 for the existing ARIMA prediction is 9.4363 and for the proposed method, the average value of RMSE1 is 1.1883. The prediction error is 87% reduced.

5.3. Comparison and Analysis of the Routing Control Strategy

To perform the routing control comparison, different methods have been compared including the Shortest path routing strategy (SPRS) [25], the hybrid Congestion alleviation routing strategy (HCARS) [26], the online increasing fit first segment routing strategy (OI-SRS) [27], and the proposed minimum path selectivity routing control strategy (MPSRCS). Several parameters have been employed to evaluate the comparison performance including the packet loss rate, the network transmission delay and the average bandwidth occupancy rate of downlink routing. The network parameters are set up as follows: spreading factor = 7, number of gateways is 3, number of nodes is 20; CRmin = 25, which is the minimum number of links in the network; CRmax = 35, which is the maximum number of links in the network; RBmax = 40 Mbit/s, which is the maximum link bandwidth in the network; RBmin = 0.0625 Mbit/s, which is the minimum link bandwidth in the network; RTmax = 20 s, which is the maximum link delay in the network; and RTmin = 10 s, which is the minimum link delay in the network. The average request bandwidth is gradually increased, and the network performance parameters under different routing control strategies are analyzed. Then, the downlink load rate hm is defined as follows:
h m = ( h i h max ) × 100 %
where, hi is the current downlink traffic, and hmax is the downlink bandwidth value. Figure 15 shows the comparison of the packet loss rate under different downlink load rated.
In Figure 15, it is seen that when the downlink load rate is gradually increased, the packet loss rate of the MPSRCS is much less than those of the SPRS, HCARS and OI-SRS. The loss rate of SPRS is the largest since there is no link status detection in the process. When the load rate is relatively small, the loss rates of both the OI-SRS and HCARS are almost the same. When the load rate is further increased (exceeding 50%), the HCARS behaves relatively better than OI-SRS. It is known that the segment flow scheduling is used in the OI-SRS, and therefore the communication reliability can be ensured when the load rate is low. When the load rate exceeds 50%, it is seen that the communication reliability can be no longer guaranteed. In the HCARS, the dynamic process of route assigning is considered and therefore it is able to supply better reliability than those of the SPRS and OI-SRS. However, the bandwidth occupancy rate prediction is missing in this strategy and the dynamic response of the routing assigning in the dynamic process could be limited and this is the reason that the loss rate becomes larger when the load rate exceeds 70%. The proposed MPSRCS strategy fully considers the prediction of the link bandwidth occupancy rate. It is seen that the communication reliability of data transmission is better than the other three strategies.
Transmission delay is also an important parameter to evaluate the routing control performance. By considering the difference in the data transmission delay requirements of different downlink services in the LoRaWAN network, it is assumed that the average transmission delay of the downlink communication of the LoRaWAN network with a stable transmission in period (t, t + T) is T X . The maximum value of the transmission delay is set as T max X . The downlink data type of LoRaWAN is set as 3, and the average transmission delay T d e l a y can be described as follows:
T d e l a y = X = 1 3 T ( X ) / T max ( X ) / 3
Figure 16 shows the comparison of the average transmission delay of the downlink communication. It can be seen that different routing control policies demonstrate different delay regulation performances. When the load rate is small, due to the algorithmic complexity, the average transmission delay of the MPSRCS is slightly higher than those of the OI-SRS, SPRS and HCARS. When the load increases, the proposed MPSRCS demonstrates the best delay regulation performance. Time delay for the SPRS is large and this is because the segmented route assignment adds extra time in the process. Delay regulation of the HCARS is acceptable. However, this strategy is likely to fall into the local optimal route since the bandwidth occupancy rate of some certain neighboring nodes have great influence on the real-time status of the downlink. Compared with other strategies, the proposed MPSRCS strategy is more stable and less volatile.
Figure 17 shows the comparison of the average bandwidth usage for downlink communication. As can be seen from Figure 17, due to the random nature of route assignment, the shortest route may have multiple data streams at the same time, which may cause uneven allocation of link resources and link congestion. This is the reason that the occupancy rate of the SPRS is saturated firstly in the four strategies. The occupancy rate performance of the HCARS is better than the OI-SRS. When the link is congested, the HCARS policy can adjust the downlink bandwidth occupancy rate in time, and gradually adjust the average requested bandwidth to a larger value and therefore relieve the link congestion. However, when the requested bandwidth is further increased, congestion still can be observed in the HCARS. The proposed MPSRCS strategy is able to predict the bandwidth occupancy rate in the link. The evaluation mechanism is calculated in advance for the potential future congestion situation, and the idle resources in the link are redistributed reasonably. Therefore, the average bandwidth occupancy rate is significantly higher than those of the SPRS, OI-SRS and HCARS, which makes the network resource allocation mechanism of downlink communication more effective.

5.4. Experimental Platform

To run the experimental verifications, the middleware cloud is deployed on the Linux operating system by Docker, and the IoT LoRaWAN system architecture is used to realize service discovery and management. Here, we use the local host as the requester to simulate user requests. Figure 18 shows the successful startup of the middleware software. After the network service is started, the actual server address is configured in the LoRaWAN gateway according to the cloud middleware. The gateway hardware is shown in Figure 19 and the hardware description is listed in Table 6. The terminal module is connected to the LoRaWAN network via the gateway. The cloud platform is used to periodically send out data to the terminal nodes. the LBOP-ARIMA model proposed in this paper is applied to predict the downlink bandwidth occupancy and thereby perform the MPSRCS for the optimal downlink route selection. The optimal route to reach the best performed gateway is selected so that the downlink data packet joins the gateway data sending queue. When the terminal node receives the data sent out by the gateway, the MCU side responds in time and parses the data packet. The node data is uploaded to the platform side according to the downlink data request. Figure 20 is a prototype of the terminal node device.
Here, the strategy performance of the HCARS and MPSRCS are compared. The link bandwidth occupancy is compared under different load rates and the results are shown in Figure 21. It is seen that when the link load rate is small, there is no significant difference. With the continuous increase of the downlink load rate, the link bandwidth occupancy rate of the MPSRCS demonstrates better performance. It is calculated that the overall average link bandwidth occupancy rate of the MPSRCS strategy is increased by 12% compared with the HCARS, which effectively improves the overall performance and reliability of the LoRaWAN network.

6. Conclusions

The SDN framework is introduced into the traditional LoRaWAN downlink network, and a minimum routing degree routing control strategy based on the improved ARIMA algorithm is proposed in this paper. The SDN is adopted to monitor network traffic, and the link bandwidth occupancy rate is calculated based on the monitored downlink traffic. The S–G filtering algorithm is added to the ARIMA modeling process, and the time series data of the link bandwidth occupancy rate is processed for stationarity by combining the sliding window method and the high-order fitting polynomial. The triangle module operator is used for calculating the selectivity of each link to finally select the optimal route for LoRaWAN downlink communication. It is found that:
(1) Compared with the original scheme, the root mean square error of the improved ARIMA model is reduced by 87%, and the model prediction accuracy is significantly improved.
(2) Experimental results show that when applying with the proposed routing control strategy, the average bandwidth occupancy rate of the link is increased by 12%, which effectively improves the downlink communication performance and the reliability of the LoRaWAN network.

Author Contributions

Conceptualization, Q.Q., L.S., Y.L. and Z.B.; methodology, Q.Q. and L.S.; software, Y.L. and Z.B.; validation, Q.Q., Y.L. and Z.B.; formal analysis, Q.Q. and Y.L.; investigation, Q.Q. and Y.L.; resources, L.S.; data curation, Y.L.; writing—original draft preparation, Q.Q. and Y.L.; writing—review and editing, Q.Q., Y.L. and L.S.; visualization, Q.Q. and Y.L.; supervision, L.S.; project administration, L.S.; funding acquisition, Q.Q. and L.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Natural Science Foundation of Zhejiang Province of China, grant number LGG20E070005; by the Key R&D Project of Zhejiang Province, grant number 2021C01046; by the Major Science and Technology Project of Wenzhou, grant number ZG2021026; by the Basic Industrial Science and Technology Project of Wenzhou, grant number G20210020; by the Graduate Scientific Research Foundation of Wenzhou University, grant number 316202101057.

Institutional Review Board Statement

No applicable.

Informed Consent Statement

No applicable.

Data Availability Statement

The data and the code are available on demand.

Acknowledgments

We would like to thank all the reviewers for their helpful suggestions.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Centenaro, M.; Vangelista, L.; Zanella, A.; Zorzi, M. Long-Range Communications in Unlicensed Bands: The Rising Stars in the IoT and Smart City Scenarios. IEEE Wirel. Commun. 2016, 23, 60–67. [Google Scholar] [CrossRef] [Green Version]
  2. Ramadhan, H.; Yustiawan, Y.; Kwon, J. Applying Movement Constraints to BLE RSSI-Based Indoor Positioning for Extracting Valid Semantic Trajectories. Sensors 2020, 20, 527. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Singh, D.P.; Pant, B. An Approach to Solve the Target Coverage Problem by Efficient Deployment and Scheduling of Sensor Nodes in WSN. Int. J. Sys. Assur. Eng. Manag. 2017, 8, 493–514. [Google Scholar] [CrossRef]
  4. Rizzi, M.; Ferrari, P.; Flammini, A.; Sisinni, E.; Gidlund, M. Using LoRa for Industrial Wireless Networks. In Proceedings of the 2017 IEEE 13th International Workshop on Factory Communication Systems (WFCS), Trondheim, Norway, 31 May–2 June 2017; pp. 1–4. [Google Scholar]
  5. Judge, M.A.; Khan, A.; Manzoor, A.; Khattak, H.A. Overview of Smart Grid Implementation: Frameworks, Impact, Performance and Challenges. J. Energy Storage 2022, 49, 104056. [Google Scholar] [CrossRef]
  6. Boccardi, F.; Heath, R.W.; Lozano, A.; Marzetta, T.L.; Popovski, P. Five Disruptive Technology Directions for 5G. IEEE Commun. Mag. 2014, 52, 74–80. [Google Scholar] [CrossRef] [Green Version]
  7. Lien, S.-Y.; Chen, K.-C.; Lin, Y. Toward Ubiquitous Massive Accesses in 3GPP Machine-to-Machine Communications. IEEE Commun. Mag. 2011, 49, 66–74. [Google Scholar] [CrossRef]
  8. Chen, S.; Hu, J.; Shi, Y.; Zhao, L. LTE-V: A TD-LTE-Based V2X Solution for Future Vehicular Network. IEEE Internet Things J. 2016, 3, 997–1005. [Google Scholar] [CrossRef]
  9. Van den Abeele, F.; Haxhibeqiri, J.; Moerman, I.; Hoebeke, J. Scalability Analysis of Large-Scale LoRaWAN Networks in Ns-3. IEEE Internet Things J. 2017, 4, 2186–2198. [Google Scholar] [CrossRef] [Green Version]
  10. Sakkari, D.S.; Basavaraju, T.G. GCCT: A Graph-Based Coverage and Connectivity Technique for Enhanced Quality of Service in WSN. Wirel. Pers. Commun. 2015, 85, 1295–1315. [Google Scholar] [CrossRef]
  11. Centenaro, M.; Vangelista, L.; Kohno, R. On the Impact of Downlink Feedback on LoRa Performance. In Proceedings of the 2017 IEEE 28th Annual International Symposium on Personal, Indoor, and Mobile Radio Communications (PIMRC), Montreal, QC, Canada, 8–13 October 2017; pp. 1–6. [Google Scholar]
  12. Minhas, H.I.; Ahmad, R.; Ahmed, W.; Waheed, M.; Alam, M.M.; Gul, S.T. A Reinforcement Learning Routing Protocol for UAV Aided Public Safety Networks. Sensors 2021, 21, 4121. [Google Scholar] [CrossRef]
  13. Di Vincenzo, V.; Heusse, M.; Tourancheau, B. Improving Downlink Scalability in LoRaWAN. In Proceedings of the ICC 2019—2019 IEEE International Conference on Communications (ICC), Shanghai, China, 20–24 May 2019; pp. 1–7. [Google Scholar]
  14. Liang, G.; Yu, H.; Guo, X.; Qin, Y. Joint Access Selection and Bandwidth Allocation Algorithm Supporting User Requirements and Preferences in Heterogeneous Wireless Networks. IEEE Access 2019, 7, 23914–23929. [Google Scholar] [CrossRef]
  15. AbdelBaky, M.; Diaz-Montes, J.; Parashar, M. Software-Defined Environments for Science and Engineering. Int. J. High Perform. Comput. Appl. 2018, 32, 104–122. [Google Scholar] [CrossRef] [Green Version]
  16. Tomovic, S.; Radusinovic, I. RO-RO: Routing Optimality—Reconfiguration Overhead Balance in Software-Defined ISP Networks. IEEE J. Sel. Areas Commun. 2019, 37, 997–1011. [Google Scholar] [CrossRef]
  17. Aujla, G.S.; Garg, S.; Batra, S.; Kumar, N.; You, I.; Sharma, V. DROpS: A Demand Response Optimization Scheme in SDN-Enabled Smart Energy Ecosystem. Inf. Sci. 2019, 476, 453–473. [Google Scholar] [CrossRef]
  18. Bastam, M.; Rahimi Zadeh, K.; Yousefpour, R. Design and Performance Evaluation of a New Traffic Engineering Technique for Software-Defined Network Datacenters. J. Netw. Syst. Manag. 2021, 29, 38. [Google Scholar] [CrossRef]
  19. Tomovic, S.; Radusinovic, I. Toward a Scalable, Robust, and QoS-Aware Virtual-Link Provisioning in SDN-Based ISP Networks. IEEE Trans. Netw. Serv. Manag. 2019, 16, 1032–1045. [Google Scholar] [CrossRef]
  20. Li, H.; Ota, K.; Dong, M. Virtual Network Recognition and Optimization in SDN-Enabled Cloud Environment. IEEE Trans. Cloud Comput. 2021, 9, 834–843. [Google Scholar] [CrossRef]
  21. Liu, C.; Liu, C.; Shang, Y.; Chen, S.; Cheng, B.; Chen, J. An Adaptive Prediction Approach Based on Workload Pattern Discrimination in the Cloud. J. Netw. Comput. Appl. 2017, 80, 35–44. [Google Scholar] [CrossRef]
  22. Yi, J.; Adnane, A.; David, S.; Parrein, B. Multipath Optimized Link State Routing for Mobile Ad Hoc Networks. Ad. Hoc. Netw. 2011, 9, 28–47. [Google Scholar] [CrossRef] [Green Version]
  23. Al-Kashoash, H.A.A.; Amer, H.M.; Mihaylova, L.; Kemp, A.H. Optimization-Based Hybrid Congestion Alleviation for 6LoWPAN Networks. IEEE Internet Things J. 2017, 4, 2070–2081. [Google Scholar] [CrossRef]
  24. Cao, Y.; Wu, M. RPL Based on Triangle Module Operator for AMI Networks. China Commun. 2018, 15, 162–172. [Google Scholar] [CrossRef]
  25. Altın, A.; Fortz, B.; Thorup, M.; Ümit, H. Intra-Domain Traffic Engineering with Shortest Path Routing Protocols. Ann. Oper. Res. 2013, 204, 65–95. [Google Scholar] [CrossRef]
  26. Al-Kashoash, H.A.A.; Kharrufa, H.; Al-Nidawi, Y.; Kemp, A.H. Congestion Control in Wireless Sensor and 6LoWPAN Networks: Toward the Internet of Things. Wirel. Netw. 2019, 25, 4493–4522. [Google Scholar] [CrossRef]
  27. Cianfrani, A.; Listanti, M.; Polverini, M. Incremental Deployment of Segment Routing into an ISP Network: A Traffic Engineering Perspective. IEEE Trans. Netw. 2017, 25, 3146–3160. [Google Scholar] [CrossRef]
Figure 1. Gateway and server downlink communication protocol.
Figure 1. Gateway and server downlink communication protocol.
Futureinternet 14 00307 g001
Figure 2. The LoRaWAN downlink modeling topology based on the SDN framework.
Figure 2. The LoRaWAN downlink modeling topology based on the SDN framework.
Futureinternet 14 00307 g002
Figure 3. Gateway and server downlink communication protocol.
Figure 3. Gateway and server downlink communication protocol.
Futureinternet 14 00307 g003
Figure 4. The ARIMA modeling step.
Figure 4. The ARIMA modeling step.
Futureinternet 14 00307 g004
Figure 5. Effect picture of pre-processing data by the sliding window method.
Figure 5. Effect picture of pre-processing data by the sliding window method.
Futureinternet 14 00307 g005
Figure 6. The autocorrelation diagram of the bandwidth occupancy rate of link l j .
Figure 6. The autocorrelation diagram of the bandwidth occupancy rate of link l j .
Futureinternet 14 00307 g006
Figure 7. The autocorrelation comparison of the original sequence and the difference sequence.
Figure 7. The autocorrelation comparison of the original sequence and the difference sequence.
Futureinternet 14 00307 g007
Figure 8. The partial autocorrelation diagram of the second-order difference series of downstream traffic.
Figure 8. The partial autocorrelation diagram of the second-order difference series of downstream traffic.
Futureinternet 14 00307 g008
Figure 9. The BIC heat map of different model parameters.
Figure 9. The BIC heat map of different model parameters.
Futureinternet 14 00307 g009
Figure 10. The path bandwidth occupancy rate at time t.
Figure 10. The path bandwidth occupancy rate at time t.
Futureinternet 14 00307 g010
Figure 11. The path bandwidth occupancy rate at time t + T.
Figure 11. The path bandwidth occupancy rate at time t + T.
Futureinternet 14 00307 g011
Figure 12. Prediction error vs. the data set length.
Figure 12. Prediction error vs. the data set length.
Futureinternet 14 00307 g012
Figure 13. The residual and relative errors for different prediction lengths.
Figure 13. The residual and relative errors for different prediction lengths.
Futureinternet 14 00307 g013
Figure 14. Model prediction comparisons.
Figure 14. Model prediction comparisons.
Futureinternet 14 00307 g014
Figure 15. Comparison of the packet loss rate under different downlink load rates.
Figure 15. Comparison of the packet loss rate under different downlink load rates.
Futureinternet 14 00307 g015
Figure 16. Comparison of the average transmission delay of LoRaWAN downlink communication.
Figure 16. Comparison of the average transmission delay of LoRaWAN downlink communication.
Futureinternet 14 00307 g016
Figure 17. Comparison of average bandwidth occupancy.
Figure 17. Comparison of average bandwidth occupancy.
Futureinternet 14 00307 g017
Figure 18. The successful startup of the middleware software.
Figure 18. The successful startup of the middleware software.
Futureinternet 14 00307 g018
Figure 19. The LoRaWAN gateway hardware.
Figure 19. The LoRaWAN gateway hardware.
Futureinternet 14 00307 g019
Figure 20. Terminal node module prototype.
Figure 20. Terminal node module prototype.
Futureinternet 14 00307 g020
Figure 21. Terminal node module prototype.
Figure 21. Terminal node module prototype.
Futureinternet 14 00307 g021
Table 1. The related work of the SDN.
Table 1. The related work of the SDN.
ReferenceContributionExiting Problem
[15]The link delay information based on the SDN is used to select the optimal transmission routethe time series regression analysis for the data processing is not constructed
[16,17]The resource balancing algorithm and the routing reconstruction model of SDN is discussed to reduce the delay of service data transmission
[18,19,20,21]The SDN framework provides a new feasible solution for the routing optimization of downlink communication in LoRaWAN network
Table 2. The port parameter of the SDN switch and status parameters of the flow entries in the LoRaWAN.
Table 2. The port parameter of the SDN switch and status parameters of the flow entries in the LoRaWAN.
Port
Parameter
SignExplanationParameters of Flow EntriesSignExplanation
p a , q 1 ( t ) rx_packetsnumber of packets received f a 1 ( t ) lengthcapacity of switch flow entries
p a , q 2 ( t ) tx_packetsnumber of packets forwarded f a 2 ( t ) prioritymatching order of flow entries
p a , q 3 ( t ) rx_bytesbytes received f a 3 ( t ) packet_countnumber of packets forwarded
p a , q 4 ( t ) tx_bytesbytes forwarded f a 4 ( t ) byte_countbytes forwarded
p a , q 5 ( t ) rx_droppednumber of packets dropped while receiving f a 5 ( t ) duration_secduration of data flow
p a , q 6 ( t ) tx_droppednumber of packets dropped while forwarding f a 6 ( t ) duration_nsecextra time of data flow to live
p a , q 7 ( t ) tx_errorsnumber of packets with errors while forwarding f a 7 ( t ) idle_ timeoutrelative time to remove flow entries
p a , q 8 ( t ) rx_frame_errnumber of error frames when receiving f a 8 ( t ) hard_timeoutabsolute time to remove flow entries
p a , q 9 ( t ) rx_over_errnumber of packets overflowed when receiving___
Table 3. The congestion level of the link bandwidth occupancy rate.
Table 3. The congestion level of the link bandwidth occupancy rate.
μ j ( t ) μ j ( t ) Levellink Congestion Status s j ( t )
0~0.61no congestion1
0.6~0.72normal load2
0.7~0.83possible congestion3
0.8~0.94general congestion4
>0.95severe congestion5
Table 4. The ACF verification result.
Table 4. The ACF verification result.
TypeAcceptance Probability (%)
T1%5%10%
Original sequence−2.14−3.86−3.35−3.2132.56
First-order difference
sequence
−3.75−3.86−3.35−3.212.33
Second-order difference
sequence
−23.68−3.86−3.35−3.210.00
Table 5. ARIMA ( p , d , q ) order determination.
Table 5. ARIMA ( p , d , q ) order determination.
ACF (Autocorrelation)PACF (Partial Autocorrelation)
AR ( p )Attenuation tends to 0 (geometric
or oscillatory)
Truncation after the p-order
MA ( q )Truncation after the q-orderAttenuation tends to 0
ARMA
( p , q )
Attenuation tends to 0 after the q-order (geometric or oscillatory)Attenuation tends to 0
after the p-order
Table 6. The LoRaWAN gateway hardware description table.
Table 6. The LoRaWAN gateway hardware description table.
LabelNameLabelName
1Power indicator11SX1301 board power indicator
2WI-FI indicator124G module main antenna IPEX interface
3USB indicator1348 V power interface
4WAN indicator14Power supply 12 V ground interface
5LAN indicator1512 V power input interface
63G/4G indicator16WAN interface
7WiFi antenna SMA
interface
17LAN interface
8LoRa antenna SMA
interface
18Hardware reset button
9GPS antenna SMA
interface
19Factory reset button
10LTE antenna SMA
interface
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Qian, Q.; Shu, L.; Leng, Y.; Bao, Z. LoRaWAN Network Downlink Routing Control Strategy Based on the SDN Framework and Improved ARIMA Model. Future Internet 2022, 14, 307. https://doi.org/10.3390/fi14110307

AMA Style

Qian Q, Shu L, Leng Y, Bao Z. LoRaWAN Network Downlink Routing Control Strategy Based on the SDN Framework and Improved ARIMA Model. Future Internet. 2022; 14(11):307. https://doi.org/10.3390/fi14110307

Chicago/Turabian Style

Qian, Qi, Liang Shu, Yuxiang Leng, and Zhizhou Bao. 2022. "LoRaWAN Network Downlink Routing Control Strategy Based on the SDN Framework and Improved ARIMA Model" Future Internet 14, no. 11: 307. https://doi.org/10.3390/fi14110307

APA Style

Qian, Q., Shu, L., Leng, Y., & Bao, Z. (2022). LoRaWAN Network Downlink Routing Control Strategy Based on the SDN Framework and Improved ARIMA Model. Future Internet, 14(11), 307. https://doi.org/10.3390/fi14110307

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop