Abstract
Decentralized coordination of multi-agent communication networks underpins autonomous UAV swarms, sensor meshes, and cyber-physical systems that must operate without a single point of failure, yet quantitative design rules linking topology degradation to coordination collapse are still lacking. This paper aims to characterize the fault tolerance of a discrete linear consensus protocol that drives mobile agents’ scalar states toward a common value over a time-varying communication graph. The convergence rate and fault tolerance budget of the protocol are explicitly tied to the algebraic connectivity of the graph Laplacian, and three failure regimes—random independent failures (), sequential staged failures (), and targeted attacks on the highest-degree hubs ()—are analyzed using a full-factorial Monte-Carlo experiment of 1620 runs implemented in Python with the Mesa framework and NetworkX. Critical failure thresholds are 0.42–0.51 for , 0.38–0.48 for , and 0.28–0.38 for ; a Kruskal–Wallis test (p < 0.001) confirms the ordering , providing quantitative design rules for fault-tolerant consensus-driven networks.
1. Introduction
The proliferation of autonomous communication networks—from UAV swarms performing last-mile delivery to low-Earth-orbit satellite constellations and industrial wireless sensor meshes—has made decentralized coordination one of the most active research topics at the intersection of information technology, artificial intelligence and telecommunication systems. In such systems, a single centralized controller is either impractical (because of link-budget and latency constraints) or undesirable (because it introduces a single point of failure). Instead, agents must reach agreement on task assignments, time references, resource allocations or routing information by exchanging messages only with their direct neighbors over a communication graph [1,2,3].
Distributed consensus protocols provide the mathematical scaffolding for this kind of coordination. The seminal result of Olfati-Saber and Murray [4] established that a linear discrete time consensus protocol converges to the average of the initial states whenever the underlying graph is connected, with a convergence rate proportional to the algebraic connectivity of the graph Laplacian [5]. This rate directly determines the throughput of the coordination layer and, consequently, the quality of service of the overall telecommunication stack.
Real operating environments, however, are characterized by partial failures: nodes may lose power, experience software faults, or be selectively jammed by an adversary. Albert and Barabási [6] demonstrated that networks with heterogeneous degree distributions react fundamentally differently to random failures and to targeted attacks on the highest-degree nodes (hubs). While topological robustness has been extensively studied in static networks, the specific degradation of discrete consensus convergence in mobile, spatially embedded UAV swarms under adversarial targeted attacks remains insufficiently quantified [7,8,9]. Translating this topological observation into concrete design rules for a consensus-driven coordination layer is the central engineering problem addressed in this paper.
We focus on a decentralized peer-to-peer (P2P) coordination layer in which each agent maintains and updates a scalar consensus variable—for instance, a task-cost estimate or a synchronized routing table entry—through neighbor exchanges. The primary purpose of this paper is to bridge this gap by quantitatively evaluating the fault tolerance of a discrete consensus protocol under varying connectivity regimes. Specifically, three complementary contributions are offered. First, we formalize a discrete consensus update rule with a connectivity-adaptive step size and derive its convergence in the Laplacian spectrum. Second, we define three failure models (random, sequential, targeted) that reflect distinct adversarial and stochastic regimes encountered in practice. Third, we quantify, via 1620 Monte-Carlo simulation runs, the critical failure fraction beyond which the communication graph loses connectivity and consensus can no longer be attained, and we statistically validate the resulting ordering with a Kruskal–Wallis test.
The rest of the paper is organized as follows: Section 2 formalizes the multi-agent communication network. Section 3 introduces the discrete consensus protocol and its convergence analysis. Section 4 defines the failure models and fault tolerance metrics. Section 5 describes the simulation methodology. Section 6 reports the numerical results, and Section 7 concludes the paper.
Compared with the seminal continuous-time Laplacian-flow consensus of Olfati-Saber and Murray, which assumes a time-invariant or only slowly switching topology and a constant gain, the protocol proposed here operates in discrete time and adapts its step size on-line to the instantaneous algebraic connectivity of the communication graph, so that convergence remains stable across reconfigurations triggered by node loss. In contrast to classical flocking and bio-inspired coordination schemes [10,11] that emphasize qualitative emergent behavior rather than quantitative resilience, our work delivers explicit numerical thresholds at the node level under three distinct adversarial regimes within a unified statistical framework. Unlike robustness analyses performed on static or pre-generated topologies, our agent-based simulator captures continuous spatial mobility, dynamic link formation and breakage, and on-the-fly Laplacian re-estimation—closer to the operating conditions of a real UAV mesh than the abstract graph models used in earlier works on consensus in dynamic networks [4,7,8,9]. The novelty therefore lies in coupling a connectivity-adaptive discrete consensus rule with a full-factorial Monte-Carlo characterization of across random, sequential, and targeted hub-removal failures, statistically validated via Kruskal–Wallis and Mann–Whitney post hoc testing. To the best of our knowledge, no prior study provides comparable design-oriented numerical thresholds linking degradation to consensus time collapse for mobile, spatially embedded UAV-style swarms.
2. Multi-Agent Communication Network
2.1. Agent Dynamics and Spatial Embedding
Consider a swarm of N mobile agents indexed by . Each agent occupies a position in a planar environment and evolves with a discrete time single-integrator model:
where is the velocity command and Δt is the sampling interval. The velocity is clamped to the maximum kinematic value , which reflects physical actuator limits typical of small UAV platforms.
2.2. Communication Graph and Laplacian
The communication topology is modeled as an undirected time-varying graph , E(t)), where is the set of active (non-failed) agents and an edge exists if:
with the common communication radius. Let be the adjacency matrix with entries = 1 if and 0 otherwise, and let ) be the diagonal degree matrix. The graph Laplacian is:
Because is symmetric and positive semi-definite, its eigenvalues can be ordered as . The second-smallest eigenvalue is the algebraic connectivity (Fiedler value) [5]. It is strictly positive if and only if is connected, and it grows with the robustness of the topology: the larger , the more edges or nodes must be removed in order to disconnect the graph (Figure 1).
Figure 1.
Snapshot of the communication graph for N = 20 agents placed in a 2D bounded region of side L = 20. Nodes are drawn as filled circles; edges appear when two nodes are within = 7 units; the highest-degree hubs are highlighted with red circles. The figure shows three states: (a) nominal fully connected graph; (b) graph after 20% random failures ()—still connected; (c) graph after removal of the three highest-degree hubs ()—disconnected into two components.
3. Discrete Consensus Protocol
3.1. Update Rule
Each agent maintains a scalar state —for example, its estimate of the optimal task assignment cost or a synchronized routing table value. The discrete first-order consensus protocol reads:
where denotes the neighbor set of agents in and is the consensus step size. In compact matrix notation, with ,
3.2. Convergence and Optimal Step Size
For a time-invariant Laplacian , classical spectral analysis [4,12] shows that protocol (5) converges to the average-consensus value for every initial condition if and only if the graph is connected (i.e., ) and:
The convergence rate is governed by the spectral gap. The number of iterations required to reach accuracy satisfies:
An upper bound /, with the maximum vertex degree of , is used in the implementation to guarantee stability even under topology changes. Whenever the graph reconfigures due to motion or node failures, the step size is recomputed as ). Equation (7) encodes the central trade-off: decreasing —the inevitable consequence of losing agents—directly dilates the consensus time, and → 0 marks the operational boundary at which coordination becomes impossible (Figure 2).
Figure 2.
Convergence of the discrete consensus protocol (5) for three levels of algebraic connectivity . The y-axis represents the consensus error on a logarithmic scale. The horizontal dotted line indicates the desired error threshold (denoted here as , corresponding to the accuracy tolerance in Equation (7)).
4. Failure Models and Metrics
4.1. Three Failure Models
To study the robustness of protocol (5) under partial failures we adopt three complementary models, consistent with the robustness taxonomy of Albert and Barabási [6].
Model —random independent failures. Each agent fails independently with probability , so the expected number of removals is · . At the prescribed simulation tick a subset of size k is drawn uniformly at random and its members are marked as failed. This mimics uncorrelated hardware faults such as battery depletion, GPS loss or radio transceiver breakdown.
Model —sequential staged failures. Agents are removed in batches of fixed size every ticks until the target fraction is reached. Formally, at stage the failed set grows as:
This model captures gradual degradation such as uniform battery drain or cumulative collateral damage.
Model —targeted attacks on hubs. At every attack stage the agents with the largest degree degi in are removed:
This reflects an adversary with topological knowledge, and represents the worst case from the spectral connectivity viewpoint.
4.2. Primary and Auxiliary Metrics
The primary fault tolerance metric is the algebraic connectivity of . The critical failure threshold is the largest failure fraction that still preserves connectivity:
Two operational metrics complement . The reconfiguration time is the time after a failure event required for the velocity dispersion to return below a preset threshold , capturing the transient coordination cost of topology change. The task-completion ratio is the fraction of delivery tasks served up to time ; it translates the topological and dynamical effects of failures into an application-level figure of merit useful for telecommunication service-level assessment.
5. Simulation Methodology
A custom agent-based simulator was implemented in Python 3.10 using the Mesa framework [13] for discrete-event scheduling and NetworkX [14] for graph construction and manipulation. Concretely, Mesa’s model and agent classes were extended so that every UAV encapsulates its position, scalar consensus state, neighbor list, and failure flag, and Mesa’s SimultaneousActivation scheduler advances all agents through the position update and consensus update steps within a single tick, guaranteeing synchronous evaluation of Equation (5).
At each tick the undirected communication graph was rebuilt with NetworkX: agent coordinates were inserted as node attributes, edges were generated by querying all pairs () with , and the failure operators of models , and were realized as remove_nodes_from(…) calls on the live graph object, allowing the topology to reconfigure dynamically as the swarm loses agents (Figure 3). The graph Laplacian L was assembled via networkx.laplacian_matrix and its two smallest eigenvalues, including the Fiedler value , which was computed in sparse form with scipy.sparse.linalg.eigsh, so that both the connectivity-based fault tolerance metric and the adaptive consensus step size could be recomputed on the fly and logged together with the velocity dispersion and the task-completion counter. The simulated environment is a 20 × 20 Von-Neumann grid from which 30% of the edges are randomly removed to emulate urban obstacles; the generator is re-run until the environment graph is connected. Agents operate with a communication radius = 7 grid units, a value empirically established as the smallest that maintains > 0 in the absence of failures for N = 20.
Figure 3.
Block diagram of the agent-based simulation pipeline.
A full-factorial experiment was conducted with three factors: swarm size ; failure model ; failure fraction . For each configuration 30 independent runs were performed with distinct random seeds, yielding 1620 non-baseline runs used for statistical analysis. Consensus parameters were fixed at and the maximum-degree clamp . Every simulation ticks the Laplacian spectrum; velocity dispersion and task completion counter were logged.
6. Results and Discussion
6.1. Critical Threshold Across Failure Models
Table 1 summarizes the critical fault tolerance thresholds and the associated Kruskal–Wallis H-test p-values for the three swarm sizes. For every the expected ordering < < holds.
Table 1.
Critical failure threshold (mean ± std, 30 runs) and Kruskal–Wallis p-value.
For a swarm of agents, random failures () can remove up to 47% of the nodes while preserving > 0. Sequential removal is only marginally more damaging ( = 0.44), whereas targeted attacks on the highest-degree hubs () collapse the graph after only 33% of agents are removed. The 14 percentage point gap between and confirms the Albert–Barabási prediction [6] for our moderate size networks, and provides a concrete design rule: a consensus-driven telecommunication layer that is robust to ≈50% random failures must nonetheless be considered vulnerable at the ≈30% mark if an adversary can observe the topology (Figure 4).
Figure 4.
Critical failure threshold for the three failure models and three swarm sizes.
6.2. Statistical Validation
A non-parametric Kruskal–Wallis H-test rejects the null hypothesis of equal distributions of across the three failure models for every swarm size (, see Table 1). Post hoc pairwise Mann–Whitney U-tests with Bonferroni correction further show that the – and – contrasts are highly significant (), while the – contrast does not reach significance after correction () (Figure 5). This is consistent with the fact that, in the absence of hub targeting, the underlying stochastic mechanism of removing random nodes dominates the response of .
Figure 5.
Distribution of across failure models (): Kruskal–Wallis and pairwise tests.
6.3. Convergence Time Degradation
The practical telecommunication impact of losing connectivity is mediated by the convergence time inflation predicted by Equation (7). Figure 6 shows the empirical as a function of the failure fraction for the three models. Near the critical threshold diverges, reproducing the dependence. Under , the onset of the divergence starts at ≈ 0.25, compared with ≈ 0.40 for . From a service-level viewpoint this means that the consensus-based coordination layer exhibits a soft degradation region (roughly the first half of ) in which latency grows moderately, followed by a collapse region (the second half of ) in which the coordination layer becomes practically unusable.
Figure 6.
Consensus convergence time vs. failure fraction for a swarm of N = 20 agents. The vertical dashed lines indicate the critical failure thresholds for each model (0.33 for ; 0.44 for ; 0.47 for ). The shaded area highlights the critical region where the coordination layer collapses.
6.4. Scalability
A secondary but engineering-relevant observation is that grows with N for every failure model: from 0.42 () to 0.51 () under , and from 0.28 () to 0.38 () under . Larger swarms therefore carry more topological redundancy, in agreement with the scaling behavior of random geometric graphs. For the network designer this suggests that increasing the number of coordinating nodes is an effective—if not free—means of absorbing additional failure risk without altering the consensus protocol itself.
7. Conclusions
A discrete linear consensus protocol was formalized for a P2P multi-agent communication network and its fault tolerance properties were quantitatively characterized via the algebraic connectivity of the graph Laplacian. Three failure models—random, sequential and targeted—were simulated on a full-factorial design of 1620 runs. The determined critical failure thresholds (0.42–0.51 for ; 0.38–0.48 for ; 0.28–0.38 for ) and the Kruskal–Wallis validation (p < 0.001) establish, with statistical confidence, that targeted attacks on high-degree hubs are the worst-case scenario and must drive the resilience budget of consensus-based telecommunication layers. Future work will extend the protocol to second-order consensus with bounded communication delay, integrate physical-layer error models for wireless links, and verify the findings on a hardware-in-the-loop UAV testbed.
Author Contributions
Conceptualization, A.M. and N.K.; methodology, A.M. and A.K.; software, A.M.; validation, N.U. and A.N.; formal analysis, A.M. and N.K.; writing—original draft preparation, A.M.; writing—review and editing, N.K., A.K., N.U. and A.N.; supervision, N.K. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data presented in this study are available on request from the corresponding author.
Acknowledgments
The authors thank the administration of Almaty University of Power Engineering and Telecommunications and ALT University for providing the computational resources and administrative support required for this research.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| UAV | Unmanned Aerial Vehicle |
| P2P | Peer-to-Peer |
References
- Schranz, M.; Umlauft, M.; Sende, M.; Elmenreich, W. Swarm robotic behaviors and current applications. Front. Robot. AI 2020, 7, 36. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dorri, A.; Kanhere, S.S.; Jurdak, R. Multi-agent systems: A survey of taxonomy, challenges and applications. IEEE Access 2018, 6, 28573–28593. [Google Scholar] [CrossRef] [Scilit]
- Campion, M.; Ranganathan, P.; Farokhi, S. UAV swarm communication and control architectures: A review. J. Unmanned Veh. Syst. 2019, 7, 93–106. [Google Scholar] [CrossRef] [Scilit]
- Olfati-Saber, R.; Murray, R.M. Consensus problems in networks of agents with switching topology and time-delays. IEEE Trans. Autom. Control 2004, 49, 1520–1533. [Google Scholar] [CrossRef] [Scilit]
- Fiedler, M. Algebraic connectivity of graphs. Czechoslov. Math. J. 1973, 23, 298–305. [Google Scholar] [CrossRef] [Scilit]
- Albert, R.; Jeong, H.; Barabási, A.-L. Error and attack tolerance of complex networks. Nature 2000, 406, 378–382. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhao, D.; Wen, G.; Wu, Z.G.; Lv, Y.; Zhou, J. Resilient consensus of multiagent systems under collusive attacks on communication links. IEEE Trans. Cybern. 2024, 54, 2076–2085. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, Y.; Ishii, H.; Bonnet, F.; Défago, X. Resilient consensus for multi-agent systems under adversarial spreading processes. IEEE Trans. Netw. Sci. Eng. 2022, 9, 3316–3331. [Google Scholar] [CrossRef] [Scilit]
- Zhao, D.; Lv, Y.; Yu, X.; Wen, G.; Chen, G. Resilient consensus of higher order multiagent networks: An attack isolation-based approach. IEEE Trans. Autom. Control 2022, 67, 1001–1007. [Google Scholar] [CrossRef] [Scilit]
- Olfati-Saber, R. Flocking for multi-agent dynamic systems: Algorithms and theory. IEEE Trans. Autom. Control 2006, 51, 401–420. [Google Scholar] [CrossRef] [Scilit]
- Dorigo, M.; Gambardella, L.M. Ant colony system: A cooperative learning approach to the traveling salesman problem. IEEE Trans. Evol. Comput. 1997, 1, 53–66. [Google Scholar] [CrossRef] [Scilit]
- Mesbahi, M.; Egerstedt, M. Graph Theoretic Methods in Multiagent Networks; Princeton University Press: Princeton, NJ, USA, 2010. [Google Scholar] [CrossRef] [Scilit]
- Kazil, J.; Masad, D.; Crooks, A. Utilizing Python for agent-based modeling: The Mesa framework. In Social, Cultural, and Behavioral Modeling; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2020; Volume 12141, pp. 308–317. [Google Scholar] [CrossRef] [Scilit]
- Hagberg, A.A.; Schult, D.A.; Swart, P.J. Exploring Network Structure, Dynamics, and Function using NetworkX. In Proceedings of the 7th Python in Science Conference (SciPy 2008), Pasadena, CA, USA, 28 June 2008. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





