Introduction
Finding a maximal matching—a set of edges where no two edges share a vertex and no additional edges can be added—is a cornerstone problem in distributed computing, essential for tasks like resource allocation. While solutions exist for simpler models, this paper presents the first self-stabilizing algorithm for the more restrictive and realistic link-register model, achieving convergence in $O(n\Delta^3)$ moves.
The Challenge of the Link-Register Model
Most distributed algorithms assume a "state model" where nodes can instantly observe the states of their neighbors. In contrast, the link-register model uses communication registers: a node writes to its own register, and neighbors must explicitly read from it.
Under read/write atomicity, this introduces a "stale read" problem. A node might read a neighbor's value, but by the time it acts on that information, the neighbor may have already updated its register. This asynchrony can lead to infinite loops of "missed connections" or livelocks where nodes never settle on a stable matching.
The Handshake and Locking Mechanism
To overcome these challenges, the authors introduce a novel multi-step handshake protocol. The algorithm breaks symmetry using unique node IDs, where the node with the lower ID acts as the "proposer" (Seduction) and the higher-ID node acts as the "acceptor" (Marriage).
The core innovation is a locking mechanism using a variable $m \in \{0, 1, 2\}$. Instead of an instantaneous commitment, nodes progress through a three-step sequence. This ensures that even with outdated register values, a node will not abandon a potential marriage while its partner is still attempting to confirm it.
As shown in the figure above, the process involves several atomic read/write steps:
- Seduction: The lower-ID node $s$ proposes to $t$.
- Marriage: The higher-ID node $t$ accepts.
- Confirmation: Both nodes increment their $m$ variables ($0 \to 1 \to 2$) to "lock" the relationship.
Self-Stabilization and Adversarial Schedulers
The algorithm is designed to be self-stabilizing, meaning it can recover from any arbitrary initial state—whether caused by transient faults or malicious initialization. A robust Reset rule is included to clear inconsistent pointers or counters that might exist at startup.
Furthermore, the algorithm's correctness is proven under a distributed adversarial daemon. This is the most stringent scheduler model, which can pick any subset of enabled nodes to move at each step, attempting to prevent the system from reaching a stable state.
Results and Complexity
The algorithm is silent, meaning that once a maximal matching is achieved, no further rules are triggered, and the system consumes no additional power. The convergence time is bounded by $O(n\Delta^3)$ moves, where $n$ is the number of nodes and $\Delta$ is the maximum degree of the graph. While this complexity is higher than in simpler models, it represents a significant milestone as the first polynomial-time solution for the link-register model with read/write atomicity.
Conclusion
By decomposing logical steps into atomic read/write operations and employing a multi-stage locking mechanism, this work provides a robust solution for maximal matching in asynchronous distributed systems. Future research may focus on tightening the $O(n\Delta^3)$ bound or exploring randomized approaches for anonymous networks without unique identifiers.
Summary updated