Next Article in Journal
Characterizing the Evolution of Inter-Actor Networks in the South China Sea Arbitration via Entropy-Driven Graph Representation Learning from Massive Media Event Data
Previous Article in Journal
Planar Black Holes and Entanglement Entropy in Analog Gravity Models
Previous Article in Special Issue
Joint Model Partitioning and Bandwidth Allocation for UAV-Assisted Space–Air–Ground–Sea Integrated Network: A Hybrid A3C-PPO Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Q-Learning-Based Distributed Energy-Efficient Routing Protocol in UASNs

Collage of Information Engineering, Shanghai Maritime University, Shanghai 201306, China
*
Author to whom correspondence should be addressed.
Entropy 2026, 28(3), 346; https://doi.org/10.3390/e28030346
Submission received: 10 January 2026 / Revised: 14 March 2026 / Accepted: 16 March 2026 / Published: 19 March 2026
(This article belongs to the Special Issue Space-Air-Ground-Sea Integrated Communication Networks)

Abstract

This paper proposes a Q-Learning-Based Distributed Energy-Efficient Routing (QDER) protocol for underwater acoustic sensor networks (UASNs). The routing problem is formulated as a Markov Decision Process (MDP) and a distributed Q-learning approach is proposed. Each sensor node is treated as an agent that independently selects its next-hop node based on a Q-table. The rewards function is designed that jointly considers node residual energy and depth information, enabling each node to learn an effective routing policy through distributed decision-making. Unlike centralized routing approaches that rely on extensive global information exchange, the proposed scheme allows nodes to make local decisions, thereby reducing communication overhead and energy consumption while maintaining efficient routing paths. In addition, link quality is designed in the reward to account for channel conditions, which improves the robustness of the routing strategy under noisy underwater acoustic environments. Simulation results demonstrate that the QDER achieves better system performance compared with Depth-Based Routing (DBR) and Deep Q-Network-Based Intelligent Routing (DQIR). Considering channel attenuation and noise, the proposed method with the link quality metric achieves improved network lifetime and energy efficiency. It also shows good robustness and adaptability under different signal-to-noise ratio (SNR) conditions.

1. Introduction

Underwater Acoustic Sensor Networks (UASNs) will be an important part of space–air–ground–sea integrated communication networks in future 6G networks [1]. They have gained significant attention for their diverse applications in oceanographic data collection, environmental monitoring, and underwater exploration [2,3,4]. Routing is particularly important in UASNs. The major challenges in UASN routing design include multipath fading, long propagation delay, low bandwidth, high bit error rate, and limited power. These challenges demand the development of energy-efficient and reliable routing protocols that can balance energy consumption, minimize latency, and maximize the network lifetime rate [5,6,7].
Many studies on underwater routing have been investigated in the last few years. Early studies mainly focused on Depth-Based Routing strategies due to their practicality. Hai et al. [8] proposed Depth-Based Routing (DBR) where a node selects the next forwarders with the shallowest depth. Although DBR provides a straightforward routing method, its flooding-based forwarding strategy leads to significant energy consumption. To improve energy efficiency in UASNs, Wahid et al. [9] introduced the Energy-Efficient Depth-Based Routing protocol (EEDBR), which determines forwarding decisions according to node depth and residual energy, thereby balancing energy consumption and time delay. Mhemed  et al. [10] proposed the Energy-Efficient Depth-Based Opportunistic Routing protocol (EEDOR), where routing decisions are made based on node depth and forwarding priority. Zhang et al. [11] developed the Energy-Efficient Probabilistic Depth-Based Routing protocol (EEPDBR) for underwater sensor networks. By jointly considering node depth, residual energy, and two-hop relay traffic load, EEPDBR improves the packet delivery ratio while reducing the average time delay. In addition, Rahman et al. [12] proposed the Energy-Efficient Cooperative Opportunistic Routing protocol (EECOR), in which the source node dynamically selects forwarding relays based on the energy consumption ratio and packet delivery probability. This design improves the packet delivery ratio while extending the network lifetime and reducing the end-to-end delay.
To adapt to the dynamic underwater communication environment, reinforcement learning (RL) has been widely investigated for routing design in recent years [13,14,15]. Because the agent in RL interacts with the surrounding environment by trial-and-error interactions, the RL-based methods exhibit self-adaptability to uncertain environments without a need for the predefined transmission model [16,17,18]. Zhou et al. [19] proposed a Q-learning-based Localization-Free Anypath Routing (QLFR) protocol. It calculates the Q-value according to the residual energy and depth of nodes, which makes a reasonable trade-off between depth and residual energy. Chen et al. [20] introduced a Q-learning based Multi-Hop Cooperative Routing (QMCR) protocol, which designs a routing protocol by use of Q-learning and combines a multi-hop collaboration strategy. It reduces computation complexity while achieving similar performance to the Artificial Fish-Swam Algorithm (AFSA) [21]. Gao et al. [22] also proposed a Q-learning-based routing algorithm for underwater wireless sensor networks (UWSNs), which jointly considers residual energy, transmission delay, and link success rate in reward design and introduces a priority-based holding time mechanism, achieving reduced delay and extended network lifetime compared with QLFR. An adaptive Deep Q-Network-Based Energy and Latency-Aware Routing (DQELR) protocol is presented in [23]. In this approach, a Deep Q-Network (DQN) is used to train the agent instead of Q-learning. The reward design considers both residual energy and depth, and a hybrid broadcast–unicast communication mechanism is adopted to reduce network overhead and improve energy efficiency. Our previous work studied a Deep Q-Network-Based Intelligent Routing protocol (DQIR), in which the agent trains the DQN to make decisions with global information [24]. It balances the energy consumption between nodes while minimizing the routing distances and performs lower energy consumption than that of DQELR.
To further improve robustness under time-varying underwater channels, reinforcement learning has also been combined with opportunistic routing in underwater acoustic networks. Zhang  et al. [25] proposed a routing protocol that combines Q-learning with opportunistic routing, where multiple relay nodes participate in the forwarding process collaboratively, thereby improving routing reliability and transmission efficiency in UWSNs. From the perspective of cross-layer design, Wang et al. [26] proposed an adaptive power-controlled Depth-Based Routing protocol to jointly optimize energy efficiency and energy balance through power control and next-hop selection, achieving an improved packet delivery performance. He et al. [27] proposed a cross-layer routing protocol based on channel quality information, allowing distributed nodes to improve link reliability and data delivery performance under a challenging underwater acoustic channel. The effectiveness of these RL-based routing schemes relies on the accuracy of channel state information and reliable link quality evaluation. At the physical layer, advanced signal processing techniques, such as fully connected neural network (FC-NN)-based channel estimation [28] and cepstrum transform techniques [29,30], can be employed to obtain channel state information and reduce the effect of multipath fading and noise. In addition, stable underwater communication links can be achieved by utilizing communication velocity features [31]. This physical-layer information can be further utilized in routing design to improve the reliability and efficiency of data transmission in underwater acoustic sensor networks.
Motivated by these observations, this paper proposes a Q-Learning-Based Distributed Energy-Efficient Routing (QDER) algorithm for underwater acoustic sensor networks. In the proposed framework, each forwarding node is treated as an independent agent, and the routing decision of each agent is formulated as a Markov Decision Process (MDP). A Q-learning-based method is adopted to solve the MDP, enabling nodes to learn effective forwarding strategies through interaction with the network environment. To guide the learning process, a reward function is designed by considering both node depth and residual energy, which helps balance energy consumption among nodes while maintaining efficient packet forwarding. Each node maintains its own Q-table and selects the next-hop node based on locally learned Q-values. In this way, routing decisions are made in a fully distributed manner without relying on global network information exchange. Considering the important role of link quality in underwater communication, the proposed method further uses the signal-to-noise ratio (SNR) at the receiving node as the metric of link quality in the reward design. The nodes are encouraged to select forwarding paths with more reliable communication links, thereby improving transmission robustness under dynamic underwater acoustic channels. The proposed scheme is suitable for large-scale underwater sensor networks with distributed nodes. Simulation results demonstrate that the method can reduce energy consumption and extend the network lifetime effectively, while maintaining reliable data delivery compared with conventional routing approaches. The main contributions of this paper are summarized as follows.
  • A distributed reinforcement learning-based routing framework is developed for underwater acoustic sensor networks. The routing decision of each node is modeled as a Markov Decision Process (MDP), and a Q-learning algorithm is used to learn forwarding strategies in a fully distributed manner. By jointly considering node depth and residual energy in the reward design, the proposed method balances energy consumption among nodes while reducing the routing delay. The distributed design avoids the heavy information exchange required by centralized routing schemes and makes the algorithm more suitable for large-scale underwater sensor networks.
  • Link-quality-aware routing is introduced by considering physical-layer channel information into the routing decision. In particular, the SNR at the receiving node is used as the link quality metric in the reward function. By utilizing this channel information during relay node selection, nodes are encouraged to choose links with better transmission conditions, thereby improving transmission robustness under dynamic underwater acoustic channels.

