Next Article in Journal
Humanoid Robot Walking and Grasping Method Using Similarity Reward-Augmented Generative Adversarial Imitation Learning
Previous Article in Journal
Precise Time Synchronization in Packet Networks Using Deep Learning for Future Intelligent Transportation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Joint Clustering and Power Optimization for the SPMA Protocol in UAV Swarm Communication in Frequency-Constrained Scenarios

1
School of Engineering Science, Shandong Xiehe University, Jinan 250107, China
2
Department of Software & Communications Engineering, Hongik University, Sejong City 30016, Republic of Korea
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(9), 2760; https://doi.org/10.3390/s26092760
Submission received: 21 March 2026 / Revised: 23 April 2026 / Accepted: 27 April 2026 / Published: 29 April 2026
(This article belongs to the Section Communications)

Abstract

Unmanned aerial vehicle (UAV) swarms face significant performance degradation when operating on a single-frequency channel, as the Statistical Priority-based Multiple Access (SPMA) protocol suffers from intensified contention conflicts due to scarce frequency resources. To address this issue, this paper proposes a joint clustering and power optimization method for the SPMA protocol in frequency-constrained scenarios. First, a utility function centered on the end-to-end transmission success rate is constructed, and the optimal clustering scheme selection is formulated as a constrained combinatorial optimization problem. Second, a three-stage heuristic algorithm is designed; all iterations are executed virtually at network initialization. K-means is used to perform initial clustering and determine the minimum power required for intra-cluster services, GPSR is used to establish multi-hop routes for inter-cluster services, and the ant colony algorithm refines the transmission power of forwarding nodes, achieving joint optimization of cluster structure and power configuration. Simulation results show that, compared with the standalone SPMA protocol and the typical clustering algorithm ICW, the proposed algorithm reduces transmission power by 90.4% relative to SPMA (with slightly higher power than ICW) and achieves a comprehensive improvement over both benchmarks. Specifically, the success rate is improved by 63.5% compared with SPMA and 162.3% compared with ICW under high traffic loads, thus achieving a well-balanced compromise between power consumption and transmission reliability. This verifies the feasibility and effectiveness of the proposed optimization method in frequency-constrained scenarios.

1. Introduction

UAV swarms have provided new application scenarios and technical solutions due to their advantages of low cost, large-scale deployment capability, high autonomy, and multi-platform collaboration [1,2]. With the continuous increase in the number of UAVs in swarm networks, network density is growing, and the types, scale, and quality requirements of services supported by the network are constantly rising, thereby imposing new and higher demands on the networking communication capabilities of UAV swarms.
The SPMA protocol is an emerging and promising wireless MAC protocol that is widely used in UAV networks [3]. By comprehensively adopting mechanisms such as channel load statistics, multi-priority processing, and random contention access, the SPMA protocol can ensure that the TTNT network accommodates more than 100 nodes while maintaining a transmission delay of no more than 2 ms and a transmission success rate of no less than 99% for high-priority services [4]. Therefore, compared with two classic MAC protocols (CSMA [5] and TDMA [6]), the SPMA protocol is more suitable for the communication needs of UAV swarm networks.
Current research on the SPMA protocol mainly focuses on the optimization of mechanisms such as channel load statistics, transmission threshold setting, and random backoff, while increasingly adopting machine learning and deep learning methods to intelligently adjust multiple protocol parameters. Equations for the slot transmission probability are derived, and a resource reservation minimization strategy among priorities is adopted to set low-priority thresholds [7]. A dynamic threshold adjustment mechanism and an adaptive backoff window mechanism are designed to improve system throughput and packet transmission success rates [8]. A non-preemptive M/M/1/K queuing model is established, and a percentile scoring system combined with a Q-learning algorithm is designed to optimize protocol parameters based on this model [9]. A channel load prediction model based on a bi-directional long short-term memory (BiLSTM) neural network is developed, which significantly improves prediction accuracy compared with conventional weighted average-based prediction methods [10]. An Adaptive Credit-Based Shaper with Reinforcement Learning (ACBS-RL) scheduling mechanism is proposed to allocate more transmission opportunities to low-priority services while preferentially satisfying the quality-of-service requirements of high-priority services, thereby improving overall system throughput [11]. A novel model containing two deep Q-learning networks (DQN) is designed, in which a transmission network is used to increase transmission opportunities for low-priority services and a backoff network is used to optimize the backoff mechanism, achieving better throughput and delay performance [12]. Although the above studies improve the performance of the SPMA protocol to a certain extent, none of them break through the inherent limitation that the SPMA protocol relies on multiple frequency channels for large-scale networking [7,13]. Under the condition of limited frequency resources, existing research is insufficient to meet the demands of large-scale UAV swarm networking in terms of node quantity and traffic volume.
Clustering is an effective approach to optimize network topology, reduce routing overhead, and improve energy efficiency and scalability in wireless ad hoc networks [14,15]. As a typical clustering algorithm, LEACH achieves energy balance through random rotation of cluster heads, but tends to aggravate intra-cluster interference and introduce excessive inter-cluster routing hops in large-scale scenarios [16,17]. HEED improves energy efficiency by introducing residual energy and link quality metrics, but still fails to fully guarantee multi-service QoS in dynamic environments [18]. In recent years, intelligent optimization algorithms have driven clustering techniques toward higher efficiency and adaptability, and mainstream solutions can be divided into two categories. The first category is swarm intelligence-based metaheuristic clustering algorithms, which achieve more stable cluster structures and lower energy consumption via multi-objective optimization: GWO models cluster head election as a wolf pack search problem [19]; MWCRSF implements weighted dynamic cluster head election using a sparrow search algorithm [20]; ICW constructs a centralized clustering framework based on a whale optimization algorithm and exhibits outstanding performance in cluster lifetime and energy consumption optimization [21]. The second category is machine learning clustering algorithms represented by K-means, which are widely used due to their low complexity and fast convergence: a dynamic transmission power adjustment scheme for cluster heads is adopted to enhance link stability [22]; the optimal number of clusters is adaptively determined according to topology changes to realize lightweight and efficient clustering [23].
With the popularization of deep learning (DL) in communication networks, DL-based clustering algorithms have gradually emerged. For example, a DQN-based clustering strategy is proposed for dynamic topology in UAV networks, where deep neural networks are used to replace traditional table lookup methods and effectively solve the curse of dimensionality in large-scale state spaces [24]. A graph neural network (GNN) is combined with the HEED protocol to implement energy-efficient clustering in heterogeneous networks by learning topological relationships [25]. Deep reinforcement learning methods, including Q-learning, DQN, and DDPG, are adopted to achieve cross-layer clustering and cooperative optimization of vertical and horizontal routing in Flying Ad Hoc Networks [26]. Although DL-based clustering has significant advantages in dynamic adaptability, it generally suffers from high computational complexity, weak interpretability, and high deployment cost, making it difficult to be directly applied to UAV swarm networking scenarios with strict resource constraints and high real-time requirements.
Clustering integrated with the SPMA protocol offers three key benefits for large-scale UAV swarm networking. First, clustering reduces inter-cluster data interactions. Periodic broadcast services, such as swarm networking, only communicate within clusters and among a small number of cluster heads, while inter-cluster services exchange data among limited nodes without full-network participation. Second, clustering suppresses mutual interference across clusters. Most member nodes transmit at low power to cover only their cluster heads, resulting in weak or negligible inter-cluster interference and a higher data transmission success rate. Third, clustering boosts network capacity. Reduced inter-cluster interference raises the success rate of simultaneous transmissions under the contention-based SPMA protocol, allowing the network to support more nodes and services. Making full use of these benefits can effectively offset performance degradation caused by frequency constraints and better satisfy communication demands in large-scale UAV networks.
The main contributions and novelty of this paper are as follows:
  • This paper identifies the inherent performance bottleneck of the SPMA protocol in frequency-constrained UAV swarm networks and proposes a unified framework that jointly optimizes clustering structure, routing, and transmission power. To the best of our knowledge, this is the first attempt to systematically address severe channel contention in SPMA-based UAV swarms.
  • This paper constructs a multi-service utility function centered on the end-to-end transmission success rate and formally models the optimal clustering problem as a constrained combinatorial optimization problem. The model quantitatively captures the opposite effects of cluster count on intra-cluster and inter-cluster performance, which provides a solid theoretical basis for subsequent joint optimization.
  • This paper designs a three-stage hybrid heuristic algorithm that integrates clustering, routing refinement, and power adjustment. The proposed pipeline efficiently transforms the original NP-hard problem into a polynomial time solvable form, significantly improving both efficiency and real-time performance.
  • Comprehensive experimental results demonstrate that the proposed scheme achieves significant gains in transmission reliability and power efficiency. The proposed design offers a practical and effective solution for large-scale UAV swarm communication under stringent frequency constraints.
