Skip to Content
DronesDrones
  • Article
  • Open Access

8 March 2026

23 Pages

Multi-Agent Deep Reinforcement Learning for Coding-Aware and Energy-Balanced Routing in Dynamic Drone Networks †

,
,
,
,
and
1
College of Automation, Jiangsu University of Science and Technology, Zhenjiang 212100, China
2
College of Computer Science and Technology, Nanjing University of Science and Technology, Nanjing 210094, China
*
Author to whom correspondence should be addressed.
†
This paper is an extended version of our paper published in Qiu, X.; Song, B.; Ke, Y.; Xu, L.; Yang, Y. Coding-Aware Routing for Maximum Throughput and Coding Opportunities by Deep Reinforcement Learning in FANET. In Proceedings of the 2022 IEEE 24th International Conference on High Performance Computing & Communications; 8th International Conference on Data Science & Systems; 20th International Conference on Smart City; 8th Int Conf on Dependability in Sensor, Cloud & Big Data Systems & Application (HPCC/DSS/SmartCity/DependSys), Hainan, China, 18–20 December 2022.
This article belongs to the Section Drone Communications

Highlights

What are the main findings?
  • Throughput Enhancement: We discovered that integrating coding opportunities into routing metrics significantly enhances network throughput and transmission efficiency. This supports the high-capacity communication requirements of low-altitude UAV networks, enabling the robust relay of bandwidth-intensive multimedia traffic, such as real-time video and high-resolution imagery.
  • Optimization Superiority: The study demonstrates that applying reinforcement learning to routing optimization outperforms traditional algorithms by effectively balancing conflicting performance metrics. This approach significantly improves communication efficiency and overcomes the computational complexity and solvability challenges inherent in traditional network coding schemes.
What is the implication of the main finding?
  • Foundations for the Low-Altitude Economy: This research provides a scalable and intelligent networking solution essential for the ubiquitous deployment of next-generation autonomous UAV swarms and the burgeoning low-altitude economy.
  • Enhanced Collaborative Capabilities: By successfully applying multi-agent reinforcement learning to complex topology management, the protocol significantly increases communication efficiency and throughput. This capability supports larger data payloads and robust information interaction, which are critical for collaborative aerial missions.

Abstract

By incorporating opportunistic coding, network throughput is enhanced, resulting in improved overall performance. However, applying this paradigm to Flying Ad-hoc Networks (FANETS) faces significant challenges due to the highly dynamic topology caused by the high-velocity mobility of UAVs, alongside the NP-hard complexity of identifying optimal coding opportunities in rapidly evolving aerial network architectures. To address these challenges, this paper proposes a novel coding-aware routing protocol based on Multi-Agent Deep Deterministic Policy Gradient (MADDPG). We formulate the routing problem as a multi-agent continuous decision-making process, employing the MADDPG algorithm to optimize routing policies in real-time through decentralized execution and centralized training. To maximize network utility, we design a comprehensive reward function that integrates coding benefits, throughput, energy distribution, and end-to-end delay, ensuring a balance between throughput maximization and the energy sustainability of individual UAV nodes. Simulation results demonstrate that the proposed protocol significantly outperforms state-of-the-art coding-aware routing protocols in terms of throughput, Packet Delivery Ratio (PDR), and transmission delay, exhibiting superior robustness in highly dynamic FANET scenarios. Notably, at a network density of 20 UAVs, MARL-CAR outperforms COPE, DCAR, TSCAR, and RLCAR in terms of coding ratio by 32.23%, 18.93%, 20.35%, and 5.5%, respectively. This research provides a scalable and intelligent networking solution for the next generation of autonomous UAV swarms and collaborative aerial missions.

1. Introduction

The burgeoning low-altitude economy has catalyzed the ubiquitous deployment of Unmanned Aerial Vehicles (UAVs) across diverse sectors, capitalizing on their superior maneuverability, rapid deployment, and robust Line-of-Sight (LoS) communication links [1,2]. Especially in mission-critical scenarios—such as post-disaster search and rescue, emergency communication restoration, and persistent wide-area surveillance—the operational efficacy of a solitary UAV is inherently limited by its onboard energy reserves and constrained sensing swathe. Consequently, the paradigm shift toward multi-UAV collaborative swarms, structured as Flying Ad-hoc Networks (FANETs) [3,4,5], has become an essential trajectory for achieving ubiquitous coverage and seamless information interaction. Unlike traditional Mobile Ad-hoc Networks (MANETs), FANETs represent a highly volatile network architecture that maintains real-time situational awareness for ground control stations through multi-hop relaying, even in infrastructure-depleted or denied environments [6,7].
The primary objective of routing protocols is to guarantee stringent Quality of Service (QoS) for heterogeneous network traffic, facilitating high-throughput and reliable packet delivery [8,9,10]. However, the transition from terrestrial MANETs to FANETs introduces significant challenges, characterized by high-velocity mobility and the resultant sporadic topology reconfigurations. These inherent dynamics render conventional topology-based routing paradigms suboptimal; Maintaining global link-state consistency incurs prohibitive signaling overhead and intolerable convergence latencies [11]. In this context, geographic routing mechanisms—which execute forwarding decisions based on localized spatial coordinates—have emerged as a dominant paradigm due to their inherent scalability and resilience against rapid topological fluctuations [12].
Nevertheless, in practical mission environments, standalone routing strategies often struggle to sustain ultra-reliable communication amidst the frequent link outages and time-varying channel stochasticity inherent to FANETs [13,14]. The conventional store-and-forward mechanism inevitably precipitates retransmission redundancy and spectral inefficiency when link stability is compromised. To circumvent this bottleneck, Network Coding (NC) has been integrated into FANETs as a transformative transmission paradigm [15]. Moving beyond simple forwarding, NC enables intermediate relay nodes to computationally combine multiple ingress data streams into a single encoded egress packet. This approach exploits the inherent broadcast nature of the wireless medium, effectively minimizing transmission frequency and attenuating packet loss probabilities. Empirical evidence underscores that NC not only amplifies network throughput but also bolsters transmission robustness and curtails end-to-end latency within highly dynamic aerial environments [16].
The efficacy of NC in FANETs hinges on the strategic identification of coding opportunities [17]. A valid coding opportunity is instantiated when intersecting data flows at a relay node can be encoded, provided that the respective downstream recipients possess the requisite side information for successful decoding. Maximizing these opportunities is the primary conduit for unlocking the gain of NC, a process intrinsically coupled with path selection. Specifically, routing decisions dictate the spatial interaction of data flows, which directly governs the density of potential coding intersections [18]. Consequently, the development of Coding-Aware Routing (CAR) protocols—capable of proactively perceiving and engineering coding opportunities—is paramount to augmenting the systemic performance of autonomous UAV networks.
Although coding-aware routing holds great promise, existing solutions remain ill-suited for the highly dynamic FANET environment, primarily due to three critical limitations: (a) Calculating optimal coding opportunities is inherently difficult in rapidly changing environments. Traditional schemes relying on static or quasi-static topology assumptions fail to accommodate the frequent link intermittency and topology shifts characteristic of UAV networks [19]. (b) Existing algorithms typically adopt a greedy approach to maximize the sheer number of coding opportunities. However, this myopic focus may force data flows to detour through congested nodes, inadvertently degrading end-to-end latency, causing uneven energy depletion, and overloading computational resources, thereby failing to balance throughput with other vital QoS metrics [20]. (c) There exists a complex, non-linear coupling between routing decisions and aggregate network performance (e.g., latency, energy, and reliability). In high-mobility FANETs, analytically characterizing this mapping via closed-form mathematical models results in a non-convex optimization problem where computational complexity scales exponentially with network size, rendering it impractical for real-time decision-making [21,22,23].
Crucially, while multi-objective optimization or sophisticated heuristics could theoretically address these individual constraints, they encounter a fundamental contradiction between computational latency and network dynamics in high-speed FANETs. Traditional iterative solvers often require extensive time to converge, which is incompatible with the short topology coherence time of UAVs moving at speeds. By the time a heuristic algorithm generates a routing decision, the physical link state may have already changed, rendering the solution obsolete.
In response to the aforementioned limitations, this paper proposes MARL-CAR, a novel Multi-Agent Deep Reinforcement Learning-based Coding-Aware Routing protocol. By modeling the FANET as a cooperative multi-agent system, MARL-CAR leverages the Multi-Agent Deep Deterministic Policy Gradient (MADDPG) algorithm to facilitate collaborative routing decisions among UAVs. This enables near-instantaneous execution, making reinforcement learning a functional necessity for real-time routing in transient aerial environments rather. The selection of MADDPG as the core methodology is significant because it effectively addresses the non-stationarity of dynamic FANETs through its centralized training and decentralized execution (CTDE) paradigm. This approach not only actively uncovers latent coding opportunities but also masters the complex non-linear mapping between distributed routing actions and global network performance.
To mitigate the deficiencies of traditional algorithms—which often sacrifice holistic performance in a myopic pursuit of coding opportunities—MARL-CAR incorporates multi-dimensional metrics into its reward function design, including throughput, end-to-end latency, and coding potential. Furthermore, we introduce specific parameters such as Coding Benefit and Energy Distribution. These are critical not only for maximizing throughput via network coding but also for ensuring the long-term sustainability of energy-constrained UAV nodes by maintaining network-wide energy equilibrium. The key contributions and innovations of this work are as follows:
  • We model the coding-aware routing problem in FANETs as a Multi-Agent Markov Decision Process. By adopting the CTDE framework, we enable UAVs to make independent routing decisions based on local observations while learning a cooperative global policy that adapts to the dynamic and time-varying topologies typical of UAV networks.
  • We introduce two novel parameters: Coding Benefit and Energy Distribution. The former synthesizes coding potential with hop-count overhead to optimize path efficiency, while the latter focuses on balancing the residual energy variance among UAV nodes to maintain network-wide energy equilibrium.
  • We design a comprehensive multi-dimensional reward function and employ the MADDPG algorithm for optimization. Distinct from traditional schemes, our reward mechanism explicitly integrates end-to-end delay alongside coding opportunities, throughput, and energy consumption. This approach allows for dynamic strategy adjustment that prevents the load imbalance issues prevalent in conventional schemes while guaranteeing low-latency transmission.
  • We conduct extensive simulation experiments to provide an in-depth analysis of MARL-CAR’s performance. The results demonstrate significant improvements in key metrics, particularly coding success rate, transmission throughput, and delay reduction, compared to state-of-the-art benchmarks.