2. System Model and Reinforcement Learning

2.1. System Model

Figure 1 illustrates the network model of UASNs, which consists of N nodes. Assume there are three types of nodes in the network, which are sink nodes, source nodes, and relay nodes, denoted by N s , N b , and  N f , respectively. The number of each type of nodes is denoted by N s = n s , N b = n b , and  N f = n f , with the total number of nodes satisfying N = n s + n b + n f . In this model, we assume n s = n b = 1 .
The source node is deployed at the water bottom to collect information and transmit signals, while relay nodes forward these signals to the sink node via multi-hop communication. Each relay node N f i has its own candidate set W N f i , from which it selects the next-hop node. The maximum transmission range of each node is denoted by D. At time slot t, the depth and residual energy of relay node N f i are denoted by d N f i , t and e N f i , t , respectively. In our model, each relay node selects only one node for data transmission at a given time, rather than transmitting the same data to multiple nodes simultaneously. The sink node is deployed at the water surface and is equipped with both acoustic and radio communication devices, allowing underwater acoustic signals to be converted into wireless radio signals for further transmission.
In this study, each nodes is equipped with two 180° semi-circular antennas for signal transmission. These antennas are installed horizontally on the nodes and oriented either upward or downward, denoted by G 1 and G 2 , respectively. The source node is equipped with antenna G 1 , while the sink node uses antenna G 2 . Relay nodes are equipped with both G 1 and G 2 , enabling them to receive and forward data during the communication.

2.2. Q-Learning

Reinforcement learning (RL) enables an agent to adapt to its environment through trial-and-error interactions. The learning process can be modeled as a Markov Decision Process (MDP), which is defined by a tuple S , A , P , R , where S, A, P, and R denote the state space, action space, state transition probability, and reward function, respectively. At time slot t, the agent observes the current environmental state s t and selects an action a t according to a policy π . After executing action a t , the environment transitions to a new state s t + 1 and returns a reward r t . The objective of reinforcement learning is to obtain an optimal policy π that maximizes the expected cumulative return. The policy is defined as the probability of selecting action a t given state s t : π ( a t | s t ) = P ( A = a t S = s t ) . The cumulative discounted return is defined as
U t = k = 0 γ k r t + k + 1 , γ ( 0 , 1 ]
where γ denotes the discount factor, which controls the relative importance of future rewards. The action-value function Q π ( s t , a t ) and the state-value function V π ( s t ) are used to evaluate the expected return of taking an action and being in a state under policy π , respectively. These functions are defined as
Q π s t , a t = E U t | S = s t , A = a t
V π s t = E A Q π s t , A
The optimal action-value function Q s t , a t is
Q s t , a t = max π Q π s t , a t
According to Temporal Difference (TD) learning, the Q-value update is
Q s t , a t α · r t + γ · max a Q s t + 1 , a + 1 α · Q s t , a t
where α 0 , 1 is the learning rate.

