Broadcasts in Anonymous, Dynamic Networks:
A New Algorithm and Impossibility Results
Abstract
The broadcast problem is the task of disseminating a message from a single source node to all other nodes in a distributed system, ensuring that every node eventually receives the message despite possible network constraints such as delays, failures, or limited topology knowledge. In this work, we consider the broadcast problem in anonymous, synchronous, dynamic networks. A dynamic network is a network, whose topology changes over time, meaning that communication links can unpredictably appear and disappear. We present a randomized algorithm requiring bits of storage per node and terminating in rounds with high probability. It solves broadcast with stabilizing termination for anonymous, synchronous, 1-interval-connected networks using messages of size . The algorithm is a non-idle-start algorithm. The best known idle-start algorithm for this problem requires space, also a lower memory bound of space is known. Our contribution affirmatively answers a question of Parzych and Daymude (DISC 2024). We also extend this result to dynamic networks with bounded connectivity time. Furthermore, we prove that for two variants of the broadcast problem in this setting no randomized algorithms exist.
Keywords and phrases:
Distributed algorithms, dynamic networks, randomized algorithms, impossibility results2012 ACM Subject Classification:
Theory of computation Distributed algorithms ; Theory of computation Graph algorithms analysisEditors:
George B. Mertzios and Andréa W. RichaSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
In recent years biological scenarios have sparked the interest in memory-less or extremely low memory networks. This has led to sub-logarithmic space algorithms. For example, the bit-dissemination problem was studied under the assumption that agents only have a moderate amount of memory available [2]. An efficient protocol was proposed in [11]. It achieves consensus in rounds with high probability assuming that each node of the network can only memorize bits of information from one round to the next. Propagating information from one or more network nodes to the rest of the network has been the in focus of research in distributed computing for many years. It has been studied under various assumptions using different names such as rumor spreading, gossip, and broadcast.
The task of a broadcast algorithm is to distribute a message from one network node to all other nodes. There are numberless applications of broadcast. The simplest realization of broadcasting in connected networks is flooding. The originator of a message forwards to all neighbors and when a node receives for the first time, it sends it to all its neighbors in the communication graph. In recent years, many broadcast algorithms have been proposed addressing a wide range of requirements, including dynamic networks and networks where nodes have extremely low memory resources. The focus of this work is on synchronous, anonymous, dynamic networks with low memory nodes. In anonymous networks nodes neither have unique identifiers nor use port numbers. A dynamic network is one, in which the communication topology changes over time, that is, edges can appear and disappear as time progresses [5, 13, 8]. These networks are also known as adversarial dynamic networks, because network nodes do not know in advance during which rounds links become available or disappear, i.e., links are selected by an adversary. Dynamic networks are used to model mobility, failures, and recoveries. Different theoretical models for dynamic networks assume different levels of stability, e.g., always connected or recurrently connected, etc.
Broadcast algorithms for dynamic systems were investigated under different boundary conditions [18, 4, 3]. Recently Parzych and Daymude considered the broadcast problem in anonymous, dynamic 1-interval-connected networks [17]. They consider two categories of algorithms: idle-start and non-idle-start. In the first category a node different from the initial broadcasting node may only send a message after it received a message. In the second, all nodes can send messages in every round including the initial round. Furthermore, they distinguish between algorithms that achieve stabilizing termination (a.k.a. silent algorithms) and algorithms with termination detection. In the first case all nodes eventually stop sending messages. In the second case, the broadcasting node itself becomes aware, when all nodes are informed, i.e. the broadcast is complete.
Parzych et al. proved that broadcast with termination detection is impossible for idle-start algorithms and also for non-idle-start algorithms when the number of broadcasters is unknown. For the case that the termination condition is relaxed to stabilizing termination, they proved that any idle-start algorithm must use memory per node, separating the static and dynamic settings for anonymous broadcast. In addition they present an algorithm solving broadcast in the idle start realm with stabilizing termination in rounds, space, and messages of size . They asked the question whether in the non-idle-start realm a sub-logarithmic space algorithm exists for this problem.
The main contribution of this paper is an affirmatively answer to the question of Parzych et al. within the probabilistic framework. We propose a randomized algorithm for stabilizing termination in the non-idle-start realm that with high probability terminates and requires only storage per node using messages of size . In particular we prove the following theorem for anonymous, dynamic 1-interval-connected networks.
Theorem 1.
There exists a non-idle-start algorithm solving the broadcast problem with stabilizing termination with high probability for anonymous, synchronous, dynamic 1-interval-connected networks provided each node knows . With high probability terminates in time , requires memory per node, and uses messages of size .
We also relax the assumption of 1-interval-connectivity to bounded connectivity time (see Sect. 3). In this case, the algorithm terminates with high probability in time . The statement about memory consumption remains unchanged. Furthermore, we extend some of the impossibility results of [17] to the realm of randomized algorithms. In particular we prove the following two theorems.
Theorem 2.
No idle-start Monte Carlo or Las Vegas algorithm can solve broadcast with termination detection for anonymous, synchronous, 1-interval connected dynamic graphs.
Theorem 3.
No non-idle-start Monte Carlo or Las Vegas algorithm can solve broadcast with termination detection for anonymous, synchronous, 1-interval connected dynamic graphs if nodes are unaware of the number of broadcasters.
The paper is organized as follows. In the next section we discuss related work. This is followed by a description of our model and notation. In Sec. 4 we present the novel broadcast algorithm requiring space and prove Theorem 1. The impossibility results – Theorem 2 and 3 – are proved in the final section.
2 State of the Art
The most primitive realization of broadcast in static networks is flooding, a.k.a. uncontrolled broadcast. It can be applied in anonymous, asynchronous, static networks. To control flooding requires each node to locally keep a record of already forwarded messages. For synchronous, static, distributed systems, broadcasting algorithms not requiring any local storage are known. Hussak and Trehan proposed amnesiac flooding [10]. Algorithm does not require nodes to have unique identifiers, it relies on port numbers to identify the neighbors that did not send a message. Both forms of flooding require the network to be connected at any time, i.e., they are unsuitable for dynamic networks [19]. Surprisingly it requires only a simple extension to make to work correctly despite link failures, i.e., a mild form of dynamic network. The corresponding algorithm of [19] requires port numbers. It can be used in networks with temporarily intermittent channels, but the number of times links are unavailable must be bounded. All these broadcast algorithms are idle-start algorithms, they don’t provide termination detection.
Recently Parzych et al. considered broadcasting in dynamic networks. They assume networks, where nodes are anonymous, i.e., they neither have unique identifiers nor port numbers, and have no knowledge of global parameters, including the number of nodes [17]. The communication is based on a local reliable broadcast mechanism, each node can reliably send a message to all current neighbors, i.e., those that are in the current round connected to the sender. The authors consider synchronous, -interval connected dynamic networks and prove that broadcast with termination detection is impossible for idle-start algorithms and otherwise requires memory per node. Also, they prove that even if the termination condition is relaxed to stabilizing termination any idle-start algorithm must use memory per node. Finally, they present an idle-start algorithm solving broadcast with stabilizing termination using memory per node. Table 1 summaries the state of the art for broadcast algorithms in anonymous, synchronous networks.
| Memory | Requirements | Size Mess. | Runtime | |
|---|---|---|---|---|
| Amnesiac flooding [10] | none | connected graph, port numbers | ||
| [19] | bounded number of unavailable edges, port numbers | |||
| Countdown [17] | -interval connected, idle-start | |||
| This work | -interval connected, non-idle-start, knowledge of | |||
| This work | bounded connectivity time , non-idle-start, knowledge of |
3 Model and Notation
A dynamic network is modeled by a dynamic graph , where is a set of nodes and is a function mapping a round number to a set of edges drawn from , here denotes the power set of . Intuitively, a dynamic graph is an infinite sequence of instantaneous graphs – a.k.a. snapshots of – whose edge sets are subsets of . Note that nodes do not know in advance during which rounds edges become available. Denote by the total number of different edges appearing in some , clearly . A static network is a special case of a dynamic network in which for all . The set is assumed throughout this work to be static, that is, it remains the same throughout ’s life time.
Definition 4 ([14]).
The connectivity time of a dynamic graph is the minimum such that for all the static graph is connected. Dynamic graphs with are called -connected interval graphs.
That is to say, during every interval of length at least one edge crosses any cut of .
In this paper we consider anonymous, synchronous, distributed systems and assume that nodes have no port numbers; i.e., they cannot distinguish among their neighbors. Algorithms are executed in rounds of fixed length. Each node synchronously executes the same distributed algorithm. Every round is divided in three phases: (i) nodes receive messages sent in the previous round, (ii) based on the received messages nodes change their state and determine the messages to be sent, and (iii) send messages. Due to the anonymity of the network, we assume that nodes communicate with their neighbors using a local reliable broadcast mechanism. This implies that nodes cannot send different messages to different neighbors in the same round, as usually is possible in networks with port numbers. To distinguish this local broadcast from the global broadcast (i.e., the network-wide task), we call it a local broadcast. Only nodes that are connected to the sender in the current round do receive the message. This model captures the situation, for instance, typically found in wireless radio communications, where messages are sent to all nodes within communication range.
The goal of a global broadcasting algorithm is to disseminate a message created by a node (called the broadcaster) to all nodes of the network. A node is called informed if it is the broadcaster or has received the message from an informed node. A broadcast is complete, when all nodes in the network are informed. We distinguish two types of algorithms: idle-start and non-idle-start algorithms. In the first case, a node other then the initial broadcaster can only send a message after it received a message from an informed neighbor. In the second case, all nodes can send messages in every round including the initial round.
Furthermore, we distinguish between algorithms that achieve stabilizing termination and algorithms with termination detection. In the first case, all nodes eventually stop sending messages. In the second case, the broadcasting node itself becomes within finite time aware, when all nodes are informed, i.e. the broadcaster can correctly and irrevocably decide that the broadcast is complete.
4 Non-Idle Start Algorithm for Stabilizing Termination
For broadcasting algorithms achieving stabilizing termination a memory bound was proven for idle-start algorithms and -interval connected graphs [17]. The authors present an idle-start algorithm called Countdown for this task. It coordinates a sequence of local broadcast attempts, each lasting twice as many rounds as its predecessor until one succeeds. Each local broadcast contains a hop-count, which is decremented at informed nodes. If a message with hop-count reaches an informed node, the forwarding ends. When an uninformed node is reached, a new wave of flooding is initiated, the initial hop-count is doubled. To facilitate these attempts, nodes store the number of rounds remaining in the current attempt and the total duration of the current attempt, i.e., the algorithm requires memory. It stabilizes in rounds and uses messages of size .
The authors of [17] asked the question, whether in the the non-idle-start regime, where non-broadcaster nodes can send messages in every round – including the round in which the broadcast was initiated – a sub-logarithmic space algorithm for -interval connected networks can be obtained. It appears that all deterministic algorithms require memory since they all – in one way or another – need to count up to . This even holds for the most simple algorithm in which all nodes broadcast for rounds the first message they receive, then in every round at least one more node receives the message.
In the following we present a non-idle-start randomized algorithm for -interval connected graphs achieving stabilizing termination for the global broadcast problem. With high probability it terminates in rounds and requires bits of storage per node. It uses messages of size . Thus, it affirmatively answers the question of [17] for randomized algorithms. We tackle the challenge in designing a counter that counts long enough to achieve stabilizing termination and with high probability uses only bits of storage. This is achieved by using an approximate counting algorithm, this is a probabilistic technique to increment a counter invented by R. Morris [15].
4.1 The Morris+ Counter
In Morris’ algorithm, the counter represents an order of magnitude estimate of the actual count . It allows to retrieve a multiplicative approximation to using only bits. The Morris counter was analyzed by Flajolet [9], who showed that bits of memory are sufficient to return an -approximation with probability . Unfortunately a success probability of at least is impossible with bits using the Morris counter in its original form. A recent result of Nelson et al. improved this [16]. They proposed a parameterized variant of the Morris counter, the Morris(a) counter, with a parameter . It maintains a counter . For each event to be counted, is incremented with probability . Upon being queried the Morris(a) counter returns the value . The expected return value after increments is , it uses only bits. The advantage of this counter is that memory suffices to have a failure probability of at most . By setting , the space usage of Morris(a) is bits with high probability, and it outputs a approximation with probability (Theorem 1.2, [16]).
Unfortunately, there is a small catch to using the Morris(a) counter. The success probability is only guaranteed when the number of counted events is at least . Nelson et al. show that this is not a serious limitation. The remedy is to maintain a separate counter exactly, deterministically up until this value. This costs at most bits of space. With , , and our given space limit is not violated. Thus, if we count events with the success probability is guaranteed (see [16] for details). As long as each invocation of the Morris(a) counter increments . Whenever occurs, the counter is incremented (see Section 6 for details). In the following we implicitly assume such an implementation of the Morris(a) counter and call it the Morris+ counter.
4.2 The Algorithm
The usage of a probabilistic counter for the hop-count has the disadvantage that it may significantly under- or overrate the number of events to be counted. In case the counter is significantly overrated, the algorithm may prematurely terminate. Even if a single overrating happens with low probability, it has to be shown that with high probability the effect of the total number of overratings is low. Furthermore, in case of an overrating the forwarding of the message must be guaranteed. In the non-idle-start regime we can realize this by enforcing uninformed nodes to regularly broadcast their state. This is impossible in the idle-start regime, where nodes (except the broadcaster) are only allowed to broadcast a message after they themselves received a message. If the number of events to be counted is underrated, the termination of the algorithm can be delayed indefinitely, this must be avoided.
The proposed randomized algorithm uses two types of messages of size . Message contains the information to be forwarded to all nodes. Initially the broadcaster locally broadcasts this message. The second message is locally broadcasted in every round by each uninformed node. An informed node that receives an message locally broadcasts for a specified number of rounds – called the active interval – the message. Due to the dynamic character of the network an uninformed node may not receive any of these messages. Therefore, when an informed node – indicated by variable – receives an message outside its active interval it increases the length of its active interval and restarts locally broadcasting the message. We will prove that for networks with bounded connectivity time, with high probability all nodes eventually receive the message and become silent.
Each node independently maintains a Morris+ counter that is initiated upon the start of algorithm . Each counter approximately counts the number of locally broadcasted messages, note that the expected value of the counter equals the actual number of broadcasts. This number is used to control the lengths of the active intervals. The goal is that these lengths form with high probability a geometric sequence, i.e., each term after the first is found by multiplying the previous one by a fixed number, called the common ratio. The length of the active interval is not explicitly stored. Instead only the value of the internal Morris+ counter – indicated by a variable – is stored. When this counter reaches the value of variable the current active interval ends. Upon receiving a message a new active interval begins, this is achieved by incrementing variable . Note that the Morris+ counter is never reset. The length of the active interval depends on the current value of variable . The expected length is . Thus, the common ratio is roughly . The crucial point is that with high probability, the actual length of the active interval is very close to the expected value. We will prove that with high probability, the Morris+ counter uses only bits of memory per node before algorithm terminates.
Algorithm uses one Morris+ counter per node, with , where and , this requires each node to know . Algorithm 1 shows the proposed algorithm . Function implements the Morris+ as described above with one minor change (see Section 6). Whenever a node locally broadcasts the message function is called afterwards. In this call, variable is probabilistically incremented and returned, the original Morris+ counter returns .
Definition 5.
For let and .111If is an variable of node , then denotes the value of at the start of round . An edge is called active in round if – i.e., edge exists in during round – , and , otherwise it is called passive.
Note that , where is the initial broadcasting node. Furthermore, and for all . Once an edge becomes passive, it remains passive forever. For each round the following holds: If is 1-interval connected, then as long as there exists an active edge in round . Thus, if falls into an active interval of , then locally broadcasts a message that is received by and hence, becomes informed in round . If round does not belong to an active interval of then we have . Remember that node locally broadcasts the message in round . In round node will receive this message and increase . Thus, in round node enters a new active interval and the expected length of this active interval increases approximately by a factor of . Hence, in every round at least one node becomes informed or the length of an active interval is increased. The idea of the proof of Theorem 1 is that while the lengths of the active intervals of the informed nodes increase, when an edge becomes active, the probability that node is in its active interval also increases. Then also the probability that gets informed in this round increases. These ideas enable us to prove that with high probability all nodes are informed after rounds.
We consider a fixed execution of algorithm . For each edge of let be the rounds of in which is active. If is infinitely often active, then . If then edge is never active after round . In the next lemma, we prove that with high probability, the round numbers in which a fixed edge is active, grow exponential with the value of .
Lemma 6.
Let be an edge and such that . Then
with probability at least .
Proof.
Note that implies that is not the last round in which edge is active. If receives a message in round or if then locally broadcasts in round a message . Node receives this message in round , thus . If receives in round a message , then also . Thus, in both cases round is the last round in which is active, i.e., . This contradicts the choice of .
Thus and does neither receive a message nor does receive a message in round . Let be the number of invocations of the Morris+ counter of until round . Then . If then Morris+ counter as described above counts exactly, i.e., and the statement follows. So we can assume that .
Clearly, locally broadcasts a message in round . Node receives this message in round and increments variable , i.e., . Then, as long as node locally broadcasts message . If in round holds, then . Thus, in this case round is the last round in which is active. This again contradicts the choice of . Hence, has stopped locally broadcasting message before round . Then Lemma 8 implies that
with probability at least .
In the following lemma, we prove that between each pair of rounds the value of the counter is incremented at least once.
Lemma 7.
For we have .
Proof.
The proof is by induction on . The case trivially holds. Let . Assume that . This yields , hence , a contradiction. Thus, . Since exists we have . By induction assumption we have . In round node does not receive a message , because this would imply . Hence, does not locally broadcast a message in round . This yields . Node locally broadcasts a message in round . Thus, receives at the latest in round a message and increments . Hence, .
With these preparatory works, we can prove the main result about algorithm as outlined above.
Theorem 1.
There exists a non-idle-start algorithm solving the broadcast problem with stabilizing termination with high probability for anonymous, synchronous, dynamic 1-interval-connected networks provided each node knows . With high probability terminates in time , requires memory per node, and uses messages of size .
Proof.
To prove that solves the broadcast problem with stabilizing termination with high probability, it suffices to prove that with high probability, the sequence is finite for each edge of . There are two reasons for the sequence of an edge to be finite: Either becomes informed, because it received a message from in round or from a neighbor in or after round , or edge never belongs to after round . Thus, if there exists , such that for all edges , then all nodes are informed in round .
Let be a fixed edge and such that . Then Lemma 6 implies that with probability at least we have and therefore by Lemma 7
For and define . Thus, if then with probability at least
Similarly, if
| (1) |
with probability at least . Note that Eq. (1) also holds if , i.e., if edge is only active once.
For let be the event that Eq. (1) is false. Hence. . The union bound implies that . Hence, with probability at least Eq. (1) is is true for all edges . Up to round each edge can be at most times be active. Since there are at most edges, there are at most active edges up to time . Since, in each round at least one edge must be active, Eq. (1) leads to
| (2) |
with probability at least . Since the left side grows linearly in , while the right side grows only linearly in , the value of cannot be too large. Thus, there exists a round , during which all nodes are informed. What is the value of ?
We consider the equality and assume . Thus, for large values of we have . We apply Lemma 9 with , and , this yields . Therefore, we have . Hence, all nodes are within rounds with probability at least informed.
It remains to prove, that with high probability after no more messages are sent. Let be an informed node and . Then . Let be the number of invocations of the Morris+ counter of node until the round, in which reached the value . Clearly, in that round, not all neighbors of were already informed, because in this case would not be incremented again. This is true, because an increment of only happens after received a message . As shown above, with probability at least there exists with . Now Lemma 8 yields
with probability at least . This yields
In round a neighbor of locally broadcasts a message that is received by in round . Furthermore, after round , node will never receive a message again. Thus, either for all , or if receives a message in round and . In the later case we have for all . Anyway, in the worst case, node continues to locally broadcast a message until the first round with .
Let be the number of invocations of the Morris+ counter of node until . By Lemma 8 we have
with probability at least . Thus
Since and , node does no send any messages after rounds with probability . The union bound implies that with probability at least algorithm is silent after rounds. Thus, with high probability, the number of invocations of the Morris+ counter of each node is in . By Lemma 8 the required memory is in .
Theorem 1 can be extended to bounded connectivity time. Assume that the connectivity time of is larger than . Then during every interval of length an edge appears in any cut of . Thus, if during consecutive rounds there is no active edge, then all nodes are informed. Hence, the left side of Eq. (2) becomes . The additional factor does not result in any significant changes, only the time until termination is affected. The argument following Eq. (2) can be adopted with a minor change: Instead of , we must use . This yields that with high probability algorithm terminates in rounds requiring bits of memory per node.
It remains to prove Lemma 8 to 9. Lemma 8 is implicitly contained in [16]. We include it to make the paper self-contained.
Lemma 8 (Theorem 1.2, [16]).
Let , , and . If is the number of invocations of the Morris(a) counter until the internal variable reaches the value , then with probability at least the Morris(a) counter uses bits and satisfies
Proof.
Let be the random variable denoting the number of increments it takes for to increase from to . Then
Since when , each increment causes to increase with probability , follows the geometric distribution
As shown in Section 2.2. of [16] we have
Therefore, with probability at least , we have
Similarly, we have with probability at least
The result follows from the union bound.
Lemma 9.
The solution of the equality with constants and satisfies .
Proof.
Set , then . We will reshape the equation . Let , then and . Thus, and and finally
Let , then the last equation becomes . Note that . We make use of the Lambert- function [6], the inverse of : resp.,
The Lambert function has two branches and . Only the branch provides solutions that are relevant for larger values of . For small values (i.e., ) the solution satisfies [6]). Thus, this holds for . Hence,
This implies . Hence, .
4.3 Open Problems
We conjecture that algorithm terminates in rounds. In its current implementation variable is incremented at the beginning of every active interval. An alternative to be explored is to increment by , this would double the length of the active interval. Also, we believe that the space complexity of for algorithm Countdown of [17] can be reduced with high probability by using probabilistic counting. It is questionable whether this can be done with messages of size .
Kowalski and Mosteiro study the all-to-all communication problem, where each node has an input to be delivered to all other nodes [12] for anonymous, dynamic networks with limited message size, and logarithmic internal memory per node. They prove that this task can be done in time polynomial in the number of nodes and a lower bound on a metric measuring the dynamically evolving graphs that represent the network topology. An open question is whether the usage of an approximate counting algorithm – as done in this work – can reduce the demands for internal memory to .
The recent advent of programmable switches opens a new facet of distributed algorithms, here storage limitations become a major issue. Basat et al. introduced the -CONGEST model, where on top of bandwidth restrictions, the storage space on nodes is also limited to words, in line with many real-world systems [1]. We believe that approximate counting algorithms, e.g. the Morris+ counter, will lead to new efficient algorithms for this new model.
5 Impossibility Results
Parzych et al. considered broadcast with termination detection and proved that this is impossible for deterministic idle-start algorithms, where only the broadcaster can initially send messages [17]. In the same work they also proved that even without an idle start this task cannot be achieved by a deterministic algorithm, provided that nodes have no knowledge of the number of broadcasters. In the following we extend both results to the realm of randomized algorithms.
A Monte Carlo algorithm is a randomized algorithm that may produce incorrect results, but with bounded error probability. To prove the non-existence of a Monte Carlo algorithm for the broadcast with termination detection problem, we do a proof by contradiction. We assume there exists an idle-start Monte Carlo algorithm that solves this problem. For this algorithm we construct a time-varying graph and show that independently of the random decisions makes, the broadcaster will announce termination before all nodes are informed. Hence, any execution of on is incorrect, a contradiction. A Las Vegas algorithm is a randomized algorithm that always produces correct results, the running time of different executes varies. To prove the non-existence of such an algorithm for the given problem, we will use the same graph and show that there exists at least one incorrect execution.
Theorem 2.
No idle-start Monte Carlo or Las Vegas algorithm can solve broadcast with termination detection for anonymous, synchronous, 1-interval connected dynamic graphs.
Proof.
a) Assume there exists an idle-start Monte Carlo algorithm that solves broadcast with termination detection for anonymous, synchronous, 1-interval connected dynamic graphs within rounds with probability . Let be a fixed static, connected graph with nodes, and a constant such that each execution of terminates for with as the broadcaster after at most rounds. Hence, after at most rounds irrevocably declares the broadcast to be complete. The probability that after this round all nodes are informed is at least . We execute on a time-varying graph as described in [17]. consists of two static components, i.e., all edges of these two components remain present throughout the lifetime of . The first static component is the graph and the second is a path . In each round there is a single edge connecting the broadcaster to a node in , thus, is 1-interval connected (see Fig. 1). Since is an idle-start algorithm, the construction of ensures that no node of ever sends a message to or to any other node of during the first rounds.
Let be a fixed execution of on . The actions of that amount to the state of each node of at the end of round are determined by the state of the nodes of in at the beginning of round and the sequence of random bits that each node uses as an auxiliary input to determine its state changes and the messages to be sent. Denote by the execution of on , where each node uses as auxiliary input. We will prove that for every round the restriction of to coincides with . This requires to prove that at the beginning of each round the nodes of are in the same state in both executions. This is done by induction on .
Let . Initially all nodes of have the same state in both executions and . Since is an idle-start algorithm only broadcaster broadcasts a message and changes its state in round . According to our assumption, has no knowledge of the graph nor its neighborhood. Thus, since has identical states in both executions and uses the same random bits as auxiliary input, will broadcast an identical message in and in round . Therefore, all nodes of have at the beginning of round identical states in and .
Let . By induction hypothesis, all nodes in have identical states at the start of round in and . Thus, since the nodes use the same random bits in both executions, they also send the same messages in round . Since by construction no node of sends a message to or any other node of in round , we conclude that at the beginning round all nodes of have the same state in and . Hence, and are identical on and thus, is a legal execution of on . This implies that after at most rounds broadcaster will announces termination in execution and thus, also in . The construction of entails that node cannot be reached in rounds from . Thus, in round node is still uninformed. Hence, any execution of on is incorrect, a contradiction.
b) Assume there exists an idle-start Las Vegas algorithm that correctly solves broadcast with termination detection for anonymous, synchronous, 1-interval connected dynamic graphs within expected rounds. Let be a static, connected graph with nodes and the broadcaster of . Let be a random variable that denotes the runtime of execution of algorithm on . Then . Thus, there is an execution of on with runtime . As in a) we construct a graph and show that execution implies an execution of on that is incorrect. This contradicts the fact, that is a Las Vegas algorithm, i.e., it is always correct.
Inspired by the impossibility results of [7] about systems with multiple leaders the authors of [17] consider systems with several broadcasters. Termination detection in this case means that every broadcaster correctly and irrevocably decides that the broadcast is complete. They proved that even without an idle start, no deterministic algorithm can solve broadcast with termination detection if nodes have no knowledge of the number of broadcasters. In the following we prove that there is also no randomized algorithm solving this problem.
The overall idea of the proof is similar to the above proof, but the construction of the graph is more involved. To describe the execution of a randomized algorithm each node uses a sequence of random bits as auxiliary input. Thus, the execution of the randomized algorithm is determined by the auxiliary inputs for each node. First, we prove that no non-idle-start Las Vegas algorithm can solve the broadcast problem with termination detection. We construct a 1-interval connected dynamic graph for which the assumed Las Vegas algorithm fails. The construction is done in a graduate style, edges in round are based on the execution of during the first rounds. The construction is similar to that of [17] but requires considerable changes. The proof for the non-existence of a Monte Carlo algorithm is similar.
Theorem 3.
No non-idle-start Monte Carlo or Las Vegas algorithm can solve broadcast with termination detection for anonymous, synchronous, 1-interval connected dynamic graphs if nodes are unaware of the number of broadcasters.
Proof.
Assume there exists a Las Vegas algorithm that is unaware of the number of broadcasters and correctly solves broadcast with termination detection for anonymous, synchronous, 1-interval connected dynamic graphs within expected rounds. Each node uses the sequence of random bits as auxiliary input. Thus, the execution of is determined by the auxiliary inputs for each . Let be a random variable that denotes the runtime of an execution of on a graph with nodes. Then .
Let be the complete graph with three nodes , and . Node is the single broadcaster of . Let . We consider a fixed execution of for . The auxiliary inputs are denoted by for node and (resp. ) for node (resp. ). We will prove that this execution will not announce termination at or before round . This holds for every execution of for , i.e., for all auxiliary inputs for the three nodes of . This yields , a contradiction.
Consider a fixed execution of for with auxiliary inputs and . Denote the configurations of for this execution by . We will prove that this execution requires more than rounds. To do so, we will construct a 1-interval connected dynamic graph . Let . The graph has nodes. Denote the first nodes by and the remaining nodes by . The nodes form a path and the edges of remain present throughout the lifetime of . The remaining edges of are defined gradually for each time such that is -interval connected for all .
First consider the case . The nodes of are partitioned into groups and each containing nodes. We assign the same auxiliary input to the nodes of each group: nodes of use and those of (resp. ) use (resp. ). Also each node of is a broadcaster. The nodes of form complete graphs with three nodes each, one from each set and . Each of these complete graphs is in configuration . We split these complete graphs into two groups and of equal size. Finally, every node of that belongs to a graph of and every node of that belongs to a graph of is connected to (see Fig. 2). Thus, for graph has edges and broadcasters.
To define for we consider a first round of execution of on based on the assigned auxiliary inputs. Note that during this round each node from can receive a message only from the two nodes in and that belong to the same complete graph. Furthermore, each node of (resp. ) that belongs to a complete graph of (resp. ) can receive a message only from the two nodes in and (resp. and ) that belong to the same complete graph. Thus, the nodes from and that belong to a graph from are in the same state as and in . Also, the nodes from and that belong to a graph from are in the same state as and in .
Now we can define the edges of for . We again form complete graphs of order three. Each contains a node of , a node of that belongs to a graph from and a node of that belongs to a graph from . Thus, there are complete graphs of order three, each is in configuration . They are split into into two groups and . Finally, every node of that belongs to a graph of and every node of that belongs to a graph of is connected to . All nodes that do not belong to one of the complete graphs are also connected by an edge to (see Fig. 2).
We continue to define the edges of for in this way. The number of broadcasters is decreased in every round. The assumption that the number of broadcasters is unknown to the nodes implies that changing that number has no influence on the behavior of on nodes (except for the initial broadcast). We execute for one more round on using the fixed auxiliary input. Continuing in this way, we can create copies of configuration for each while only informing a single node in the path at a time. Thus, after rounds we still have copies of in , but node of is not yet informed. Thus, if the broadcaster of this remaining complete graph would announce termination, algorithm would be incorrect. Thus, for the given auxiliary input algorithm does not announce termination within the first rounds. This completes the proof for a Las Vegas algorithm.
The proof for the non-existence of a Monte Carlo algorithm is similar. Assume there exists an idle-start Monte Carlo algorithm that solves the given broadcast with termination detection within rounds with probability . We set and repeat the above construction of . This shows that for every auxiliary input algorithm is incorrect for a complete graph with three nodes. This is a contradiction since .
5.1 Open Problems
We believe that with the techniques used above, some of the impossibility results for broadcast with termination detection presented in [4] can be extended to the realm of randomized algorithms. Parzych et al. proved in [17] lower bounds for the space complexity for deterministic broadcast with termination detection and stabilizing termination for anonymous dynamic networks. It is an open question, whether randomized algorithms can come close to these bounds. The best known space complexity for broadcast with termination detection follows from Di Luna and Viglietta’s history trees algorithm which uses memory in the worst case [8]. We conjecture that randomized algorithms can come closer to the currently best known lower bound of [17].
6 Implementation of the Morris+ Counter
To implement the statement With probability we do Bernoulli experiments each succeeding with probability . If all experiments have a positive outcome then we increment .
References
- [1] Ran Ben Basat, Keren Censor-Hillel, Yi-Jun Chang, Wenchen Han, Dean Leitersdorf, and Gregory Schwartzman. Bounded memory in distributed networks. In Proc. of the 37th ACM Symposium on Parallelism in Algorithms and Architectures, pages 566–581, 2025. doi:10.1145/3694906.3743302.
- [2] Lucas Boczkowski, Amos Korman, and Emanuele Natale. Minimizing message size in stochastic communication patterns: Fast self-stabilizing protocols with 3 bits. In Proc. 2017 Annual ACM-SIAM Symp. on Discrete Algo. (SODA), pages 2540–2559, 2017. doi:10.1137/1.9781611974782.168.
- [3] Arnaud Casteigts, Paola Flocchini, Bernard Mans, and Nicola Santoro. Deterministic computations in time-varying graphs: Broadcasting under unstructured mobility. In IFIP Int. Conference on Theoretical Computer Science, pages 111–124. Springer, 2010. doi:10.1007/978-3-642-15240-5_9.
- [4] Arnaud Casteigts, Paola Flocchini, Bernard Mans, and Nicola Santoro. Shortest, fastest, and foremost broadcast in dynamic networks. Int. Journal of Foundations of Computer Science, 26(4):499–522, 2015. doi:10.1142/S0129054115500288.
- [5] Arnaud Casteigts, Paola Flocchini, Walter Quattrociocchi, and Nicola Santoro. Time-varying graphs and dynamic networks. Int. Journal of Parallel, Emergent and Distributed Systems, 27(5):387–408, 2012. doi:10.1080/17445760.2012.668546.
- [6] Robert M. Corless, Gaston H. Gonnet, David E. G. Hare, David J. Jeffrey, and Donald E. Knuth. On the Lambert W Function. Advances in Computational Mathematics, 5(1):329–359, 1996. doi:10.1007/BF02124750.
- [7] Giuseppe A Di Luna and Giovanni Viglietta. Optimal computation in leaderless and multi-leader disconnected anonymous dynamic networks. In 37th Int. Symp. on Distr. Comp. (DISC), pages 18–1. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.DISC.2023.18.
- [8] Giuseppe A Di Luna and Giovanni Viglietta. Efficient computation in congested anonymous dynamic networks. Distributed Computing, pages 1–18, 2025. doi:10.1007/s00446-025-00481-z.
- [9] Philippe Flajolet. Approximate counting: a detailed analysis. BIT Numerical Mathematics, 25(1):113–134, 1985. doi:10.1007/BF01934993.
- [10] Walter Hussak and Amitabh Trehan. Termination of amnesiac flooding. Distributed Computing, 36(2):193–207, 2023. doi:10.1007/S00446-023-00448-Y.
- [11] Amos Korman and Robin Vacus. Early adapting to trends: self-stabilizing information spread using passive communication. Distributed Computing, 37(4):335–362, 2024. doi:10.1007/S00446-024-00462-8.
- [12] Dariusz R. Kowalski and Miguel A. Mosteiro. Anonymous adversarial dynamic networks with logarithmic memory and communication. Theoretical Computer Science, 1066:115740, 2026. doi:10.1016/j.tcs.2025.115740.
- [13] Fabian Kuhn, Nancy A. Lynch, and Rotem Oshman. Distributed computation in dynamic networks. In Leonard J. Schulman, editor, Proc. 42nd ACM Symp. on Theory of Computing, STOC, pages 513–522. ACM, 2010. doi:10.1145/1806689.1806760.
- [14] Othon Michail, Ioannis Chatzigiannakis, and Paul G Spirakis. Causality, influence, and computation in possibly disconnected synchronous dynamic networks. Journal of Parallel and Distributed Computing, 74(1):2016–2026, 2014. doi:10.1016/J.JPDC.2013.07.007.
- [15] Robert Morris. Counting large numbers of events in small registers. Communications of the ACM, 21(10):840–842, 1978. doi:10.1145/359619.359627.
- [16] Jelani Nelson and Huacheng Yu. Optimal bounds for approximate counting. In Proc. of the 41st ACM SIGMOD-SIGACT-SIGAI Symp. on Principles of Database Systems, pages 119–127, 2022. doi:10.1145/3517804.3526225.
- [17] Garrett Parzych and Joshua J. Daymude. Memory lower bounds and impossibility results for anonymous dynamic broadcast. In Dan Alistarh, editor, 38th Int. Symp. on Distr. Comp. DISC, volume 319 of LIPIcs, pages 35:1–35:18, 2024. doi:10.4230/LIPIcs.DISC.2024.35.
- [18] Michel Raynal, Julien Stainer, Jiannong Cao, and Weigang Wu. A simple broadcast algorithm for recurrent dynamic systems. In 2014 IEEE 28th International Conference on Advanced Information Networking and Applications, pages 933–939. IEEE, 2014. doi:10.1109/AINA.2014.115.
- [19] Volker Turau. Synchronous concurrent broadcasts for intermittent channels with bounded capacities. In Tomasz Jurdzinski and Stefan Schmid, editors, Struc. Inf. and Com. Complexity – 28th SIROCCO, volume 12810 of LNCS, pages 296–312. Springer, 2021. doi:10.1007/978-3-030-79527-6_17.