The structure of the paper is as follows: Section 2 reviews the related work on code-aware routing. Section 3 outlines the problem and establishes the network model. The details of the MARL-CAR mechanism are provided in Section 4. Section 5 discusses the experimental setup and results, followed by the conclusion in Section 6.

3. System Model and Problem Formulation

In this section, we outline the research problem of code-aware routing and introduce the corresponding network model. We frame the routing problem within the context of RL, with the aim of maximizing the coding opportunities available to the system. By modeling this problem as an optimization task, our goal is to identify an optimal routing path that effectively balances data transmission requirements with network constraints. The specific process is outlined below.

3.1. Problem Formulation and Network Modeling

Before establishing the mathematical model, it is crucial to define the core mechanism of coding-aware routing. Unlike traditional store-and-forward protocols, coding-aware routing exploits the broadcast nature of wireless media to combine multiple data streams at intermediate relay nodes. Specifically, when two data flows intersect at a relay UAV, the node can perform an XOR operation on the packets (e.g., p e n c = p 1 ⊕ p 2 ) and broadcast the encoded packet. This process, contingent upon the receiving nodes possessing the necessary decoding information (i.e., the native packets of the opposing flow), significantly reduces transmission frequency and bandwidth consumption. Consequently, the routing objective shifts from simply finding the shortest path to identifying paths rich in such coding opportunities.
We define the coding-aware routing problem as a sequential decision-making process, which is addressed using a Multi-Agent Reinforcement Learning (MARL) approach. As shown in Figure 1, the trained MARL-CAR algorithm functions as the intelligent agent within this framework, learning optimal routing decisions through continuous interaction with the network environment. The state space represents the agent’s observations, incorporating critical factors such as the UAV’s topological structure and the intersection status of data flows. This state space enables the agent to understand and adapt to the dynamically changing network environment. At the same time, the reward function integrates important elements such as data transmission requirements and network constraints, guiding the agent’s learning process. To align with the core objectives of coding-aware routing, the reward function explicitly considers both the discovery of network coding opportunities and the overall system throughput, ensuring that the agent prioritizes paths that maximize network efficiency and resource utilization. By observing the state space through reinforcement learning, the agent converges to an optimal policy to maximize the network’s efficiency and resource utilization.
Figure 1. Framework for code-aware routing using Multi-Agent Reinforcement Learning in a drone network.

3.2. Coding-Aware Network Model for FANETs

In this paper, we present a coding-aware network model for Flying Ad-hoc Networks, integrating graph theory with network coding to enhance data transmission efficiency. The network model is represented as an undirected graph G = { U , E , W } , where U is the set of UAVs, E represents the set of communication links between UAVs, and W denotes the set of edge weights that reflect the coding potential between UAVs.
The network graph accounts for both stable and dynamic coding opportunities. In the stable coding graph, each vertex corresponds to a flow handled by a UAV, with the value associated with each vertex representing the average number of packets currently in the queue for that flow. An edge between two vertices signifies that the corresponding flows satisfy the conditions for network coding, allowing them to be combined during transmission. If a subgraph of the coding graph forms a complete graph, all flows within that subgraph can be encoded together in a single transmission, thereby improving transmission efficiency.
In contrast, the dynamic coding graph emphasizes the potential coding opportunities introduced by new flows. It captures the free-ride effect, where the effective queue length of a new flow can be reduced by encoding it with existing flows. This dynamic graph helps identify and leverage these opportunities, thereby optimizing network performance by incorporating the coding benefits from newly introduced traffic.
However, it is critical to acknowledge that maximizing coding opportunities is not always equivalent to maximizing network throughput or robustness. Under certain conditions, coding-aware decisions can be harmful to the overall system performance. For instance, in scenarios with highly asymmetric traffic or heterogeneous link rates, forcing data streams to converge at a specific relay node may introduce significant queuing delays, as high-rate flows must wait for lower-rate flows to complete the XOR operation. Moreover, if the routing protocol myopically prioritizes coding intersections, it may select circuitous paths that involve excessive detours. Such detours escalate the hop-count overhead, increase end-to-end latency, and accelerate the energy depletion of battery-constrained UAV nodes. These decisions become detrimental when the cumulative network penalty—in terms of delay and energy—outweighs the theoretical bandwidth gain derived from network coding.
To navigate these trade-offs, we propose the coding-aware routing protocol MARL-CAR, which seeks to balance the topological distance and coding potential. The routing decision is framed as a MDP, where the optimization problem is expressed as follows:
max ∑ i = 1 | l | w l i , l i + 1 ( l ) | l | ,
where L denotes the complete set of all feasible routing paths from the source UAV to the destination UAV. For a specific path l ∈ L , l i represents the i-th UAV node in the sequence, and | l | denotes the total number of nodes in that path. The edge weight w l i , l i + 1 ( l ) for each segment of the path is derived from the coding potential. The objective is to identify a path that minimizes transmission overhead while simultaneously maximizing coding potential.
Within this framework, the objective function is mapped to a reinforcement learning value function, allowing the agent to continually evaluate and refine its policy based on received rewards. By incorporating coding opportunities and other key network performance metrics into the reward structure, the learned policy effectively guides route selection to reduce transmission overhead while exploiting coding opportunities to enhance throughput and reliability. Such DRL-based routing has been demonstrated to adaptively cope with rapid topology changes and improve overall network performance compared to traditional heuristic methods, making it particularly suitable for the highly dynamic context of FANETs.