The rest of this paper is organized as follows: Section 2 analyzes the SPMA bottlenecks. Section 3 describes the system model. Section 4 derives the theoretical performance. Section 5 presents the hybrid algorithm. Section 6 shows the simulation results, and Section 7 discusses the comparative advantages. Section 8 concludes the work.

2. Overview of SPMA Protocol

The operational principle of the SPMA protocol is shown in Figure 1. The network layer places source packets generated by the local node and forwarded packets received from other nodes that require retransmission into the corresponding priority queues of the SPMA protocol based on the priorities of their respective services. The SPMA protocol sequentially checks each priority queue for pending data packets in descending order of priority. If there is a pending packet, it compares the current channel occupancy statistic (COS) with the priority threshold of the queue. If the COS is less than the priority threshold, the packet at the head of the queue is sent to the physical layer for transmission over the channel; otherwise, the queue executes a backoff procedure. When a low-priority queue is in the backoff state, if a higher-priority data packet enters the SPMA protocol, the backoff counting of the low-priority queue needs to be paused, and the transmission judgment for the higher-priority data packet is performed.
The priority preemption and channel load statistics mechanisms of the SPMA protocol enable it to meet the low-latency and high-reliability transmission requirements of high-priority services for UAV swarms in multi-frequency scenarios. However, in frequency-constrained single-frequency networking scenarios, channel contention conflicts between nodes are sharply intensified, becoming the core cause of protocol performance degradation. According to the derivation in [7], Figure 2 shows the curve of the SPMA protocol’s packet transmission success rate changing with the number of nodes and frequency channels. It can be seen that when the number of frequency channels is 16, the packet transmission success rate of a UAV swarm network with 100 nodes can still exceed the threshold requirement of 90%; when the number of frequency channels is reduced to 8, the network node scale meeting this threshold is only 51; while in the frequency-constrained scenario of a single-frequency channel (frequency number = 1), the network can only support effective networking of 7 nodes, which is far from meeting the actual application needs of large-scale UAV swarms.

3. System Model and Problem Description

3.1. System Model

Consider a UAV swarm composed of N UAV nodes, supporting M types of priority services, with the entire network only supporting one communication frequency channel. The transmission power of UAV nodes can be adjusted in P levels within the range [ p m i n , p m a x ] . When each node takes off, it first uses the maximum transmission power to form a fully connected network and broadcasts its geographic location information through the highest-priority swarm networking service. The predefined global control node executes the power-controlled clustering algorithm in a centralized manner based on the location information of each node and the priority services to be run by each node, and broadcasts the calculated optimal clustering scheme and power configuration scheme to the entire network through swarm networking service packets, thereby reconstructing the fully connected network into K [ K m i n , K m a x ] clusters with minimal mutual interference. Denote the clustering set as { C S 0 , C S 1 , , C S K 1 } , where all nodes belong to exactly one cluster, and each cluster C S k has exactly one cluster head node and the rest are member nodes. The basic requirements for clustering and power configuration are: member nodes in each cluster can communicate directly with the cluster head; any cluster heads can communicate directly or in multi-hop form; to support specific inter-cluster services, the source and destination nodes of the service can communicate directly or in multi-hop form, and the nodes completing the forwarding can be either cluster head nodes or member nodes.
The core advantage of forming a clustered network through power control is that a smaller transmission power can be adopted according to the communication needs of specific services, confining interference to a small range, significantly improving the intra-cluster transmission success rate, and also increasing the success rate of simultaneous transmission between different clusters, thereby increasing the network capacity. As shown in Figure 3, when node 0 broadcasts its swarm networking service data to node 2, it will only be interfered with by nodes 1, 3 and 4; moreover, nodes 0 and 10 can broadcast their respective swarm networking service data simultaneously without causing interference to each other’s receiving nodes.
However, on the other hand, more clusters are not always better. Since cluster head nodes also need to broadcast swarm networking services, as the number of clusters increases, the number of cluster head nodes also increases, which will inevitably lead to a decrease in the transmission success rate of swarm networking services between cluster heads. At the same time, there are many other types of services in UAV swarms that need to communicate between any two nodes in the entire network. Under power control, multi-hop transmission is usually required. Obviously, the more clusters there are, the smaller the transmission power of member nodes, and the lower the end-to-end transmission success rate. As shown in Figure 3, when node 3 transmits situational awareness services to node 8, three hops are required; while if divided into two clusters as shown in Figure 4, only two hops are needed.
It can be seen that the number of clusters, clustering method, and power configuration have a direct impact on the quality of service of various services. Among them, the number of clusters has a crucial and opposite impact on the quality of service of intra-cluster and inter-cluster services. Therefore, when both types of services exist, the appropriate number of clusters must be a compromise value. To determine the optimal clustering scheme, the following optimization objective is to maximize the quality of service across all services.
It should be clarified that the proposed system uses a centralized decision-making framework relying on global location information and predefined service requirements. It is suitable for UAV swarms with a leader or command node in formation flight and cooperative missions. The global control node only executes clustering and power optimization once at network initialization, so it introduces no communication bottlenecks or extra signaling overhead. This work focuses on verifying the theoretical feasibility and performance gain of joint optimization for the SPMA protocol in frequency-constrained scenarios.

3.2. Problem Description

Define Q o S i , s , K as the quality of service obtained by priority service s supported by node i under clustering scheme C K :
Q o S i , s , K = P i , s , K e P s r e q ,
where P i , s , K e denotes the end-to-end transmission success rate of priority service s data packets sent by node i under clustering scheme C K , and P s r e q denotes the required packet transmission success rate of priority service s.
On this basis, let the utility function U K represent the weighted sum of the quality of service of all priority services under clustering scheme C K :
U K = s = 0 M 1 α s · Q o S i , s , K ¯ , i 0,1 , , N 1 ,
where Q o S i , s , K ¯ denotes the average value of Q o S i , s , K of all nodes supporting priority service s, α s denotes the weight of priority s, and s = 0 M 1 α s = 1 . Then, the problem of selecting the optimal clustering scheme is modeled as choosing the clustering scheme with the maximum utility function under several constraints:
C K * = a r g   max C K U K ,
s . t . k = 1 K z i , k = 1 , i 0,1 , , N 1 ,
i = 0 N 1 z i , k · c i , k = 1 , C S k { C S 0 , C S 1 , , C S K 1 } ,
p m i n p i p m a x , i 0,1 , , N 1 ,
where z i , k 0 , 1 indicates whether node i belongs to the k-th cluster C S k , and c i k 0 , 1 indicates whether node i is the cluster head node of C S k . Therefore, Equation (4) ensures that each node belongs to exactly one cluster, Equation (5) ensures that each cluster has exactly one cluster head, and Equation (6) ensures that the transmission power p i of any node i is within the range [ p m i n , p m a x ] .
In the following section, theoretical modeling and quantitative analysis are performed on the end-to-end packet transmission success rate of the SPMA protocol and the optimal clustering scheme in clustered multi-hop networks.

4. Theoretical Analysis of the Optimal Clustering Scheme

4.1. Queuing Model of the SPMA Protocol

The operational logic of the SPMA protocol in clustered UAV swarm networks can be modeled by a preemptive M/G/1 queuing model, as illustrated in Figure 5. In this tailored model, the notation “M” denotes that the arrival process of data packets (both source packets and forwarded packets) adheres to an independent Poisson distribution, consistent with the randomness of UAV mission traffic. “G” represents that the service time of data packets follows a general distribution, considering the dynamic variations in transmission latency caused by cluster topology changes and power control adjustments. The symbol “1” indicates that each node operates with a single-frequency channel, corresponding to a single-server configuration in the queuing model—meaning the departure process of data packets follows a single-channel transmission constraint, where only one data packet can be transmitted at any given time. Consistent with the preemptive priority design of the SPMA protocol, the queuing model enforces a strict scheduling rule: data packets with higher service priorities are granted absolute transmission precedence and are placed at the head of the queue. For packets of the same priority, the first-come-first-served (FCFS) principle is adopted to ensure fair access to the channel, where packets arriving earlier are scheduled for transmission prior to subsequent ones.
In the following section, the M/G/1 queuing model is used to derive the end-to-end transmission success rate of data packets in the SPMA protocol in multi-hop and clustered networks.

4.2. Slot Transmission Probability

