1. Introduction
The ocean, covering approximately 71% of the Earth’s surface, is a vital domain for global trade, resource exploration, environmental monitoring, and national security. Maritime activities increasingly rely on efficient and reliable communication networks to support autonomous vessels, marine sensor networks, and offshore platforms. However, the unique characteristics of marine environments pose fundamental challenges to traditional communication architectures. Nodes such as ships, buoys, drones, and offshore platforms are sparsely distributed, highly mobile, and their trajectories are significantly influenced by natural factors including ocean currents and wind. Communication distances are long, signal attenuation is severe, links are intermittent, and network resources such as energy, storage, and bandwidth are strictly limited. These features render conventional network architectures based on stable end-to-end paths, such as TCP/IP, largely inapplicable in marine scenarios [
1].
Opportunistic networks (OppNets) have emerged as a promising communication paradigm that does not rely on persistent connectivity [
2]. By exploiting node mobility to create transient encounter opportunities, OppNets adopt a “store-carry-forward” mechanism that enables asynchronous multi-hop data transmission even in the absence of continuous end-to-end paths. This approach is particularly well-suited for infrastructure-poor or highly dynamic environments such as oceans, disaster areas, and remote regions. Despite its conceptual appeal, the practical deployment of OppNets in marine settings faces significant obstacles. The high dynamics of node mobility, the intermittent nature of connectivity, and the severe constraints on network resources collectively challenge the performance of existing routing protocols.
Over the past two decades, numerous routing protocols have been proposed for OppNets, each with distinct design philosophies and trade-offs. Epidemic routing [
3] achieves high theoretical delivery ratios through a flooding-based approach but suffers from excessive redundancy and resource consumption. PROPHET [
4] reduces unnecessary transmissions by leveraging historical encounter probabilities; however, its accuracy degrades rapidly when mobility patterns change unpredictably. Spray and Wait [
5] bounds the number of message copies to control overhead but lacks intelligent copy distribution mechanisms that could further improve efficiency. More recent protocols such as MaxProp [
6] and Bubble Rap [
7] incorporate priority-based scheduling and social network analysis, respectively, but either require global information or rely on stable social structures that may not exist in purely random marine mobility scenarios. A common limitation across these approaches is their reliance on static rules or single-dimensional metrics, which fundamentally lack the adaptability required to cope with highly dynamic and resource-constrained marine environments.
In recent years, reinforcement learning (RL), particularly Q-learning, has attracted significant attention for solving sequential decision-making problems in dynamic environments [
8,
9]. By treating each network node as an autonomous learning agent, Q-learning enables adaptive routing decisions that maximize long-term communication utility through continuous interaction with the environment. This paradigm offers a promising alternative to rule-based protocols, as it allows nodes to learn optimal forwarding strategies without requiring a priori knowledge of network dynamics. However, applying standard Q-learning to marine opportunistic networks introduces several challenges. First, fixed learning rates and discount factors cannot adapt to rapidly changing network conditions such as node density, congestion, and mobility patterns. Second, conventional reward functions that consider only single metrics like delay or hop count are insufficient to balance competing performance objectives including delivery ratio, latency, and resource efficiency. Third, the overestimation bias inherent in standard Q-learning [
10] can lead to suboptimal policy selection and routing oscillations. Fourth, cache management—a critical resource optimization aspect—is often treated independently from routing decisions, despite their strong coupling.
To address these limitations, this paper proposes an integrated adaptive Q-learning-based routing and cache management framework specifically designed for marine opportunistic networks. The main contributions of this work are fourfold:
Dynamic parameter adjustment mechanism: We introduce adaptive learning rate and discount factor models that respond to real-time network conditions. The learning rate adapts to network scale, node load, and congestion level, while the discount factor dynamically adjusts based on message urgency, transmission progress, and node mobility.
Multi-dimensional intelligent reward function: A novel reward function is designed using a sliding window mechanism to dynamically integrate delay, hop count, and node historical reliability, enabling adaptive trade-offs among multiple performance metrics based on recent network conditions.
Asynchronous double Q-learning structure: We adopt an asynchronous double Q-learning architecture that mitigates overestimation bias and enhances algorithm stability through decoupled action selection and value evaluation.
Priority-based dynamic cache management: A message priority evaluation model is constructed considering message urgency, degree of replication, encounter probability with the destination, and message size, along with a dynamic cache replacement strategy that optimizes limited storage resources in coordination with routing decisions.
Extensive simulations conducted on the ONE (Opportunistic Network Environment) platform [
11] demonstrate the effectiveness of the proposed framework. The integrated algorithm achieves significant improvements over baseline protocols, including a 71.2% increase in delivery ratio compared to Epidemic and a 26.2% reduction in overhead compared to fixed-parameter Q-learning, confirming the value of adaptive mechanisms for reliable and efficient communication in marine opportunistic networks.
The remainder of this paper is organized as follows.
Section 2 reviews related work on opportunistic network routing, reinforcement learning applications, and cache management strategies.
Section 3 presents the proposed adaptive Q-learning routing framework with dynamic parameter adjustment.
Section 4 introduces the intelligent reward function and double Q-learning optimization.
Section 5 describes the dynamic cache management strategy.
Section 6 presents experimental results and analysis.
Section 7 concludes the paper and discusses future research directions. A list of symbols is provided in the
Appendix A.
3. Adaptive Q-Learning with Dynamic Parameter Adjustment
3.1. Limitations of Static Parameter Q-Learning
The standard Q-learning update uses fixed and , which cause several problems in marine OppNets. First, a constant learning rate cannot balance exploration and exploitation across different network scales: in a small network (e.g., 40 nodes), a high may cause Q-value oscillations; in a large network (e.g., 100 nodes), a low may lead to slow convergence. Second, a fixed discount factor treats all messages equally, failing to prioritize urgent messages (those with short remaining TTL). Third, node mobility is ignored: a fast-moving node (e.g., a drone at 10 m/s) has many future encounter opportunities, which a fixed cannot capture. These limitations motivate dynamic parameters.
3.2. State Space Representation
At each node, the state s is a tuple of three normalized features:
Cache occupancy ratio , scaled to .
Average encounter rate , capped at 1.
Message TTL ratio for each message (for per-message state).
All features are min-max normalized using historical minima and maxima observed during the simulation warm-up phase (first 10% of time). This normalization ensures stable learning across different network scales.
3.3. Dynamic Learning Rate Model: Why and How
The proposed learning rate
is designed to adapt to three factors: network scale
, node cumulative transmission count
, and congestion
(cache occupancy ratio). The formula is:
where
itself depends on network scale:
Here
is the instantaneous cache occupancy ratio, smoothed via a moving average of window size 5 to avoid abrupt fluctuations:
. The variable
is the cumulative number of messages successfully forwarded by node
m since its startup, updated after each forwarding action. This cumulative count reflects the node’s experience; more forwarded messages indicate a mature forwarding policy, thus, decreasing the learning rate.
The term
approximates
. This exponential decay ensures that as a node forwards more messages (
grows), its learning rate gradually decreases, shifting from exploration to exploitation. The baseline
uses a logarithmic function so that in larger networks the initial learning rate is only slightly lower than in small networks, avoiding over-exploration. The congestion factor
reduces
when the node’s cache is nearly full, because further exploration would likely cause buffer overflow and packet loss.
Figure 1 shows that
decreases significantly when
or
is high. This design directly improves performance: in congested scenarios, the lower learning rate suppresses blind forwarding, reducing overhead; in large networks, the mild decay prevents premature convergence, leading to higher delivery ratios (as shown in
Section 6).
3.4. Dynamic Discount Factor Model: Why and How
The discount factor
controls how much weight is given to future rewards. In marine OppNets, a message’s remaining lifetime (
), the number of hops it has already taken (
), and the node’s speed (
v) should all influence this trade-off. Our model is:
with baseline
adapted to network scale:
The first term,
, decreases as a message ages. When
approaches 1 (the message is about to expire), this term drops to about 0.5, reducing
. Consequently, the algorithm focuses on immediate rewards (delivering the message before it times out) rather than long-term gains. This directly improves delivery ratio for time-critical messages.
The second term, , penalizes messages that have already traveled many hops. If exceeds the network average , this term falls below 0.5, encouraging the node to avoid forwarding the message further (i.e., to keep it or find a shorter path). This reduces redundant copies and lowers overhead.
The third term,
, increases
for fast-moving nodes. A ship or drone moving at high speed will likely encounter many other nodes in the future, so future rewards become more valuable. This term is designed to make fast nodes more willing to hold messages and wait for better opportunities, rather than forwarding them immediately to a suboptimal neighbor.
Figure 2 shows that
drops sharply for urgent messages or long paths, and rises for high speeds. The overall effect is a more adaptive routing policy that respects message deadlines and node mobility.
Range analysis of : In Equation (
4), the first two terms are each bounded in
, so their sum lies in
. The factor
ranges in
. The baseline
is at most
. Therefore, the product
is theoretically in
. However, due to the saturation enforced by
in implementation, the effective range is
. For typical values (
,
,
),
varies between approximately 0.2 and 1.2, with saturation at 1. This ensures that immediate rewards are emphasized for urgent messages (
low) while fast nodes can still value future opportunities (
high).
To provide a concise overview,
Table 1 summarizes the key dynamic parameters and their adaptation mechanisms.
7. Conclusions
This paper proposed an adaptive Q-learning framework for marine opportunistic networks. The main findings and practical implications are as follows.
Key findings: (1) The dynamic learning rate adaptively balances exploration and exploitation, achieving up to 26% higher delivery ratio than fixed-parameter Q-learning in large-scale networks. (2) The dynamic discount factor prioritizes urgent messages and fast-moving nodes, reducing average delay by 18% compared to static discounting. (3) The multi-dimensional reward function with sliding-window weights improves delivery ratio by 7.2% over single-dimensional reward.
Practical contributions: The integrated IR-DQ algorithm is lightweight (Q-table size ≈ 2000 entries, memory < 256 MB) and requires only local computation, making it deployable on resource-constrained marine nodes (buoys, ships, drones). The framework’s adaptability to varying node density and congestion has been validated through extensive simulations.
Future work: Deep reinforcement learning for larger state spaces, energy-aware optimization, and real-world sea trials with AIS-based mobility models.