3.3. Formulation of Network Coding-Aware Routing Metric

To systematically identify coding opportunities within the routing framework, we formalize the network topology with respect to flow dynamics. Let a data stream f, originating from a source UAV u s and destined for a target UAV u d , be denoted by the sequence of nodes traversing its path. For any intermediate relay UAV u v , we characterize its topological relationship to flow f via two sets: the Predecessor Set P f ( u v ) and the Successor Set S f ( u v ) . Accordingly, the local one-hop neighbor set of u v is defined as N ( u v ) .
Drawing upon the solvability criteria established in [16], the validity of executing XOR-based network coding at node u v is contingent upon the decoding capability of the next-hop recipients. Specifically, for two intersecting flows f 1 and f 2 , the topology must satisfy a reciprocal overhearing constraint: the designated receiver of flow f 1 (denoted as s 1 ∈ S f 1 ( u v ) ) requires prior access to the native packet of flow f 2 . This access is guaranteed only if s 1 falls within the transmission coverage of the predecessor of flow f 2 (denoted as p 2 ∈ P f 2 ( u v ) ). This geometric constraint manifests in two topological forms: either via direct opportunistic listening (where s 1 ∈ N ( p 2 ) ) or via reverse traffic symmetry (where s 1 is identical to p 2 ). Symmetrically, the receiver of flow f 2 must simultaneously possess connectivity to the predecessor of flow f 1 to ensure mutual decodability.
To integrate these topological opportunities into the routing metric, we quantify the Coding Gain ( G ). Assume a packet P l containing candidate routing information traverses a path of length h. As it propagates, it identifies potential coding relays. Consider a specific coding-capable UAV u c ( 1 < c < h ) where a set of flows intersect. Let K ( u c ) denote the number of concurrent streams. The transmission capability is governed by the set of link rates Φ ( u c ) = { μ ( f k ) ∣ 1 ≤ k ≤ K ( u c ) } , where μ ( f k ) represents the link capacity for the k-th flow. Since the encoded packet is broadcast to multiple recipients simultaneously, the effective transmission duration is constrained by the bottleneck link, defined as:
μ min ( u c ) = min 1 ≤ k ≤ K ( u c ) μ ( f k ) .
The local coding gain G ( u c ) is formulated to reflect the bandwidth efficiency derived from this broadcast mechanism. It is calculated as the product of the theoretical reduction in transmission slots (i.e., K ( u c ) − 1 ) and the ratio of the bottleneck rate to the aggregate unicast rate:
G ( u c ) = ( K ( u c ) − 1 ) · μ min ( u c ) ∑ k = 1 K ( u c ) μ ( f k ) .
Finally, since the packet P l exploits encoding opportunities across multiple hops, the total utility is derived by aggregating the local gains from all identified coding nodes. The Cumulative Coding Gain is expressed as:
G t o t a l ( P l ) = ∑ 1 < c < h G ( u c ) .

4. Components of MARL-CAR

This section is dedicated to a comprehensive exposition of the proposed reinforcement learning-based framework for routing optimization. Initially, we bridge the gap between the routing decision problem and the learning model by formulating the task as a Markov Decision Process. Within this context, the critical components of the learning environment are rigorously defined, with a specific focus on the mathematical characterization of the state space, the discrete action set, and the reward function design essential for guiding the policy update. Building upon this theoretical foundation, the MARL-CAR algorithm is formally introduced. The section concludes with a systematic delineation of the algorithm’s operational workflow, elucidating the iterative interaction mechanisms between the agents and the network environment.

4.1. Cooperative Coding-Aware Routing: A Multi-Agent Learning Approach

In pursuit of the optimal solution for the objective function defined in Equation (1), this study constructs a distributed learning architecture based on MARL, specifically utilizing the MADDPG algorithm. The schematic representation of this framework is depicted in Figure 1, which strictly adheres to the CTDE paradigm to balance global training stability with local execution flexibility. Within this networked environment, each UAV is conceptualized as an autonomous intelligent agent i. These agents continuously interact with the dynamic FANET environment to optimize routing performance. Mathematically, the decision-making evolution is formalized as a Markov Decision Process (MDP). In each time slot t, agent i perceives its immediate surroundings to form a local state observation s i , t . Subsequently, based on this observation, it generates a routing decision a i , t , which contributes to the system-level joint action vector a t . Following the execution of these actions, the environment transitions to a new global state S t + 1 and feeds back a specific reward signal r i , t . Through this iterative feedback loop, agents progressively refine their policies, converging towards a equilibrium that represents a near-optimal cooperative strategy.
The coding-aware routing problem is formally modeled as a multi-agent extension of an MDP, characterizing the discrete-time stochastic control framework by the tuple ( S ,   A ,   P ,   R ) . In this tuple:
  • S denotes the global state space, where S t ∈ S represents the configuration of the entire system at time t.
  • A denotes the joint action space, representing the combination of actions from all agents.
The system dynamics are governed by the state transition probability matrix P, which describes the stochastic response of the environment. It is defined as the probability of transitioning to the next global state S ′ given the current state S and the joint action a:
P ( S ′ ∣ S , a ) = P [ S t + 1 = S ′ ∣ S t = S , a t = a ] .
Additionally, R represents the reward function set, shared or distributed among agents to encourage cooperation. In the MADDPG framework, each agent’s decision-making strategy is encapsulated by a deterministic policy, denoted as μ i , which establishes a direct mapping from its local observation to a specific action. This is formally expressed as:
a i , t = μ i ( s i , t ) .
The local state s i , t encapsulates the network information perceived by UAV i, serving as the input to its Actor network to characterize the local routing scenario. Since routing decisions dynamically alter the network environment, the state transition is inherently determined by the joint actions of all UAVs.
In the proposed MARL-CAR framework, the local state of agent i at time slot t is formally defined as the tuple s i , t = ( P i ( u s , u d ) , a i , t − 1 ) . This composite vector is designed to integrate the Service requirement data with the agent’s historical decision context. The specific components are characterized as follows:
  • Service requirement data P i ( u s , u d ) : This component identifies the data packet currently under the management of agent i, explicitly specifying its source UAV u s and targeted destination UAV u d .
  • Historical routing action a i , t − 1 : This represents the forwarding decision executed by the agent during the preceding time interval, serving as temporal feedback for policy updates.