Assume that the arrival process of data packets of each priority service generated by each node in the network as a source node follows an independent Poisson distribution. Then, the probability that node i generates k data packets of priority s within time t is:
q i , s k , t = e λ s · t · λ s · t k k ! ,
where λ s is the arrival rate of data packets of the s-th type of service.
In the clustered network topology, the data packets entering the priority transmission queue of node i include not only those generated by node i itself but also those generated by other nodes that need to be forwarded by node i. Therefore, define Ψ i , s as the set of all source nodes that generate priority s services and require forwarding by node i. Then, the arrival rate of data packets of the s-th type of service that need to be forwarded by node i is | Ψ i , s | · λ s . As a result, the total probability that k data packets of priority s enter node i within time t is:
q i , s k , t = e Ψ i , s + 1 · λ s · t · Ψ i , s + 1 · λ s · t k k ! .
Given the preemptive scheduling nature of the SPMA protocol, low-priority data packets in a backoff state face a key constraint: once a higher-priority data packet is admitted into the transmission queue, the low-priority packet must immediately pause its backoff counting process. This pause mechanism ensures that higher-priority service gains unimpeded transmission priority—an essential design to meet the low-latency demands of critical services such as swarm networking in clustered UAV communication scenarios. For data packets of service type s, the likelihood that no higher-priority service arrives within a time window t is expressed as:
f i , s t = m = 0 s 1 q i , m 0 , t = m = 0 s 1 e ( | Ψ i , m | + 1 ) · λ m · t ,         s 1 1 ,           s = 0 .
Based on the above equation, we can obtain the total number of slots in the backoff phase before the data packet of priority s at node i is transmitted without being preempted:
X i , s ¯ = j = 1 B l j ( γ i , s ) j a = 1 j f i , s l a = j = 1 B l j ( γ i , s ) j a = 1 j m = 0 s 1 e ( | Ψ i , m | + 1 ) · λ m · l a ,         s 1 j = 1 B l j ( γ i , s ) j ,           s = 0 ,
where γ i , s denotes the backoff probability of data packets of priority s at node i; B is the maximum number of backoffs; l a is the length of the a-th backoff window, in slots. a = 1 j f i , s l a denotes the probability that no higher-priority data packets arrive from the 1st to j-th backoff process. For data packets of priority 0, since there is no higher priority, this product term is always 1.
In the above equation, the first line on the right-hand side represents the total number of slots in the backoff phase before non-highest-priority data packets are transmitted without being preempted. The second line represents the total number of slots in the backoff phase before the highest-priority data packets are transmitted. For the highest-priority data packets, since there are no higher-priority data packets in the system, their backoff process will not be affected by the arrival of data packets. However, if the channel load is higher than the priority threshold, it will enter backoff.
The average probability that a packet of priority s is transmitted after j backoffs is:
E i , s , j = 1 γ i , s ,         j = 0 ( γ i , s ) j a = 1 j f i , s l a ( 1 γ i , s ) ,           1 j B .
In the above equation, the first line represents the probability that a data packet of priority s is transmitted directly without backoff because the channel load is lower than its priority threshold; the second line represents the probability that a data packet of priority s is transmitted after 1 to B backoffs. Based on the above equation, the probability that the data packet is transmitted before the arrival of a higher-priority packet is:
E i , s = j = 0 B E i , s , j .
Since the arrival process of data packets of priority s entering node i follows a Poisson distribution with an arrival rate of ( Ψ i , s + 1 ) · λ s , according to the characteristics of the M/G/1 queue, the traffic intensity of data packets of priority s is η i , s , where η i , s     ( Ψ i , s + 1 ) · λ s   · X i , s ¯ . The total traffic intensity of all priorities is:
η i = s = 0 M 1 η i , s .
The probability ϕ i , s that a data packet of priority s is at the head of the waiting queue of node i is:
ϕ i , s = η i , s   η i .
Combining the above equations, it can be found that the probability that node i has a data packet transmitted in any slot, i.e., the slot transmission probability P i of node i, is a function closely related to the backoff probability γ i , s . Its expression is:
P i γ i , s = s = 0 M 1 ϕ i , s · E i , s · 1 X i , s ¯ .
From a physical perspective, the slot transmission probability intuitively reflects the possibility that a node successfully transmits data packets within a unit slot and is also a core indicator for measuring the intensity of channel contention: when this probability is high, it indicates that the node has a higher probability of successfully seizing resources in channel contention, which indirectly reflects that the channel load is relatively low; on the contrary, the lower the slot transmission probability, the more intense the channel contention, and the higher the probability that the node fails to transmit due to the triggering of the backoff mechanism and data packet collision.
Based on the core role of this indicator, the following will specifically derive the calculation formula of the backoff probability of data packets of different priorities and further analyze its quantitative correlation with the slot transmission probability.

4.3. Priority Backoff Probability

Define the neighbor set of node i in the clustered network topology as Φ i (including node i itself). If a data packet arrives at the head of the waiting queue of node i, the node first counts the number of data packets present on the channel within the occupancy statistics window U s . This count is denoted as X p and serves as the COS, with U s measured in slots. Then, compare X p with the priority threshold of the data packet. If X p is greater than the priority threshold, the data packet enters the backoff state; if X p is less than the priority threshold, the data packet can be transmitted. Since the nodes are mutually independent, X p can be considered to follow a binomial distribution B ( n , P i , o u t ¯ ) , where P i , o u t ¯ is the average value of the probability that all nodes in Φ i transmit data packets in any slot:
P i , o u t ¯ = j Φ i P j , o u t | Φ i | ,
where P j , o u t is the probability that node j transmits data packets in any slot, and n is the total number of slots:
n = Φ i · U s .
Then, the probability that X p = k is:
P X p = k = C n k · P i , o u t ¯ k · 1 P i , o u t ¯ n k .
Let D s be the priority threshold of priority s. When D s is less than X p , the data packet of priority s will enter the backoff state. Therefore, the expression of the backoff probability with respect to P i , o u t ¯ can be obtained:
γ i , s P i , o u t ¯ = 1 k = 0 D s P X p = k ,       0 s M 1 .
The above equation indicates that for a given slot transmission probability P i , o u t ¯ , the backoff probability γ i , s for priority s at node i can be calculated. Substituting γ i , s into Equation (15) yields a new slot transmission probability P i ( γ i , s ) . Its physical implication is as follows: when the initial slot transmission probability of each node is relatively low, the channel load is low, leading to a small backoff probability for each priority. In this case, more data packets of services with all priorities can be transmitted, which allows the slot transmission probability to increase further. However, as the slot transmission probability rises, the channel load increases accordingly, resulting in a larger backoff probability for each priority. When the backoff probability increases to a certain extent, the slot transmission probability will cease to rise, and at this point, the slot transmission probability of each node will reach a balanced value, namely P i , o u t = P i γ i , s :
P i , o u t = P i γ i , s = P i γ i , s P i , o u t ¯ .
The balanced value given by the above equation represents the maximum achievable slot transmission probability under the given network scale and service requirements of the UAV swarm.

4.4. End-to-End Packet Transmission Success Rate

Factors affecting the end-to-end packet transmission success rate include the number of hops and the collision probability of each hop. As shown in Figure 3, the end-to-end transmission success rate of inter-cluster service data packets sent from node 3 to node 8 should be the product of the transmission success rates from node 3 to node 5, node 5 to node 7, and node 7 to node 8. Moreover, the factors affecting the single-hop transmission success rate are all transmitting nodes that cause interference to the receiving node of this hop, i.e., the neighbor set of this receiving node.
First, calculate the packet transmission success rate in the single-hop case.
The SPMA system adopts a packet-splitting time-hopping and frequency-hopping mechanism. In this case, assume that each packet has the same length. After channel coding at the physical layer, it is split into N b data frames, which are randomly transmitted on N f frequency channels. The duration of each data frame is one slot, and the slot length is T s . For any receiving node i, let node j be a node in its neighbor set Φ i . Since we have derived that the probability that node j has a data packet transmitted in any slot is P j , o u t , node j can send P j , o u t / T s data packets per unit time. Furthermore, the number of data frames sent by all nodes in Φ i on a single channel per unit time is:
λ i = N b · j Φ i P j , o u t T s · N f .
Assuming that the arrival interval of data frames on each channel still follows a Poisson distribution, λ i is the arrival rate of the Poisson distribution. Furthermore, since data frames are transmitted in a time-hopping manner, the start times of all data frames over the channel are synchronized. In this case, the transmission success rate of node i successfully receiving a data frame is the probability that the number of data frames sent from Φ i within the T s time when node i receives a data frame is 0:
P i , b s = e λ i · T s .
To correctly decode a complete data packet, node i needs to successfully receive at least half of the split data frames. Therefore, the packet transmission success rate of node i successfully receiving a data packet is:
P i , s = n = N b / 2 N b C N b n · ( P i , b s ) n ( 1 P i , b s ) N b n .
Observing Equations (21)–(23), it can be found that the packet transmission success rate is proportional to the number of frequency channels and inversely proportional to the number of nodes in the neighbor set and the slot transmission probability of each node. That is, the fewer the number of frequency channels, the higher the collision probability on a single channel. However, forming a clustered structure through power control can reduce the number of neighboring nodes for each node, thereby compensating for the loss caused by the insufficient number of frequency channels. Moreover, the more clusters there are, the fewer the number of neighboring nodes for each node, the lower the collision probability, and the higher the transmission success rate.
Based on the single-hop packet transmission success rate, assume that the destination node of the priority service s sent by the source node n 0 is n h , and the end-to-end multi-hop route under the clustering scheme C K is { n 0 , n 1 , …, n h }. Then, the end-to-end packet transmission success rate of this multi-hop data packet is:
P n 0 , s , K e = j = 1 h P n j , s .
From the above equation, it can be found that the more hops there are, the lower the transmission success rate of inter-cluster service data packets. Moreover, during the forwarding of data packets by intermediate nodes, interference will also be generated for the neighboring nodes of the intermediate nodes. Therefore, it is necessary to reduce the number of forwarding hops for inter-cluster services, that is, reduce the number of clusters. Overall, Equations (23) and (24) put forward completely opposite requirements on the number of clusters. Therefore, to balance the packet transmission success rates of intra-cluster and inter-cluster services, a compromise number of clusters must be selected.

