Synchronization in Dynamic Networks
Bernadette Charron-Bost, Shlomo Moran

TL;DR
This paper develops algorithms for synchronizing nodes in dynamic, asynchronous networks, analyzing how connectivity affects the speed and message size of achieving simultaneous or eventual synchronization.
Contribution
It introduces synchronization algorithms for dynamic networks with unknown sizes and start times, linking their efficiency to network connectivity levels.
Findings
High connectivity enables constant-time, constant-message synchronization.
Weaker connectivity results in linear-time, long-message synchronization.
Randomization and size knowledge can improve synchronization algorithms.
Abstract
In this article, we study algorithms for dynamic networks with asynchronous start, i.e., each node may start running the algorithm in a different round. Inactive nodes transmit only heartbeats, which contain no information but can be detected by active nodes. We make no assumption on the way the nodes are awakened, except that for each node u there is a time in which it is awakened and starts to run the algorithm. The identities of the nodes are not mutually known, and the network size is unknown as well. We present synchronization algorithms, which guarantee that after a finite number of rounds, all nodes hold the same round number, which is incremented by one each round thereafter. We study the time complexity and message size required for synchronization, and specifically for simultaneous synchronization, in which all nodes synchronize their round numbers at exactly the same…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDistributed systems and fault tolerance · Interconnection Networks and Systems · Petri Nets in System Modeling
Synchronization in Dynamic Networks
Bernadette Charron-Bost1
Shlomo Moran2
(1 École polytechnique, 91128 Palaiseau, France
2 Department of Computer Science, Technion, Haifa, Israel 32000
)
Abstract
In this article, we study algorithms for dynamic networks with asynchronous start, i.e., each node may start running the algorithm in a different round. Inactive nodes transmit only heartbeats, which contain no information but can be detected by active nodes. We make no assumption on the way the nodes are awakened, except that for each node there is a time in which it is awakened and starts to run the algorithm. The identities of the nodes are not mutually known, and the network size is unknown as well.
We present synchronization algorithms, which guarantee that after a finite number of rounds, all nodes hold the same round number, which is incremented by one each round thereafter. We study the time complexity and message size required for synchronization, and specifically for simultaneous synchronization, in which all nodes synchronize their round numbers at exactly the same round.
We show that there is a strong relation between the complexity of simultaneous synchronization and the connectivity of the dynamic graphs: With high connectivity which guarantees that messages can be broadcasted in a constant number of rounds, simultaneous synchronization by all nodes can be obtained by a deterministic algorithm within a constant number of rounds, and with messages of constant size. With a weaker connectivity, which only guarantees that the broadcast time is proportional to the network size, our algorithms still achieve simultaneous synchronization, but within linear time and long messages.
We also discuss how information on the network size and randomization may improve synchronization algorithms, and show related impossibility results.
1 Introduction
We study distributed algorithms for dynamic networks over an arbitrary finite set of nodes that operate in synchronized rounds, communicate by broadcast messages, and in which the inter-node connectivity may change each round of communication. The node identities, and even the cardinality of the set , are not mutually known.
In previous works it was typically assumed that algorithms in such dynamic networks are started simultaneously by all nodes, and consequently that all nodes share the true round number (which is incremented by one each round). In this paper we relax this assumption, and consider a model in which round numbers are unknown to the nodes, and further that each node may start running the algorithm in a different round. This relaxation is natural in environments with no central control which monitors the nodes activities. To make our results more general, we do not make any assumption on the way a node may become active and start running the algorithm, except that eventually all nodes are active.
In this model, we study the basic question of synchronizing the network, in the sense that we wish to ensure that eventually all nodes share the same round number. More specifically, we will focus on the following two levels of synchronization: (a) implementing local round counters that are eventually all equal, and (b) synchronizing the nodes themselves – and not only their round counters – i.e., detecting the synchronization of the local round counters simultaneously.
Simultaneous synchronization (b) can be useful in various situations such as real-time processing (where processors have to carry out some external actions simultaneously), distributed initiation (to force nodes to begin some computation in unison), or distributed termination (to guarantee that nodes complete their computation at the same round). It actually coincides with the Firing Squad problem [2, 6, 7]: a node fires when it detects synchronization of the round counters. In the context of clock synchronization, our results imply conditions under which a simultaneous phase synchronization can be achieved in dynamic networks, given that the local clocks of the nodes have the same frequency (see eg [15]).
We investigate these two levels of synchronization in the context of dynamic networks: the communication topology may continuously and unpredictably change from one round to the next. In particular, we do not assume any stability of the links. We examine various connectivity properties that hold, not necessary round by round, but globally over finite periods of consecutive rounds [9].
Our synchronisation algorithms demonstrate a strong relation between the possibility and cost of synchronizing a network, and the time required to broadcast a message from each node in the network: perhaps a bit surprisingly, when broadcasts from all nodes are possible within a constant number of rounds, a simultaneous synchronization can be achieved by a simple algorithm within a constant number of rounds, using messages of constant size. When broadcast time is linear in the network size , we still achieve simultaneous synchronization in time which is proportional to broadcast time (i.e., linear time), but with messages of size . When broadcast from each node is possible but there is no bound on the number of required rounds, simultaneous synchronization is not possible, but the simple synchronization of round counters is still achievable within finite time.
We then study models in which some bound on the network size is known. We present there few impossibility results and algorithms, including a randomized algorithm that assumes an oblivious adversary and performs simultaneous synchronization in linear time with high probability, but with messages which are considerably shorter than the ones used by our deterministic algorithm for the same task.
Related work. Synchronization problems in distributed systems have been extensively studied, but most of works assumed a fixed topology [16] or a complete graph and at most faulty nodes [11], i.e., a fixed core of at least nodes.
Our work is closely related to the article by Kuhn et al. [10] on distributed computation in dynamic networks: some of our results are based on the generalization to asynchronous starts of their approach for counting the size of the network. In turn, our algorithms provide solutions to distributed computations with asynchronous starts. In [17] a different model of networks with asynchronous start is studied, in which inactive nodes do not submit any signal, and hence, unlike in our model, their existence cannot be detected by active node - a property which is essential for our results.
2 The Model
We consider a networked system with a fixed set of nodes. Nodes have unique identifiers and the set of the identifiers is denoted by . The identities of the nodes are not mutually known, and the network size is unknown as well.
Each node is initially passive: it is part of the network, but sends only heartbeats – that we call null messages – and does not change its state. Upon the receipt of a special signal, it becomes active, sets up its local variables (with its initial state), and starts executing its code.
Execution proceeds in synchronized rounds: in a round ), each node, be it active or passive, attempts to send messages to all nodes, receives messages from some nodes, and finally goes to a new state and proceeds to round . The round number is used for a reference, but is unknown to the nodes. Synchronized rounds are communication closed in the sense that no node receives messages in round that are sent in a round different from .
Communications that occur at round are modeled by a directed graph that may change from round to round in dynamic networks [3]. We assume a self-loop at each node in all the graphs since any node can communicate with itself instantaneously.
In each execution, every node is assumed to receive a unique start signal at the beginning of some round . Each execution of the entire system is thus determined by the list of rounds at which nodes become active, by the collection of initial states, and by the sequence of directed graphs , that we call a dynamic graph.
The way start signals are generated is left arbitrary: they could be sent by an external oracle (environment), or they could be generated endogenously as in the case of diffusive computations initiated by a subset of nodes. Similarly, the sequence of directed graphs can be decided ahead of time or, endogenously as in influence systems [5].
2.1 Paths and broken paths in a round interval
We now fix some notation and introduce some terminology that will be used throughout this paper. First, let us fix an execution of an algorithm with the list of rounds at which nodes become active and the dynamic communication graph .
If is a local variable of node , then denotes the value of at the beginning of round . Thus is undefined for . We let denote the directed graph of edges that transmit non-null messages at round : if and only if it is an edge of and is active at round . We denote the sets of ’s incoming neighbors (in-neighbors for short) in the directed graphs and by and , respectively.
We recall that the product of two directed graphs and , denoted , is the directed graph with the set of nodes and with an edge if there exists such that and . For , we let , and by convention, . Similarly, .
Let and denote the sets of ’s in-neighbors in and in , respectively. A directed edge of corresponds to a non-empty set of dynamic paths of the form , where and is an edge of for each .
We will say that the dynamic path is broken if one of the edges of carries a null message, i.e., for some . For brevity, we will use the terminology of * path* and * broken path* in the round interval .
2.2 A hierarchy of synchronization problems
Let be an algorithm with an integer variable for each node , which are aimed at simulating synchronous round counters.
Synchronization:
The algorithm achieves synchronization if in each execution of with the start signals , from some round onward, the counters are incremented by 1 in every round and are all equal, i.e., for every ,
- 1.
2. 2.
.
In the following each node is equipped with an additional boolean variable initialized to at round .
Synchronization detection:
The algorithm achieves synchronization detection if it achieves synchronization, and in addition it guarantees that each node eventually detects that the network is synchronized, i.e.,
- 3.
2. 4.
.
Simultaneous synchronization detection:
The algorithm achieves simultaneous synchronization detection if all nodes detect synchronization simultaneously, i.e.,
- 5.
.
Note that the latter condition of simultaneity actually corresponds to the classical Firing Squad problem [6, 2, 7] (i.e., all nodes can fire when the variables are set to ).
2.3 Completeness and connectivity of dynamic graphs
In this paper we consider the following connectivity conditions in dynamic graphs.
Definition 1**.**
Let be a positive integer. We say that the dynamic graph is -complete if for every , the graph is complete.
Informally, -completeness of a dynamic graph means that a message initiated by any node in any round can be broadcasted to all other nodes within rounds.
We next define dynamic graphs which enable broadcasts in linear time. For that, we first introduce the concept of in-connectivity for directed graphs.
Definition 2**.**
Let be a directed graph with at least two nodes and let be a positive integer. We say that is in-connected if for any non-null subset , the following holds:
[TABLE]
where denotes the set of in-neighbors of in , and .
Note that is in-connected iff it is complete and that it is 1 in-connected iff it is strongly connected.
One can define in an analogue way the out-connectivity of a directed graph. The following shows that these definitions are equivalent.
Proposition 3**.**
Let be a directed graph. For each positive integer it holds that is in-connected iff it is out-connected
Proof.
We will prove that if is in-connected then it is also out-connected. The proof of the other direction is essentially identical.
Assume for contradiction that is in-connected but not out-connected. Then there is a proper subset of s.t. , and .
Let , and let . Since and , is not empty. By definition of , there is no edge from a node in to a node in , meaning that . Hence . Since contains nodes, this contradicts the assumption that is in-connected. ∎
Definition 4**.**
Let be two positive integers. We say that the dynamic graph is in-connected if for every , the graph is in-connected.
The in-connectivity implies that a message initiated by any node in any round can be broadcasted to all other nodes within rounds (for , this is implied by a basic inequality on the length of message chains – e.g., Lemma 3.2 in [10] – and the generalization for arbitrary and is straightforward).
Finally, we present our weakest connectivity assumption which can be seen as -completeness: a message initiated by a node in round can be broadcasted to all other nodes, but the time required for this broadcasting is unbounded.
Definition 5**.**
A dynamic graph is said to be eventually strongly connected if for every , there exists such that the graph is strongly connected.
In the following we will present algorithms which achieve synchronization in the above models. In the first two models, simultaneous synchronization detection is achieved within constant and linear broadcast time, respectively, but with substantially different messages sizes. We will start with the last, weakest model.
3 Synchronization with Unbounded Broadcast Time
In this section, we show how the nodes in any dynamic graph that is eventually strongly connected (and hence guarantees broadcasting in finite but unbounded number of rounds) can eventually synchronize despite asynchronous starts. The synchronization algorithm (Algorithm 1) is simple and does not use identifiers: nodes may be assumed to be anonymous and to have computation and storage capabilities that do not grow with the network size [8].
First let us introduce one notation for the pseudo-codes of all our algorithms: we use to denote the multiset of non-null messages received by in the current round. Thus at round is the multiset of messages sent to by the nodes in . If non-null messages are vectors of same size, then denotes the multiset of the -th entries of the messages in .
Theorem 6**.**
Algorithm 1 achieves synchronization in any dynamic graph that is eventually strongly connected.
Proof.
For any round , we let
[TABLE]
Because of self-loops, we have . Moreover, if has an outgoing edge in the directed graph , then . Eventual connectivity of the dynamic graph ensures that from some round onward, we have , which implies the theorem. ∎
We now state two useful lemmas about the way the local round counters ’s evolve in dynamic graphs.
Lemma 7**.**
Assume that and . Then is defined and:
If there exists a broken path ending at in the round interval , then . 2. 2.
Otherwise, for every it holds that is defined and .
Proof.
Let be the assumed broken path, and let , be the last edge in which carries a null message (). Then is active at round, and by line 4 in Algorithm 1, . By easy induction, for , it holds that . Substituting , we obtain that . 2. 2.
If there is no such broken path, then for each path as above, no edge in carries a null message, i.e., node is active at round for each .
By line 6 in Algorithm 1 and a straightforward induction, for , it holds that . Substituting , we obtain that .
∎
Lemma 8**.**
For every node and at every round , we have . Moreover, if and contains a node such that , then .
Proof.
By the definition of , for each node we have , and an easy induction on shows that .
If contains a node such that , then there is a path in the round interval . Since all nodes are active on round onward, only non-null messages are sent and all the paths in the round interval are non broken. The opposite inequality now follows from Lemma 7.1 and r_{v}\big{(}s_{\max}\big{)}=0. ∎
4 Simultaneous Synchronization Detection with Constant Time Broadcasting
We now show that the synchronization of the round counters can be detected in any -complete dynamic graph. Synchronization detection can be achieved simultaneously by all the nodes in time using only bits per message.
Theorem 9**.**
Algorithm 2 achieves Simultaneous Synchronization in any execution on a -complete dynamic graph. Specifically, all nodes detect the synchronization of the counters exactly rounds after all nodes have become active.
Proof.
First, observe that by the first claim in Lemma 8, the condition in line 9, namely , eventually holds at each node . Moreover, may increase by at most 1 in every round, and thus hence there exists at least one round at which is equal to .
Let be the first round at which some node sets its variable to . Then and
[TABLE]
Note also that , and hence .
By -completeness, . Since , Lemma 7.1 implies that there is no broken path ending at node in the interval . Hence, and .
In particular, contains the latest woken-up nodes. Hence, by Lemma 8, and for every node , . Since by (1) above , we get that for all . By the definition of , we also have that for and for all . Thus all nodes set their local counters to at round for the first time. ∎
Let the synchronization time be the number of rounds from the time the last node is waked up till (simultaneous) synchronization is achieved. Then the synchronization time of any execution of Algorithm 2 is in , and it uses messages of size .
5 Simultaneous Synchronization Detection with Linear Time Broadcasting
We now present Algorithm 3 for the simultaneous detection of the counters in dynamic graphs that are not -complete, but still enjoy good connectivity, namely in-connectivity, which as mentioned earlier enables broadcasting in time which is linear in the number of nodes. As opposed to the previous algorithm, Algorithm 3 requires unique node identifiers and long messages. Indeed, each node maintains a variable that contains the identifiers of all the active nodes of which has heard of since it became active, and broadcasts in each round.
The correctness proof of the algorithm relies on the following inequality, which can be seen as a generalization of a basic inequality established for global round numbers (e.g., Lemma 3.2 of [10]) to local round counters .
Lemma 10**.**
In each execution of Algorithm 3 in a in-connected dynamic graph, for each node and each round , it holds that
[TABLE]
Proof.
For , we have and the proof is immediate.
Suppose now that , and let and two nonnegative integers such that with . By induction, we construct a sequence of sets of nodes as follows:
. 2. 2.
Suppose that are defined and . We let H_{i+1}=G\big{(}t-(i+1)T:t-iT-1\big{)}. We distinguish three cases.
- (a)
contains no edge such that and . Then the construction stops. 2. (b)
contains an edge such that and , and that corresponds to a broken path in the round interval . Then the construction stops. 3. (c)
Otherwise, we let .
Let denote the last set in the sequence.
A straightforward induction shows that for each node there is a path in the round interval which is not broken.
Using the connectivity of G, an easy induction shows that the cardinality of each set is at least , except for the case when the construction is terminated by (a) above, in which case may be smaller than .
Similarly, by lines (3) and (10) of the algorithm and by the conditions (b) and (c) above, an easy induction shows that contains every set for , and in particular . Hence if the construction is terminated by (b), then the cardinality of is at least .
We now distinguish the following three cases:
Construction terminated by (a):
By the in-connectivity of the dynamic graph, this implies that . It follows that and Lemma 10 trivially follows.
Construction terminated by (b):
We first observe that the assumed broken path in the round interval \big{[}t-(k+1)T,t-kT-1\big{]} can be extended to a broken path in the interval \big{[}t-(k+1)T,t\big{]}. This implies by Lemma 7.1 that or equivalently that . Thus we get
[TABLE]
Construction terminated by :
Thus we get . As an immediate consequence of Lemma 7.1 and 7.2, we have . With , it follows that , and
[TABLE]
which also gives Lemma 10 in this last case.
∎
Theorem 11**.**
In any in-connected dynamic graph, all nodes in Algorithm 3 achieve simultaneous synchronization detection. Synchronization is detected in less than rounds after all nodes have become active.
Proof.
First, observe that by the first claim in Lemma 8 and the fact that the cardinality of each set is at most , the condition in line 11 eventually holds at each node . Moreover, we easily check that at each round , it holds that
[TABLE]
Let be the first round at which the condition in line 11 holds at some node, and let denote one node such that
[TABLE]
From Lemma 10, we deduce that . In particular, contains the latest woken-up nodes. Let denote one such node, ie . By (3), there is a non broken path in some round interval with . It follows that . Thereby and . This implies, by Lemma 8, that
[TABLE]
Using Lemma 10=10 again we get that for all , . Therefore the inequality (4) holds for all nodes in round , and by the definition of this is the first round in which this inequality holds for all nodes.
∎
Considering that and are constants, the synchronization time of Algorithm 3 is , and it uses messages of size .
A close examination of the proof of Theorem 11, shows that each node actually computes the set , and so its cardinality. In other words, Algorithm 3 solves the problem of counting the network size despite asynchronous starts in any in-connected dynamic graph, and in particular in any continuously strongly connected dynamic graph.
This should be compared with the impossibility result established by Wattenhofer [17], which shows that if inactive nodes do not transmit any signal, then counting is impossible with asynchronous start. In other words, in the latter network model passive nodes are not considered as part of the network: the set of nodes in the network is thus time-varying while we assume a fixed set of nodes.
6 Synchronization with Bounds on Network Size
In this section, we show that knowledge of bounds on the network size can sometimes improve our synchronization algorithms.
6.1 Simultaneous Synchronization Detection with linear broadcast time and short messages
We now show that knowledge on network size can be used for reducing the message size required for linear-time simultaneous synchronization in in-connected dynamic networks. For the sake of simplicity, we assume , i.e., dynamic graphs are continuously strongly connected, but all the results can be obviously extended to the general case of in-connectivity.
First, observe that any connected dynamic graph with nodes is -complete. Thus one immediate spinoff of Theorem 9 is the following corollary, which provides a solution to the simultaneous synchronization detection problem in strongly connected dynamic graphs when an upper bound on the network size is known by all nodes.
Corollary 12**.**
If nodes have an upper bound of the network size, simultaneous synchronization detection can be achieved in any continuously strongly connected dynamic graph in rounds after all nodes have become active using only bits per message.
When is significantly larger than the network size , this solution to simultaneous synchronization detection may use much more than rounds. However, Lemma 10 enables us to extend the randomized algorithm for approximate counting presented in [10, 14] to the case of asynchronous starts, by substituting the local round counters for the round numbers. As we shall show below, this yields a randomized algorithm which has only a loose bound on the network size , sends short messages, and with high probability enables all nodes to achieve simultaneous synchronization detection within rounds. For this algorithm, it is assumed that the dynamic graph, and the wakeup times , are managed by an oblivious adversary, which has no access to the outcomes of the coin tosses made by the algorithm.
The algorithm, denoted , depends on the two parameters and where is an upper bound on the network size and is any real number in . It works as follows: upon becoming active, each node generates independent random numbers , where the distribution of each is exponential with rate 1. At each round, any active node first broadcasts the smallest value of the ’s it has heard of for each index , and then computes from the minimum values it received so far an estimation of the cardinality of the set of nodes it heard of. It detects the synchronization of the round counters when its round counter is sufficiently larger than .
The analysis of the algorithm relies on the following lemma in [12] which is is an application of the Cramér-Chernoff method (see for instance [1], sections 2.2 and 2.4).
Lemma 13**.**
Let be a finite set of -tuples of independent exponential variables all with rate 1: , and let .
For any , we have
[TABLE]
It follows that for a sufficiently large value of , the value of at the end of round provides with high probability a good approximation of the number of active nodes that has heard of so far. Then by Lemma 10, it follows that with high probability, if then all nodes are active and node has heard of all. As for Algorithm 3, we may conclude that with high probability, all the nodes detect synchronization at the same round and make no false detection.
We fix the precision parameter of the randomized approximate counting algorithm in [10] to , and choose to guarantee a final probability of at least for successful executions (cf. below). Node detects synchronization when (see Algorithm 4).
One key point of the randomized approximate counting algorithm in [10] lies in the fact that the algorithm still works when the random variables are initialized with rounded and range-restricted approximations of the initial random numbers of the above scheme. More precisely, if we round down each to the next smaller integer power of , then the probability that is a good approximation of the number of nodes have heard of (inequality (10) below) still holds. By the definition of the exponential distribution, it is not hard to see that the random variables are all within the range with high probability, namely
[TABLE]
The two above transformations of rounding and range-restricting can then be combined and yield a collection of random variables denoted . The correctness proof of the original algorithm with the exponential random variables is still valid when substituting for except an additional probability of at most of unsuccessful executions in which the range (6) is violated. In addition, the number of distinct variables in that range is , hence each such variable can be represented using bits.
The reader is referred to [14] for more details on the above scheme developed for the model in which all nodes start at round 1 and hold the true round numbers. Below, we only present the points in the correctness proof of that are specific to the round counters .
Theorem 14**.**
In any execution of Algorithm on a dynamic graph that is continuously strongly connected with at most nodes, with probability at least all nodes detect the synchronization of the counters simultaneously in less than rounds after all nodes have become active. The algorithm uses messages of size .
Proof.
We fix any real number . For any node and at each round , let denote the number of nodes that has heard of at the end of round .111Formally, has heard of at the end of round if for some , there is a path where and both and are active in round .
For a continuously strongly connected graph, Lemma 10 then reads:
[TABLE]
Let be the first round at which some round counter in the network is set to (the true network size). Using (7), we deduce that all nodes are active at round and that every node has heard of all at the end of round , i.e., and . Then the same argument as in the proof of Theorem 11 shows that all nodes have synchronized at the end of round , namely
[TABLE]
In particular, we have .
Since , every node computes the same estimate of at the end of round in its variable and keeps this value for at all later rounds:
[TABLE]
It follows that if the condition at line 15 holds at some node in round , then it holds at all nodes in every round .
By Lemma 13, for every node and every round , , we have
[TABLE]
Using (7) and the inequality , we get that at each round , , the following implication holds:
[TABLE]
Now observe that each node makes a true update to at line 14 of the algorithm at most times (when the set of nodes it heard of strictly increases). This implies, by the union bound, that the probability that node does not detect synchronization by round is at least . Using the union bound again and the upper bound , we obtain that the probability that no node detects synchronization by round when using the random variables in the algorithm is thus at least .
Let denote the first round at which a node detects synchronization, i.e., the condition at line 15 holds for the first time at round . The above argument shows that the probability that is at least .
Inequality (10) at round shows that with probability at least , it holds that
[TABLE]
which implies that . Moreover equations (8) and (9) for write:
[TABLE]
It follows that the condition at line 15 holds at round , or equivalently , with probability at least .
In conclusion, with probability at least , it holds that
[TABLE]
As explained above, using the approximated variables instead of results in an additional probability of at most of unsuccessful executions. This shows that with probability at least , all the nodes correctly and simultaneously detect synchronization of their round counters by round .
∎
The terminating variant of in which nodes stop executing their code after they have detected synchronization (line 16) thus achieves simultaneous synchronization detection with high probability: running time is in and messages are of size .
6.2 Synchronization detection with unbounded broadcast time
Theorem 6 demonstrates that nodes can eventually synchronize in any dynamic graph that is eventually strongly connected. In this section we show that this synchronization can be detected only if nodes know the exact network size .
We first show that synchronization cannot be detected in such dynamic graphs even if it is given that the network size is either or , for some fixed integer which is known to the algorithm.
Theorem 15**.**
Synchronization of the counters cannot be detected under the sole assumption of eventual connectivity. This result holds even if it is given that the network size is either or , for some (fixed) .
Sketch of proof.
For the sake of contradiction, suppose that there is an algorithm which detects synchronization in every execution on an eventually connected dynamic graph with or nodes.
Let be a set of cardinality , let be a node in , and let . Then by our assumption, achieves synchronization detection in the execution over the dynamic graph in which each is , the complete directed graph over , and all nodes in are active from the first round. Hence, there is some such that every node in has detected synchronization by round .
Now consider an execution over a dynamic graph in which for where denotes the directed graph over with the same edges as , and , the complete directed graph over , for . Assume further that in , for each , and . Then since nodes in cannot distinguish between and during the first rounds, they all incorrectly detect synchronization by round in , i.e., before became active. The proof is completed by noting that is eventually strongly connected over . ∎
Interestingly, the latter impossibility result does not hold anymore when the exact size of the network is known. Indeed, thanks to its knowledge of , each node can detect that all nodes are active. By Lemma 8, its round counter is then minimal amongst all the local round counters, in which case is considered as ready to synchronize. Then can determine when nodes in the network are all ready, that is to say all round counters are minimal, and thus are equal.
For that, each node maintains two sets of node identifiers, namely which is the set of active nodes has heard of so far, and which is the set of nodes that knows to be ready to synchronize. The corresponding pseudo-code is given in Algorithm 5.
We now show that synchronization cannot be detected simultaneously by all nodes of an eventually strongly connected network, demonstrating that with respect to synchronization, simultaneity is harder than detection in this network model.
Theorem 16**.**
Simultaneous synchronization detection is impossible in eventually strongly connected dynamic graphs, even if all nodes know the size of the network.
Sketch of proof.
By contradiction, suppose that there is an algorithm that achieves simultaneous synchronization detection in any eventually strongly connected dynamic graph.
Let denote the star directed graph centered at , and let be its transpose. Let the directed graph with only a self-loop at each node, i.e., .
We consider the execution of with start signals all received in the first round, and the alternating sequence of directed graphs . The dynamic graph is eventually strongly connected, and thus all nodes detect synchronization at the same round .
Now assume that (the case is similar). From the viewpoint of any node , is indistinguishable up to round from the dynamic graph that is similar to except at round where . Hence all nodes other than also detect synchronization at round with the dynamic graph . The same holds for node since the dynamic graph is eventually strongly connected.
By repeating this argument times, we show that all nodes detect synchronization at round in the execution of with start signals all received in the first round, and the dynamic graph .
From the viewpoint of any node , the latter execution is indistinguishable up to round from the execution with the same dynamic graph and start signals all received in the first round except the one received by at some round . In this execution, synchronization is detected earlier than ’s start, a contradiction.
∎
7 Conclusion
In this paper, we defined a model of distributed algorithms in which nodes do not start the algorithm simultaneously. We studied algorithms in this model which synchronize the round counters of the nodes in a dynamic network, where the network topology may change each round, there is no information on the network size, and node identities are not mutually known. As opposed to many models of dynamic networks developed for counting or consensus, links are not supposed to be bidirectional, and we assume no stability of the network in time.
We presented several algorithms whose messages size and time complexity highly depend on the connectivity of the topology.
We also showed that with only eventual connectivity assumptions, synchronization detection is impossible unless nodes know the exact size of the network.
Possible extensions of this work involve variations of the model of computation. For instance, it is interesting to know in which other models of connectivity, synchronization can be detected. It is also of interest to determine whether simultaneous synchronization detection is possible in an anonymous dynamic network where nodes have limited storage capabilities and communicate through finite bandwith channels as in [8]. Our adaptation of the randomized algorithm of [10] provides an efficient Monte Carlo solution for this problem, in the case of continuously strongly connected networks.
This raises another question concerning the role of leaders in a dynamic network: does the existence of a leader in an anonymous network may help for synchronization detection? Combined with our strategy for synchronization detection, the Metropolis method (see [13]) yields a deterministic algorithm that achieves simultaneous synchronization detection in rounds and that works in any anonymous dynamic network with a leader and a bidirectional connected topology. Unfortunately this algorithm uses messages of infinite size (nodes send real numbers) and do not tolerate rounding. The existence of a deterministic algorithm for synchronization detection in polynomial time, with anonymous nodes and bounded bandwith capacity is still an open problem.
Also of interest are dynamic networks which enable the solution of the consensus problem with asynchronous start. This problem could shed light on the relation between consensus algorithms and kernel agreement algorithms of [4].
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration inequalities . Oxford University Press, Oxford, 2013. A nonasymptotic theory of independence.
- 2[2] James E. Burns and Nancy Lynch. The byzantine firing squad problem. Advances in Computing Research , 4:147–161, 1987.
- 3[3] Arnaud Casteigts, Paola Flocchini, Walter Quattrociocchi, and Nicola Santoro. Time-varying graphs and dynamic networks. In Hannes Frey, Xu Li, and Stefan Rührup, editors, ADHOC-NOW , volume 6811 of Lecture Notes in Computer Science , pages 346–359. Springer, 2011.
- 4[4] Bernadette Charron-Bost and André Schiper. The Heard-Of model: computing in distributed systems with benign faults. Distributed Computing , 22(1):49–71, 2009.
- 5[5] Bernard Chazelle. Natural algorithms and influence systems. Communications of the ACM , 55(12):101–110, 2012.
- 6[6] Brian A. Coan, Danny Dolev, Cynthia Dwork, and Larry Stockmeyer. The distributed firing squad problem. In ACM Symposium on Theory of Computing Conference, STOC’85 , pages 335–345, 1985.
- 7[7] Brian A. Coan and Cynthia Dwork. Simultaneity is harder than agreement. Information and Computation , 91(2):205–231, 1991.
- 8[8] Julien M. Hendrickx, Alex Olshevsky, and John N. Tsitsiklis. Distributed anonymous discrete function computation. IEEE Transactions on Automatic Control , 56(10):2276–2289, 2011.