Correspondingly, the action variable a i , t denotes the routing trajectory selected by agent i for the current transmission. Mathematically, it is expressed as a i , t = l i , t { u s , u 1 , u 2 , … , u d } ∈ L , where u represents the sequence of UAV nodes constituting the selected link.
To quantify agent efficacy and characterize the caliber of routing decisions, we establish the reward function, denoted as R, as the fundamental evaluation metric. In this study, we construct a reward mechanism designed to promote the selection of links that exhibit superior coding potential and transmission stability, while simultaneously penalizing routes plagued by poor link quality. Since the formulation of the reward signal fundamentally shapes the optimization trajectory, our objective is to guide the agents toward paths within FANETs that offer a synergy of maximized coding opportunities and high throughput. To achieve this, the proposed composite reward function synthesizes four critical performance dimensions: coding benefits, throughput, energy distribution, and transmission latency.
Building upon the analysis of Cumulative Coding Gain presented in the previous section, we derive a specific reward component to address coding efficiency. For a routing decision made by agent i, the coding-related reward is formulated as the net utility derived from the selected path l i :
r i , c o d e = G t o t a l ( P l i ) − H ( P l i ) ,
where P l i represents the specific trajectory resulting from action a i , t , and H ( P l i ) quantifies the path length in terms of hop count.
This formulation establishes a balance between throughput maximization and latency minimization. The component G t o t a l ( P l i ) serves as an incentive, encouraging agents to traverse topologically dense regions with abundant coding opportunities, thereby enhancing spectral efficiency. Conversely, H ( P l i ) imposes a distance-based penalty to curb excessive path lengths. By integrating these competing terms, the reward function steers the policy toward an optimal throughput-delay trade-off, deterring circuitous paths that offer only marginal coding gains.
To accurately evaluate transmission efficiency, we bifurcate the throughput reward mechanism into two directional streams: uplink and downlink. For a given agent i, the uplink throughput metric is calculated as:
r i , u p − t h r = avg ∑ l s , d ∈ a i , t t x t ( l s , d ) b w t ( l s , d ) · | Δ t | .
In this context, the action a i , t selects the specific link l s , d bridging the source UAV s and the destination UAV d. The variable t x t ( l s , d ) measures the cumulative data transfer across this link over the duration Δ t , whereas b w t ( l s , d ) denotes the channel capacity (bandwidth). The operator avg ( · ) is applied to smooth out idle periods, thereby deriving the mean effective transmission rate.
Symmetrically, the downlink component focuses on the reception quality and is expressed as:
r i , d o w n − t h r = avg ∑ l d , s ∈ a i , t r x t ( l d , s ) b w t ( l d , s ) · | Δ t | ,
where r x t ( l d , s ) indicates the quantity of data successfully decoded at the receiver end derived from the source.
Finally, to establish a holistic view of link quality, the aggregate throughput reward is formulated as a weighted sum of these two components:
r i , t h r = ϕ · r i , u p − t h r + ( 1 − ϕ ) · r i , d o w n − t h r .
where, the control parameter ϕ ∈ [ 0 ,   1 ] allows the Traffic Engineering (TE) optimizer to balance the priority between uplink transmission and downlink reception based on network requirements.
Myopically prioritizing coding gains and throughput can lead to disproportionate energy consumption, thereby precipitating premature node exhaustion. To prolong the network lifetime, we incorporate an energy cost metric designed to discourage the overuse of energy-constrained nodes. The cost function for a specific UAV u is defined as:
c ( u ) = 1 − E r e s ( u ) E i n i t ( u ) ,
where E i n i t ( u ) signifies the full battery capacity of the UAV at the onset of the mission, and E r e s ( u ) denotes the remaining energy available at the specific instant of packet transmission.
This study adopts a simplified energy consumption model to prioritize the marginal energy impact of routing decisions—specifically communication and processing overhead—on the electronic operational lifetime of the nodes. Assuming uniform initial energy across the swarm, a depletion in residual energy corresponds to an elevated consumption cost. Furthermore, we introduce the concept of energy distribution, denoted as d ( u ) , which is formulated as:
d ( u ) = 2 π arctan ( E r e s ( u ) − E ¯ ( u ) ) ,
where, E ¯ ( u ) signifies the mean energy level of one-hop neighbors surrounding UAV u, derived via the exchange of HELLO messages.
In summary, the specific individual reward component attributed to energy consumption for agent i is expressed as:
r i , e n e r g y = ∑ u k ∈ a i , t [ α 1 d ( u k ) − α 2 c ( u k ) − g ] ,
where, the summation iterates over the UAV nodes u k in the path selected by agent i. g accounts for the baseline energy drain of the drone over time, while α 1 and α 2 serve as weighting coefficients ( α 1 = 0.05 , α 2 = 0.5 ).
To capture dynamic network characteristics and the impact of traffic load on latency, the single-hop delay D ( l j , k ) between any two nodes in the selected path is formulated as the aggregate of queuing, processing, and transmission delays:
D ( l j , k ) = T q u e u e ( j ) + T p r o c ( j ) + L p k t b w t ( l j , k ) ,
where T q u e u e ( j ) represents the queuing delay that escalates as traffic load approaches node capacity, effectively indicating congestion; T p r o c ( j ) accounts for the processing delay induced by routing lookups and network coding (XOR) operations; and the transmission term is defined by the ratio of packet size L p k t to the instantaneous link bandwidth b w t ( l j , k ) .
The reward component for delay is defined as a penalty term. Since the reinforcement learning agent seeks to maximize the reward, a negative sign is applied to the cumulative delay to encourage the selection of low-latency paths:
r i , d e l a y = − ∑ l j , k ∈ a i , t D ( l j , k ) .
By synthesizing the incentives for coding potential, throughput, energy conservation, and delay minimization, the comprehensive individual reward function for agent i at time t is formulated as:
r i , t = ξ 1 · r i , c o d e + ξ 2 · r i , t h r + ξ 3 · r i , e n e r g y + ξ 4 · r i , d e l a y ,
where, ξ 1 , ξ 2 , ξ 3 , and ξ 4 represent the distinct weights assigned to each component ( ξ 1 + ξ 2 + ξ 3 + ξ 4 = 1 ), allowing for flexible tuning to balance the trade-offs between coding efficiency, high throughput, energy balance, and low latency according to specific mission requirements.
Finally, to foster cooperation and optimize the overall performance of the UAV swarm in the CTDE framework, we define the global reward R t . This metric aggregates the individual rewards of all agents to guide the centralized critic network, ensuring that local optimization aligns with the system-wide objectives:
R t = 1 N ∑ i = 1 N r i , t .

4.2. Learning Algorithm in MARL-CAR

Having established the modeling framework for the coding-aware routing problem, the subsequent phase focuses on its resolution. To this end, we propose MARL-CAR, a routing algorithm predicated on the MADDPG framework. The algorithm is expressly designed to simultaneously maximize coding opportunities and system throughput, while minimizing end-to-end latency. As illustrated in Figure 2, MADDPG extends reinforcement learning based on policy gradients to multi-agent domains by adopting the paradigm of CTDE.
Figure 2. MARL-CAR based on MADDPG algorithm.
Within the MARL-CAR architecture, each UAV acts as a distinct agent i. The routing policy for agent i is parameterized as a local deterministic policy function, denoted as μ i ( s i ) , which relies solely on its own local observations o i . Conversely, the centralized action-value function for agent i, utilized during training to guide cooperation, is represented by Q i ( s , a ) , where s denotes the global state information and A = { a 1 , … , a N } represents the joint actions of all N agents. These functions are approximated via artificial neural networks, designated as the Actor network and the centralized Critic network, respectively. The optimization of direct output actions is achieved through a policy gradient ascent algorithm. Furthermore, to enhance stability in this multi-agent setting, the MADDPG framework incorporates a target network technique, which employs structural replicas of the training networks to compute target values. Given that the application environment is a dynamically evolving FANET characterized by non-stationarity induced by multiple interacting UAVs, the utilization of an MADDPG-based approach offers significant advantages in solving this specific routing model compared to independent single-agent learning.

4.3. The Network Model