4.5. Complexity of the Optimal Solution

Although the optimal clustering scheme can theoretically be obtained through exhaustive search, in a network with N nodes, the number of clustering schemes is given by the Bell number B N , where B N denotes the N-th Bell number; further, since each node has P optional transmission power levels, the total number of clustering schemes combined with power control is as many as B N · P N . Since B N grows super-exponentially and P N grows exponentially, the computational complexity of this optimization problem is extremely high, indicating that it belongs to an NP-hard problem. Therefore, exhaustive search is not feasible in engineering, and only heuristic algorithms can be used to find suboptimal solutions within polynomial time.

5. Clustering and Power Control Algorithm Based on K-Means and Ant Colony Optimization

5.1. Basic Method

To enable the actual UAV swarm system to quickly converge to a high-quality scheme, this paper designs a virtual iterative heuristic algorithm that performs all computations virtually after swarm initialization using only node positions and predefined service requirements, without additional real-time message exchange during iteration; only the final suboptimal clustering and power configuration are broadcast once to the network. The algorithm includes three stages: K-means-based clustering, GPSR (Greedy Perimeter Stateless Routing)-based inter-cluster route establishment, and an ant colony algorithm-based power adjustment.
The algorithm starts with the initial number of clusters K = K m i n and is executed in a centralized manner by the predefined global control node according to the following steps:
Step 1: Use the K-means algorithm to divide the network into K clusters and determine the nominal transmission power p i , K n o m i n a l of any node i according to the requirements of intra-cluster services. The nominal transmission power is not actually assigned to the node.
Step 2: Calculate the route of each inter-cluster service according to the GPSR algorithm. In this process, the nominal transmission power of the nodes participating in transmission and forwarding on the route may be appropriately increased. After the route calculation is completed, the transmitting and forwarding nodes of all routes form an inter-cluster route node set Ω K . At the same time, the nominal transmission power of any node i is denoted as p i , K , m i n n o m i n a l , which indicates that this power is the minimum power required to meet all intra-cluster and inter-cluster service requirements under the current clustering scheme C K .
Step 3: Adopt the ant colony algorithm, using the utility function U K defined in Equation (2) as the fitness F K of the ant colony algorithm, and iteratively adjust the nominal transmission power of each node in the set Ω K . The adjustment interval is [ p i , K , m i n n o m i n a l ,   p m a x ] . After the iteration is completed, the best fitness obtained is denoted as F K , b e s t .
Step 4: Increase the number of clusters K and re-execute Step 1 until the maximum number of clusters K m a x is reached. Calculate the maximum value of the best fitness among all clustering schemes, denoted as F K , b e s t , and the corresponding C K is the suboptimal clustering scheme obtained by the heuristic algorithm. Based on this, the global control node broadcasts the clustering scheme C K and the corresponding nominal transmission power of each node to the entire network through swarm networking service data packets and finally completes the clustering and the actual power configuration of each node.
The proposed three-stage framework follows a logical and sequential design. K-means clustering first generates the network topology and determines the basic transmission power to guarantee intra-cluster connectivity, thereby establishing a constrained solution space for subsequent procedures. GPSR routing then constructs feasible inter-cluster routes and refines the optimization scope. Finally, the ant colony algorithm performs refined power adjustment to enhance overall system performance and ensure stable convergence. Given that the joint optimization problem is NP-hard, the proposed hierarchical approach efficiently yields high-quality suboptimal solutions with controllable approximation performance. Each stage provides necessary inputs for the next, making the entire framework systematic and well-founded.

5.2. K-Means-Based Clustering

Since the purpose of clustering is to reduce mutual interference between different clusters by reducing transmission power, this paper adopts the K-means algorithm based on Euclidean distance as the clustering principle and then completes the preliminary calculation of the nominal transmission power. The specific steps are as follows:
Step 1: Randomly select K nodes from the network as initial cluster heads according to the current number of clusters K.
Step 2: Calculate the Euclidean distances between other nodes and each cluster head node, and assign each node to the cluster with the closest distance.
Step 3: Calculate the geometric center of all nodes in each cluster, and select the node in the cluster closest to the geometric center as the updated cluster head.
Step 4: If the displacement of the cluster head is less than the iterative convergence threshold ε or the maximum number of iterations IK is reached, complete the clustering and execute the following steps; otherwise, re-execute Step 2.
Step 5: For the cluster head node c k of any cluster C S k , the nominal transmission power is calculated based on the free-space propagation model as follows:
p c k , K n o m i n a l = P r x , m i n · ( 4 π d k , m a x ) 2 · L G t G r λ 2 ,
where P r x , m i n is the receiver sensitivity, d k , m a x = m a x i C S k ,   i c k d ( i , c k ) is the maximum distance between c k and other member nodes in the cluster, L is the system loss coefficient, G t and G r are the transmit antenna gain and receive antenna gain, respectively, and λ is the electromagnetic wave wavelength.
For any member node i of any cluster C S k , its nominal transmission power is:
p i , K n o m i n a l = P r x , m i n · ( 4 π d ( i , c k ) ) 2 · L G t G r λ 2 , i C S k , i c k .
After the above steps, as shown in Cluster 0 in Figure 6, the nominal transmission power of the cluster head node 2 can cover all nodes in the cluster, while the nominal transmission power of node 3 as a member is calculated only based on the principle of covering the cluster head.

5.3. GPSR-Based Inter-Cluster Route Establishment

The initial calculation of K-means-based clustering and nominal transmission power can only meet the requirements of intra-cluster services. To meet the requirements of inter-cluster services, this paper adopts the GPSR algorithm to establish a route from the source node src to the destination node dst for each inter-cluster service and appropriately increases the nominal transmission power of the relevant transmitting nodes during the route establishment process.
The algorithm executes the following steps for each inter-cluster service, starting from the source node src as the current node curr:
Step 1: Calculate the distance d c u r r d s t from the current node to the destination node as a reference value;
Step 2: Under the current nominal transmission power of the current node, traverse all its neighboring nodes. If the neighboring nodes include the destination node dst, complete the route establishment; otherwise, calculate the Euclidean distance d n e i g h d s t from each neighboring node to the destination node;
Step 3: Add all neighboring nodes satisfying d n e i g h d s t < d c u r r d s t to the candidate next-hop node set of the current node;
Step 4: If the candidate next-hop node set is empty, increase the nominal transmission power p c u r r , K n o m i n a l of the current node by a small step p and then re-execute Step 2; otherwise, select the neighboring node with the smallest d n e i g h d s t as the next-hop node of the current node, add it to the global inter-cluster route node set Ω K , and take this node as the current node curr, then re-execute Step 1.
As shown in Figure 6, according to the GPSR algorithm, node 3 is the next-hop node of node 1, where node 1 acts as the source node and node 6 is the destination node. According to the initial nominal transmission power of node 3, its candidate next-hop node set is empty. Therefore, it is necessary to incrementally increase its nominal transmission power until it covers node 5.

5.4. Ant Colony Algorithm-Based Power Adjustment