3. MDP Model

In many Q-learning-based underwater routing protocols, routing decisions are determined by a centralized node that collects global network information. This design usually requires frequent information exchange among nodes, which increases communication overhead and energy consumption. To reduce such overhead, a distributed Q-learning-based underwater routing protocol is proposed, where each node acts as an agent and makes routing decisions locally without centralized coordination.

3.1. Problem Formulation

To improve routing performance, we aim to design a routing scheme that balances energy consumption among nodes while minimizing the routing path. To achieve this goal, a metric V i is introduced to represent the status of the i-th forwarding node, which is defined as
V i = e N f i , t e a v e d
where e N f i , t denotes the residual energy of the current node N f i , and  e a v e represents the average residual energy of node N f i and its neighboring nodes. Δ d = | d N f i , t d N f j , t | represents the depth difference between the current node N f i and the next-hop node N f j . The objective is to find an optimal policy π that minimizes V i for all forwarding nodes, which can be expressed as
π = argmin i N f N b V i

3.2. MDP Model Definition

The decision-making process is modeled as a Markov Decision Process (MDP), denoted by S , A , P , R , and the elements are defined as follows.

3.2.1. State Space(S)

Each forward node is treated as an independent agent executing its own Q-learning process. For node N f i , the current state at time slot t is defined as s t = N f i . If node N f i selects node N f j as the next hop, the state transitions to s t + 1 = N f j , and the Q-table is subsequently updated.

3.2.2. Action Space(A)

At time slot t, the current node N f i selects its next hop N f j from its candidate set W N f i . Thus, the action of N f i is defined as a t = N f j , meaning that node N f i forwards the data packets to node N f j through unicast communication.

3.2.3. State Transition Probability(P)

P s t + 1 | s t , a t represents the state transition probability from s t to s t + 1 after a node executes an action at time slot t. In this study, we initialize P s t + 1 | s t , a t = 1 .

3.2.4. Reward(R)

To obtain the optimal policy, the routing decision should jointly account for path efficiency and energy balance. On the one hand, selecting a next-hop node with a smaller depth helps the packet move closer to the sink, thereby reducing the number of forwarding hops and the total propagation delay. On the other hand, the residual energy of candidate nodes should also be considered to avoid the frequent use of low-energy nodes and to improve energy balance in the network. Based on these considerations, the reward function is designed as follows
r t = β 1 · e N f i , t + β 2 · d N f i , t
where β 1 and β 2 are weighting factors for energy and depth, respectively, with  β 1 , β 2 ( 0 , 1 ] and β 1 + β 2 = 1 . By adjusting β 1 and β 2 , we can choose which factor plays the main role in routing selection. A higher β 1 makes nodes more sensitive to energy, and selecting relay nodes with higher residual energy balances the energy consumption of the network. On the contrary, a higher β 2 makes nodes more sensitive to depth and selecting shallower neighbors as the next hop nodes, which reduces the number of hops, and thus reduces the propagation delay.
In practical underwater environments, acoustic propagation loss and noise can significantly affect transmission performance. To account for these channel effects in the routing decision, the reward function is further extended to include link quality. In this study, link quality is measured using the SNR at the receiving node, which is defined as
r ˜ t = β 1 · e N f i , t + β 2 · d N f i , t + q N f i , j , t
where q N f i , j , t is the indicator of link quality between node N f i and N f i , and it is denoted by
q N f i , j , t = min 1 , max ( 0 , ζ N f i , j , t ζ min , t ζ max , t ζ min , t )
where ζ N f i , j , t represents the SNR of the received signal transmitted from N f i to N f j . The  ζ max , t and ζ min , t denote the maximum and minimum SNR predefined by the nodes, respectively. By introducing the link quality factor into the reward function, the channel conditions are considered in the routing decision. This design encourages nodes to select receivers with higher SNR links, thereby improving transmission quality and the successful packet delivery rate.

3.3. Distributed Q-Table

Using local information, each node makes routing decisions independently. In the proposed framework, the node itself is defined as the state, as described in Section 3.2. Accordingly, the Q-value associated with node N f i is denoted as Q ( a N f i ) . Each node maintains its own Q-table, referred to as a distributed Q-table. Figure 2 shows the Q-table of node N f i , where N f i , n represents the n-th candidate node in the candidate set W N f i . The value Q ( a N f i , n ) corresponds to the Q-value when N f i , n is selected as the next-hop node. With this distributed design, each node only stores the current state and the Q-values associated with its candidate neighbors, without requiring global network information. As a result, memory overhead is reduced and energy consumption is reduced.

4. QDER Protocol

4.1. Packet Format Definition

We define three types of data packet formats, as illustrated in Figure 3a–c. The structure of the Hello packet is shown in Figure 3a. The sink node broadcasts a Hello packet, which is subsequently forwarded by all nodes in the network. Hello packets are transmitted in two scenarios. First, the initialization for the entire network to establish the neighbor table for each node is performed. Second, the sink regularly sends the Hello packet at fixed time intervals to update the neighbor table of each node.
During data transmission, the relay node N f i forwards the data packet to the selected next-hop node, such as N f j . The structure of the data packet is shown in Figure 3b. It contains the ID of the current node ( i d N f i ), the ID of the next-hop node ( i d N f i , N f j ), and the transmission data.
After receiving the data packet, node N f j continues forwarding the packet using antenna G 1 . At the same time, it sends an ACK (Acknowledgment) packet to the previous node through antenna G 2 as feedback. The structure of the ACK packet is illustrated in Figure 3c. It includes i d N f j , d N f j , t , e N f j , t , and  Q max ( a N f k ) , where k j for node N f j . Additionally, the void indicates whether node N f j is a void node. By default, this field is set to False.