This paper implements an Actor-Critic architecture to effectively optimize routing policies within continuous domains. The centralized action-value function, which underpins agent i’s learning process, is approximated by a neural network with parameters θ i Q . regarding action selection at time step t, the process is governed by a deterministic policy μ i . This policy maps local observations s i , t to specific actions a i , t , a relationship formally defined as:
a i , t = μ i ( s i , t ∣ θ i μ ) ,
where θ i μ represents the learnable weights characterizing the Actor (policy) network of agent i.
In the phase of centralized training, the evaluation of actions is performed by the Critic network, utilizing holistic state information. Once the instantaneous reward r i , t is received and the system transitions to the next global state S t + 1 , the formulation of the centralized state-value function adheres to the principles of the Bellman equation:
Q i μ ( S t , a 1 , t , … , a N , t ) = E [ r i , t + γ Q i μ ( S t + 1 , μ 1 ( s 1 , t + 1 ) , … , μ N ( s N , t + 1 ) ) ] ,
where, S t represents the global state vector encompassing observations of all agents, γ ∈ [ 0 , 1 ) represents the discount factor, and μ = { μ 1 , … , μ N } denotes the set of current deterministic policies for all N agents.
Furthermore, to stabilize training, a target Q-value y j is computed for each sample j in a mini-batch utilizing target network structures. Unlike DDPG, the target calculation in MADDPG requires the next-state joint actions of all agents:
y j = r i , j + γ Q i ′ ( S j + 1 , μ 1 ′ ( s 1 , j + 1 ∣ θ 1 μ ′ ) , … , μ N ′ ( s N , j + 1 ∣ θ N μ ′ ) ) ,
where the index j refers to the j-th transition sample randomly drawn from the replay buffer D during the centralized training phase. Each sample j in the mini-batch represents a historical experience tuple ( S t , a t , r t , S t + 1 ) that was originally recorded at some preceding time step t. Q i ′ and μ k ′ denote the target Critic network and target Actor networks respectively, parameterized by θ i Q ′ and θ k μ ′ . These target parameters are soft-updated copies of the online networks. By employing the randomized sampling index j for training rather than sequential time t, the algorithm effectively decorrelates the transition data, thereby ensuring gradient stability and improving policy convergence.
Subsequently, the parameters θ i Q of the Critic network for agent i are updated via gradient descent by minimizing the loss function. This loss is defined as the mean squared error over a mini-batch of size M, assessing the discrepancy between the estimated Q-value and the target value:
L o s s ( θ i Q ) = 1 M ∑ j = 1 M ( y j − Q i ( S j , a 1 , j , … , a N , j ∣ θ i Q ) ) 2 .
Accordingly, the expected return objective function J for agent i is mathematically characterized as:
J ( θ i μ ) = E [ r i , t ] .
Applying the chain rule to the gradient of this objective function, the update mechanism for the Actor network of agent i is derived (the deterministic policy gradient). Crucially, since the centralized Critic takes joint actions as input, the gradient is computed with respect to agent i’s action a i , evaluated at the actions currently chosen by all agents:
∇ θ i μ J ≈ 1 M ∑ j = 1 M ∇ a i Q i ( S j , a 1 , … , a N ∣ θ i Q ) | a k = μ k ( s k , j ) ∀ k · ∇ θ i μ μ i ( s i , j ∣ θ i μ ) ,
where, ∇ a i Q i represents the gradient of the Critic’s output with respect to agent i’s action, and ∇ θ i μ μ i is the gradient of the Actor network’s output with respect to its own parameters.
Finally, the parameters θ i Q ′ and θ i μ ′ corresponding to the target networks undergo a soft update process using a smoothing technique.
The detailed procedure of the proposed routing strategy is summarized in Algorithm 1. Specifically, this study develops a multi-agent training framework where each UAV, acting as an intelligent agent, interacts with the dynamic topology to optimize its forwarding policy through a centralized training and decentralized execution paradigm.
Algorithm 1 Execution Procedure of the MADDPG-Driven Routing Protocol
Require: 
Replay Buffer D , UAV network Global State S t , Local Observation Set s t = { s 1 , t , … , s N , t } , System Parameters: Soft Update Rate τ , Discount Factor γ .
    1:
Setup: For every agent i ∈ { 1 … N } : Instantiate Critic Q i ( S , a ∣ θ i Q ) and Actor μ i ( s i ∣ θ i μ ) .
    2:
Synchronize target weights: θ i Q ′ ← θ i Q and θ i μ ′ ← θ i μ across all i.
    3:
for episode m = 1 to M do
    4:
    Reset exploration noise process σ .
    5:
    Acquire initial system state S 1 and observation vectors s 1 .
    6:
    for time step t = 1 to T do
    7:
        Compute action a i , t = μ i ( s i , t ∣ θ i μ ) + σ t for each agent i.
    8:
       Perform joint action a t , observe reward set r t , next global state S t + 1 , and new observations s t + 1 .
    9:
        Archive experience tuple ( S t , a t , r t , S t + 1 , s t + 1 ) into buffer D .
  10:
        for agent i = 1 to N do
  11:
            Draw a random batch of samples from D .
  12:
            Compute target value y j via target networks (Equation (20)).
  13:
            Refine Critic Q i by minimizing the loss function (Equation (19)).
  14:
            Optimize Actor μ i via policy gradient ascent (Equation (23)).
  15:
        end for
  16:
        Perform soft update on target parameters for all i:
         θ i Q ′ ← τ θ i Q + ( 1 − τ ) θ i Q ′ ,
         θ i μ ′ ← τ θ i μ + ( 1 − τ ) θ i μ ′ .
  17:
    end for
  18:
end for
  19:
Upon termination of the procedure, the MARL-CAR framework yields the converged routing policy.

4.4. MARL-CAR Implementation

Predicated on the agent training architecture previously defined, we now delineate the specific operational protocol for the coding-aware routing strategy. Figure 3 provides a schematic representation of the MARL-CAR workflow, which is segmented into four integral stages: environmental sensing, flooding-based topology discovery, the iterative training regimen, and the deployment phase.
Figure 3. Flowchart of the MARL-CAR system architecture, detailing the interaction between the training regime and the inference deployment.
Within the MARL-CAR architecture, the flooding stage acts as the linchpin for network discovery. This mechanism relies on the cyclical dissemination of HELLO beacons, enabling UAVs to share critical link-state metrics. Such data aggregation serves as a prerequisite, provisioning the necessary environmental context for both the MADDPG training loop and active routing decisions. The neighbor discovery handshake proceeds via a specific logic: When node A intercepts a HELLO transmission from node B, it locally buffers the packet and tentatively flags B as an asymmetric neighbor. Subsequently, if node B identifies its own unique ID within a reciprocal message from A, it upgrades A’s status to a symmetric neighbor. This confirmation sequence successfully instantiates a valid bidirectional communication link between the pair.
A primary advantage of the proposed MARL-CAR framework lies in its utilization of the CTDE paradigm. This architecture effectively mitigates signaling overhead, a critical concern in highly dynamic FANETs. During the centralized training phase, a global Critic network is trained offline using comprehensive state information. This process can be conducted within a simulated environment or on a ground-based server, thereby avoiding the consumption of the aerial network’s limited operational bandwidth. Upon policy convergence, only the lightweight decentralized Actor networks are deployed onto the individual UAV nodes.
The operational workflow during the training regime is strictly governed by the procedural logic delineated in Algorithm 1. This process unfolds as follows: Driven by local observations s i , t , each agent i determines and executes a specific action a i , t , balancing exploration and exploitation via mechanisms such as ϵ -greedy strategies. The execution of this joint routing decision a t inevitably modifies the network environment, prompting a dynamic update in the link state. Subsequently, the system calculates a composite reward r i , t that synthesizes coding potential, throughput metrics, latency, and energy constraints. Leveraging this feedback alongside the global state S t , the centralized Critic network Q i undergoes optimization via gradient descent to minimize the loss function, whereas the Actor network μ i is refined using the chain rule. Concurrently, the parameters of the target networks are subjected to soft updates. This iterative loop persists until the termination conditions are satisfied, yielding a fully converged multi-agent routing system.
The execution phase commences once the training regimen has successfully converged. In this phase, each UAV independently makes routing decisions based solely on its local observations, eliminating the requirement for real-time global state synchronization. The real-time signaling overhead is restricted to standard, periodic HELLO beacon exchanges. Since neighbor discovery is inherent to geographic routing, this approach imposes no additional requirement for global consistency. Within this deployment stage, MARL-CAR leverages the fully trained decentralized actors to autonomously determine routing trajectories. Regardless of environmental volatility or flight dynamics, the framework consistently establishes links that optimize both coding potential and data transmission rates, guided by the inference of the learned policy μ i .

5. Results

5.1. Simulation Environment