After the establishment of inter-cluster routes, although each inter-cluster service has a route with small transmission power, the number of hops of this route is large, which cannot provide good quality of service. In Figure 6, the number of hops of the route from node 1 to node 6 is 3. However, if the transmission power of node 1 is increased to directly cover node 5 as shown in Figure 7, the number of hops of the route is reduced to 2, thereby significantly improving the end-to-end transmission success rate of this route. However, on the other hand, increasing the transmission power of node 1 will cause more nodes to be interfered with, leading to a decrease in the quality of service of intra-cluster and inter-cluster services related to these nodes. This indicates that the transmission power of relevant nodes cannot be blindly increased only for a certain service. A balanced solution to this problem must be sought from the perspective of the entire network. For this reason, this paper adopts the ant colony algorithm for heuristic solution.
Let each ant in the ant colony algorithm represent a nominal transmission power vector P K n o m i n a l = p 1 , K n o m i n a l ,   p 2 , K n o m i n a l ,   ,   p | Ω K | , K n o m i n a l , which represents a combination of nominal transmission power values of each node in the set Ω K . Let A N T n u m represent the number of ants used in the ant colony algorithm. Then, in each iteration of the algorithm, A N T n u m ants are released, which is equivalent to generating A N T n u m groups of different nominal transmission power candidate schemes simultaneously to search for the optimal solution in parallel. It should be emphasized that the nominal transmission power of each node in the set Ω K only takes discrete values based on the route within the range [ p i , K , m i n n o m i n a l ,   p m a x ] . For example, the nominal transmission power of node 3 in Figure 7 has at most two values within the range not exceeding p m a x , which exactly covers node 5 and node 6, respectively. This is because other values not only do not help improve the quality of service of the inter-cluster service from node 1 to node 6 but also increase interference to other nodes, and this discrete value method can significantly improve the convergence speed of the ant colony search.
Define the fitness function F K of the ant colony algorithm as equal to the utility function:
F K = U K P K n o m i n a l ,
where U K P K n o m i n a l denotes the utility function value determined by the nominal transmission power vector P K n o m i n a l during the ant colony iteration.
Let the pheromone matrix of the ant colony algorithm be τ , whose dimension is | Ω K | rows × max i Ω K ( m i ) columns, where m i is the number of discrete values of the nominal transmission power of any node i. Initially, all pheromones are set to a constant τ 0 . After each iteration, the pheromones are updated according to the following rules:
τ i , j t + 1 = 1 ρ · τ i , j t + n = 1 A N T n u m τ i , j n ,
where ρ is the pheromone evaporation factor satisfying 0 < ρ < 1 , a larger value of ρ indicates a weaker influence of historical pheromones and thus stronger global search capability; τ i , j ( t ) is the pheromone concentration of the j-th power of node i in the t-th iteration; τ i , j n is the pheromone left by the n-th ant in this iteration, which is proportional to the quality of the solution found by the ant:
τ i , j n = Q · U K P K n o m i n a l n ,             if   ant   n   selects   power   j   at   node   i   0 ,           otherwise ,
where Q is the pheromone enhancement coefficient, which is used to adjust the magnitude of the pheromone increment.
Ants select discrete power by combining pheromone guidance and random exploration. For node i, the selection probability of its j-th discrete power is:
P i , j t = τ i , j t λ l 1 m i τ i , l t λ ,
where λ is the heuristic factor, a larger λ leads to a stronger guiding effect of pheromones and faster convergence, while a smaller λ results in stronger random exploration.
On this basis, the main steps of the ant colony-based power adjustment algorithm are as follows:
Step 1: Release A N T n u m ants in each iteration t, and each ant independently completes the following operations:
Step 2: For each node i Ω K , calculate the selection probability P i , j ( t ) of each discrete power j;
Step 3: Select the nominal transmission power p i , K n o m i n a l ( t ) of each node using the roulette wheel method to form a set of nominal transmission power vectors P K n o m i n a l ( t ) ;
Step 4: Calculate the fitness F K ( t , a n t ) corresponding to this vector;
Step 5: Calculate the maximum fitness among all ants in this iteration, denoted as F K , b e s t ( t ) . The vector corresponding to this value, P K , b e s t n o m i n a l ( t ) , is the optimal power vector of this iteration. Then, update the pheromone matrix according to the solutions of all ants in this iteration;
Step 6: Increase the number of iterations and re-execute Step 1 until the maximum number of iterations IA is reached. Calculate the global optimal fitness F K , b e s t and obtain the global optimal power vector P K , b e s t n o m i n a l .

5.5. Algorithm Complexity Analysis

This section quantitatively analyzes the computational complexity of the proposed heuristic algorithm from three stages: K-means clustering, GPSR inter-cluster route establishment, and ant colony algorithm-based power optimization. The core parameters involved in the analysis include the total number of UAV swarm nodes N, the number of clusters K, the number of single-round iterations of the K-means algorithm IK, the total number of service types M, the maximum number of hops of GPSR routes H, the number of ants in the ant colony algorithm A N T n u m , the maximum number of iterations IA, as well as the scale of the set | Ω K | and the discrete value of node power m i .

5.5.1. Computational Complexity of the K-Means Clustering Stage

The proposed algorithm traverses the number of clusters K [ K m i n , K m a x ] and executes the K-means clustering once for each K. The computational complexity of a single round of iteration of the classic K-means algorithm is O ( N · K ) , and the main overhead lies in calculating the Euclidean distance between N nodes and K cluster heads and updating node cluster membership. Then, the computational complexity of K-means clustering under a single K value is O ( I K · N · K ) .
When traversing all K values, the total computational complexity of the clustering stage is the sum of the complexities corresponding to each K value, and the expression is O I K · N · K = K m i n K m a x K . Among them, the sum term K = K m i n K m a x K = K m a x + K m i n K m a x K m i n + 1 2 . In this paper, K m i n = 2 and K m a x = 2 N . Therefore, K = K m i n K m a x K 2 N · 2 N 2 = 2 N . Combined with the characteristic that I K is a constant, the total complexity of the clustering stage can be simplified to: O I K · N · K = K m i n K m a x K = O ( N 2 ) .
Note that K m i n = 2 is set as a general lower bound to ensure a basic clustered structure and can be flexibly adjusted for different UAV swarm scales.

5.5.2. Computational Complexity of the GPSR Inter-Cluster Route Establishment Stage

GPSR routing is a greedy state routing, and the core operations include neighboring node searching and hop-by-hop iteration. In the worst case, all N nodes support all M services, and all services are broadcast services. At this time, each service needs to establish at most (N − 1) end-to-end routes, and the total number of routes is N · M · ( N 1 ) . For each route, the source node needs to select the next hop among (N − 1) candidate nodes, and the next-hop node continues to select among the remaining nodes until it reaches the destination node. Theoretically, the total number of possible routes reaches the factorial level. However, the greedy search strategy of GPSR greatly compresses the search space: each node only needs to evaluate the neighboring nodes that are closer to the destination node, and the average number of neighbors is much smaller than N. Let the average node degree be deg; then the computational complexity of establishing a single route is O ( H · d e g ) Therefore, the complexity of the GPSR stage is O ( N · M · N · H · d e g ) . Since M, H, and deg are all constants much smaller than N, the complexity of this stage can be simplified to O ( N 2 ) .
In actual engineering scenarios, UAV swarm services are mostly communications between specific nodes, not fully connected broadcasts. Therefore, the actual routing complexity is much lower than the above theoretical maximum value.

5.5.3. Computational Complexity of the Ant Colony Algorithm-Based Power Optimization Stage

The ant colony algorithm only optimizes the power of nodes in the set Ω K , not all nodes in the network, and the power of each node only selects among m i discrete values. Each iteration of the ant colony algorithm needs to calculate the fitness function of each ant, and the calculation of the fitness function needs to traverse all nodes supporting each service. In the worst case, N nodes all support M services. At this time, the total complexity of the ant colony optimization stage is: O A N T n u m · I A · | Ω K | · m a x ( m i ) · N · M . Since A N T n u m and I A are constants, and | Ω K | , m a x ( m i ) , and M are much smaller than N, the complexity of this stage can be simplified to O ( N ) .

5.5.4. Overall Algorithm Complexity and Theoretical Comparison

The overall computational complexity of the proposed heuristic algorithm is the sum of the complexities of the three stages. According to the above analysis, since the computational complexity of the ant colony algorithm stage is negligible, the overall complexity of the algorithm is dominated by the K-means clustering and GPSR routing stages, namely:
O t o t a l = O N 2 + O N 2 + O N = O N 2 .
Compared with the theoretical optimal solution in Section 4.5, the proposed algorithm reduces the super-exponential complexity O B N · P N to the polynomial complexity O N 2 through a heuristic strategy.
Compared with the theoretical complexity of the typical clustering algorithm ICW [21], it can be seen that the core complexity of the ICW algorithm comes from the clustering optimization process of the Whale Optimization Algorithm (WOA), and its overall complexity is also O N 2 , which is comparable to the complexity level of the proposed algorithm. Both are polynomial complexities, providing a computationally efficient and fair basis for the performance comparison in the subsequent simulation stage.

6. Simulation Analysis

6.1. Simulation Scenario