4.2. Routing Algorithm

4.2.1. Network Initialization

The purpose of the network initialization is to enable each node to discover its neighboring nodes. Figure 4 illustrates the initialization process with seven nodes as an example. To start this process, the sink node generates and broadcasts a Hello packet when the network is first deployed. Let d ˜ = d N f i , t d N f j , t denote the distance difference between nodes N f i and N f j . If  d ˜ < D , node N f j will receive the Hello packet. Therefore, nodes N f 1 , N f 2 , and  N f 3 receive the Hello packet from the sink node and add the sink to their candidate sets W N f 1 , W N f 2 , and  W N f 3 , respectively. Subsequently, node N f 1 broadcasts Hello packets within its transmission range D. As a result, nodes N f 3 , N f 4 , and  N f 5 receive the packets. Since node N f 1 is located at a shallower depth than these nodes, it is added to their candidate sets. In this way, each node builds its candidate set based on the received Hello packets and the depth information of the neighboring nodes. After the candidate sets are established, the Q-tables are initialized. The Q-values corresponding to candidate nodes are initialized as Q ( a N f i ) = 0 , while the Q-value of the sink node is set to Q ( a N s ) = 100 . The initialization procedure continues until all nodes complete the construction of their respective Q-tables.

4.2.2. Pre-Training

After network initialization, pre-training is performed before online transmission begins. In this stage, nodes exchange short training packets and update their Q-tables based on the routing selection. The purpose of this stage is to provide pre-trained Q-tables so that nodes can obtain routing knowledge. During this stage, each node updates its Q-table using an exploration strategy. We define a selection factor ε [ 0 , 1 ] and a threshold ε 0 = μ · t ˜ T , where μ [ 0 , 1 ] is a constant and t ˜ and T denote the current training step and the maximum number of training steps, respectively. If node N f i generates a random number ε such that ε ε 0 , it randomly selects a node from its candidate set W N f i as the next hop. Otherwise, N f i selects node N f j with the maximum Q-value Q max ( a N f j ) as the next-hop node. Afterward, node N f i updates the Q-value Q ( a N f j ) according to the ACK packet received from node N f j .
We take an example to illustrate the Q-table update. As shown in Figure 5, the current node N f 7 attempts to select its next hop, and its current Q-table is presented in Figure 6a. Assume that ε < ε 0 . In this case, node N f 7 selects the node with the maximum Q-value from its Q-table. Suppose that z 2 > z 1 in this example, i.e.,  Q ( a N f 5 ) > Q ( a N f 4 ) , as shown in Figure 6a. Therefore, node N f 7 selects N f 5 as the next-hop node and transmits a short data packet for Q-table training. After receiving the packet, node N f 5 sends an ACK packet, as defined in Figure 3c, which contains the maximum Q-value in its Q-table. Based on this information, node N f 7 updates the value of Q ( a N f 5 ) in its own Q-table, while the value of Q ( a N f 4 ) remains unchanged, as illustrated in Figure 6b. This process completes the Q-table update for node N f 7 with one hop. As the process continues, the Q-tables of all nodes eventually converge.
Note that, during the initial phase of pre-training, relay nodes tend to select the next hop randomly because insufficient training data are available. As the pre-training continues, nodes increasingly prefer selecting the node with the maximum Q-value, Q max ( a N f j ) , as the next-hop node in order to optimize the Q-values. At the end of the pre-training stage, when t ˜ = T , the threshold becomes ε 0 = μ .

4.2.3. Online Transmission

After all nodes obtain their stable Q-tables, they will transmit the data packets online. The current node N f i selects the node N f j with the maximum Q-value, Q max ( a N f j ) , from its candidate set W N f i as the next-hop node. All nodes within the transmission range D of node N f i receive the data packet and identify the next-hop ID ( i d N f i , N f j ). If  i d N f i , N f j i d N f j , the data packet will be discarded. Otherwise, node N f j forwards the data packet and sends an ACK packet with a False void flag to node N f i . Subsequently, node N f i updates the Q-value Q ( a N f j ) in its Q-table during online operation. If  N f i cannot receive ACK successfully, the transmission fails. Two reasons lead to unsuccessful reception, which are
(1)
The next hop node N f j did not receive the data packet successfully.
(2)
The ACK failed to transmit in the feedback link.
For these two situations, the source node will resend the data packet. For the first situation, the node N f j repeats the receiving process as mentioned above. For the second situation, the  N f j only needs to feedback ACK again and does not need to forward the data packets this time. If the N f i cannot receive the ACK again, it will mark N f j as a void node and disable the N f j until the next Hello packet arrives.
We summarized the QDER protocol in Algorithm 1.
Algorithm 1 QDER Protocol.
  1:
Initialize: Q-table, candidate set W N f i , retransmission limit p r e , Hello period p t , threshold ε 0
  2:
for each episode do
  3:
      for each timeslot t = 1 , , T  do
  4:
            Initialize retransmission counter n u m = 0
  5:
            Select next hop N f j : ϵ -greedy from W N f i with probability ε 0
  6:
            Transmit packet to N f j ; n u m n u m + 1
  7:
            if ID verification fails then
  8:
                   N f j drops packet
  9:
            else
10:
                   N f j forwards packet and sends ACK
11:
            end if
12:
            if no ACK received and n u m < p r e  then