The performance evaluation of the proposed MARL-CAR protocol was conducted utilizing the NS3-Gym framework [34]. This middleware facilitates a seamless interface between the OpenAI Gym reinforcement learning toolkit and the NS-3 network simulator, effectively bridging the gap between environmental state observations and agent actions. The simulation scenario is defined within a 2 km × 2 km geographical area populated with 20 to 50 UAV nodes. To mimic realistic flight patterns, we employed the Gaussian-Markov mobility model. The network traffic is generated using Constant Bit Rate (CBR) data streams, allowing us to rigorously assess the routing protocol’s efficacy under varying load conditions.
In alignment with the formulation detailed in Section 4, the hyperparameters governing the energy-related reward are assigned as α 1 = 0.05 and α 2 = 0.5 . Furthermore, the fundamental energy cost unit is established at g = 1 , while the discount factor applied to the reinforcement learning updates is set to γ = 0.9 . The weighting coefficients ξ 1 , ξ 2 , ξ 3 , ξ 4 reflect the mission-specific priorities. In this study, we set ξ 1 = 0.4 to explicitly guide the agents toward discovering latent coding opportunities—a primary objective of MARL-CAR. The remaining weights are distributed equally ( ξ = 0.2 ) to provide a neutral baseline for general network performance, ensuring that no single metric becomes a bottleneck for the others. A detailed enumeration of the experimental configuration is presented in Table 1.
Table 1. Simulation Parameters.
To validate the performance of the proposed MARL-CAR, four representative algorithms are selected as benchmarks. It is worth noting that existing schemes predominantly rely on centralized decision-making or target network topologies that differ significantly from the dynamic environments considered in this study. To ensure a rigorous and fair performance evaluation, we re-implemented these baselines within the same NS3-Gym framework, subjecting them to identical mobility models, energy constraints, and traffic loads. This approach allows for a direct comparison between MARL-CAR’s explicit multi-metric reward mechanism and the performance of established distributed protocols.
  • COPE [16]: This protocol bridges theory with practice by mixing unicast packets to boost throughput, yet its efficiency is heavily contingent on specific traffic patterns. Its decoupled mechanism—detecting coding opportunities only after path establishment—restricts its adaptability in highly dynamic FANET topologies.
  • DCAR [24]: By introducing a CRM, this protocol enables coding detection along the entire path to overcome COPE’s two-hop limitation. However, the excessive signaling overhead required for path discovery in expansive regions hinders its performance in rapidly evolving aerial networks.
  • TSCAR [27]: This scheme utilizes traffic shaping to align asymmetric flows and artificially create coding opportunities. Nevertheless, the inherent queuing delay caused by its active waiting mechanism often violates the stringent latency constraints of real-time UAV control tasks.
  • RLCAR [35]: A single-agent RL framework developed to improve routing flexibility in dynamic environments. While it enhances adaptability, it lacks the collaborative optimization and cross-layer coding gains essential for managing complex, multi-node UAV swarms.

5.2. Reward Convergence and Learning Efficiency

To quantitatively evaluate the training effectiveness of the proposed framework, this section analyzes the cumulative reward convergence curves, which synthesize critical performance indicators such as network throughput, latency, and energy consumption. Figure 4 illustrates the dynamic evolution of reward values for the two algorithms employing reinforcement learning: the proposed MARL-CAR and the single-agent baseline RLCAR. As a sequential decision-making process modeled as a Markov Decision Process, these reward trajectories initiate from zero and exhibit distinct convergence trends across different discount factors γ . This comparison reveals the robustness and exploration capabilities of each learning architecture in optimizing network coding decisions within a dynamic Environment.
Figure 4. Cumulative reward convergence curves for MARL-CAR and RLCAR under various discount factors γ in a 30-UAV scenario.
In the experimental evaluations conducted with a swarm density of 30 UAVs, MARL-CAR demonstrates superior learning efficiency, characterized by the steepest initial gradient and the capability to reach a steady state significantly faster than the RLCAR baseline. Specifically, the multi-agent architecture attains a higher asymptotic reward ceiling, outperforming the single-agent alternative by a substantial margin. This performance gain is primarily attributed to the CTDE paradigm. By leveraging global state information during the training phase, MARL-CAR effectively mitigates the non-stationarity issues inherent in multi-UAV environments, allowing the agents to learn a globally cooperative policy that optimizes multi-hop coding opportunities.
In contrast, while the RLCAR approach eventually achieves convergence, it exhibits inferior performance in terms of both convergence upper bounds and training stability. As evidenced by the more pronounced stochastic fluctuations in its reward curves, the single-agent model struggles to maintain a robust policy amidst the rapid topological reconfigurations and frequent link intermittency of FANETs. Furthermore, the performance of RLCAR is more sensitive to the selection of the discount factor γ , whereas MARL-CAR maintains a more resilient convergence profile. The outcomes demonstrate that the cooperative multi-agent framework of MARL-CAR effectively models the intricate non-linear dependencies linking decentralized routing decisions to system-wide efficiency, thereby achieving higher cumulative rewards relative to standalone learning schemes.

5.3. Comparative Analysis of Network Coding Performance

The coding ratio, defined as the proportion of coded packets to the total number of transmitted packets, serves as a primary metric for evaluating coding efficiency. As illustrated in Figure 5a, a positive correlation between the coding ratio and the number of UAVs is observed across all considered protocols.
Figure 5. Comparative evaluation of coding efficiency between MARL-CAR and baseline protocols under different swarm sizes. The subfigures illustrate: (a) the proportion of coded packets, (b) the successful decoding rate, and (c) the cumulative coding benefit.
Notably, MARL-CAR consistently achieves the superior performance. At a network density of 20 UAVs, MARL-CAR outperforms COPE, DCAR, TSCAR, and RLCAR by 32.23%, 18.93%, 20.35%, and 5.5%, respectively. This performance margin expands significantly as the UAV population scales, which is ascribed to the adaptive capability of MARL-CAR agents to adaptively exploit dynamic coding opportunities through the reinforcement learning mechanism.
Given the inherent volatility of wireless links, the decoding ratio (the percentage of packets successfully recovered at the destination) serves as a critical proxy for transmission stability. As depicted in Figure 5b, while MARL-CAR maintains the highest decoding rate among the cohorts, the overall decoding success rate remains relatively independent of UAV density. This phenomenon suggests that mere node density is not the sole determinant of transmission stability; rather, effectiveness is governed by the synergy between coding opportunities and link quality.
Furthermore, we evaluate routing efficiency through cumulative coding benefits. As shown in Figure 5c, MARL-CAR achieves the highest coding benefit values. A higher coding benefit indicates that more packets are transmitted via encoded piggybacking, which effectively translates to reduced resource consumption and minimized equivalent routing hops for data completion. The increasing trend in coding benefits as the network scales further validates MARL-CAR’s superiority in optimizing path selection within complex topologies.

5.4. Discussion of the Transmission Performance

Beyond the specific metrics of network coding, we extended the evaluation to assess general transmission performance metrics, including average throughput, end-to-end delay, Packet Delivery Ratio (PDR), and energy consumption per packet. In this experimental setup, the network topology consists of a fixed swarm of 30 UAVs with identical velocity and mobility models. The primary variable is the data flow rate, manipulated via the CBR, which allows us to simulate varying service demands and evaluate the network’s load-bearing capacity.

5.4.1. Throughput and Delay Analysis