MATLAB R2021a is used to build a UAV swarm simulation scenario to simulate and verify the performance of the proposed algorithm. Nodes move uniformly in a straight line within the range of 10 km × 10 km at a speed of 5 m/s without obstacle avoidance behavior. The basic parameters of the simulation scenario are set as shown in Table 1:
Four types of services are set, and the ratio of packet arrival rates for priority services 0 to 3 is set to 1:2:4:8 [11]. The length of each service data packet is 100 bytes, and the data packet arrival process follows an independent Poisson distribution. The specific parameters of each service are set as shown in Table 2:
The parameter values in the ant colony algorithm are shown in Table 3. These parameters follow typical empirical settings in ant colony optimization studies to ensure stable convergence and balanced search, rather than being tuned for specific performance gains.
Under the above simulation parameter settings, the following first compares the simulation values and theoretical values of the transmission success rate to determine the effectiveness and usability of the quantitative estimation formula. On this basis, the proposed algorithm is simulated and compared with the standalone SPMA protocol and the ICW clustering algorithm.

6.2. Simulation Results and Analysis

6.2.1. Simulation Verification of Packet Transmission Success Rate

This section verifies the accuracy of the packet transmission success rate given by Equation (23) through simulation. In a fully connected network, Nodes 1 to 25 broadcast the highest-priority swarm networking service to Node 0 at the same packet arrival rate, and the highest-priority transmission threshold of each node is set sufficiently large so that data is transmitted immediately upon arrival. During this process, the simulated value of the packet transmission success rate is recorded. Meanwhile, the slot transmission probability is obtained by dividing the total number of transmitted packets by the product of the occupancy statistics window length and the number of transmitting nodes, and the theoretical value of the packet transmission success rate is then calculated according to Equations (21)–(23).
Figure 8 plots two curves showing the simulation and theoretical values of the packet transmission success rate versus the packet arrival rate at each node. A comparison of the two curves shows that when the packet arrival rate is 40 packets/second, the theoretical transmission success rate is 99.00% and the simulated value is 99.24%, with a relative error well below 1%. When the packet arrival rate reaches 10,000 packets/second, the theoretical value is 8.21% and the simulated value is 9.14%, with a relative error of 10.2%.
To further verify the accuracy of the packet transmission success rate given in Equation (23) when multiple priority services coexist, nodes 1 to 25 are set to send four priority services to node 0 at the same packet arrival rate. According to the theoretical derivation and the simulation results shown in Figure 8, the transmission threshold of priority 0 is set to 12, which corresponds to a packet transmission success rate of no less than 99% for each node when there are 25 nodes and the packet arrival rate is 40 packets/second. In addition, the transmission thresholds of priorities 1 to 3 are set to 10, 8, and 6 respectively.
Figure 9 shows the relationship between the packet transmission success rate and the packet arrival rate at each node. It can be seen from the figure that the packet transmission success rate of each priority service gradually decreases with the increase in the packet arrival rate, but the higher the priority, the slower the transmission success rate decreases. When the packet arrival rate exceeds 333 packets/second, the transmission success rates of the other three priority services decrease to nearly zero, but the transmission success rate of priority 0 is still 48.3%.

6.2.2. Algorithm Performance Comparison and Effectiveness Verification

This section analyzes the performance of the proposed algorithm. The transmission thresholds of priorities 0 to 3 are still set to 12, 10, 8, and 6. Priority services 0 and 1 run on all 100 nodes and are broadcast within each cluster and among all cluster heads; priority services 2 and 3 are initiated on 10 randomly selected nodes in the entire network, and 10 destination nodes are also randomly selected in the entire network. When each node sends or forwards a data packet, if it is found that the delay of the data packet has exceeded the specified delay requirement, the packet is immediately discarded. Therefore, the end-to-end delay of successfully transmitted data packets must meet the corresponding delay requirement. When calculating the utility value U K , the priority weights α 0 ~ α 3 are set to 0.4, 0.3, 0.2, and 0.1 respectively.
Figure 10 shows the curve of the utility value of the proposed algorithm varying with the number of clusters under five packet arrival rates. Each data point is averaged over 10 independent runs with 95% confidence intervals. It can be seen that the utility value is the maximum when the number of clusters is 5, and then gradually decreases as the number of clusters increases. All metrics within the confidence interval at 5 clusters are higher than those at other cluster numbers, verifying the stability of the optimal cluster number. For example, when the packet arrival rate is 900 packets/second, the mean utility value reaches 99.67% when the number of clusters is 5, and the packet transmission rates of priorities 0 to 3 are 98.73%, 96.24%, 94.34%, and 91.39%, respectively; when the number of clusters increases to 20, the utility value decreases to 96.29%, and the transmission success rates decrease to 97.27%, 92.02%, 89.78%, and 86.64%, respectively.
Figure 11 compares the packet transmission success rates of the proposed algorithm (with 5 clusters) with the standalone SPMA protocol and the ICW clustering algorithm. Under the standalone SPMA protocol, to achieve a fully connected network, the transmission power of each node in the simulation is set to exactly cover the farthest node from it. For the ICW algorithm, since it does not specify a specific MAC layer protocol, the SPMA protocol is also used for its MAC layer in the simulation for unified comparison. It can be seen from the figure that the proposed algorithm achieves the best performance, followed by the standalone SPMA algorithm, and the ICW algorithm has the worst performance. Moreover, as the data packet arrival rate increases, the performance advantage of the proposed algorithm becomes more obvious. For example, when the packet arrival rate is 600 packets/second, the transmission success rate of priority 0 for the proposed algorithm is 99.1%, 96.1% for the SPMA protocol, and 88.6% for the ICW algorithm. In terms of the utility value, the proposed algorithm is 7.5% higher than the SPMA algorithm and 31.9% higher than ICW; when the packet arrival rate increases to 4500 packets/second, the transmission success rate of priority 0 is 93.6% for the proposed algorithm, 74.1% for the SPMA protocol, and 57.6% for the ICW algorithm. In terms of the utility value, the proposed algorithm is 63.5% higher than SPMA and 162.3% higher than ICW.
Figure 12 shows the average number of hops of various services under the three algorithms. It can be seen from the figure that under the SPMA protocol, all services are 1 hop; under the proposed algorithm, the intra-cluster and inter-cluster swarm networking and real-time monitoring services are all 1 hop, the average number of hops for inter-cluster situational awareness services is 1.2, and the average number of hops for inter-cluster mission payload services is 1.3; under the ICW algorithm, the intra-cluster swarm networking and real-time monitoring services are all 1 hop, while the average number of hops for inter-cluster swarm networking services and real-time monitoring services is 2.2, the average number of hops for inter-cluster situational awareness services is 3.8, and the average number of hops for inter-cluster mission payload services is 4.0.
The above simulation results are consistent with the design principles of each algorithm: the standalone SPMA algorithm assumes that all nodes are directly connected. The ICW algorithm stipulates that communication between all nodes must be forwarded by cluster head nodes and at the same time stipulates that the transmission power of cluster head nodes will not be increased after clustering is completed. This leads to inter-cluster services often requiring multiple forwards. During the forwarding process, many data packets are actively discarded due to timeout or cannot be correctly received due to collisions on the channel, resulting in a significant decrease in the end-to-end transmission success rate. This indicates that the ICW algorithm cannot meet services with strict delay or transmission success rate requirements. In the proposed algorithm, to reduce the number of forwards, any node can act as a forwarding node, and through the iteration of the ant colony algorithm, a larger transmission power can be used to further reduce the number of forwards for inter-cluster services.
Figure 13 shows the transmission power of all 100 nodes under the three algorithms in ascending order, and Table 4 statistically compares the transmission power of each algorithm. It can be seen from the figure that the transmission power of the SPMA protocol is much higher than that of the other two algorithms. The reason for the slow rise in its power curve is the node position: the power of the central node is the smallest, and the power increases as it is farther from the center. The power curves of both the proposed algorithm and the ICW algorithm are obviously divided into two stages: the first stage rises slowly because intra-cluster nodes only need to be directly connected to the cluster head node of their own cluster in one hop. Therefore, the farther a node is away from the cluster head of their own cluster, the greater the power. However, it can be seen from the table that the average value of other nodes in the proposed algorithm is 36.3 mW, which is much larger than 10.6 mW of member nodes in ICW. This is because the number of clusters in the proposed algorithm is 5, while the number of clusters in the ICW algorithm is 17, so the average coverage range of clusters in the proposed algorithm is much larger than that in the ICW algorithm. The latter stage of both algorithms rises rapidly because the nodes undertaking inter-cluster communication need to communicate with other clusters, so the communication distance is farther. However, the proposed algorithm rises more sharply and has higher power because the proposed algorithm allows inter-cluster communication nodes to further increase the transmission power to reduce the number of forwarding hops, but the cluster head nodes of the ICW algorithm do not increase the transmission power after clustering is completed. In terms of overall average value, the average power of all nodes is 89.6 mW for the proposed algorithm, 937.7 mW for the SPMA protocol, and 35.5 mW for the ICW algorithm. The average power of the proposed algorithm is 90.4% lower than that of the SPMA protocol and 152.3% higher than that of the ICW algorithm.

