Fault-tolerant Consensus in Anonymous Dynamic Network

Qinzi Zhang, Lewis Tseng

Abstract

This paper investigates the fundamental limits of agreement in decentralized systems characterized by anonymity, dynamic network topology, and node failures. We establish the necessary and sufficient conditions for reaching approximate consensus in these environments. By introducing a new stability metric, $(T, D)$-dynaDegree, we prove that while exact agreement is impossible, approximate agreement is achievable if nodes observe a sufficient number of distinct neighbors over a defined time window.

Introduction

In traditional distributed systems, nodes are typically assumed to have unique identifiers and operate within relatively stable network structures. However, emerging applications such as mobile robotic swarms and wireless sensor networks often operate as "anonymous dynamic networks." In these settings, nodes lack unique identities, and communication links fluctuate unpredictably due to mobility or interference.

The core challenge is reaching consensus—ensuring all functional nodes agree on a single value—despite "hybrid faults." These faults include crash failures (nodes stop functioning) and Byzantine failures (nodes send conflicting or malicious information). This paper addresses the problem where nodes are anonymous, the network is perpetually dynamic, and failures are present.

Illustration of a dynamic network where edges change between odd and even time steps, demonstrating the intermittent connectivity nodes must navigate.

System Model and Stability

To quantify network stability in the absence of fixed IDs, the authors introduce the $(T, D)$-dynaDegree property. Here, $T$ represents a time window (number of rounds), and $D$ is the minimum number of distinct neighbors a node must communicate with within that window.

Because nodes are anonymous, they rely on local port numbers to distinguish between different neighbors in a single round. This capability allows nodes to track the number of unique neighbors encountered over time, a critical component for state updates in a dynamic environment.

Proposed Algorithms

The paper introduces two primary algorithms tailored to different fault models:

  1. Dynamic Approximate Consensus (DAC): Designed for crash faults, DAC utilizes a "jumping" mechanism. If a node receives a message from a peer in a more advanced phase, it can skip ahead to that phase, accelerating convergence.
  2. Dynamic Byzantine Approximate Consensus (DBAC): This robust variant handles malicious nodes using a "trimmed mean" approach. By discarding the most extreme values received, it filters out Byzantine noise. Unlike DAC, DBAC avoids phase-jumping to prevent malicious actors from misleading honest nodes with fabricated phase indices.
Pseudocode for the consensus algorithm, detailing initialization, the main execution loop, and helper functions for state management.

Key Insights and Results

The theoretical analysis yields several critical findings:

  • Impossibility of Exact Consensus: The authors prove that exact agreement (where all nodes reach an identical bit) is impossible in anonymous dynamic networks. A "message adversary" can always manipulate communication to maintain state divergence between groups of nodes.
  • Feasibility of Approximate Consensus: While exact agreement is unattainable, nodes can reach approximate consensus, where their values converge within an arbitrarily small distance $\epsilon$.
  • Connectivity Thresholds:
    • For crash faults, approximate consensus is achievable if $n > 2f$ and the network satisfies $(T, \lfloor n/2 \rfloor)$-dynaDegree. The convergence rate is $1/2$.
  • For Byzantine faults, the requirement is $n > 5f$ with a $(T, \lfloor (n+3f)/2 \rfloor)$-dynaDegree. The convergence rate is slower ($1 - 2^{-n}$) due to the necessary caution against malicious actors.

Conclusion

This work maps the boundaries of what is computable in chaotic, anonymous environments. By leveraging local port numbering and the dynaDegree metric, the proposed algorithms provide a framework for coordination in highly mobile systems. Future research may extend these findings to multi-hop networks and scenarios where the total number of nodes $n$ is unknown.

Summary updated

BibTeX
@inproceedings{zhang2024fault,
  author = {Qinzi Zhang and Lewis Tseng},
  title = {{Fault-tolerant Consensus in Anonymous Dynamic Network}},
  booktitle = {ICDCS},
  year = {2024},
  doi = {10.1109/icdcs60910.2024.00021},
}
Figure