Agreement Tasks in Fault-Prone Synchronous Networks of Arbitrary Structure
Abstract
Consensus is arguably the most studied problem in distributed computing as a whole, and particularly in the distributed message-passing setting. In this latter framework, research on consensus has considered various hypotheses regarding the failure types, the memory constraints, the algorithmic performances (e.g., early stopping and obliviousness), etc. Surprisingly, almost all of this work assumes that messages are passed in a complete network, i.e., each process has a direct link to every other process. A noticeable exception is the recent work of Castañeda et al. (Inf. Comput. 2023) who designed a generic oblivious algorithm for consensus running in rounds in every graph , when up to nodes can crash by irrevocably stopping, where is smaller than the node-connectivity of . Here, denotes a graph parameter called the radius of whenever up to nodes can crash. For , this parameter coincides with , the standard radius of a graph, and, for , the running time of the algorithm exactly matches the known round-complexity of consensus in the clique .
Our main result is a proof that rounds are necessary for oblivious algorithms solving consensus in when up to nodes can crash, thus validating a conjecture of Castañeda et al., and demonstrating that their consensus algorithm is optimal for any graph . We also extend the result of Castañeda et al. to two different settings: First, to the case where the number of failures is not necessarily smaller than the connectivity of the considered graph; Second, to the -set agreement problem for which agreement is not restricted to be on a single value as in consensus, but on up to different values.
Keywords and phrases:
Consensus, set-agreement, fault tolerance, crash failuresFunding:
Pierre Fraigniaud: Additional support from ANR projects DUCAT (ANR-20-CE48-0006), ENEDISC, and QuDATA (ANR-18-CE47-0010).Copyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Distributed algorithmsAcknowledgements:
The authors thank Stephan Felber, Mikaël Rabie, Hugo Rincon Galeana, and Ulrich Schmid for fruitful discussions on this paper.Editors:
Olaf Beyersdorff, Michał Pilipczuk, Elaine Pimentel, and Nguyễn Kim ThắngSeries and Publisher:

1 Introduction
For , the standard synchronous -resilient message-passing model assumes nodes labeled from 1 to , and connected as a clique, i.e., as a complete graph . Computation proceeds as a sequence of synchronous rounds, during which every node can send a message to each other node, receive the message sent by each other node, and perform some local computation. Up to nodes may crash during the execution of an algorithm. When a node crashes at some round , it stops functioning after round and never recovers. Moreover, some (possibly all) of the messages sent by at round may be lost, that is, when crashes, messages sent by at round may reach some neighbors, while other neighbors of may not hear from at round . This model has been extensively studied in the literature (see, e.g., [2, 18, 23, 27]). In particular, it is known that consensus can be solved in rounds in the -resilient model [13], and this is optimal for every as far as the worst-case complexity is concerned [1, 13].
It is only very recently that the synchronous -resilient message-passing model has been extended to the setting in which the complete communication graph is replaced by an arbitrary communication graph (see [4, 8]). Specifically, the graph is fixed, but arbitrary, and the concern is to design algorithms for . It was proved in [4] that if the number of failures is smaller than the connectivity of the graph, i.e., if , then consensus in can be solved in rounds in the -resilient model, where generalizes the standard notion of graph radius to the scenarios in which up to nodes may fail by crashing. For , is the standard radius of the graph . For the complete graph , the upper bound from [4] coincides with the seminal upper bound for consensus in .
To get an intuition of , let us consider the case of the -node cycle , for . We have , so we assume . The radius of is , i.e., . For , let be the node that crashes. We have , which is the distance between the two neighbors of in if crashes “cleanly” at the first round, preventing them to communicate directly through . However, we actually have . Indeed, may crash at the first round, yet be capable to send a message to one of its neighbors, and this message needs additional rounds to reach the other neighbor of . That is, computing requires to take into account not only which nodes crash, but when and how they are crashing – by “how”, it is meant that, for a node crashing at some round , to which neighbors they still succeed to communicate at this round, and to which they fail to communicate.
Importantly, the algorithm of [4] is oblivious, that is, the output of a node after rounds is solely based on the set of pairs (node-identifier, input-value) collected by that node during rounds (and not, e.g., from whom, when, and how many times it received each of these pairs). There are many reasons why to restrict the study to oblivious algorithms. Among them, oblivious algorithms are simple by design, which is desirable for their potential implementation. Moreover, they are known to be efficient, as illustrated by the case of the complete graphs in which optimal solutions can be obtained thanks to oblivious algorithms. As far as this paper is concerned (and maybe also as far as [4] is concerned) obliviousness is highly desirable for the design of generic solutions, that is “meta-algorithms” that apply to each and every graph . In such algorithms, every node forwards pairs (node-identifier, input-value) during a prescribed number of rounds (e.g., during rounds in the generic algorithm from [4]), and then decides on an output value according to a simple function of the set of input values received during these rounds, without having to track of the sequence of rounds at which each pair was received, and from which neighbor(s). Last but not least, intermediate nodes do not need to send complex information about the history of each piece of information transmitted during the execution, hence reducing the bandwidth requirement of the algorithms.
1.1 Objective
The question of the optimality of the consensus algorithm performing in rounds in any fixed graph for every number of failures was however left open in [4]. It was conjectured in [4] that, for every graph , and for every , no oblivious algorithms can solve consensus in in less than rounds, but this was only proved for the specific case of symmetric (a.k.a. vertex-transitive) graphs111A graph is vertex-transitive if, for every two nodes , there exists an automorphism of (i.e., a permutation preserving the edges and the non-edges of ) such that .. Although the class of symmetric graphs includes, e.g., the complete graphs , the cycles , and the -dimensional hypercubes , a lower bound for every graph in this class does not come entirely as a surprise since all nodes of a symmetric graph have the same eccentricity (i.e., maximum distance to any other node, generalized to include crash failures). The fact that all nodes have the same eccentricity implies that they can merely be ordered according to their identifiers for selecting the output value from the received pairs (node-identifier, input-value). Instead, if the graph is not symmetric, a node that received a pair (node-identifier, input-value) after rounds does not necessarily know whether all the nodes have received this pair, and thus the choice of the output value from the set of received pairs is more subtle. Not only the design of an upper bound is made harder, but it also makes the determination of a strong lower bound more involved. The main question addressed in this paper is therefore the following: For every graph , and every non-negative integer , is there an oblivious algorithm solving consensus in in less than rounds under the -resilient model (i.e., when up to nodes may fail by crashing)?
Moreover, the study in [4] let aside the design of a generic (oblivious) algorithm for solving the standard important relaxation of consensus, namely -set agreement. (Recall that, in -set agreement, the set of all values outputted by the nodes must be of cardinality at most .) In fact, several tools developed in [4] do not extend to -set agreement. Our next step is therefore to question the ability to design a generic algorithm for solving -set agreement in arbitrary graphs , for every .
Last but not least, the study in [4] assumed that the number of failures is smaller that the connectivity of the graph at hand. We question what can be said about the case where the number of failures may be larger, that is when , for both consensus and -set agreement?
1.2 Our Results
We extend the investigation of the -resilient model in arbitrary graphs, in various complementary directions.
Lower Bounds for Consensus.
We affirmatively prove the conjecture from [4] that their consensus algorithm is indeed optimal (among oblivious algorithms) for every graph , and not only for symmetric graphs. That is, we show that, for every graph , no oblivious algorithms can solve consensus in in less than rounds under the -resilient model. This result is achieved by revisiting the notion of information flow graph defined in [4] for fixing some inaccuracies in the original definition. We present a more robust (an accurate) definition of information flow graph, and we provide a characterization of the number of rounds required to solve consensus as a function of some structural property of that graph. With this characterization at hand, we establish the optimality of the algorithm in [4] by showing that rounds are necessary for the information flow graph to satisfy the desired property required for consensus solvability.
Beyond the Connectivity Threshold.
Inspired by [8], we extend the study of consensus in the -resilient model in arbitrary graphs to the case where the number of crash failures is arbitrary, i.e., not necessarily lower than the connectivity of the considered graph . We show that the generic algorithm from [4] can be extended to this framework, at the mere cost of relaxing consensus to impose agreement to hold within each connected component of the graph resulting from removing the faulty nodes from . Under this somehow unavoidable relaxation, we present extension of the consensus algorithm from [4] to -resilient models for , and express the round complexities of these algorithms in term of a non-trivial extension of the radius notion to disconnected graphs.
Extension to Set Agreement.
Finally, we extend the study of consensus under the -resilient model in arbitrary graphs to -set agreement, for an arbitrary fixed . We show that, for every integer , and every graph , there exists an oblivious -set agreement algorithm performing in rounds, where denotes a parameter extending to the case where nodes broadcast instead of just one, with the objective that each (non faulty) node receives a pair (node-identifier, input-value) from at least one of these nodes. This extension holds for every . For the -set agreement tasks must however be relaxed similarly to consensus, so that agreement hold within each connected component of the graph separately. Due to lack of space, our results on -set agreement are not included in this extended abstract, but they can be found in the full version of the paper (see [16]).
1.3 Related Work
Distributed computing in synchronous networks has a long tradition, including the early studies of the message complexity and round complexity of various tasks such as leader election, spanning tree constructions, BFS and DFS traversals, etc. (see, e.g., [2, 23]). The topic has then flourished in the 2000s under the umbrella of the so-called LOCAL and CONGEST models [19, 25], with the study of numerous graph problems such as coloring, maximal independent set, minimum-weight spanning tree, etc.
Distributed computing in synchronous fault-prone networks has also a long history, but it remained for a long time mostly confined to the special case of the message-passing model in the complete networks. That is, nodes subject to crash or malicious (a.k.a. Byzantine) failures are connected as a complete graph in which every pair of nodes has a private reliable link allowing them to exchange messages. In this setting, a significant amount of effort has been dedicated to narrowing down the complexity of solving agreement tasks such as consensus and, more generally, -set agreement for . This includes in particular the issue of early stopping algorithms whose performances depend on the actual number of failures experienced during the execution of the algorithm, and not on the upper bound on the number of failures. We refer to a sequence of surveys on the matter [5, 26, 28].
In the Byzantine case, general communication graphs were studied early on [12], and are still being investigated [20]. In the stop-fault case, on the other hand, it is only recently that this approach has been extended to arbitrary networks, beyond the case of the complete graph [4, 8]. Our paper is carrying on the preliminary investigations in [4], by extending them from consensus to -set agreement, establishing various lower bounds including one demonstrating the optimality of the consensus algorithm in [4], and extending the analysis to the case where the number of crashes may exceed the connectivity threshold. The original work in [4] has been extended to solving consensus when links are subject to crash failures [8]. Several consensus algorithms were proposed in [8], but their round complexities are expressed as a function of the so-called stretch, defined as the number of connected components of the graph after removing the faulty links, plus the sum of the diameters of the connected components. Instead, the round-complexity of the algorithm in [4] is expressed in term of the radius, which is a more refined measure. Indeed, we show that the upper bound in [4] is tight (no multiplicative constants, nor even additive constants). The consensus algorithms in [8] however extend to the case where failures may disconnect the graph, and the task is then referred to as “disconnected agreement”. Again, the complexities of the algorithms are expressed in term of the stretch, while we shall express the complexity of our local consensus algorithm as a function of the more refined radius parameter. We actually conjecture that our local consensus algorithm is optimal (with no multiplicative nor additive constants) for all , no matter whether or . On the other hand, some consensus algorithms proposed in [8] are early stopping, but the one with round-complexity close to the stretch of the actual failure pattern is not oblivious, and it uses messages with size significantly larger than the size of the messages in oblivious algorithms.
The case of omission failures has also attracted a lot of attention. In this context, nodes are reliable but messages may be lost. This is modeled as a sequence of directed graphs, where captures the connections that are functioning at round . The oblivious message adversary model allows an adversary to choose each communication graph from a set and independently of its choices for the other graphs. The nodes know the set a priori, but not the actual graph picked by the adversary at each round). We refer to [9, 24, 29] for recent advances in this domain, including solving consensus. We also refer to the heard-of model [6, 7], which bears similarities with the oblivious message adversary model.
The case of transient failures is addressed in the context of self-stabilizing algorithms [14]. As opposed to most distributed algorithms for networks, which start from a given specific initial configuration, self-stabilizing algorithms must be able to start from any initial configuration (which may result from a corruption of the internal variables of the nodes). Under the synchronous scheduler, a self-stabilizing algorithm performs in a sequence of synchronous rounds, just that it must be able to cope with an arbitrary initial state of the system.
Last but not least, we underline the recent trend related to modeling communication between nodes (under the full-information paradigm) as a topological deformation of the input simplicial complex, and the computation (i.e., the decision of each node regarding its output value) as a simplicial map from the deformed input complex to the output simplicial complex [18]. The KNOW-ALL model [3] has been designed as a first attempt to understand the LOCAL model through the lens of algebraic topology. In particular, it was shown that -set agreement in a graph known to all the nodes a priori requires rounds, where is the smallest integer such that there exists a -node dominating set in the -th transitive closure of . A follow-up work [17] minimized the involved simplicial complexes, and extended the framework to handle graph problems such as finding a proper coloring.
The study of anonymous networks, in which nodes may not be provided with distinct identifiers, and of asynchronous communication and computing, is beyond the scope of this paper, and we merely refer the reader to [10, 11, 15, 21, 22] for recent advances in these domains, as far as computing in (non-necessarily complete) networks is concerned.
2 Model and definitions
In this section, we recall the definition of the (synchronous) -resilient model for networks, and the graph theoretical notions related to this model, all taken from [4], as well as the consensus algorithm presented there.
2.1 The Model
Let be an -node undirected graph, which is also connected and simple (i.e., no multiple edges, nor self-loops). Each node is a computing entity modeled as an infinite state machine. The nodes of have distinct identifiers, which are positive integers. For the sake of simplifying the notations, we shall not distinguish a node from its identifier; for instance, by “the smallest node” we mean “the node with the smallest identifier”. Initially, every node knows the graph , that is, it knows the identifiers of all nodes, and how the nodes are connected. The uncertainty is thus not related to the initial structure of the connections, but is only due to the presence of potential failures, in addition to the fact that, of course, every node is not a priori aware of the inputs of the other nodes.
Computation in proceeds as a sequence of synchronous rounds. All nodes start simultaneously, at round 1. At each round, each node sends a message to each of its neighbors in , receives the messages sent by its neighbors, and performs some local computation. Each node may however fail by crashing – when a node crashes, it stops functioning and never recover. However, if a node crashes at round , it may still send a message to a non-empty subset of its set of neighbors during round . For every positive integer , the -resilient model assumes that at most nodes may crash. A failure pattern is defined as a set
where is the set of faulty nodes in , with , and, for each node , we use to specify the round at which crashes, and to specify the non-empty set of neighbors to which fails to send messages at round .
A node such that is said to crash cleanly in (at round ). All the nodes in are the correct nodes in . The failure pattern in which no nodes fail is denoted by . The set of all failure patterns in which at most nodes fail is denoted by . In any execution of an algorithm in graph under the -resilient model, the nodes know and , but they do not know in advance to which failure pattern they may be exposed. This absence of knowledge is the source of uncertainty in the -resilient model.
2.2 Eccentricity, connectivity, and radius
The eccentricity of a node in with respect to a failure pattern , denoted by , is defined as the minimum number of rounds required for broadcasting a message from to all correct nodes in . The broadcast protocol is by flooding, i.e., when a node receives a message at round , it forwards it to all its neighbors at round . That is is the maximum, taken over all correct nodes , of the length of a shortest causal path from to , where a causal path with respect to a failure pattern from a node to a node is a sequence of nodes with , , and, for every , , has not crashed in during rounds , and if crashes in at round , i.e., if for some non-empty set , then .
Note that might be infinite, in case cannot broadcast to all correct nodes in under . A typical example is when crashes cleanly at the first round in , before sending any message to any of its neighbors. A more elaborate failure pattern in which fails to broadcast is where crashes at round 1, and sends the message only to its neighbor , which crashes cleanly at round 2.
The node-connectivity of , denoted , is the smallest integer such that removing nodes disconnects the graph (or reduces it to a single node whenever is the complete graph ). The following was established in [4].
Proposition 1 (Lemma 1 in [4]).
For every graph , every , every node , and every failure pattern in the -resilient model, if and only if there exists at least one correct node that becomes aware of the message broadcast from .
Note that, in particular, thanks to proposition 1, if is correct then . Let
denote the set of failure patterns in the -resilient model in which eventually manages to broadcast to all correct nodes. The -resilient radius is a key parameter defined in [4]:
Definition 2.
The -resilient radius of is
2.3 Consensus, oblivious algorithms, and the information flow graph
This section defines consensus, and survey the results in [4] regarding the round-complexity of oblivious consensus algorithms, which uses the notion of information flow graph. Note that this latter notion will be revisited, later in our paper.
2.3.1 Oblivious consensus algorithms
In the consensus problem, every node receives an input value from a set of cardinality at least 2, and every correct node must decide on an output value such that (1) for every pair of correct nodes, and (2) for every correct node , there exists (not necessarily correct) such that .
Assuming that every node starts broadcasting the pair at round 1, we let be the view of node after rounds in failure pattern , that is, the set of pairs received by after rounds. An algorithm solving consensus is said to be oblivious if the output of every correct node depends only on the set of values received by during the execution of the algorithm. That is, in an -round oblivious algorithm executed under failure pattern , every node outputs a value based solely on the set of pairs (and not, say, on when each value was first received, or from which neighbor it was received). The following result was proved in [4].
Proposition 3 (Theorem 2 in [4]).
For every graph and every , consensus in can be solved by an oblivious algorithm running in rounds under the -resilient model.
That is, consensus can be solved in the minimal time it takes for a fixed node to broadcast in all failure patterns (in which it manages to broadcast). Note that might be much larger than . For instance, the radius of the clique is : consider a path in which , and, for every , crashes at round while sending only to . On the other hand, because, for every failure pattern , there is a (correct) node that broadcasts to all correct nodes in a single round. Similarly, the cycle has radius , whereas is roughly .
The consensus algorithm in [4] works as follows. It selects an ordered set of nodes according to the following rules. Node is a node with smallest eccentricity, i.e., a node that broadcasts the fastest among all nodes. However, there are failure patterns for which fails to broadcast (e.g., if crashes cleanly at round 1). Node is a node that broadcasts the fastest for all failure patterns in which fails to broadcast, that is node is a node that broadcasts the fastest for all failure patterns in . Similarly, node is a node that broadcasts the fastest for all failure patterns in which and fail to broadcast, that is node is a node that broadcasts the fastest for all failure patterns in . And so on, for every , is a node that broadcasts the fastest for all failure patterns in
A key property of the sequence defined as above is that, for all , the worst-case broadcast time of over all failure patterns in
is at most the worst-case broadcast time of over all failure patterns in
As a consequence, for every , the worst-case broadcast time of over all failure patterns in is at most rounds.
The algorithm in [4] merely consists of letting all nodes broadcast the pairs by flooding during rounds. Every node then selects as output the input of the node with smallest index such that the pair was received by node . It was shown that this choice guarantees agreement.
2.4 Information flow graph
The lower bound from [4] on the number of rounds for achieving consensus in vertex-transitive graphs used the core notion of information flow digraph. The (directed) graph captures the state of mutual knowledge of the nodes at the end of round , assuming every node broadcasts the pair by flooding throughout the graph , starting at round 1.
-
The vertices of are all pairs for and in which does not crash in during the first rounds. Note that a same vertex of can represent both and if has the same view after rounds in and .
-
There is an arc from to whenever , where is the input of .
The connected components of play an important role, where by connected component we actually refer to the vertices of a connected component of the undirected graph resulting from by ignoring the directions of the arcs. A node of the communication graph is said to dominate a connected component of if, for every vertex with there is a vertex with an arc from to in . The following result characterizes the round-complexity of consensus in .
Proposition 4 (Theorem 3 in [4]).
For every graph and every , consensus in can be solved by an oblivious algorithm running in rounds under the -resilient model if and only if every connected component of has a dominating node in .
It was proved in [4] that, if is a symmetric graph then no node in dominates . Property 4 immediately implies that consensus in cannot be solved by an oblivious algorithm running in less than rounds under the -resilient model. Their proof, however, holds only for symmetric graphs, and does not extend to general graphs.
Remark.
The definition of the information flow digraph in [4] actually suffers from inconsistencies, and Theorem 3 there is formally incorrect. Roughly, it overlooks the possibility of deciding on an input of a process that already stopped. The “spirit” of the definition and the theorem is nevertheless plausible, and the specific consequences mentioned there are correct. For establishing our lower bound, we had to fix the inaccuracy in the definition of the information flow digraph, and the bugs in the proof of Theorem 3 of [4]. Concretely, we introduce a new information flow graph instead of the digraph of [4], and establish a correct version of Theorem 3 using that definition (cf. Theorem 9). See Section 4 for more details.
3 Detailed description of our results
In this section, we survey our results on consensus in detail, and, as already mentioned before, we refer to the full version [16] for our results on -set agreement.
3.1 Lower bounds for consensus
We show that the consensus algorithm in [4] is optimal for every graph , and not only for symmetric graphs. Specifically, we establish the following in Section 4.
Theorem 5.
For every graph and every , consensus in cannot be solved in less than rounds by an oblivious algorithm in the -resilient model.
This result was conjectured in [4], but only proved to be true for symmetric graphs. The class of symmetric graphs includes cliques, cycles and hypercubes, but remains limited. Moreover, in symmetric graphs, for every two nodes and ,
which implies that a naive algorithm for consensus in which every node outputs the input received from the node with smallest identifier performs in rounds. The fact that is a tight upper bound for consensus is thus not surprising for the family of symmetric graphs because, essentially, the choice of the nodes defined in Section 2.3.1 does not matter.
Instead, for an arbitrary graph , two different nodes may have different eccentricities, which may differ by a multiplicative factor 2 at least. As a consequence, the choice of the source nodes whose input can be adopted as output by the other nodes matters, as well as the ordering of these nodes (in case a node receives the input of two different source nodes).
3.1.1 A naive lower bound
A naive lower bound for the round-complexity of consensus is the maximum, over all failure patterns, of the time it takes some node to broadcast in the given pattern, obtained by switching the min and max operator in the definition of , i.e.,
(1) |
Indeed, for every failure pattern , even binary consensus under failure pattern cannot be solved in less than rounds. The proof of this claim is by a standard indistinguishability argument. Specifically, let us assume, for the purpose of contradiction, that there is an algorithm ALG solving consensus in under failure pattern in rounds. Let us order the nodes of as arbitrarily. Let us consider the input configuration in which all nodes have input 0. For every , we gradually change the input configuration as follows (see Figure 1).
Since , there exists a node that does not receive the input of in ALG. Let us then switch the input of from 0 to 1, and denote by the resulting input configuration. Note that is the input configuration in which all nodes have input 1. Note also that, for every , node does not distinguish from , and therefore ALG must output the same at in both input configurations. Since, for every , all nodes must output the same value for input configuration , we get that the consensus value returned by ALG for is the same as for , which contradicts the validity condition.
It was conjectured in [4] that, in the -resilient model, consensus needs longer time than , and cannot be solved by an oblivious algorithm in less than rounds, i.e., the time it takes a fixed node to broadcast. As said before, this conjecture was however proved only for vertex-transitive graphs.
3.1.2 Sketch of proof of Theorem 5
To show that the consensus algorithm in [4] is optimal, i.e., to establish Theorem 5, we use the characterization of Proposition 4. In fact, we first fix the aforementioned bugs in [4] by defining the information flow graph, and then establish Proposition 4, a correct version of their theorem, using this new definition. With this new definition and new proposition at hand, we show that for every graph and every , there exists a connected component of that has no dominating node in . To achieve this fact, we show that for every node there exists a failure pattern such that
with some additional desirable properties. Then, we define a notion of successor of any failure pattern satisfying these desirable properties, which satisfies two key features.
-
First, a failure pattern and its successor are in the same connected component of . Here we abuse terminology since the vertices of the information flow graph are not failure patterns, but pairs (node, view). What we formally mean is that the two subgraphs of induced by all the views in the two failures patterns are both in the same connected component of .
-
Second, for every node , there exists a sequence of failure patterns such that , (the failure pattern in which no failures occur), and for every , is the successor of .
It follows from these two features that, for every node , and are in the same connected component of , namely the connected component of containing . Let be this connected component. For every node , since , we have that does not dominate . Therefore, no nodes dominate , and our new Proposition 4 thus implies that no oblivious algorithm can solve consensus in less than rounds.
3.2 Beyond the connectivity threshold
The algorithm from [4] for consensus in the -resilient model is under the assumption that in graph , that is, the number of failing nodes is (strictly) smaller than the connectivity of the graph. This assumption is motivated by the mere observation that a set of nodes that, e.g., fails cleanly at the very first round, might disconnect the graph , preventing tasks such as consensus to be solved. We show that, by slightly relaxing consensus and set-agreement, one can still consider the case where , in a meaningful way, in the sense that if the failing nodes do not disconnect the graph, then the standard consensus and set agreement tasks are solved.
3.2.1 Local consensus
For any given failure pattern , let be the set of connected components of resulting by removing from all nodes that fail in . If , then the nodes in a connected component of may never hear from the nodes in a connected component , and vice versa, regardless of the number of rounds. To study consensus and -set agreement for , we merely relax the agreement condition: Agreement must hold component-wise, i.e., for each connected component separately, in the spirit of [8].
In other words, under , for any connected components and of all nodes in must agree (on a single value for consensus, or on at most values for -set agreement), and all nodes in must agree, but no conditions are imposed the two sets of agreement values corresponding to and . In particular, for consensus, the nodes in may agree on , but the nodes in may agree on .
The validity condition remains unchanged, that is, every output value must be the input value of some node. Note however that a node can return an output value which was the input value of a node from a different connected component.
We refer to these variants of consensus and -set agreement as local, because agreement must hold “locally”, i.e., inside each connected component.
Remark.
When , consensus and local consensus are the same tasks, and, for every , -set agreement and local -set agreement are the same tasks. More generally, for every graph , and for every failure pattern , if the nodes failing in do not disconnect , and an algorithm solving local consensus (resp., local -set agreement) does solve standard consensus (resp., standard -set agreement).
3.2.2 Consensus beyond the connectivity threshold
We design a local consensus algorithm for an arbitrary graph in the -resilient model, for every given , which does not need to be less than the connectivity of . This algorithm satisfied the following property (see proof in the full version [16]).
Theorem 6.
For every connected graph , and every , local consensus in can be solved by an oblivious algorithm running in rounds under the -resilient model.
In the statement above, denotes an extension of the notion of -resilient radius to the case where , which coincide to the aforementioned notion of radius whenever . For the purpose of extending the notion of radius beyond the connectivity threshold, we revisit the notion of eccentricity entirely. Indeed, given a failure pattern , a node may succeed to broadcast in some connected components but not in all of them. The control of the way information flow through the graph with respect to the connected components is complex, as the connected components for one failure pattern are typically different from the connected components for another failure pattern.
Despite these difficulties, we are able to design and analyse an oblivious (and hence generic) local consensus algorithm. Given a graph , our algorithm performs in rounds, where the notion of eccentricity has been redefined and extended for allowing an arbitrary number of failures. Again, for , the extended notion of eccentricity coincides with the notion of eccentricity defined for consensus in [4], which itself coincide with the graph-theoretical notions of eccentricity for . We also note that our extended notion of radius, for all , provides a fine grain analysis of our local consensus algorithm, more refined than the notion of stretch defined in [8].
4 Lower Bound for Consensus
This section is entirely devoted to the proof of Theorem 5, that is, we show that, for every graph and every , consensus in cannot be solved in less than rounds by an oblivious algorithm in the -resilient model. We first establish a consistent notion of information flow graph, which can then be used to characterize consensus solvability, and we fix the bugs in the proof of Theorem 3 in [4] (see Proposition 4) resulting from inconsistencies in the original definition of the information flow digraph. Using our new characterization, we establish our lower bound.
4.1 Information flow graph revisited
The main issue with the notion of information flow digraph as defined in [4] comes from the fact that this directed graph includes only vertices where has not crashed in during rounds . The main issue is related to the concept of domination, as defined in [4]. A vertex dominates a connected component of if the set dominates . This is too restrictive, as the correct nodes may agree on the input value of a node that has already crashed. It follows that, for some failure pattern , the vertex may not be present in (and therefore cannot dominate any other vertices of ), whereas the nodes that are correct in may agree on the input value of . The characterization of Theorem 3 in [4] is therefore incorrect, even if the “spirit” of the characterization remains conceptually valid, as we shall show in this section.
To provide an illustration of the problems resulting from the original definition of information flow digraph in [4], let us clarify that this definition was aiming for capturing any subset of failure patterns (for instance the subset of failure patterns in which nodes crash cleanly), in which case only the failure patterns are considered. Let us then consider the scenario displayed on Fig. 2. The graph is a 6-node path plus a universal node . The set contains a single failure pattern in which crashes cleanly at the second round.
Fig. 2 displays and as defined in [4] (the direction of the arcs are omitted, each edge corresponding to two symmetric arcs). A vertex is present in the former but not in the latter, and thus, as opposed to what one might expect since nodes acquire more and more information as time passes, is not a denser super graph of nor it includes more vertices (with larger views), as some vertices present in may disappear in . In fact, node dominates , but it does not dominate . Therefore, when analyzing with the set of failure patterns using the characterization theorem in [4], consensus should be solvable in 1 round but not in 2 rounds!
We propose below a more robust notion of information flow graph (which is not directed anymore). The reader familiar with the algebraic topology interpretation of distributed computing [18] will recognize the mere 1-skeleton of the protocol complex after rounds. For the purpose of fixing the issues in [4], we introduce for an arbitrary set of failure patterns .
Definition 7.
The information flow graph of a communication graph after rounds for a set , , of failure patterns is the graph defined as follows.
-
The vertices of are all pairs for and , where is correct in .
-
There is an edge between and in whenever there exists such that and
Remark.
Unlike the definition of [4], this new notion of information-flow graph is not limit limited to .
Note that a same vertex of can represent both and if has the same view after rounds in and . Note also that, for every , the set
is a clique in . The connected components of play an important role, w.r.t. the following concept of domination.
Definition 8.
A node of the communication graph is said to dominate a connected component of if, for every and every ,
Note that only correct nodes need to be dominated, as
implies that is correct at round . On the other hand, any node may be dominating. The following result characterizes the round-complexity of consensus in by fixing the aforementioned inaccuracies in the definition of the information flow graph in [4], with impact on the proof of their characterization theorem (Theorem 3 in [4]).
Theorem 9.
For every graph , every , and every set of failure patterns , consensus in can be solved by an oblivious algorithm running in rounds under the -resilient model with failure patterns in if and only if every connected component of has a dominating node in .
Proof.
Let us first show that if every connected component of has a dominating node in then consensus in can be solved by an oblivious algorithm running in rounds. For every connected component of , let be a node of that dominates . The algorithm proceeds as follows. Every node broadcasts by flooding during rounds. After rounds, every correct node considers its view, denoted by . A crucial point is that may not be sufficient for to determine what is the actual failure pattern experienced during the execution, merely because one may have
for two different failure patterns in . However, is sufficient to determine the connected component of to which belongs. Node outputs the input of node .
To establish correctness of this algorithm, observe first that belongs to the view of node . To see why, let , and let us consider the execution of the algorithm under . Let be the connected component of . Since dominates , the mere definition of domination implies that . As a consequence, the algorithm is well defined. To show agreement, let be another correct node in . By definition of the information flow graph, there is an edge between and , and thus these two vertices belong to the same connected component , and both output the same value .
For the other direction, we show the contrapositive. That is, we let be a connected component of that is not dominated, and we aim at showing that there are no oblivious consensus algorithms in running in rounds. Let us assume, for the purpose of contradiction, that there exists an oblivious consensus algorithm ALG in running in rounds.
Claim 10.
Let and be two vertices of , where and need not be different, nor do and . For the same input configuration, node outputs the same value in ALG under as node under .
To see why this claim holds, observe that, since and belong to the same connected component , there is a sequence
of vertices of such that
and, for every , there is an edge between the two vertices and in . Note that, for every , node is correct in since belongs to the information flow graph. For every , the presence of an edge between and implies that there exists such that
and
As a consequence, since ALG is a consensus algorithm, ALG outputs the same value at under as it outputs at under , which is the value outputted by ALG under . Since this holds for every , we get that, in particular, outputs the same value in as in , as claimed.
For establishing a contradiction, let us enumerate the nodes of as in arbitrary order. Since is not dominated, for every node , , there exists a vertex of such that , where is correct in . For , let us denote by the input configuration in which the nodes have input 0, and all the other nodes have input 1. Thus, in particular, is the configuration in which all nodes have input 0, and is the configuration in which all nodes have input 1. Since, for every , , node does not distinguish from under , and thus ALG must output the same at for both configurations.
Since consensus imposes that all (correct) nodes output the same value, this means that, for every , all nodes output the same in ALG for and under . By Claim 10, all nodes output the same for under as they do for under . It follows that all nodes output the same for under as for under . This is a contradiction as all nodes must output 0 for , whereas all nodes must output 1 for .
Notation.
For a fixed upper bound on the number of failures, for every graph , and for every integer , we denote by the information flow graph for the set of all failure patterns in the -resilient model, that is,
4.2 Proof of Theorem 5
To prove Theorem 5, we define the notion of successor of a failure pattern. Given , we say that a node is crashing last in if there exists a triple (i.e., crashes in ), and, for every , .
Definition 11.
Let , let , and assume that is crashing last in . A successor of with respect to is a failure pattern
where and are defined as follows (see Fig. 3):
-
1.
If contains only faulty nodes in , then , and for some arbitrary correct neighbor of .
-
2.
If contains exactly one correct node in , then , and .
-
3.
If contains at least two correct nodes in , then , and for some arbitrary correct node .
Note that the correct node in Definition 11 is well defined as the number of failures satisfies , where is the minimum degree of the nodes in . Intuitively, is identical to , except that fails at round , or it still fails at round but sends its message to one more correct neighbor before crashing.
Note also that a failure pattern may have different successors, which depends on the choice of the node that crashes last, and on the choice of the correct neighbor of in the first and third cases of Definition 11. A correct neighbor of in Definition 11 is called a witness of the pair .
Still using the notations of Definition 11, let us set in case 1, and in cases 2 and 3. At the end of round , there is at most one correct node with different views in and . The only correct node may have different views in and at the end of round is the witness of the pair . Before applying the notion of successor to derive our lower bound, let us observe the following.
Lemma 12.
For every node , there exists a failure pattern such that no node fails at round in , and .
Proof.
By definition of the radius, for every , there exists such that . The failure pattern is identical to , except that, for every node that crashes at round 1 in , crashes cleanly at round in . We have because every node that crashes later in than in does not send any message to their neighbors after round 1 which may contain information received from . Thus .
The premises of the following lemma are justified by Lemma 12.
Lemma 13.
Let such that (1) at most one node crashes at round , and (2) if there exists a node that crashes at round in , then (i.e., broadcasts despite the fact that it crashes at round 1). For every successor of , the following holds:
-
at most one node crashes at round in ;
-
if there is a node that crashes at round in , then crashes at round in as well;
-
there exists a correct node with the same view in and at the end of round .
Proof.
Let be a successor of , such that the entry of is replaced by the entry in . Let be a witness for the pair with respect to . Using the notations from Definition 11, let in Case 1, and in Cases 2 and 3.
After rounds, the only correct node that may have different views in and is . Since is a node crashing last in , we get that, after round , needs the same number of rounds in and for broadcasting to all correct nodes. Indeed, all nodes that have not crashed in nor in up to round included satisfy: (1) they are correct nodes in both and , (2) they have the same view in both and , and (3) the subgraph of induced by the correct nodes in is identical to the subgraph of induced by the correct nodes in .
Let . We consider two cases, depending on whether broadcasts or not.
Let us first consider the case where, assuming that starts broadcasting at round , cannot broadcast to all correct nodes during rounds under the failure patterns and . That is, under , some node does not receive during rounds . As a consequence, this node does not detect any difference between and . It follows that has the same view in and at the end of rounds.
Consider now the case where, assuming that starts broadcasting at round , does succeed to broadcast to all correct nodes during rounds under the failure patterns and . Since no node fails after round in both and , a causal path from to a node in rounds is also a causal path from to in rounds . At the end of round , every correct node can thus send to its view at the end of round . Since no node fails at round , every node does send its input to some correct neighbor during round . Therefore, and . Since , we get that, at the end of round , there exists a correct node that heard from , i.e., such that . At the end of round , this node will send to , so . Similarly, . As a consequence, , and has a same view in both failure patterns after rounds, as claimed.
Furthermore, at most one node crashes at round in , and , as desired.
Using the characterization of Theorem 9 of consensus solvability based on the information-flow graph, it is sufficient to prove the following result for establishing our lower bound.
Lemma 14.
The information-flow graph has a connected component that is not dominated by any node of .
Proof.
Let . For every node , we denote by a failure pattern in such that contains no node that fails at round , and . The existence of is guaranteed by Lemma 12. Borrowing the notation from [4], for every failure pattern , and every , let
where by is active in at round , we mean that has not crashed in during rounds . It was proved in [4] (see Lemma 4 in there) that, for every failure pattern , and every , the subgraph of induced by the vertices of is connected.
We now show that, for every , and are contained in the same connected component of . Roughly, we shall construct a sequence of intermediate failure patterns from to such that, for every two consecutive failure patterns and in the sequence, there is a correct node with the same view in and . Note that the existence of this node implies that the subgraph of induced by , and the subgraph of induced by are included in the same connected component of .
Let us order the crashing nodes in in a decreasing order of the rounds at which they crash where ties are broken arbitrarily, and let be the resulting sequence. We have and, for every , . Let us construct a sequence of failure patterns, where , and . This sequence is itself the concatenation of sub-sequences for such that and, for every , with . For every sub-sequence , , and for every , we set
Moreover, the first failure pattern in the sequence is obtained from by removing the crashing nodes , i.e., these nodes are correct in . The last failure pattern of the sequence is when the node that crashes last in fails at round .
Claim 15.
For any two consecutive failure patterns and in , there exists a correct node with the same view in both patterns after rounds, that is,
To see why the claim holds, let us first assume that and belong to a same sub-sequence . In this case, the claim directly follows from Lemma 13. If and do not belong to a same sub-sequence , then is the last element of a sub-sequence , and is the first element of sub-sequence , then the claim follows from the fact that the sets of nodes crashing in and during round are the same, for every . This completes the proof of Claim 15.
From Claim 15, for any two consecutive failure patterns and in , and belong to the same connected component of . To wrap up, we have shown that, for every , there exists a connected component of containing both and . Recall that is a failure pattern in satisfying that it contains no node different from that fails at round , and . At the end of round , no node dominates the component that contains because, for every node , cannot dominates .
5 Conclusion
In this paper, we have completed the picture for consensus in the -resilient model for arbitrary graphs. That is, we have proved that the consensus algorithm in [4] is optimal, i.e., for every graph and , consensus can be solved by an oblivious algorithm performing in rounds under the -resilient model, and no oblivious algorithms can solve consensus in in less than rounds under the -resilient model. Moreover, we have extended the study of consensus beyond the connectivity threshold. Specifically, we defined the local consensus task, a generalization of consensus. We designed and analyzed a generic algorithm for this task, which we believe to be optimal among oblivious algorithms. The technical difficulty of establishing optimality of our algorithm for the local variant of consensus yields from the fact that we miss an analog of our characterization theorem (cf. Theorem 9 in Section 4) for local consensus. Finally, we have generalized the algorithm in [4] for consensus, as well as our algorithm for local consensus, to -set agreement.
Our results open a vast domain for further investigations. In particular, what could be said for sets of failure patterns distinct from ? The case of clean failures, for which there are no known generic consensus algorithms applying to arbitrary graphs, is particularly intriguing. Another intriguing and potentially challenging area for further research is exploring scenarios where no upper bounds on the number of failing nodes are assumed, by concentrating solely on the set of failure patterns that do not result in disconnecting the graph. The main difficulties is that basic results such as Lemma 1 in [4] (cf. Proposition 1) do not hold anymore in this framework. Indeed, some ill behaviors that do not occur when the number of failures is bounded from above by the connectivity of the graph, or when the problems are considered in each connected component separately, pop up when the number of failures is arbitrarily large yet preserving connectivity. Finally, the design of early-stopping algorithms in the -resilient model for arbitrary graphs is also highly desirable. The early-stopping algorithms in [8] are very promising, but their analysis must be refined to a grain finer than the stretches of the failure patterns, by focusing on, e.g., eccentricities and radii.
References
- [1] Marcos Kawazoe Aguilera and Sam Toueg. A simple bivalency proof that t-resilient consensus requires t+ 1 rounds. Information Processing Letters, 71(3-4):155–158, 1999. doi:10.1016/S0020-0190(99)00100-3.
- [2] Hagit Attiya and Jennifer Welch. Distributed computing: fundamentals, simulations, and advanced topics, volume 19. John Wiley & Sons, 2004.
- [3] Armando Castañeda, Pierre Fraigniaud, Ami Paz, Sergio Rajsbaum, Matthieu Roy, and Corentin Travers. A topological perspective on distributed network algorithms. Theoretical Computer Science, 849:121–137, 2021. doi:10.1016/J.TCS.2020.10.012.
- [4] Armando Castañeda, Pierre Fraigniaud, Ami Paz, Sergio Rajsbaum, Matthieu Roy, and Corentin Travers. Synchronous t-resilient consensus in arbitrary graphs. Inf. Comput., 292:105035, 2023. doi:10.1016/J.IC.2023.105035.
- [5] Armando Castañeda, Yoram Moses, Michel Raynal, and Matthieu Roy. Early decision and stopping in synchronous consensus: A predicate-based guided tour. In 5th International Conference on Networked Systems – (NETYS), volume 10299 of LNCS, pages 206–221, 2017. doi:10.1007/978-3-319-59647-1_16.
- [6] Bernadette Charron-Bost and Stephan Merz. Formal verification of a consensus algorithm in the heard-of model. Int. J. Softw. Informatics, 3(2-3):273–303, 2009. URL: http://www.ijsi.org/ch/reader/view_abstract.aspx?file_no=273&flag=1.
- [7] Bernadette Charron-Bost and André Schiper. The heard-of model: computing in distributed systems with benign faults. Distributed Comput., 22(1):49–71, 2009. doi:10.1007/S00446-009-0084-6.
- [8] Bogdan S. Chlebus, Dariusz R. Kowalski, Jan Olkowski, and Jedrzej Olkowski. Disconnected agreement in networks prone to link failures. In 25th International Symposium on Stabilization, Safety, and Security of Distributed Systems (SSS), volume 14310 of LNCS, pages 207–222. Springer, 2023. doi:10.1007/978-3-031-44274-2_16.
- [9] Étienne Coulouma and Emmanuel Godard. A characterization of dynamic networks where consensus is solvable. In International Colloquium on Structural Information and Communication Complexity, pages 24–35. Springer, 2013. doi:10.1007/978-3-319-03578-9_3.
- [10] Carole Delporte-Gallet, Hugues Fauconnier, Sergio Rajsbaum, and Nayuta Yanagisawa. A characterization of t-resilient colorless task anonymous solvability. In 25th International Colloquium on Structural Information and Communication Complexity (SIROCCO), volume 11085 of LNCS, pages 178–192. Springer, 2018. doi:10.1007/978-3-030-01325-7_18.
- [11] Carole Delporte-Gallet, Hugues Fauconnier, and Andreas Tielmann. Fault-tolerant consensus in unknown and anonymous networks. In 29th IEEE International Conference on Distributed Computing Systems (ICDCS), pages 368–375, 2009. doi:10.1109/ICDCS.2009.36.
- [12] Danny Dolev. The byzantine generals strike again. J. Algorithms, 3(1):14–30, 1982. doi:10.1016/0196-6774(82)90004-9.
- [13] Danny Dolev and H. Raymond Strong. Authenticated algorithms for byzantine agreement. SIAM Journal on Computing, 12(4):656–666, 1983. doi:10.1137/0212045.
- [14] Shlomi Dolev. Self-Stabilization. MIT Press, 2000.
- [15] Pierre Fraigniaud, Patrick Lambein-Monette, and Mikaël Rabie. Fault tolerant coloring of the asynchronous cycle. In 36th International Symposium on Distributed Computing (DISC), volume 246 of LIPIcs, pages 23:1–23:22. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPICS.DISC.2022.23.
- [16] Pierre Fraigniaud, Minh Hang Nguyen, and Ami Paz. Agreement tasks in fault-prone synchronous networks of arbitrary structure. CoRR arXiv, abs/2410.21538, 2024. doi:10.48550/arXiv.2410.21538.
- [17] Pierre Fraigniaud and Ami Paz. The topology of local computing in networks. In 47th International Colloquium on Automata, Languages, and Programming (ICALP), volume 168 of LIPIcs, pages 128:1–128:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPICS.ICALP.2020.128.
- [18] Maurice Herlihy, Dmitry N. Kozlov, and Sergio Rajsbaum. Distributed Computing Through Combinatorial Topology. Morgan Kaufmann, 2013.
- [19] Juho Hirvonen and Jukka Suomela. Distributed Algorithms. Aalto University, Finland, 2023.
- [20] Muhammad Samir Khan, Syed Shalan Naqvi, and Nitin H. Vaidya. Exact byzantine consensus on undirected graphs under local broadcast model. In PODC, pages 327–336. ACM, 2019. doi:10.1145/3293611.3331619.
- [21] Giuseppe Antonio Di Luna and Giovanni Viglietta. Computing in anonymous dynamic networks is linear. In 63rd IEEE Annual Symposium on Foundations of Computer Science (FOCS), pages 1122–1133, 2022. doi:10.1109/FOCS54457.2022.00108.
- [22] Giuseppe Antonio Di Luna and Giovanni Viglietta. Optimal computation in leaderless and multi-leader disconnected anonymous dynamic networks. In 37th International Symposium on Distributed Computing (DISC), volume 281 of LIPIcs, pages 18:1–18:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPICS.DISC.2023.18.
- [23] Nancy A. Lynch. Distributed Algorithms. Morgan Kaufmann, 1996.
- [24] Thomas Nowak, Ulrich Schmid, and Kyrill Winkler. Topological characterization of consensus under general message adversaries. In Proceedings of the 2019 ACM symposium on principles of distributed computing, pages 218–227, 2019. doi:10.1145/3293611.3331624.
- [25] David Peleg. Distributed Computing: A Locality-sensitive Approach. SIAM, 2000.
- [26] Michel Raynal. Consensus in synchronous systems: A concise guided tour. In 9th Pacific Rim International Symposium on Dependable Computing (PRDC), pages 221–228. IEEE, 2002. doi:10.1109/PRDC.2002.1185641.
- [27] Michel Raynal. Fault-tolerant Agreement in Synchronous Message-passing Systems. Synthesis Lectures on Distributed Computing Theory. Morgan & Claypool Publishers, 2010. doi:10.2200/S00294ED1V01Y201009DCT003.
- [28] Michel Raynal and Corentin Travers. Synchronous set agreement: A concise guided tour. In 12th IEEE Pacific Rim International Symposium on Dependable Computing (PRDC), pages 267–274, 2006.
- [29] Kyrill Winkler, Ami Paz, Hugo Rincon Galeana, Stefan Schmid, and Ulrich Schmid. The time complexity of consensus under oblivious message adversaries. Algorithmica, pages 1–32, 2024.