13:
                  Re-select N f j and go to step 6
14:
            else if no ACK received and n u m = p r e  then
15:
                  Select alternative next hop and go to step 6
16:
            end if
17:
            if  N f j is void then
18:
                  Disable N f j
19:
            end if
20:
            Update Q-table of N f i
21:
            if  t mod p t = 0  then
22:
                   N s broadcasts Hello packet
23:
            end if
24:
      end for
25:
end for

5. Simulation Results

5.1. Parameter and Metric Definitions

The underwater environment and routing protocol are simulated in this section. Suppose the underwater sensor nodes are deployed randomly in a three-dimension space within 500 × 500 × 500 m 3 . One source node is deployed to the bottom of the water, and one sink stays on the water surface. The transmission rate is set as 5000 bps, and the packet format is given in Figure 3. The loop number is set to be 5 × 10 3 per simulation trail. The hyper-parameters of Q-learning, such as the discount factor, learning rate, and ϵ -greedy factor are γ = 0.5 , α = 0.9 , and μ = 0.1 . A relatively high learning rate allows nodes to rapidly adapt to dynamic underwater channel conditions and topology variations, while a moderate discount factor enables the algorithm to consider both immediate and future rewards during routing decisions. Other parameters and symbol definitions are shown in Table 1 and Table 2, respectively. We note that the two weights of reward are set to be β 1 = 0.8 ,   β 2 = 0.2 in the simulation, which is primarily to account for the impact of energy. However, it can be flexibly adjusted according to the relative importance of energy and depth in different scenarios.
In addition to parameter definitions, the performance evaluation metrics in the simulation are defined as follows.
(1) The total energy consumption E
The total energy consumption is defined as the sum of the energy consumed by all sensor nodes in the network during their working time, which is
E = i = 1 n f E N f i
The E N f i is computed by
E N f i = p s · T s i + p r · T r i · M d a t a + T a i T s i + T r i · M d a t a · p w
in which the definitions of the parameters are listed in Table 2.
(2) Energy consumption ratio E R
The energy consumption ratio represents the ratio of the total network energy consumption to the total initial energy of the network, which can be expressed as
E R = E n f · e i n i
The calculation for energy consumption variance is
E v = 1 n f i = 1 n f E N f i E a v e 2
(3) End-to-end time delay
The end-to-end time delay is the time duration from a data packet transmitted at the source node to its successful reception at the sink via multi-hop relaying.
(4) Information exchange delay T D C m
We defined an information exchange delay here to denote the time consumed by information exchange between nodes in the process of network forwarding the m-th data packet from a source node to the sink. The exchanged information includes ACK, node identifiers, packet-type indicators, and other related information required for routing selection. Accordingly, the information exchange delay for the m-th packet is
T D C m = i = 1 n f j = 1 n f T d i , j , i j
The average information exchange delay T D C a v e is denoted by
T D C a v e = m = 1 M d a t a T D C m M d a t a
(5) Network lifetime
The network lifetime is defined as the time duration from the start of network operation to the time when the first node in the network exhausts its energy.

5.2. Performance Evaluation

In this section, we evaluate the routing performance proposed by this paper. We assume that the physical channels are error-free in the simulation, which may be achieved by strong forward channel correction coding and equalizer. Therefore, we focus on how routing decisions influence the system performance.

5.2.1. Convergence of Q-Value

We evaluate the convergence performance for the Q-value first. In Figure 7, we draw an average Q m a x convergence curve with the training steps. It shows that the average Q m a x increases rapidly during the first 800 training steps and then stays stable after 1000 steps. The variance curve stabilizes at approximately step 900 and remains at a low level thereafter, indicating that the local Q-tables of all nodes have converged to a consistent state and thus the distributed learning process has reached a stable state.

5.2.2. Performance of Energy Consumption

We compare the energy consumption of the proposed protocol (QDER) with DBR [8] and DQIR [24] in this section. Figure 8a,b show the total energy consumption results. As the node number increases, all protocols experience an increase in energy consumption. The DBR needs more repeated transmission, resulting in a significant increase in energy consumption. However, QDER is able to determine subsequent hop nodes, which reduces energy loss caused by repeated transmission. From Figure 8b, the energy consumption ratio of QDER and DQIR decreases with the increase in node numbers. In the case of fewer nodes, DQIR has a better energy consumption rate than QDER. However, as the number of nodes increases, DQIR requires more information exchange, resulting in a higher energy consumption ratio. These results demonstrate that the QDER can effectively select the optimal route in dense networks and use less information exchange, thereby effectively reducing energy consumption.
Figure 9 shows the variance in energy consumption. The energy consumption of DBR is imbalanced, and therefore has the largest variance. The energy consumption of QDER and DQIR is relatively balanced. The information exchange of QDER is less than DQIR; therefore, the variance in energy consumption is also less than that of DQIR.

5.2.3. Delay and Network Lifetime

We evaluate the time delay and network lifetime in this section. Figure 10 illustrates the average end-to-end time delay of data transmission from the source node to the sink node. As the number of nodes increases, the average end-to-end time delays of QDER and DQIR are much shorter than that of DBR. Our algorithm significantly reduces the time delay by about 35% compared with DBR, and its performance is very close to DQIR.
Figure 11 shows a comparison of the average information exchange delay T D C a v e between the QDER and DQIR. In QDER, each node maintains a local Q-table and makes routing decisions based on its own information and that of neighboring nodes. Therefore, information exchange occurs only between adjacent nodes during the forwarding process. In contrast, DQIR adopts a centralized training mechanism, where the DQN node collects information from all nodes in the network. As a result, the amount of information exchanged in the centralized scheme is significantly larger. Consequently, the distributed design in QDER requires less information exchange and leads to shorter information exchange delay. The results shows that compared with DQIR, the QDER remarkably reduces the information exchange delay by over 50%.
The network lifetimes are evaluated in Figure 12. It can be observed that QDER has a longer network lifetime than the other protocols. The benefit of QDER on the network lifetime becomes increasingly significant as the number of nodes increases. In the sparse deployment, the topology is relatively simple and energy consumption is inherently uniform, so that the performance gap among routing protocols is negligible. By contrast, as the topology becomes more complex, some nodes may consume their energy more rapidly because of frequent packet forwarding, which will shorten the total network lifetime. For this case, the QDER jointly considering residual energy and depth to select more efficient routing, thereby extending the network lifetime.