7. Discussion

7.1. Comparison with Existing SPMA Optimization Methods

Recent research on the SPMA protocol mainly targets fully connected networks and improves performance to a certain extent by optimizing key parameters but cannot alleviate the severe channel contention caused by insufficient frequency resources [7,8,9,10,11,12]. In contrast, the proposed framework reduces interference through spatial partitioning and adaptive power control, which fundamentally compensates for performance degradation caused by the lack of frequency diversity. As verified by simulations, the proposed method reduces transmission power by 90.4% compared with the standard SPMA protocol, while significantly improving the end-to-end transmission success rate under heavy traffic loads.
Nevertheless, DL-based SPMA optimization methods provide meaningful insights for future improvement. For example, BiLSTM-based channel load prediction [10] can better capture fast topology changes in high-mobility UAV networks, and DQN-based access and backoff optimization [12] can process high-dimensional state information. Integrating these DL-based modules into the proposed framework will further strengthen its adaptability to dynamic environments.

7.2. Comparison with Existing Clustering Algorithms

A comprehensive comparison between the proposed algorithm and representative clustering algorithms is summarized in Table 5.
The proposed method performs virtual iterative computation before actual deployment, using the derived closed-form transmission success rate expression to quickly converge to a suboptimal solution without real-time message exchange or status measurement. This significantly reduces clustering delay and signaling overhead. Unlike traditional algorithms that rely entirely on cluster heads to forward inter-cluster traffic, the GPSR-based routing mechanism allows any node to serve as a relay, thus reducing path length, transmission delay, and congestion at cluster heads.
Although DL-based clustering algorithms [24,25,26] offer stronger adaptability to highly dynamic topologies, they suffer from high computational complexity, weak interpretability, and large training costs, making them difficult to deploy on resource-constrained UAVs. The proposed model-driven method achieves a more practical balance among performance, complexity, and reliability, making it more suitable for frequency-constrained UAV swarm scenarios with strict real-time requirements.
The current framework focuses on QoS guarantees and interference suppression under quasi-static UAV topology. For subsequent extensions, mobility prediction and dynamic re-clustering will be introduced to maintain stable performance under high-speed maneuvering. Additionally, compact DL modules such as DQN [24] will be combined with K-means to achieve fast initial clustering and intelligent cluster head adaptation, further enhancing robustness and scalability.

8. Conclusions

To address the performance limitation of the SPMA protocol in large-scale UAV swarm networking under severely constrained frequency resources, this paper proposes a joint clustering and power optimization method. Simulation results demonstrate that under heavy traffic loads, the proposed method improves the end-to-end packet transmission success rate by 63.5% compared with the standalone SPMA protocol and by 162.3% compared with the ICW algorithm, while reducing the average transmission power by 90.4% relative to SPMA. The highest-priority swarm networking service maintains a delivery probability above 93.6% even at high arrival rates, and the end-to-end delay satisfies the requirement of no more than 2 ms for critical control traffic. These results verify that the proposed scheme effectively balances transmission reliability, power consumption, and latency, providing a practical solution for UAV swarms in frequency-constrained scenarios.
In future work, we will extend the proposed framework to distributed clustering to reduce the dependence on global information. Moreover, imperfect state knowledge, dynamic topology, and mobility-adaptive clustering mechanisms will be investigated to improve the practicality in realistic UAV swarm deployments.

Author Contributions

Conceptualization, Y.W. and C.O.; methodology, Y.W., C.O. and H.N.; software, C.O. and H.N.; validation, C.O., H.N. and B.-S.K.; formal analysis, Y.W. and C.O.; investigation, C.O., H.N. and B.-S.K.; resources, B.-S.K.; writing—original draft preparation, Y.W. and C.O.; writing—review and editing, Y.W. and H.N.; supervision, B.-S.K.; funding acquisition, C.O. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Hongik University New Faculty Research Support Fund.

Data Availability Statement

This study includes all the data used in this work.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Sharma, A.; Vanjani, P.; Paliwal, N.; Basnayaka, C.M.W.; Jayakody, D.N.K.; Wang, H.-C.; Muthuchidambaranathan, P. Communication and Networking Technologies for UAVs: A Survey. J. Netw. Comput. Appl. 2020, 168, 102748. [Google Scholar] [CrossRef]
  2. Gupta, L.; Jain, R.; Vaszkun, G. Survey of Important Issues in UAV Communication Networks. IEEE Commun. Surv. Tutor. 2016, 18, 1123–1152. [Google Scholar] [CrossRef]
  3. Herder, J.C.; Stevens, J.A. Method and Architecture for TTNT Symbol Rate Scaling Modes. U.S. Patent 7839900B1, 23 November 2010. [Google Scholar]
  4. Clark, S.M.; Hoback, K.A. Statistical Priority-Based Multiple Access System and Method. U.S. Patent 7680077B1, 16 March 2010. [Google Scholar]
  5. Chen, J.; Wang, J.; Wan, J.; Wang, T.; Wu, H. Joint Fairness and Efficiency Optimization for CSMA/CA-Based Multi-User MIMO UAV Ad Hoc Networks. IEEE J. Sel. Top. Signal Process. 2024, 18, 1311–1323. [Google Scholar] [CrossRef]
  6. Wu, J.; Zhou, X.; Li, J.; Sun, Y.; Liu, H. H-SATMAC: A Hybrid Self-Adaptive TDMA-Based MAC Protocol for Large-Scale UAV Ad-Hoc Networks. IEEE Internet Things J. 2025, 13, 5610–5624. [Google Scholar] [CrossRef]
  7. Li, Z.; Zhao, J.; Han, T. The Performance Analysis of SPMA Protocol in High Speed Mobile Ad Hoc Network. IEEE Access 2023, 11, 23485–23494. [Google Scholar] [CrossRef]
  8. Ge, Z.; Feng, Y.; Zhang, W.; Wang, Q.; Chen, L. Reliable, Adaptive Flying Ad Hoc Multiple Access Protocol Based on Statistical Priority. IEEE Trans. Green Commun. Netw. 2025, 10, 1171–1183. [Google Scholar] [CrossRef]
  9. Gao, S.; Yang, M.; Yu, H. Modeling and Parameter Optimization of Statistical Priority-Based Multiple Access Protocol. China Commun. 2019, 16, 45–61. [Google Scholar] [CrossRef]
  10. Liu, J.; Gong, P.; Wang, W.; Zhao, Y.; Zhang, H. Improved SPMA Protocol Based on the BiLSTM Prediction Model for the Space–Air–Ground Information Network. Space Sci. Technol. 2025, 5, 0265. [Google Scholar] [CrossRef]
  11. Yang, K.; Xu, C.; Qiao, G.; Liu, Y. Intelligent Queue Scheduling Method for SPMA-Based UAV Networks. Drones 2025, 9, 552. [Google Scholar] [CrossRef]
  12. Zhang, X.; Lei, M.; Wang, C.; Li, D.; Zhao, M. A Transmission and Backoff Method Based on Deep Reinforcement Learning for Statistical Priority-Based Multiple Access Network. In Proceedings of the 2021 IEEE 94th Vehicular Technology Conference (VTC2021-Fall), Norman, OK, USA, 27–30 September 2021; pp. 1–5. [Google Scholar] [CrossRef]
  13. Zhang, Y.; He, Y.; Sun, H.; Wang, X.; Quek, T.Q.S. Performance Analysis of Statistical Priority-Based Multiple Access Network with Directional Antennas. IEEE Wirel. Commun. Lett. 2022, 11, 220–224. [Google Scholar] [CrossRef]
  14. Telli, K.; Kraa, O.; Himeur, Y.; Ouamane, A.; Boumehraz, M.; Atalla, S.; Mansoor, W. A Comprehensive Review of Recent Research Trends on Unmanned Aerial Vehicles (UAVs). Systems 2023, 11, 400. [Google Scholar] [CrossRef]
  15. Abdulhae, O.T.; Mandeep, J.S.; Islam, M. Cluster-Based Routing Protocols for Flying Ad Hoc Networks (FANETs). IEEE Access 2022, 10, 32981–33004. [Google Scholar] [CrossRef]
  16. Heinzelman, W.R.; Chandrakasan, A.P.; Balakrishnan, H. An Application-Specific Protocol Architecture for Wireless Microsensor Networks. IEEE Trans. Wirel. Commun. 2002, 1, 660–670. [Google Scholar] [CrossRef]
  17. Arora, N.S.; Misra, I.S. Performance Comparison of LEACH and LEACH-C Protocols in Wireless Sensor Networks. Int. J. Comput. Appl. 2011, 12, 23–28. [Google Scholar] [CrossRef]
  18. Younis, O.; Fahmy, S. HEED: A Hybrid, Energy-Efficient, Distributed Clustering Approach for Ad-Hoc Sensor Networks. IEEE Trans. Mob. Comput. 2004, 3, 366–379. [Google Scholar] [CrossRef]
  19. Arafat, M.; Moh, S. Bio-Inspired Approaches for Energy-Efficient Localization and Clustering in UAV Networks for Monitoring Wildfires in Remote Areas. IEEE Access 2021, 9, 18649–18669. [Google Scholar] [CrossRef]
  20. Khedr, A.M.; Salim, A.; Raj, P.V.P.; Osamy, W. MWCRSF: Mobility-Based Weighted Cluster Routing Scheme for FANETs. Veh. Commun. 2023, 41, 100603. [Google Scholar] [CrossRef]
  21. Hosseinzadeh, M.; Tanveer, J.; Alanazi, F.; Aurangzeb, K.; Yousefpoor, M.S.; Yousefpoor, E.; Darwesh, A.; Lee, S.-W.; Rahmani, A.M. An Intelligent Clustering Scheme Based on Whale Optimization Algorithm in Flying Ad Hoc Networks. Veh. Commun. 2024, 49, 100805. [Google Scholar] [CrossRef]
  22. Nie, M.; Huang, P.; Zeng, J.; Lu, Y.; Zhang, T.; Lv, T. A Novel Dynamic Transmission Power of Cluster Heads Based Clustering Scheme. Electronics 2023, 12, 619. [Google Scholar] [CrossRef]
  23. Raza, A.; Khan, M.F.; Maqsood, M.; Haider, B.; Aadil, F. Adaptive K-Means Clustering for Flying Ad-Hoc Networks. KSII Trans. Internet Inf. Syst. 2020, 14, 2670–2685. [Google Scholar] [CrossRef]
  24. Wang, J.; Zhang, Q.; Feng, G.; Qin, S.; Zhou, J.; Cheng, L. Clustering Strategy of UAV Network Based on Deep Q-Learning. In Proceedings of the 2020 IEEE 20th International Conference on Communication Technology (ICCT), Nanning, China, 11–14 November 2020; pp. 1684–1689. [Google Scholar] [CrossRef]
  25. Juwaied, A.; Jackowska-Strumillo, L. DL-HEED: A Deep Learning Approach to Energy-Efficient Clustering in Heterogeneous Wireless Sensor Networks. Appl. Sci. 2025, 15, 8996. [Google Scholar] [CrossRef]
  26. Abdulhae, O.T.; Mandeep, J.S.; Islam, M.T.; Islam, M.S. Reinforcement-Based Clustering in Flying Ad-Hoc Networks for Serving Vertical and Horizontal Routing. IEEE Access 2023, 11, 143881–143895. [Google Scholar] [CrossRef]
