A Failure Risk-Aware Multi-Hop Routing Protocol in LPWANs Using Deep Q-Network
Shaojun Tao, Hongying Tang, Jiang Wang, Baoqing Li

TL;DR
This paper introduces a new routing protocol for low-power networks that reduces transmission failures using a deep learning approach.
Contribution
The novel FRDR protocol uses a deep Q-network and failure risk metrics to optimize multi-hop routing in LPWANs.
Findings
FRDR improves packet delivery rate and network lifetime compared to existing protocols.
The protocol maintains comparable transmission delay while reducing failure risks.
A power regulation mechanism and RFRV metric enhance routing decisions.
Abstract
Multi-hop routing over low-power wide-area networks (LPWANs) has emerged as a promising technology for extending network coverage. However, existing protocols face high transmission disruption risks due to factors such as dynamic topology driven by stochastic events, dynamic link quality, and coverage holes induced by imbalanced energy consumption. To address this issue, we propose a failure risk-aware deep Q-network-based multi-hop routing (FRDR) protocol, aiming to reduce transmission disruption probability. First, we design a power regulation mechanism (PRM) that works in conjunction with pre-selection rules to optimize end-device node (EN) activations and candidate relay selection. Second, we introduce the concept of routing failure risk value (RFRV) to quantify the potential failure risk posed by each candidate next-hop EN, which correlates with its neighborhood state…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsIoT Networks and Protocols · IoT and Edge/Fog Computing · Wireless Body Area Networks
1. Introduction
Multi-hop routing in low-power wide-area networks (LPWANs) has emerged as a promising solution for expanding geographical coverage [1,2]. Within such networks, event-driven architectures are widely adopted to enhance energy efficiency [3,4]. However, multi-hop routing over event-driven LPWANs is challenged by high transmission disruption risk. Specifically, dynamic link quality introduces unstable link connections, while imbalanced energy consumption and nonuniform end-device node (EN) distribution lead to coverage holes that disrupt data forwarding [5,6,7]. Consequently, developing multi-hop routing protocols that guide ENs to select routes with low disruption probability is critical.
Over the past decades, numerous multi-hop routing protocols have been proposed to determine optimal relays by evaluating the intrinsic EN state and neighborhood state [8,9,10,11,12]. However, these studies primarily focus on assessing link quality within the neighborhood state. By overlooking the number and residual energy of neighbors, these methods struggle to avoid selecting ENs that introduce high routing failure risk. Specifically, ENs with few neighbors exhibit higher transmission failure probabilities due to limited next-hop availability, while those connected to low-energy neighbors are prone to instability caused by energy depletion during data forwarding. Therefore, developing a comprehensive neighborhood state assessment framework to avoid relays that introduce high routing failure risk is imperative.
Given these, we propose a failure risk-aware deep Q-network-based multi-hop routing (FRDR) protocol. In FRDR, by evaluating multiple neighborhood state characteristics, a distinct routing failure risk value (RFRV) is assigned to each EN. RFRV is then integrated with other metrics into the reward function of a deep Q-network (DQN)-based routing decision framework to determine the optimal next-hop. The DQN employs reinforcement learning (RL), where agents continuously interact with external environments to learn optimal policies that maximize cumulative rewards [13]. Furthermore, by employing deep neural networks (DNNs) to approximate the Q-function within the Q-learning framework, DQN can effectively handle multi-hop routing under dynamic and complex conditions [14,15].
The main contributions of our study are summarized as follows:
We design a novel power regulation mechanism (PRM) that adaptively adjusts activation ranges based on the average signal-to-noise ratio (SNR) of received signals from neighbors. This mechanism further incorporates pre-selection rules to optimize EN activations and candidate relay selection.We introduce the concept of routing failure risk value (RFRV) to quantify the potential failure risk posed by each candidate next-hop EN, which is evaluated based on its neighborhood state characteristics, including the number of neighbors, residual energy level, and link quality.We develop a DQN-based routing decision mechanism that integrates RFRV into the reward function. Building upon metrics such as residual energy, distance to the gateway, and transmission hop count, our mechanism prioritizes low-RFRV ENs, thereby reducing transmission failures.Through meticulous evaluation across various metrics, our simulation results demonstrate the advantages of FRDR in improving packet delivery rate and network lifetime while maintaining comparable transmission delay.
The remainder of this paper is organized as follows. Related studies are discussed in Section 2. Section 3 presents a brief review of DQN, and Section 4 introduces system models. In Section 5, the details of FRDR are described. Simulation results are thoroughly analyzed in Section 6 to illustrate the superiority of FRDR over other protocols, while Section 7 concludes this paper.
2. Related Studies
Over the past decades, numerous multi-hop routing protocols have been investigated, with a focus on relay selection strategies to optimize routing performance. In [8], link state information within two hops was considered when selecting relays to minimize delay and reduce packet loss. However, this two-hop dependency incurs high computational overhead in dynamic networks with frequent topology changes. In [9], the candidate relay with the highest reliability was selected to establish high-reliability and low-latency routes. Nevertheless, due to the dependence on predefined fuzzy rules, its adaptability to unmodeled network scenarios is limited. A method based on link quality prediction was proposed in [10], where a fuzzy logic system that incorporates distance, residual energy, and link quality (estimated via Kalman filtering) was adopted in relay decisions. However, this method is susceptible to model mismatch in event-driven networks, as bursty traffic violates the Markovian assumption underlying Kalman filtering-based prediction.
Given the limitations of traditional approaches, RL-based methods have emerged as a promising solution. These methods enable agents to learn optimal routing policies through real-time interaction with the external environment and reward-driven optimization, eliminating dependence on predefined models [13,14]. A Q-learning-based routing protocol was developed in [16], where energy consumption, bandwidth utilization, throughput, and data latency are jointly considered during relay selection. Similarly, ref. [17] proposed a Q-learning framework to reduce packet losses by deprioritizing predicted faulty nodes within routing decisions. In [15], a DQN-based intelligent routing (DQIR) protocol that balances residual energy distribution while minimizing routing distance was introduced to select relays. To address challenges such as insufficient adaptability to network topology changes, high communication delays, and short network lifetime in multi-hop routing, a dueling double deep Q-network was employed in [14] to optimize routing decisions. In [18], a reinforcement learning framework that integrates different node centrality metrics was developed to optimize relay selection.
A review of existing research reveals that while neighborhood state has been incorporated into relay selection decisions, these studies primarily focus on link quality without simultaneously considering the number of neighbors and their residual energy. This narrow focus prevents these methods from effectively excluding relays that introduce high routing failure risk, particularly in dynamic and complex networks. Geared toward this shortcoming, we propose FRDR in this article.
3. Brief Review of DQN
An RL framework is typically modeled as a Markov Decision Process (MDP), characterized by a tuple , where represents the state space, denotes the action space, is the state-transition probability, and signifies the rewards. At each time step , the agent executes the action determined by the policy based on the current state . Subsequently, the environment provides the agent with an immediate reward contingent upon and transitions to the next state . This process generates an experience . The overarching goal of the agent is to derive an optimal policy that maximizes the expected cumulative reward, thereby optimizing long-term performance within the given MDP framework [15].
Q-learning is a value-based RL algorithm that iteratively refines policies to approximate . The action-value function estimates the expected return of taking action in state , which is updated iteratively using the following formula:
where is the maximum Q-value over all possible actions in the subsequent state , is the discount factor, and is the learning rate. directs the agent toward actions that yield the highest in each state.
When the state space is large, exhaustively computing becomes infeasible. Consequently, DQN is adopted to approximate , where the output is . Here, represents the weights of the DNN, and the stochastic gradient descent (SGD) algorithm is used to update parameters.
However, the neural network can become unstable owing to correlations between Q-value and target value, or small updates to Q-value at each step. To address this instability, experience replay and a quasi-static target network are employed in DQN [18]. In experience replay, at each time step , an experience sample is stored in a replay memory . During training, the agent randomly samples a minibatch of experiences from , thus removing the correlations between continuous samples and improving the stability and efficiency of learning. Additionally, an independent target neural network with weights is used for the quasi-static target network. The loss function is calculated as follows:
where is the output of the target neural network:
where is synchronized with every steps. This approach decouples the target value computation from the Q-network weights, thereby reducing the likelihood of divergence and ensuring more stable learning.
4. System Models
4.1. Network Model
Without loss of generality, we consider a network where ENs are randomly distributed within an monitoring area with nonuniform density. As established in [19,20,21,22], the network model satisfies the following assumptions to construct a standardized scenario:
1.A gateway (GW) is located in the center of the network and remains powered on. Central placement simplifies the network model, providing a consistent reference point for all ENs while facilitating a more balanced distribution of data flow.2.All ENs are homogeneous. This configuration minimizes performance variations due to hardware differences, thereby facilitating an unbiased evaluation of the logic and effectiveness of routing protocols under consistent operating parameters.3.Both ENs and GW are stationary after deployment. This configuration eliminates route fluctuations caused by the mobility of ENs and GW.4.All ENs are synchronized and can determine their locations via Global Positioning System (GPS) or other self-localization algorithms. Synchronization is essential for ordering control and data packets in negotiation-based protocols, while geographic information is fundamental for distance-based relay selection.5.The links are symmetric. This assumption ensures bidirectional connectivity and consistent link characteristics, thereby avoiding complications from unidirectional paths that disrupt acknowledgment-dependent routing protocols.
4.2. Routing Failure Risk Value
To reduce transmission disruption probability, ENs with higher Routing Failure Risk Value (RFRV) are deprioritized in FRDR. The effectiveness of this approach is demonstrated in Figure 1.
Definition **1.**For a given EN, its neighboring ENs are all ENs located within its maximum direct communication range.
Generally, neighborhood state characteristics, including the number of neighbors , the residual energy level of neighbors , and link quality , are jointly considered when evaluating RFRV. An EN with lower , , and is associated with a higher RFRV. For , can be computed via Equations (4)–(6).
where and denote the average received signal strength indicator (RSSI) and signal-to-noise ratio (SNR) at from signals transmitted by its neighbors, while and are the corresponding thresholds. indicates the average residual energy of neighbors, while is the initial energy. To eliminate dimensional differences among heterogeneous indicators, , , and are standardized by the min-max normalization, as defined in Equation (7).
The weights in Equation (4) are determined using the Analytical Hierarchy Process (AHP) [23]. Benefiting from its capability in establishing quantitative frameworks for complex and ambiguous decision-making problems, as well as systematically relating criterion weights to overarching objectives, AHP is widely adopted for deriving criterion weights in multi-criteria decision analysis [24].
The AHP process begins by constructing a pairwise comparison matrix for decision criteria, as defined in Equation (8).
where each element denotes the relative importance of the criterion associated with row index compared to the criterion related to the column index . When constructing , a 1–9 scale [25] is widely adopted to quantify the relative importance between each pair of criteria. This well-known AHP scale is shown in Table 1.
The weight vector is then derived by solving the characteristic equation:
where is the largest eigenvalue of the pairwise comparison matrix .
Since represents unnormalized priorities, the final criteria weights are obtained through normalization:
where is the order of (i.e., the number of criteria).
Since pairwise comparisons in AHP are heavily dependent on human judgment, they are susceptible to inconsistencies. To address this issue, a standard procedure is provided in [26] to check for the consistency of the pairwise comparison matrix by utilizing the largest eigenvalue . The deviation of from the matrix dimension is quantified by the Consistency Index (CI):
To benchmark CI, Random CI (RI) is also proposed in [26] (Table 2), which is derived from randomly generated reciprocal matrices of various dimensions. The Consistency Ratio (CR) is then calculated as follows:
According to the established threshold [27], indicates that the results are satisfactory. Otherwise, the pairwise comparison matrix must be re-evaluated.
According to Equations (8)–(10), the weights in Equation (4) are determined using the pairwise comparison matrix presented in Table 3. This matrix satisfies the consistency requirement (CR = 0.0079 < 0.1), confirming the reliability of the weight results.
5. Detailed Description of the Proposed Protocol
In this section, FRDR is introduced in detail with the overall flowchart illustrated in Figure 2.
To deliver an event-related data packet to the GW, data-holding EN (DEN) in FRDR first checks whether the GW is within its one-hop communication range. If direct transmission is feasible, the data packet is forwarded directly. Otherwise, DEN triggers the relay selection process, which consists of two phases: candidate router selection and optimal relay decision-making.
Given the need for real-time topology awareness in dynamic networks, FRDR utilizes the Sensor Protocol for Information via Negotiation (SPIN) [28] to manage neighbor discovery and state updates, with its message sequence detailed in Figure 3. The specific workflow is outlined as follows:
DEN initiates the relay selection process by broadcasting an Advertisement (ADV) message with transmission power regulated by the Power Regulation Mechanism (PRM). This mechanism dynamically adjusts EN activation ranges based on the average neighbor signal SNR to enhance energy efficiency. Neighboring ENs that receive the ADV message parse its metadata to extract information such as the DEN-to-GW distance.
To prevent redundant participation, a pre-selection mechanism is employed to restrict relay requests from ENs that receive the ADV message. Each EN autonomously determines whether to apply for packet forwarding based on its residual energy and distance to the GW. Eligibility criteria for the application are as follows:
(1)The distance from the EN to the GW must be shorter than the DEN-to-GW distance recorded in the ADV metadata, thereby preventing data backhaul.(2)The residual energy of the EN must exceed a predefined threshold , which is derived from the energy cost of receiving and forwarding a data packet at the minimum transmission power level. This criterion prevents resource wastage caused by ENs with insufficient energy applying for relay tasks.
Neighboring ENs that fail either condition discard the ADV packet, and qualified ENs respond with a Request (REQ) message containing self-reported metrics (i.e., residual energy and distance to the GW). These responding ENs form the candidate set of next-hop routers.
If the DEN receives no REQ packet within the designated reception window, it rebroadcasts the ADV packet at its maximum power level to activate more potential relays. If this second broadcast also fails to elicit any response, the transmission is deemed a failure due to the unavailability of suitable relays.
Conversely, when REQ responses are received, the DEN executes a DQN-based routing decision mechanism, as detailed in Section 5.2, to determine the optimal relay from candidates. Following this selection, the DEN forwards the data packet to the chosen relay. Upon completing the role transition, the current DEN exits the routing process and enters a low-power sleep mode, where it awaits its next activation to minimize energy consumption.
5.1. Power Regulation Mechanism
By default, ENs operate at maximum power to maintain periodic neighbor information exchange. However, this configuration becomes inefficient during data transmission, as excessive power causes resource wastage (e.g., redundant EN activations). To address this issue, FRDR introduces a Power Regulation Mechanism (PRM) that adaptively adjusts transmission power levels based on the average SNR of received signals from neighbors, thereby reducing overhead.
As detailed in Algorithm 1, the standard Adaptive Data Rate (ADR) algorithm [29] adjusts data rates based on SNR to optimize throughput and energy efficiency. Algorithm 1. Standard Adaptive Data Rate Algorithm.Initialize: 1: ← demodulation floor (current data rate)2: ← max (SNR of last 20 frames)3: 4: )5: do6: 7: 8:end while9: do10: 11: 12:end while13: do14: 15: 16:end while17:
Building upon the standard ADR framework, we propose the PRM, which redirects optimization from data rates to transmission power levels. The workflow of PRM operates as follows:
Step 1: Calculate the average SNR of the most recently received signals transmitted by neighbors.
Step 2: Subtract a predefined margin (default: 10 dB) from the difference between and to determine the SNR margin , i.e., .
Step 3: Adjust the current transmission power level based on . If , it suggests that can be reduced without compromising communication reliability.
Given the dynamic nature of the link environment, relying on a fixed neighbor count, , may lead to inaccurate decisions. To overcome this limitation, PRM adaptively adjusts based on link variability. Specifically, the DEN randomly selects neighbors from its routing table and calculates the volatility rate of the link environment, , using Equation (13).
where and denote the RSSI of the last and penultimate signals received by DEN from the EN, respectively.
Higher values of indicate a more volatile link environment. When exceeds the threshold , to enhance decision accuracy, PRM increases by 1 to incorporate diverse information from additional neighbors into the decision-making process. This adjustment repeats until either or , thereby achieving an adaptive balance between decision accuracy and computational overhead. The initial empirical value of is set at 3 according to [29,30]. The detailed PRM workflow is described in Algorithm 2. Algorithm 2. Power Regulation MechanismInput: 1:Randomly select by Equation (13)2: then3: 4:else5: then6: 7: Go to line 18:** end if**9:end if10: 11: 12: do13: 14:end while
5.2. DQN-Based Routing Decision Mechanism
At time step , all ENs that respond to a REQ packet form the candidate relay set , from which DEN selects the optimal next-hop router. However, an EN selected as a relay will consume more energy, which may lead to unbalanced energy distribution across the network and potentially cause coverage holes. Furthermore, selecting candidates with high RFRV increases transmission disruption probability. Given these, we propose a low-latency, long-lifetime, and high-success-rate routing decision mechanism. The optimal relay selection is formulated as follows:
where denotes the residual energy of at time step , is the distance between and the GW, and is the packet transmission hop count.
5.2.1. MDP Model for FRDR
Given the dynamic nature of network conditions, the routing decision process in FRDR is modeled as an MDP and solved using DQN. The overall framework is illustrated in Figure 4.
By modeling DEN as an agent, the corresponding states, actions, and reward functions are defined as follows:
States: The state integrates hop count and features of EN to form a unified vector . To handle dynamic fluctuations in the number of candidate relays, FRDR employs a feature masking mechanism. For each at time step , its feature vector is defined as follows:
Based on the current hop count , the overall state is expressed as follows:
where denotes vector concatenation.Actions: By executing action at time step , the agent selects the corresponding EN as the next-hop router, i.e., indicates that is chosen as the relay.Reward Function: To determine the optimal relay in Equation (14), the reward function in FRDR is designed to guide the agent towards solutions that maximize residual energy, minimize RFRV, reduce distance to the GW, and minimize hop count. It is defined as follows:
In Equation (17), represents successful packet delivery to the GW, for which a positive reward is granted. Conversely, denotes transmission disruption, which is penalized with . All other cases fall under , where the composite reward implements the optimization objectives from Equation (14) through specific reward components:
Note that , , and pertain to the attributes of ENs, while is a path attribute. By integrating Equations (18)–(21), the composite reward is derived as Equation (23). Here, and are the normalized versions of and via Equation (7), while is normalized using Equation (22).
The weights in Equation (23) are calculated via AHP using Equations (8)–(10). The pairwise comparison matrix for decision criteria in Equation (23) is presented in Table 4, with a CR of 0.0158. This CR value is well below the threshold of 0.1, confirming the logical coherence of the pairwise comparisons and the reliability of the weight results.
5.2.2. DQN Architecture
The DQN architecture implemented in FRDR is detailed as follows:
1.Input layer: A fully connected (FC) layer is used as the input layer. The input feature dimension is set to , corresponding to the pre-masked state .2.Hidden layer: The hidden layer comprises two FC layers with 64 and 32 neurons, respectively. For each FC layer, the Leaky Rectified Linear Unit (Leaky ReLU) activation function with a negative slope coefficient of 0.01 is employed. Moreover, the backpropagation gradients from non-candidate ENs are set to zero.3.Output layer: We define an FC layer with neurons as the output layer to generate raw Q-values , where a linear activation function is utilized. Feature-based masking is then applied to compute final values by Equation (24).
5.2.3. Network Training and Routing Decision
At time step , the agent gathers state information from candidate relays and constructs the state vector according to Equation (16). is fed into the DQN, which outputs Q-values corresponding to each EN. The agent then selects action using an annealing strategy, where decays as follows [31]:
where and represent the initial and terminal values of , respectively. denotes the number of current training iterations, while is the attenuation rate. With probability , the agent exploits by selecting the EN associated with the maximum Q-value. During exploration, a Weighted Probability Selection method that prioritizes candidates with lower RFRV is employed to enhance efficiency. The selection probability for during exploration is given by:
Upon determining , DEN forwards the data packet to the corresponding EN. At the next time step, the state transitions to , and the environment provides the agent with reward computed via Equation (17). The agent then constructs the transition tuple and stores it in replay memory . When accumulates a sufficient number of samples, the agent randomly samples a minibatch from every timesteps to train the DQN by minimizing the loss defined in Equation (2). Additionally, the target network is periodically synchronized with the evaluation network every timesteps.
The overall framework of the DQN-based routing decision mechanism is illustrated in Algorithm 3. Notably, the learning process is conducted in the virtual environment configured on computers to avoid high-performance demands on EN entities. Algorithm 3. DQN-Based Routing Decision Mechanism Initialize: replay memory M Offline Learning1: do2: do 3: Event-related data packet generated4: while GW is out of one-hop range do5: by Equation (4)6: then 7: Go to line 168:** end if9: Formulate state vector by Equation (16)10: Get Q-values for in the evaluation network11: Select action strategy12: Forward data packet according to the action 13: Perform lines 16–2514: end while15: Send the data packet to the GW16: by Equation (17)17: State transitions to 18: 19: then 20: 21: 22: by Equation (2)23: Update in the evaluation network using SGD24: end if**25: 26: end for 27:end for****Output: Evaluation network with ω Online Decision****Input: Trained evaluation network with ω 28:DEN determines the set of candidate next-hop ENs and calculates RFRV for each candidate according to Equation (4)29:DEN constructs a state vector30:Input the current state into the evaluation network, and output the optimal action with maximum Q-value31:Forward the data packet according to the optimal action
6. Simulation Results and Analysis
In this section, we conduct extensive experiments to evaluate the performance of FRDR using MATLAB R2020b.
6.1. Simulation Models
It is assumed that each EN sends packets to the GW either directly or via intermediate hops using the LoRa protocol. The spreading factor (SF), bandwidth (BW), and coding rate are fixed at SF = 7, BW = 125 kHz, and , respectively. The low data rate optimization is not enabled by default, while explicit header type (H = 0) and CRC are adopted. These parameter settings determine the simulation models adopted in the experiments, including those for packet transmission time, energy consumption, path loss, etc.
6.1.1. Packet Transmission Time Measurement Model
The time for ENs to transmit a packet, , is computed as follows [32]:
where and denote the symbol number of the preamble and payload, respectively.
6.1.2. Energy Consumption Measurement Model
Given that energy consumption in the dormant state is significantly lower than that in other transceiver states, the energy consumption of an EN, denoted as , can be simplified as the sum of transmit and receive energies [2]:
where is the nominal voltage, and denote the transmitting and receiving currents, respectively. and indicate the duration of transmitting and receiving, satisfying . According to [33], these parameters are configured as specified in Table 5. Additionally, denotes the transmit power at the transmission power level .
6.1.3. Path Loss Measurement Model
Results presented in this study were computed at carrier frequency and the path loss model defined in [33]:
where is the path loss at distance , is the path loss index, and models random channel fluctuations resulting from shadowing. In this study, we use and .
6.1.4. RSSI and SNR Measurement Models
Based on Equation (30), RSSI is computed as a function of :
where and denote the transmitting and receiving antenna gains, respectively. In this study, we set .
During data transmission, the noise power of each EN is considered in the calculation of SNR [29].
where is the background temperature, typically set to 290 K, is the Boltzmann Constant, and is the receiver temperature, given by the following expression:
where is the noise figure of the receiver. According to [29], the parameters are set as , , and .
6.2. Simulation Setup
In this section, a comparison among FRDR, Minimum Hop Routing (MHR), and DQIR [15] is performed. MHR operates as a distributed routing algorithm that selects relays based on the minimum hop count to the GW. In DQIR, next-hop selection from candidate routers is conducted by a DQN-based routing protocol. Notably, to achieve a more equitable comparison, the learning rate and replay memory in DQIR are adjusted to 0.01 and 5000, respectively, through extensive hyperparameter tuning.
To comprehensively evaluate the performance of FRDR, we introduce three self-contrasting algorithms detailed in Table 6.
Additionally, to ensure fair benchmarking, all compared algorithms adopt the same pre-selection rules as FRDR and utilize the SPIN-based interaction process to determine candidate routers.
The dataset generation framework introduced in [34] is applied to deploy ENs in a stochastic and nonuniform manner across a area, while a GW is located at the center. The initial energy of all ENs is fixed at 0.5 mAh. During each iteration, a source EN is randomly selected from ENs, and a data packet is transmitted from this source EN to the GW under different multi-hop routing protocols. Additional network parameters are detailed in Table 7.
During the offline training of DQN, we execute 100 training episodes, and each episode comprises 1000 complete packet transmission simulations. For each simulation, a source EN is randomly chosen from the monitoring area, which then transmits a data packet toward the GW via single-hop or multi-hop routing. Upon transmission completion (either successful delivery to the GW or failure), the simulation proceeds immediately to the next packet transmission. Other specific DQN parameters are detailed in Table 8.
6.3. Performance Analysis
The performance metrics employed in our simulation are packet delivery rate (PDR), mean transmission delay (MTD), mean number of transmission hops (MTHs), mean energy consumption for delivering a data packet (MECP), and network lifetime. The network lifetime can be commonly measured in terms of the first node dead (FND), half node dead (HND), and the last node dead (LND). However, only HND is adopted in our simulation as the network was disabled long before LND, while the death of the first EN had little impact on network performance.
We randomly select an experimental scenario with 300 ENs from our simulations and use the routing process of the first data packet after network deployment to visually demonstrate the FRDR protocol in Figure 5. To clarify the relay selection mechanism of FRDR, Figure 5 further illustrates the spatial distribution of candidate ENs for Router1. Specifically, the source EN first adjusts its transmission power level according to PRM, thereby optimizing the EN activation range based on the average SNR of received signals from neighbors. In this case, the source EN broadcasts an ADV packet at Level 6. Subsequently, ENs that receive the ADV packet and satisfy pre-selection rules form the candidate set for Router1. Table 9 quantitatively summarizes their critical attributes, including ID, RFRV, distance to the GW, and residual energy. Then, by utilizing the DQN-based routing decision mechanism (Algorithm 3), the source EN determines Router1 from the candidates. Experimental result indicates that EN167, the candidate EN exhibiting the lowest RFRV and shortest distance to the GW, is selected as Router1. This outcome is consistent with the relay selection objective of FRDR defined in Equation (14).
With the identical configuration as Figure 5, Figure 6 further compares routing processes across different multi-hop routing algorithms. As shown in Figure 6, both FRDR and PRRS exhibit fewer candidate ENs for Router1. This reduction is primarily attributed to the PRM, which adjusts EN activation ranges based on the average SNR of received signals from neighbors. By utilizing PRM, the source EN in FRDR and PRRS reduces transmission power to Level 6, thereby confining the ADV broadcast range. In contrast, non-PRM protocols broadcast ADV packets at maximum power (Level 7), which can easily cause redundant EN activation (e.g., EN263 and EN244). Following candidate screening, each algorithm applies distinct criteria for final relay selection. Notably, PFRS and PRRS exhibit higher hop counts due to random relay selection, whereas FRDR, MHR, DQIR, and PFRD achieve lower hop counts through effective selection rules. Specifically, MHR selects relays via pre-stored routing tables guided by minimum hop counts, while DQIR prioritizes relays that minimize distance to the GW and balance residual energy distribution. FRDR and PFRD incorporate multi-dimensional neighborhood state characteristics of candidate ENs into routing decisions, effectively avoiding relays that introduce high routing failure risk (e.g., Router1 in MHR and Router3 in DQIR).
First, the performance analysis of the proposed PRM and Algorithm 3 is provided.
Figure 7a demonstrates that PRM effectively reduces energy consumption. By employing PRM, DENs in FRDR and PRRS adjust transmission power levels according to demand, thereby reducing redundant EN activations. Consequently, the lifetime of individual EN can be extended, which in turn enhances the overall network lifetime and PDR. Figure 7b further illustrates that the PDR curves of PRRS and FRDR decline more slowly than PFRS and PFRD. Specifically, when the PDR of PFRD and PFRS drops to 0.80, FRDR and PRRS maintain values of 0.88 and 0.85, representing improvements of 10.00% and 6.25%, respectively. Additionally, as depicted in Figure 7c, both FRDR and PRRS achieve higher HND than their respective counterparts, which confirms the effectiveness of PRM in extending network lifetime.
Table 10 presents a comparison of MTH, MTD, and MECP for delivering the first 1000 packets, during which the PDR of each algorithm remains at a relatively high level. It reveals that PRM introduces a slight increase in transmission delay. Compared to PFRD and PFRS, the MTH of FRDR and PRRS increased by 0.20 and 0.30, respectively. This increase is attributed to the fact that the execution of PRM prevents the single-hop range from consistently reaching its maximum, potentially increasing the number of hops required for data delivery. Nevertheless, through the effective combination with pre-selection rules, PRM further amplifies the benefits of reducing redundant EN activations, thereby significantly decreasing the delay and energy consumption associated with REQ packet reception. As a result, the impact of these additional hops on overall delay is minimal. Specifically, the 0.14 s increase in MTD for FRDR constitutes only 3.26% of its total MTD, while for PRRS, it accounts for 3.13%. Overall, PRM achieves an effective balance between transmission efficiency and other critical performance metrics, including energy consumption, PDR, and network lifetime.
As for Algorithm 3, Figure 7b clearly illustrates its superiority in PDR. Specifically, when the PDR of PRRS and PFRS decreases to 0.80, FRDR and PFRD sustain values of 0.96 and 0.94, achieving improvements of 20.00% and 17.5%. These improvements arise from the multi-factor routing strategy of Algorithm 3, where RFRV, distance to the GW, transmission hops, and residual energy are considered in tandem. Therefore, Algorithm 3 effectively reduces transmission disruption and enables faster delivery to the GW while balancing energy consumption. The results presented in Figure 7c and Table 10 further confirm the advantage of Algorithm 3. In terms of HND, FRDR improved by 16.81%, while PFRD achieved a growth rate of 9.46%. Additionally, during the whole network lifetime, FRDR achieves reductions of 21.48%, 25.35%, and 24.64% in MTH, MTD, and MECP, respectively, compared to PRRS, while PFRD demonstrates reductions of 20.75%, 25.45%, and 26.03%.
Second, to fully illustrate the superiority of FRDR, a comparison among FRDR, MHR, and DQIR is presented.
The comparisons of PDR and residual energy of the network among different EN densities are depicted in Figure 8 and Figure 9. It is evident that FRDR significantly outperforms MHR and DQIR by maintaining a higher PDR and reducing energy consumption. Moreover, Table 11 provides a comparison of network lifetime, while a more detailed comparison of MTH, MTD, and MECP across different EN densities is presented in Table 12. They demonstrate that FRDR achieves the longest network lifetime while maintaining comparable transmission delay. These improvements are attributed to the integration of PRM and the DQN-based multi-factor routing strategy, which dynamically adjusts activation range to reduce redundant activation and optimizes routing decisions based on RFRV, residual energy, transmission hops, and the distance to the GW.
MHR focuses solely on minimizing transmission hops, which contributes to its superiority in MTH, as shown in Table 12. However, to achieve this goal, the maximum transmission power is fixed in MHR, which leads to higher redundant activation than FRDR, particularly as EN density increases. This increased redundancy diminishes the delay and energy efficiency advantages gained by minimizing transmission hops, as higher reception delay and energy consumption occur during REQ reception. Table 12 further reveals that MHR results in a higher MECP than FRDR, while achieving a marginal reduction in MTD. Moreover, the exclusive consideration of hop count in MHR inevitably leads to hotspot issues due to the overutilization of partial ENs, which in turn leads to a shorter network lifetime and lower PDR. Conversely, by integrating RFRV and residual energy into routing decisions, FRDR effectively avoids routers that will introduce high routing failure risk and realizes a more balanced energy distribution. As a result, FRDR achieves a higher network lifetime and PDR. Specifically, when the PDR of MHR drops to 0.80, FRDR maintains a higher PDR, achieving improvements of 14.71%, 15.69%, and 18.90% at EN densities of 300, 350, and 400, respectively. Consequently, compared to MHR, FRDR effectively improves the PDR and network lifetime while maintaining a comparable transmission delay.
As for DQIR, multiple factors, including residual energy and distance to the GW, are considered when selecting the next-hop router from candidate ENs to minimize delay and balance energy distribution. Table 12 indicates that DQIR achieves lower MTH at EN densities of 350 and 400 compared to FRDR. However, DQIR requires all ENs that receive broadcast information to transmit a message to a designated agent for routing decisions. Although this method offloads the reception energy consumption from DEN to an additional agent without energy constraints, leading to more balanced energy consumption, the excessive overhead from replies significantly increases energy consumption and delay. In contrast, through the combination of PRM and pre-selection rules, FRDR effectively reduces redundant transmissions by dynamically adjusting activation ranges and requiring only ENs that meet the pre-selection rules to respond. As a result, compared to DQIR, FRDR achieves lower MTD and MECP, as well as a higher network lifetime. Moreover, by considering RFRV, FRDR effectively avoids selecting candidate routers that will introduce high routing failure risk, which further enhances the performance of PDR. Specifically, when the PDR of DQIR drops to 0.80, FRDR maintains a higher PDR, achieving improvements of 18.90%, 20.68%, and 21.96% at EN densities of 300, 350, and 400, respectively.
To summarize, the performance superiority of FRDR mainly comes from the PRM and DQN-based routing decision mechanism. PRM dynamically adjusts activation ranges, which works with pre-selection rules, further reducing unnecessary reception overhead. Meanwhile, the RFRV, in conjunction with other factors such as residual energy, distance to the GW, and transmission hops, is integrated into the DQN-based routing decision mechanism, effectively reducing transmission disruption and enabling faster delivery to the GW while balancing energy consumption. Consequently, FRDR significantly enhances PDR and network lifetime while maintaining a comparable transmission delay.
7. Conclusions
In this paper, we proposed a novel multi-hop routing protocol for LPWANs, named FRDR, which aims to reduce transmission disruption probability. FRDR comprehensively considered RFRV, distance to the GW, residual energy, and transmission hops as routing criteria, thereby deriving a low-latency, long-lifetime, and high-success-rate routing decision policy through a DQN-based framework. Simulation results confirmed that, compared with MHR and DQIR, our FRDR significantly reduces transmission disruption probability and extends network lifetime while maintaining a comparable delay. Specifically, when the PDR of MHR and DQIR drops to 0.80, FRDR maintains a higher PDR, achieving a minimum improvement of 14.71% and 18.90%, respectively.
Our current research focuses on multi-hop routing optimization under standardized scenarios with generalized assumptions. However, real-world deployments introduce non-ideal factors such as edge-positioned GWs, mobile GWs, and asymmetric link conditions, which significantly impact protocol performance. Consequently, future study will focus on addressing challenges arising from these non-ideal factors to enhance the robustness and scalability of the routing protocol in practical deployments. Additionally, field trials will be conducted to evaluate the practical feasibility and performance of the proposed protocol.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Misbahuddin M. Iqbal M.S. Budiman D.F. Wiriasto G.W. Akbar L.A.S.I. EAM-Lo Ra Net: Energy aware multi-hop Lo Ra network for Internet of Things Kinetik 20227819010.22219/kinetik.v 7i 1.1391 · doi ↗
- 2Barrachina-Munoz S. Bellalta B. Adame T. Bel A. Multi-hop communication in the uplink for LPWA Ns Comput. Netw.201712315316810.1016/j.comnet.2017.05.020 · doi ↗
- 3Guo Z. Chen H. A reinforcement learning-based sleep scheduling algorithm for cooperative computing in event-driven wireless sensor networks Ad Hoc Netw.202213010283710.1016/j.adhoc.2022.102837 · doi ↗
- 4Fang W. Zhu C. Zhang W. Toward secure and lightweight data transmission for cloud–edge–terminal collaboration in artificial intelligence of things IEEE Internet Things J.20241110511310.1109/JIOT.2023.3295438 · doi ↗
- 5Sharma N. Thota V.S.P. Tankala Y. Tripathi S. Pandey O.J. Opt RISQL: Toward performance improvement of time-varying Io T networks using Q-learning IEEE Trans. Netw. Serv.2024213008302010.1109/TNSM.2024.3358835 · doi ↗
- 6Wong A.W.-L. Goh S.L. Hasan M.K. Fattah S. Multi-hop and mesh for Lo Ra networks: Recent advancements, issues, and recommended applications ACM Comput. Surv.20245613610.1145/3638241 · doi ↗
- 7Fang W. Zhu C. Guizani M. Rodrigues J.J.P.C. Zhang W. HC-TUS: Human cognition-based trust update scheme for AI-enabled VANETIEEE Netw.20233724725210.1109/MNET.2023.3320934 · doi ↗
- 8Zolfaghari D. Taheri H. Rezaie A.H. Rezaei M. A robust and reliable routing based on multi-hop information in industrial wireless sensor networks Int. J. Ad Hoc Ubiquitous Comput.201519293710.1504/IJAHUC.2015.069491 · doi ↗