5.3. Performance Evaluation with Link Quality

To evaluate the impact of introducing link quality into the routing decision, simulations are performed in this section based on the Thorp’s channel transmission model, which accounts for physical-layer channel conditions. We use the reward function defined in Equation (9), considering link quality to enhance the robustness of the proposed algorithm against transmission noise. The improved version of the algorithm is referred to as IQDER (Improved QDER) in the simulation. The performance of BER, energy consumption, and network lifetime is evaluated.
As shown in Figure 13, the BER from the source node to the sink decreases as the SNR increases. Under the same number of network nodes, the IQDER achieves a lower BER than that of QDER, demonstrating the effectiveness of considering link quality into the routing decision process. For a given SNR, the BER decreases as the number of network nodes increases. This trend can be explained by the fact that a denser network provides more candidate routing paths between the source and the sink. With a larger node number, the algorithms are more likely to converge to routes with fewer hops. Since shorter end-to-end paths leads to less transmission errors, the BER is correspondingly reduced.
We also evaluate network energy consumption and network lifetime under SNR values of 10 dB and 20 dB. As shown in Figure 14 and Figure 15, the performance of IQDER is better than that of the other algorithms, particularly as the number of nodes increases. Benefiting from distributed processing, QDER and IQDER require less information exchange and fewer data retransmissions during packet forwarding, thus achieving higher energy efficiency and a longer network lifetime compared with both DBR and DQIR.
Furthermore, IQDER shows additional improvements over QDER because it uses the received SNR in the routing decision. By considering link quality during next-hop selection, nodes tend to choose links with more reliable transmission conditions, which reduces packet loss and unnecessary retransmissions. As a result, energy consumption is further reduced and the network lifetime is extended. These results demonstrate that introducing physical-layer information into the routing design is an effective approach for improving network performance in underwater acoustic sensor networks.

6. Conclusions

This paper proposes a QDER protocol for underwater acoustic sensor networks. The routing problem is formulated as an MDP, where each node maintains a local Q-table and makes routing decisions based on the depth and residual energy of neighboring nodes, enabling balanced energy consumption and efficient routing. In addition, link quality is taken into account in the reward function so that the impact of the physical channel is considered during relay node selection. Simulation results show that QDER achieves higher energy efficiency than DQIR and reduces information exchange delay by more than 50%, while also extending the network lifetime compared with DQIR and DBR under large-scale node deployments. Considering channel attenuation and noise, the proposed IQDER further improves energy efficiency and network lifetime and demonstrates robustness under different SNR conditions.

Author Contributions