Figure 6a depicts the mean throughput, quantified as the successful data transfer rate along an arbitrary trajectory. As the volume of data traffic amplifies, a consistent rising trend in throughput is observable for every protocol. In the low-load phase, the throughput values for all four protocols closely track the input CBR rate, indicating that the traffic load is within the manageable capacity of the network. However, as the flow rate escalates, a performance divergence becomes apparent. MARL-CAR consistently reflects the maximum throughput among the baselines. Although the simulation did not extend indefinitely, it is anticipated that the throughput for all protocols would eventually converge to a saturation plateau.
Figure 6. Impact of varying data flow rates on basic transmission metrics. (a) Average throughput and (b) Average delay comparison among MARL-CAR and benchmarks.
As illustrated in Figure 6b, we analyze how escalating data loads influence transmission latency. The results indicate a period of stability where all four protocols sustain negligible delay, provided the data generation rate stays under the threshold of 140 kbps. A sharp escalation in delay beyond this point suggests that a CBR rate of approximately 150 kbps approaches the optimal load threshold of the network. Notably, MARL-CAR sustains the lowest transmission delay throughout the test. This advantage is attributed to the inclusion of coding benefits within the MARL-CAR reward function; by optimizing for path efficiency, the algorithm effectively selects routes with fewer hops, thereby reducing cumulative transmission latency.
The PDR, defined as the ratio of successfully received packets at the destination to those generated by the source, is illustrated in Figure 7a. The experimental results demonstrate a clear inverse correlation between PDR and traffic load across all evaluated protocols. As the flow rate increases from 20 kbps to 200 kbps, the PDR for all schemes exhibits a declining trend due to intensified network congestion and buffer overflows. Notably, the proposed MARL-CAR consistently maintains the highest PDR across the entire flow rate range, with the performance gap widening significantly under high-load conditions. This sustained superiority stems from MARL-CAR’s ability to intelligently identify and exploit multi-hop coding opportunities through its multi-agent reinforcement learning mechanism. By optimizing coding decisions in real-time, MARL-CAR effectively reduces the number of required transmissions, thereby alleviating channel contention and expanding the network’s effective capacity. Furthermore, the collaborative nature of the agents allows for better adaptation to dynamic traffic patterns, mitigating packet drops under heavy load and bolstering overall delivery reliability in high-density UAV environments.
Figure 7. Evaluation of network reliability and efficiency. (a) Packet delivery ratio and (b) Energy consumption per packet under varying data flow rates.

5.4.2. Reliability and Energy Efficiency

Finally, we analyzed the energy cost associated with transmitting a single packet, as shown in Figure 7b. The results indicate a non-linear U-shaped relationship where the energy cost per packet is minimized at intermediate flow rates (around 120 kbps). At low traffic volumes, the cost is higher due to the static power consumption being distributed over fewer packets, while at high-load territories, congestion-induced retransmissions drive the energy expenditure upward. Across all scenarios, MARL-CAR demonstrates superior energy efficiency. Notably, at the peak load of 200 kbps, MARL-CAR maintains an energy cost of approximately 5.8 × 10 3 J/Packet, significantly lower than COPE’s 8.4 × 10 3 J/Packet. This advantage is attributed to MARL-CAR’s intelligent coding-aware mechanism, which maximizes the information per transmission. By effectively reducing redundant packets, it alleviates the energy strain on battery-constrained UAV nodes while maintaining robust PDR performance.

6. Conclusions

In conclusion, this paper presented MARL-CAR, a multi-agent deep reinforcement learning-based routing protocol that effectively addresses the challenges of high mobility and dynamic topologies in FANETs. By modeling the routing process as a cooperative decision-making task, we developed a composite reward mechanism that balances coding opportunities, throughput, energy equilibrium, and end-to-end latency. Comprehensive simulations within the NS3-Gym environment demonstrate that MARL-CAR significantly outperforms state-of-the-art benchmarks in terms of coding efficacy, transmission reliability, and energy efficiency. However, we acknowledge that these simulation-based results provide approximations of complex aerial environments and may inherit inherent modeling errors. To enhance the rigor of our findings, subsequent research will focus on integrating exact solutions from analytical models to further validate and calibrate the learned neural networks. Furthermore, we plan to transition from synthetic environments to real-world UAV testbeds to verify the protocol’s robustness and adaptability across heterogeneous topologies in practical mission-critical scenarios.

Author Contributions

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

Funding

This work was supported by the Jiangsu Province Industry-University-Research Cooperation Project (No. BY20240019); and the National Defense Technology Foundation Research Project (No. JCKY2023XXXX007).

Data Availability Statement

The datasets presented in this article are not readily available because they involve confidential data related to ongoing research. Requests to access the datasets should be directed to the corresponding author.

Acknowledgments

This article is a revised and expanded version of a paper entitled “Coding-Aware Routing for Maximum Throughput and Coding Opportunities by Deep Reinforcement Learning in FANET”, which was presented at 2022 IEEE 24th Int. Conf. on High Performance Computing & Communications (HPCC), Chengdu, China, 18–20 December 2022.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AODVAd hoc On-Demand Distance Vector Routing
CARCoding-Aware Routing
CBRConstant Bit Rate
CRMCoding-Aware Routing Metric
CTDECentralized Training with Decentralized Execution
FANETsFlying Ad-hoc Networks
LoSLine-of-Sight
MADDPGMulti-Agent Deep Deterministic Policy Gradient
MANETsMobile Ad-hoc Networks
MARLMulti-Agent Reinforcement Learning
NCNetwork Coding
QoSQuality of Service
RLReinforcement Learning
UAVsUnmanned Aerial Vehicles