Figure 1. Operational principle of the SPMA protocol.
Figure 1. Operational principle of the SPMA protocol.
Sensors 26 02760 g001
Figure 2. Packet transmission success rate curve of the SPMA protocol.
Figure 2. Packet transmission success rate curve of the SPMA protocol.
Sensors 26 02760 g002
Figure 3. Network topology diagram with three clusters.
Figure 3. Network topology diagram with three clusters.
Sensors 26 02760 g003
Figure 4. Network topology diagram with two clusters.
Figure 4. Network topology diagram with two clusters.
Sensors 26 02760 g004
Figure 5. M/G/1 queuing model of the SPMA protocol.
Figure 5. M/G/1 queuing model of the SPMA protocol.
Sensors 26 02760 g005
Figure 6. Schematic diagram of K-means-based clustering and power calculation.
Figure 6. Schematic diagram of K-means-based clustering and power calculation.
Sensors 26 02760 g006
Figure 7. Schematic diagram of power adjustment based on ant colony optimization.
Figure 7. Schematic diagram of power adjustment based on ant colony optimization.
Sensors 26 02760 g007
Figure 8. Comparison between simulated and theoretical values of packet transmission success rate.
Figure 8. Comparison between simulated and theoretical values of packet transmission success rate.
Sensors 26 02760 g008
Figure 9. Relationship between packet transmission success rate and arrival rate.
Figure 9. Relationship between packet transmission success rate and arrival rate.
Sensors 26 02760 g009
Figure 10. Curve of utility value varying with the number of clusters.
Figure 10. Curve of utility value varying with the number of clusters.
Sensors 26 02760 g010
Figure 11. Comparison of packet transmission success rates among different algorithms.
Figure 11. Comparison of packet transmission success rates among different algorithms.
Sensors 26 02760 g011
Figure 12. Comparison of average hop counts of different services among three algorithms.
Figure 12. Comparison of average hop counts of different services among three algorithms.
Sensors 26 02760 g012
Figure 13. Comparison of node transmission power distribution among three algorithms (nodes sorted by power in ascending order).
Figure 13. Comparison of node transmission power distribution among three algorithms (nodes sorted by power in ascending order).
Sensors 26 02760 g013
Table 1. Basic parameters of the simulation scenario.
Table 1. Basic parameters of the simulation scenario.
ParameterValueParameterValue
Network range10 km × 10 kmReceive antenna gain1
Number of nodes100System loss coefficient2
Carrier frequency2.4 GHzReceiver sensitivity−90 dBm
Transmission power0~5 WTransmission rate20 Mbps
Transmit antenna gain1Frame length10 μs
Table 2. Service parameter settings.
Table 2. Service parameter settings.
PriorityService TypeDelayTransmission Success RateCommunication Mode
0Swarm networking≤2 ms≥99%Broadcast
1Real-time monitoring≤10 ms≥97%Broadcast
2Situational awareness≤50 ms≥95%Unicast
3Mission payload≤100 ms≥90%Unicast
Table 3. Ant colony parameter values.
Table 3. Ant colony parameter values.
ParameterSymbolValue
Number of ants A N T n u m 80
Number of iterationsIA50
Pheromone evaporation factor ρ 0.12
Heuristic factor λ 1.5
Pheromone enhancement coefficientQ6
Table 4. Statistical comparison of node transmission power under three algorithms.
Table 4. Statistical comparison of node transmission power under three algorithms.
AlgorithmMean
(mW)
Standard Deviation
(mW)
Maximum
(mW)
Minimum
(mW)
Proposed algorithm—Cluster head/forwarding nodes278.6253.5736.47.9
Proposed algorithm—Other nodes36.328.3136.50.3
SPMA937.7284.61533.2403.9
ICW—Cluster head nodes176.570.7305.075.7
ICW—Cluster member nodes10.68.134.20.5
Table 5. Performance and mechanism comparison of different clustering algorithms.
Table 5. Performance and mechanism comparison of different clustering algorithms.
Comparison ItemProposed AlgorithmExisting Algorithms
Primary GoalMaximize multi-service QoS (end-to-end transmission success rate)Balance energy consumption and communication performance
Iteration MechanismVirtual iteration: Converges theoretically before deploymentReal-time iteration: Requires multiple operational rounds to converge
Computational ComplexityLow complexity: Relies on derived mathematical formulas High complexity; requires real-time feedback of multiple parameters
Inter-Cluster RoutingGPSR-based arbitrary node forwarding, avoids cluster head bottlenecksCluster-head-only forwarding, causing bottlenecks
QoS GuaranteeQuantifiable QoS guarantees: Derived performance for given clustering and powerBest-effort service without strict guarantees
InterpretabilityStrong; theoretically completeWeak; black-box
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

Wu, Y.; Oh, C.; Nie, H.; Kim, B.-S. Joint Clustering and Power Optimization for the SPMA Protocol in UAV Swarm Communication in Frequency-Constrained Scenarios. Sensors 2026, 26, 2760. https://doi.org/10.3390/s26092760

AMA Style

Wu Y, Oh C, Nie H, Kim B-S. Joint Clustering and Power Optimization for the SPMA Protocol in UAV Swarm Communication in Frequency-Constrained Scenarios. Sensors. 2026; 26(9):2760. https://doi.org/10.3390/s26092760

Chicago/Turabian Style

Wu, Yu, Changheun Oh, Hongshan Nie, and Byung-Seo Kim. 2026. "Joint Clustering and Power Optimization for the SPMA Protocol in UAV Swarm Communication in Frequency-Constrained Scenarios" Sensors 26, no. 9: 2760. https://doi.org/10.3390/s26092760

APA Style

Wu, Y., Oh, C., Nie, H., & Kim, B.-S. (2026). Joint Clustering and Power Optimization for the SPMA Protocol in UAV Swarm Communication in Frequency-Constrained Scenarios. Sensors, 26(9), 2760. https://doi.org/10.3390/s26092760

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