Conceptualization, X.G.; Methodology, X.G.; Software, Q.L.; Resources, F.C.; Writing—original draft, Q.L. and X.P.; Writing—review & editing, X.G.; supervision, X.G.; funding acquisition, X.G. and F.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research is funded by the Key Research and Development Program of Shanghai under Grant No. 25DZ3102300, and by the Joint Funds of the National Natural Science Foundation of China under Grand No. U25A20399, and by the Soft Science Project of Shanghai under Grant No. 25692109100.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yan, M.; Guo, H.; Chan, C.A.; Gygax, A.F.; Li, C.; I, C.-L. Semantic Communication-Enabled Multi-Access Edge Computing Network Resource Optimization in the 6G Era. IEEE Wirel. Commun. 2025, 1–9. [Google Scholar] [CrossRef]
  2. Khisa, S.; Moh, S. Survey on recent advancements in energy-efficient routing protocols for underwater wireless sensor networks. IEEE Access 2021, 9, 55045–55062. [Google Scholar] [CrossRef]
  3. Liu, S.; Zuberi, H.H.; Arfeen, Z.; Zhang, X.; Bilal, M.; Sun, Z. Spectral Efficient Neural Network-Based M-ary Chirp Spread Spectrum Receivers for Underwater Acoustic Communication. Arab. J. Sci. Eng. 2024, 49, 16593–16609. [Google Scholar] [CrossRef]
  4. Khan, M.A.; Liu, S.; Bilal, M.; Hassan, A. Convolutional autoencoders for low probability of detection constrained underwater acoustic communications. Ocean Eng. 2026, 344, 123720. [Google Scholar] [CrossRef]
  5. Rodoshi, R.T.; Song, Y.; Choi, W. Reinforcement Learning-Based Routing Protocol for Underwater Wireless Sensor Networks: A Comparative Survey. IEEE Access 2021, 9, 154578–154599. [Google Scholar] [CrossRef]
  6. Busacca, F.; Galluccio, L.; Palazzo, S.; Panebianco, A.; Scarvaglieri, A. Balancing Optimization for Underwater Network Cost Effectiveness (BOUNCE): A Multi-Armed Bandit Solution. In Proceedings of the 2024 IEEE International Conference on Communications Workshops (ICC Workshops); IEEE: New York, NY, USA, 2024; pp. 1340–1345. [Google Scholar]
  7. Zuberi, H.H.; Liu, S.; Bilal, M.; Khan, R. Quadrature phase shift keying Sine chirp spread Spectrum under-water acoustic communication based on VTRM. In Proceedings of the 2022 19th International Bhurban Conference on Applied Sciences and Technology (IBCAST); IEEE: New York, NY, USA, 2022; pp. 884–888. [Google Scholar]
  8. Yan, H.; Shi, Z.J.; Cui, J.H. DBR: Depth-Based Routing for Underwater Sensor Networks. In NETWORKING 2008 Ad Hoc and Sensor Networks, Wireless Networks, Next Generation Internet; Das, A., Pung, H.K., Lee, F.B.S., Wong, L.W.C., Eds.; Springer: Berlin/Heidelberg, Germany, 2008; pp. 72–86. [Google Scholar]
  9. Wahid, A.; Lee, S.; Jeong, H.J.; Kim, D. EEDBR: Energy-Efficient Depth-Based Routing Protocol for Underwater Wireless Sensor Networks. In Advanced Computer Science and Information Technology (AST 2011); Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
  10. Mhemed, R.; Comeau, F.; Phillips, W.; Aslam, N. EEDOR: An Energy Efficient Depth-Based Opportunistic Routing Protocol for UWSNs. In Proceedings of the 2020 IEEE Canadian Conference on Electrical and Computer Engineering (CCECE); IEEE: New York, NY, USA, 2020; pp. 1–6. [Google Scholar] [CrossRef]
  11. Zhang, M.; Cai, W. Energy-Efficient Depth Based Probabilistic Routing Within 2-Hop Neighborhood for Underwater Sensor Networks. IEEE Sensors Lett. 2020, 4, 7002304. [Google Scholar] [CrossRef]
  12. Rahman, M.A.; Lee, Y.; Koo, I. EECOR: An Energy-Efficient Cooperative Opportunistic Routing Protocol for Underwater Acoustic Sensor Networks. IEEE Access 2017, 5, 14119–14132. [Google Scholar] [CrossRef]
  13. Saleem, K.; Wang, L.; Bharany, S. Survey of AI-driven routing protocols in underwater acoustic networks for enhanced communication efficiency. Ocean Eng. 2024, 314, 119606. [Google Scholar] [CrossRef]
  14. Gang, Q.; Rahman, W.U.; Zhou, F.; Bilal, M.; Ali, W.; Khan, S.U.; Khattak, M.I. A Q-Learning-Based Approach to Design an Energy-Efficient MAC Protocol for UWSNs Through Collision Avoidance. Electronics 2024, 13, 4388. [Google Scholar] [CrossRef]
  15. Farid, G.; Bilal, M.; Zhang, L.; Alharbi, A.; Ahmed, I.; Azhar, M. An Improved Deep Q-Learning Approach for Navigation of an Autonomous UAV Agent in 3D Obstacle-Cluttered Environment. Drones 2025, 9, 518. [Google Scholar] [CrossRef]
  16. Yan, M.; Luo, M.; Chan, C.A.; Gygax, A.F.; Li, C.; I, C.-L. Energy-efficient content fetching strategies in cache-enabled D2D networks via an Actor-Critic reinforcement learning structure. IEEE Trans. Veh. Technol. 2024, 73, 17485–17495. [Google Scholar] [CrossRef]
  17. Ali, S.M.; Bilal, M.; Alharbi, A.; Amin, R. A Novel Deep Reinforcement Learning Based Extended Fractal Radial Basis Function Network for State-of-Charge Estimation. IET Power Electron. 2025, 18, e70101. [Google Scholar] [CrossRef]
  18. Rahman, W.u.; Gang, Q.; Feng, Z.; Khan, Z.U.; Aman, M.; Bilal, M. A MACA-Based Energy-Efficient MAC Protocol Using Q-Learning Technique for Underwater Acoustic Sensor Network. In Proceedings of the 2023 IEEE 11th International Conference on Computer Science and Network Technology (ICCSNT); IEEE: New York, NY, USA, 2023; pp. 352–355. [Google Scholar] [CrossRef]
  19. Zhou, Y.; Cao, T.; Xiang, W. Anypath Routing Protocol Design via Q-Learning for Underwater Sensor Networks. IEEE Internet Things J. 2021, 8, 8173–8190. [Google Scholar] [CrossRef]
  20. Chen, Y.; Zheng, K.; Fang, X.; Wan, L.; Xu, X. QMCR: A Q-learning-based multi-hop cooperative routing protocol for underwater acoustic sensor networks. China Commun. 2021, 18, 224–236. [Google Scholar] [CrossRef]
  21. Li, X.; Shao, Z.; Qian, J. An Optimizing Method Based on Autonomous Animats: Fish-swarm Algorithm. Syst. Eng. Theory Pract. 2002, 22, 32–38. (In Chinese) [Google Scholar]
  22. Gao, J.; Wang, J.; Gu, J.; Shi, W. Q-learning-based routing optimization algorithm for underwater sensor networks. IEEE Internet Things J. 2024, 11, 36350–36357. [Google Scholar] [CrossRef]
  23. Su, Y.; Fan, R.; Fu, X.; Jin, Z. DQELR: An Adaptive Deep Q-Network-Based Energy- and Latency-Aware Routing Protocol Design for Underwater Acoustic Sensor Networks. IEEE Access 2019, 7, 9091–9104. [Google Scholar] [CrossRef]
  24. Geng, X.; Zhang, B. Deep Q-Network-Based Intelligent Routing Protocol for Underwater Acoustic Sensor Network. IEEE Sens. J. 2023, 23, 3936–3943. [Google Scholar] [CrossRef]
  25. Zhang, Y.; Zhang, Z.; Chen, L.; Wang, X. Reinforcement learning-based opportunistic routing protocol for underwater acoustic sensor networks. IEEE Trans. Veh. Technol. 2021, 70, 2756–2770. [Google Scholar] [CrossRef]
  26. Wang, B.; Zhang, H.; Zhu, Y.; Cai, B.; Guo, X. Adaptive power-controlled depth-based routing protocol for underwater wireless sensor networks. J. Mar. Sci. Eng. 2023, 11, 1567. [Google Scholar] [CrossRef]
  27. He, J.; Tian, J.; Pu, Z.; Wang, W.; Huang, H. Cross-Layer Routing Protocol Based on Channel Quality for Underwater Acoustic Communication Networks. Appl. Sci. 2024, 14, 9778. [Google Scholar] [CrossRef]
  28. Adil, M.; Liu, S.; Mazhar, S.; Jan, M.; Khan, A.Y.; Bilal, M. A Fully Connected Neural Network Driven UWA Channel Estimation for Reliable Communication. In Proceedings of the 2023 International Conference on Frontiers of Information Technology (FIT); IEEE: New York, NY, USA, 2023; pp. 310–315. [Google Scholar] [CrossRef]
  29. Bilal, M.; Liu, S.; Zhou, T.; Zuberi, H.H.; Khan, M.A. Cepstrum-Based Watermarking for Secure Underwater Data Transmission. In Proceedings of the 17th International Conference on Underwater Networks & Systems; Association for Computing Machinery: New York, NY, USA, 2023; pp. 1–5. [Google Scholar] [CrossRef]
  30. Bilal, M.; Zuberi, H.H.; Jaffar, A.; Riaz, W.; Khan, M.A.; Alharbi, A.; Miyajan, A.; Liu, S. Covert underwater communication through cepstrum modulation mimicking Pseudorca crassidens whistles using machine learning. Sci. Rep. 2026, 16, 4155. [Google Scholar] [CrossRef] [PubMed]
  31. Ali, N.; Saeed, Y.; Ibrahim, M.; Bilal, M.; Tahir, M.; Aslam, M.; Akpokodje, E.; Jilani, S.F.; Tang, M. Real-Time Detection and Prevention of DoS Attack in Unmanned Marine Vehicles Using Machine Learning. Secur. Priv. 2026, 9, e70201. [Google Scholar] [CrossRef]