References

  1. Zaidi, S.; Atiquzzaman, M.; Calafate, C.T. Internet of flying things (IoFT): A survey. Comput. Commun. 2021, 165, 53–74. [Google Scholar] [CrossRef] [Scilit]
  2. Lansky, J.; Ali, S.; Rahmani, A.M.; Yousefpoor, M.S.; Yousefpoor, E.; Khan, F.; Hosseinzadeh, M. Reinforcement learning-based routing protocols in flying ad hoc networks (FANET): A review. Mathematics 2022, 10, 3017. [Google Scholar] [CrossRef] [Scilit]
  3. Lakew, D.S.; Sa’ad, U.; Dao, N.-N.; Na, W.; Cho, S. Routing in flying ad hoc networks: A comprehensive survey. IEEE Commun. Tutor. 2020, 22, 1071–1120. [Google Scholar] [CrossRef] [Scilit]
  4. You, X.; Wang, C.-X.; Huang, J.; Gao, X.; Zhang, Z.; Wang, M.; Huang, Y.; Zhang, C.; Jiang, Y.; Wang, J.; et al. Towards 6G wireless communication networks: Vision, enabling technologies, and new paradigm shifts. Sci. China Inf. Sci. 2021, 64, 110301. [Google Scholar] [CrossRef] [Scilit]
  5. Zhang, Z.; Xiao, Y.; Ma, Z.; Xiao, M.; Ding, Z.; Lei, X.; Karagiannidis, G.K.; Fan, P. 6G wireless networks: Vision, requirements, architecture, and key technologies. IEEE Veh. Technol. Mag. 2019, 14, 28–41. [Google Scholar] [CrossRef] [Scilit]
  6. Bekmezci, I.; Sahingoz, O.K.; Temel, Ş. Flying ad-hoc networks (FANETs): A survey. Ad Hoc Netw. 2013, 11, 1254–1270. [Google Scholar] [CrossRef] [Scilit]
  7. Cardoso, C.M.M.; Barros, F.J.B.; Carvalho, J.A.R.; Machado, A.A.; Cruz, H.A.O.; de Alcântara Neto, M.C.; Araújo, J.P.L. SNR prediction with ANN for UAV applications in IoT networks based on measurements. Sensors 2022, 22, 5233. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Hong, L.; Guo, H.; Liu, J.; Zhang, Y. Toward swarm coordination: Topology-aware inter-UAV routing optimization. IEEE Trans. Veh. Technol. 2020, 69, 10177–10187. [Google Scholar] [CrossRef] [Scilit]
  9. Almansor, M.J.; Din, N.M.; Baharuddin, M.Z.; Ma, M.; Alsayednoor, H.M.; Al-Shareeda, M.A.; Al-Asadi, A.J. Routing protocols strategies for flying Ad-Hoc network (FANET): Review, taxonomy, and open research issues. Alex. Eng. J. 2024, 109, 553–577. [Google Scholar] [CrossRef] [Scilit]
  10. Malhotra, A.; Kaur, S. A comprehensive review on recent advancements in routing protocols for flying ad hoc networks. Trans. Emerg. Telecommun. Technol. 2022, 33, e3688. [Google Scholar] [CrossRef] [Scilit]
  11. Sang, Q.; Wu, H.; Xing, L.; Xie, P. Review and comparison of emerging routing protocols in flying ad hoc networks. Symmetry 2020, 12, 971. [Google Scholar] [CrossRef] [Scilit]
  12. Zhang, Y.; Qiu, H. DDQN with prioritized experience replay-based optimized geographical routing protocol of considering link stability and energy prediction for UANET. Sensors 2022, 22, 5020. [Google Scholar] [CrossRef] [Scilit]
  13. Wheeb, A.H.; Nordin, R.; Samah, A.A.; Alsharif, M.H.; Khan, M.A. Topology-based routing protocols and mobility models for flying ad hoc networks: A contemporary review and future research directions. Drones 2021, 6, 9. [Google Scholar] [CrossRef] [Scilit]
  14. Oubbati, O.S.; Lakas, A.; Zhou, F.; Güneş, M.; Yagoubi, M.B. A survey on position-based routing protocols for Flying Ad hoc Networks (FANETs). Veh. Commun. 2017, 10, 29–56. [Google Scholar] [CrossRef] [Scilit]
  15. Ahlswede, R.; Cai, N.; Li, S.-Y.; Yeung, R. Network information flow. IEEE Trans. Inf. Theory 2000, 46, 1204–1216. [Google Scholar] [CrossRef] [Scilit]
  16. Katti, S.; Rahul, H.; Hu, W.; Katabi, D.; Medard, M.; Crowcroft, J. XORs in the air: Practical wireless network coding. IEEE/ACM Trans. Netw. 2008, 16, 497–510. [Google Scholar] [CrossRef] [Scilit]
  17. Sengupta, S.; Rayanchu, S.; Banerjee, S. Network coding-aware routing in wireless networks. IEEE/ACM Trans. Netw. 2010, 18, 1158–1170. [Google Scholar] [CrossRef] [Scilit]
  18. Ni, B.; Santhapuri, N.; Zhong, Z.; Nelakuditi, S. Routing with opportunistically coded exchanges in wireless mesh networks. In Proceedings of the 2006 2nd IEEE Workshop on Wireless Mesh Networks, Reston, VA, USA, 25–28 September 2006; pp. 157–159. [Google Scholar]
  19. Islam, J.; Singh, P.K. CORMEN: Coding-aware opportunistic routing in wireless mess network. arXiv 2010, arXiv:1006.4545. [Google Scholar] [CrossRef] [Scilit]
  20. Vasiliev, D.; Chunaev, A.; Abilov, A.; Kaysina, I.; Meitis, D. Application layer ARQ and network coding for QoS improving in UAV-assisted networks. In Proceedings of the 2019 25th Conference of Open Innovations Association (FRUCT), Helsinki, Finland, 5–8 November 2019; pp. 353–360. [Google Scholar]
  21. Anandaraj, M.; Selvaraj, K.; Ganeshkumar, P.; Rajkumar, K.; Sriram, S. Genetic algorithm based resource minimization in network code based peer-to-peer network. J. Circuits Syst. Comput. 2021, 30, 2150092. [Google Scholar] [CrossRef] [Scilit]
  22. Cohen, A.; Haeupler, B.; Avin, C.; Medard, M. Network coding based information spreading in dynamic networks with correlated data. IEEE J. Sel. Areas Commun. 2014, 33, 213–224. [Google Scholar] [CrossRef] [Scilit]
  23. Hojny, C.; Kilic, A.B.; Ravagnani, A. Network coding: An optimization approach. arXiv 2022, arXiv:2212.07230. [Google Scholar] [CrossRef] [Scilit]
  24. Le, J.; Lui, J.C.; Chiu, D.-M. DCAR: Distributed coding-aware routing in wireless networks. IEEE Trans. Mob. Comput. 2009, 9, 596–608. [Google Scholar] [CrossRef] [Scilit]
  25. Rafiee, P.; Mirjalily, G. Distributed network coding-aware routing protocol incorporating fuzzy-logic-based forwarders in wireless ad hoc networks. J. Netw. Syst. Manag. 2020, 28, 1279–1315. [Google Scholar] [CrossRef] [Scilit]
  26. He, X.; Yang, G. CARTA: Coding-Aware Routing via Tree-Based Address. Wireless Communications and Mobile Computing 2020, 2020, 4730594. [Google Scholar] [CrossRef] [Scilit]
  27. Shao, X.; Wang, C.; Zhao, C.; Gao, J. Traffic shaped network coding aware routing for wireless sensor networks. IEEE Access 2018, 6, 71767–71782. [Google Scholar] [CrossRef] [Scilit]
  28. Zhou, J.; Liu, J.; Shi, W.; Xia, B. A bidirectional Q-learning routing protocol for UAV networks. In Proceedings of the 13th International Conference on Wireless Communications and Signal Processing (WCSP), Changsha, China, 20–22 October 2021; pp. 1–5. [Google Scholar]
  29. Wang, F.; Chen, Z.; Zhang, J.; Zhou, C.; Yue, W. Greedy forwarding and limited flooding based routing protocol for UAV flying Ad-Hoc networks. In Proceedings of the IEEE 9th International Conference on Electronics Information and Emergency Communication (ICEIEC), Beijing, China, 12–14 July 2019; pp. 10–14. [Google Scholar]
  30. Jiang, S.; Huang, Z.; Ji, Y. Adaptive UAV-Assisted Geographic Routing with Q-Learning in VANET. IEEE Commun. Lett. 2021, 25, 1358–1362. [Google Scholar] [CrossRef] [Scilit]
  31. Zhu, K.; Xu, X.; Huang, Z. Energy-efficient routing algorithms for UAV-assisted mMTC networks. In Proceedings of the IEEE 30th Annual International Symposium on Personal, Indoor and Mobile Radio Communications (PIMRC), Istanbul, Turkey, 8–11 September 2019; pp. 1–6. [Google Scholar]
  32. Deb, P.K.; Mukherjee, A.; Misra, S. XiA: Send-It-Anyway Q-Routing for 6G-Enabled UAV-LEO Communications. IEEE Trans. Netw. Sci. Eng. 2021, 8, 2722–2731. [Google Scholar] [CrossRef] [Scilit]
  33. Mansour, H.S.; Mutar, M.H.; Aziz, I.A.; Mostafa, S.A.; Mahdin, H.; Abbas, A.H.; Hassan, M.H.; Abdulsattar, N.F.; Jubair, M.A. Cross-layer and energy-aware AODV routing protocol for flying ad-hoc networks. Sustainability 2022, 14, 8980. [Google Scholar] [CrossRef] [Scilit]
  34. Zubow, A. ns3-gym: Extending openai gym for networking research. arXiv 2018, arXiv:1810.03943. [Google Scholar]
  35. Qiu, X.; Song, B.; Ke, Y.; Xu, L.; Yang, Y. Coding-Aware Routing for Maximum Throughput and Coding Opportunities by Deep Reinforcement Learning in FANET. In Proceedings of the 2022 IEEE 24th International Conference on High Performance Computing & Communications; 8th International Conference on Data Science & Systems; 20th International Conference on Smart City; 8th Int Conf on Dependability in Sensor, Cloud & Big Data Systems & Application (HPCC/DSS/SmartCity/DependSys), Hainan, China, 18–20 December 2022; pp. 530–537. [Google Scholar]
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.

Article Metrics

Citations

Article Access Statistics

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