Figure 1. Network model.
Figure 1. Network model.
Entropy 28 00346 g001
Figure 2. Distributed Q-table of N f i .
Figure 2. Distributed Q-table of N f i .
Entropy 28 00346 g002
Figure 3. Packet format.
Figure 3. Packet format.
Entropy 28 00346 g003
Figure 4. Network initialization by Hello packet.
Figure 4. Network initialization by Hello packet.
Entropy 28 00346 g004
Figure 5. Next hop selection example.
Figure 5. Next hop selection example.
Entropy 28 00346 g005
Figure 6. Q-table update example.
Figure 6. Q-table update example.
Entropy 28 00346 g006
Figure 7. Q m a x convergence curves.
Figure 7. Q m a x convergence curves.
Entropy 28 00346 g007
Figure 8. Energy consumption/ratio.
Figure 8. Energy consumption/ratio.
Entropy 28 00346 g008
Figure 9. Variance in energy consumption.
Figure 9. Variance in energy consumption.
Entropy 28 00346 g009
Figure 10. Average end-to-end time delay.
Figure 10. Average end-to-end time delay.
Entropy 28 00346 g010
Figure 11. Average information exchange delay.
Figure 11. Average information exchange delay.
Entropy 28 00346 g011
Figure 12. Network lifetime.
Figure 12. Network lifetime.
Entropy 28 00346 g012
Figure 13. BER performance.
Figure 13. BER performance.
Entropy 28 00346 g013
Figure 14. Energy consumption.
Figure 14. Energy consumption.
Entropy 28 00346 g014
Figure 15. Network lifetime with link quality.
Figure 15. Network lifetime with link quality.
Entropy 28 00346 g015
Table 1. Simulation parameters.
Table 1. Simulation parameters.
UASNs ParameterSymbolValue
Number of relay nodes n f 200/300/400/500
Node initial energy (J) e i n i 5000
Transmit power (w) p s 2
Received power (w) p r 1
Idle power (w) p w 0.01
Maximum transmission range (m)D100
Residual energy weight coefficient β 1 0.8
Depth weight coefficient β 2 0.2
Table 2. Symbol definitions.
Table 2. Symbol definitions.
SymbolDefinitionSymbolDefinition
Etotal energy consumption T s i single packet transmitting time of N f i
E N f i energy consumption of N f i T r i single packet receiving time of N f i
E R energy consumption ratio T a i total running time of N f i
E v energy consumption variance T d i , j information exchange time between N f i and N f j
E a v e average energy consumption for network T D C m information exchange delay for m-th data packet
M d a t a number of data packets T D C a v e average information exchange delay
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Geng, X.; Li, Q.; Pan, X.; Cao, F. A Q-Learning-Based Distributed Energy-Efficient Routing Protocol in UASNs. Entropy 2026, 28, 346. https://doi.org/10.3390/e28030346

AMA Style

Geng X, Li Q, Pan X, Cao F. A Q-Learning-Based Distributed Energy-Efficient Routing Protocol in UASNs. Entropy. 2026; 28(3):346. https://doi.org/10.3390/e28030346

Chicago/Turabian Style

Geng, Xuan, Qingyuan Li, Xiaowei Pan, and Fang Cao. 2026. "A Q-Learning-Based Distributed Energy-Efficient Routing Protocol in UASNs" Entropy 28, no. 3: 346. https://doi.org/10.3390/e28030346

APA Style

Geng, X., Li, Q., Pan, X., & Cao, F. (2026). A Q-Learning-Based Distributed Energy-Efficient Routing Protocol in UASNs. Entropy, 28(3), 346. https://doi.org/10.3390/e28030346

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