Abstract 1 Introduction 2 High-level Description of our Results References

Brief Announcement: Optimal-Length Labeling Schemes for Fast Deterministic Communication in Radio Networks

Adam Ganczorz ORCID Institute of Computer Science, University of Wrocław, Poland Tomasz Jurdzinski ORCID Institute of Computer Science, University of Wrocław, Poland Andrzej Pelc ORCID Département d’informatique, Université du Québec en Outaouais, Gatineau, Canada
Abstract

We consider two fundamental communication tasks in arbitrary radio networks: broadcasting (information from one source has to reach all nodes) and gossiping (every node has a message and all messages have to reach all nodes). Nodes are assigned labels that are (not necessarily different) binary strings. Each node knows its own label and can use it as a parameter in the same deterministic algorithm. The length of a labeling scheme is the largest length of a label. The goal is to find labeling schemes of asymptotically optimal length for the above tasks, and to design fast deterministic distributed algorithms for each of them, using labels of optimal length.

Our main result concerns broadcasting. We show the existence of a labeling scheme of constant length that supports broadcasting in time O(D+log2n), where D is the diameter of the network and n is the number of nodes. This broadcasting time is an improvement over the best currently known O(Dlogn+log2n) time of broadcasting with constant-length labels, due to Ellen and Gilbert (SPAA 2020). It also matches the optimal broadcasting time in radio networks of known topology. Hence, we show that appropriately chosen node labels of constant length permit to achieve, in a distributed way, the optimal centralized broadcasting time. This is, perhaps, the most surprising finding of this paper. We are able to obtain our result thanks to a novel methodological tool of propagating information in radio networks, that we call a 2-height respecting tree.

Next, we apply our broadcasting algorithm to solve the gossiping problem. We get a gossiping algorithm working in time O(D+Δlogn+log2n), using a labeling scheme of optimal length O(logΔ), where Δ is the maximum degree. Our time is the same as the best known gossiping time in radio networks of known topology.

Keywords and phrases:
radio network, distributed algorithms, algorithms with advice, labeling scheme, broadcasting, gossiping
Funding:
Andrzej Pelc: Partially supported by NSERC discovery grant RGPIN 2024-03767 and by the Research Chair in Distributed Computing at the Université du Québec en Outaouais.
Copyright and License:
[Uncaptioned image] © Adam Ganczorz, Tomasz Jurdzinski, and Andrzej Pelc; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Networks Network algorithms
; Computing methodologies Distributed algorithms ; Theory of computation Distributed algorithms
Related Version:
Full Version: https://arxiv.org/abs/2410.07382
Funding:
Supported by the National Science Center, Poland (NCN), grant 2020/39/B/ST6/03288.
Editor:
Dariusz R. Kowalski

1 Introduction

We consider two fundamental communication tasks often occurring in networks. In broadcasting, one node, called the source, has a message that must reach all other nodes. In gossiping, every node has a message and all messages have to reach all nodes.

The model and the problem

We consider radio networks modeled as simple undirected connected graphs. Throughout this paper, G=(V,E) denotes the graph modeling the network, n denotes the number of its nodes, D its diameter, and Δ its maximum degree. At the cost of a small abuse of notation, we sometimes use D to denote the height of a BFS spanning tree of a graph with a fixed root node. Note however that the height of a BFS tree is not larger than the diameter D and not smaller than D/2, so the orders of magnitude are the same. In our probabilistic considerations concerning graphs with n nodes, we use the term “with high probability” to mean “with probability at least 11/n”.

We use square brackets to indicate sets of consecutive integers: [i,j]={i,,j} and [i]=[1,i]. All logarithms are to the base 2. For simplicity of presentation, we assume throughout the paper that the number of nodes of a graph n is a power of 2, in order to avoid rounding of logarithms. One can easily generalize all the results for arbitrary n, preserving asymptotic efficiency measures.

As usually assumed in the algorithmic literature on radio networks, nodes communicate in synchronous rounds (also called steps). All nodes start executing an algorithm in the same round. In each round, a node can either transmit a message to all its neighbors, or stay silent and listen. At the receiving end, a node v hears the message from a neighbor w in a given round, if v listens in this round, and if w is its only neighbor that transmits in this round. If more than one neighbor of a node v transmits in a given round, there is a collision at v. Two scenarios concerning collisions were considered in the literature. The availability of collision detection means that node v can distinguish collision from silence which occurs when no neighbor transmits. If collision detection is not available, node v does not hear anything in case of a collision (except the background noise that it also hears when no neighbor transmits). We do not assume collision detection. The time of a deterministic algorithm for a given task is the worst-case number of rounds it takes to solve it, expressed as a function of various network parameters.

If nodes are indistinguishable (anonymous), i.e., in the absence of any labels, none of our communication problems can be solved, for example, in the four-cycle. Hence we consider labeled networks, i.e., we assign binary strings, called labels, to nodes. A labeling scheme for a given network represented by a graph G=(V,E) is any function from the set V of nodes to the set S of finite binary strings. The string (v) is called the label of the node v. Labels assigned by a labeling scheme are not necessarily distinct. The length of a labeling scheme is the maximum length of any label assigned by it. Every node knows a priori only its label, and can use it as a parameter in the same deterministic algorithm

Solving distributed network problems with short labels can be seen in the framework of algorithms with advice. In this paradigm that has recently got growing attention, an oracle knowing the network gives advice to nodes not knowing it, in the form of binary strings, provided to nodes before the beginning of a computation. A distributed algorithm uses this advice to solve the problem. The required size of advice (maximum length of the strings) can be considered a measure of the difficulty of the problem. Two variations are studied in the literature: either the binary string given to nodes is the same for all of them [16] or different strings may be given to different nodes [8, 7, 9, 10], as in the case of the present paper. If strings may be different, they can be considered as labels assigned to nodes by a labeling scheme. Such labeling schemes permitting to solve a given network task efficiently are also called informative labeling schemes. One of the famous examples of using informative labeling schemes is to answer adjacency queries in graphs [1].

Several authors have studied the minimum amount of advice (i.e., label length) required to solve certain problems (see the subsection Related work). The framework of advice permits us to quantify the minimum amount of information used to solve a given network problem, regardless of the type of information that is provided. Note that the scenario of the same advice given to all (otherwise anonymous) nodes would be useless in the case of radio networks: no deterministic communication could occur.

We now define formally our two communication tasks in a radio network G=(V,E).
Broadcasting: One node of the graph, called the source, has a broadcast message that has to reach all nodes vV. A node which already knows the broadcast message is called an informed node, otherwise the node is uninformed. If a node v receives the broadcast message for the first time in round r, from some neighbor u, we say that u informed v in round r. An uninformed node v is a frontier node in a given round, if it is a neighbor of an informed node. In our broadcasting algorithms, only informed nodes send messages.
Gossiping: Each vV has a message, and all messages have to reach all nodes in V.

As it is customary in algorithmic literature concerning radio networks, we assume that when a node sends a message, this message can be of arbitrary size. In particular, a node could send its entire history (however, in our algorithms, messages will be usually shorter: in broadcasting, some control messages will be appended to the source message, and in gossiping, all messages already known to a node will be combined in a single message).
Now our goal can be succinctly formulated as follows:

For the above tasks, find an optimal-length labeling scheme permitting to accomplish this task, and design an optimal-time algorithm using a scheme of optimal length.111For the task of broadcasting, constant-length labeling schemes are known, so in this case the goal is to find a scheme of constant length supporting an optimal-time broadcasting algorithm.

Our results

Our main result concerns broadcasting. We improve the best currently known time of deterministic broadcasting using labeling schemes of constant length, due to Ellen and Gilbert (SPAA 2020) [7]. As in [7], our results are of two types: constructive, where the labeling scheme used by the algorithm is explicitly constructed using an algorithm polynomial in n, and non-constructive, where we only prove the existence of the labeling scheme used by the algorithm, via the probabilistic method. The broadcasting algorithm from [7] using a constructive constant-length labeling scheme runs in time O(Dlog2n). We improve it to time O(D+min(D,logn)log2n). The broadcasting algorithm from [7] using a non-constructive constant-length labeling scheme runs in time O(Dlogn+log2n). We improve it to time O(D+log2n). This latter time is, in fact, the optimal deterministic broadcasting time in radio networks of known topology.222This means that every node has an isomorphic copy of the graph, with nodes labeled in the same way by unique identifiers, and a node knows its identifier. Deterministic algorithms using such knowledge are called centralized.. Hence, we show that appropriately chosen node labels of constant length permit us to achieve, in a deterministic distributed way, the optimal centralized broadcasting time. This is, perhaps, the most surprising finding of this paper. We are able to obtain our result thanks to a novel tool that we call a 2-height respecting tree. The properties of these crucial objects permit us to implement centralized communication techniques in the distributed context.

It should be mentioned that messages used by both our broadcasting algorithms contain the source message and a constant number of control bits.

Next, we apply our broadcasting algorithm to solve the gossiping problem. Using the non-constructive version of our result for broadcasting, we get an algorithm working in time O(D+Δlogn+log2n), that uses a (non-constructive) labeling scheme of optimal length O(logΔ).333Using only constructive labeling schemes, the polylogarithmic summand in our complexity of gossiping changes from log2n to min(D,logn)log2n. Our time is the same as the best known gossiping time for radio networks of known topology (without any extra assumptions on parameters), that follows from [13].

Table 1: Previous and our results.
Ref. Time Length of labeling scheme Constructive
Broadcasting: centralized optimal time O(D+log2n), [13, 19]
[8] O(n) 2 bits Yes
[7] O(Dlogn+log2n) 3 bits No
[7] O(Dlog2n) 3 bits Yes
here O(D+log2n) 7 bits No
here O(D+min(D,logn)log2n) 7 bits Yes
Gossiping: centralized best time known O(D+Δlogn+log2n), follows from [13]
here O(D+Δlogn+log2n) Θ(logΔ) No
here O(D+Δlogn+min(D,logn)log2n) Θ(logΔ) Yes

Related work

Broadcasting and gossiping in radio networks were extensively investigated in algorithmic literature. For deterministic algorithms, two important scenarios were studied. The first concerns centralized algorithms, in which each node knows the topology of the network and its location in it. Here, an optimal-time broadcasting algorithm was given in [13, 19] and the best known gossiping time (without any extra assumptions on parameters) follows from [13]. For large values of Δ, this was later improved in [4]. The second scenario concerns distributed algorithms, where nodes have distinct labels, and every node knows its own label and an upper bound on the size of the network but does not know its topology. Here the best known broadcasting time that depends only on n is O(nlognloglogn) [20], later improved in [5] for some values of parameters D and Δ. For gossiping, the best known time in arbitrary directed (strongly connected) graphs was given in [12, 14] and the best known time for undirected graphs follows from [22]. Randomized distributed broadcasting was studied in [18, 6], where optimal O(Dlog(n/D)+log2n) time algorithms were obtained independently. For gossiping, optimal randomized time was given in [15].

The advice paradigm has been applied to many different distributed network tasks: finding a minimum spanning tree [9], finding the topology of the network [10], and leader election [16]. In [8] and [7], the task was broadcasting in radio networks, as in the present paper. In the above papers, advice was given to nodes of the network. Other authors considered the framework of advice for tasks executed by mobile agents navigating in networks, such as exploration [17] or rendezvous [21]. In this case, advice is given to mobile agents.

2 High-level Description of our Results

High-level description of broadcasting

Our algorithms for broadcasting combine three mechanisms. The first two of them are taken from the literature, and the third, which is our main technical contribution, permits us to improve the time complexity of broadcasting.

1. The domination mechanism from [8].

Computation is split into blocks of some constant number of rounds. At the beginning of block r, a fixed set 𝐃𝐎𝐌r of nodes is active which is a minimal set of informed nodes with respect to inclusion that covers all frontier nodes. All elements of 𝐃𝐎𝐌r simultaneously transmit in the first round of the block called the Broadcast step. Minimality of 𝐃𝐎𝐌r guarantees that each v𝐃𝐎𝐌r informs at least one uninformed node. For each v𝐃𝐎𝐌r, the labeling algorithm chooses exactly one such node v informed by v in block r as the feedback node of v in that block.

All feedback nodes can transmit simultaneously messages received by the nodes which serve as their witnesses. These feedback nodes transmit in the second round of the block, called the Feedback step. Their messages contain some information stored in their labels which instruct the corresponding nodes from 𝐃𝐎𝐌r whether they should stay in 𝐃𝐎𝐌r+1 and instruct them about their behaviour in the remaining steps of the current block r.

Nodes informed until block r which are outside of 𝐃𝐎𝐌r remain inactive to the end of an execution of the algorithm. The intuition regarding this property is the fact that a node v outside of 𝐃𝐎𝐌r does not have its feedback node to instruct v about its actions. On the other hand, v cannot store this information in its own label for many blocks of computation, because it would require non-constant size of labels.

As each block extends the set of informed nodes, we have broadcasting in O(n) time.

2. The propagation mechanism from [7].

In order to accelerate propagation of the broadcast message in the case when the diameter D of the input graph is o(n), ideas from a randomized seminal distributed algorithm of Bar-Yehuda et al. [2] are applied. Namely, for appropriate random choices of informed nodes whether to transmit in a particular round, one can assure that the broadcast message is passed to the consecutive level of a BFS tree rooted at the source node s in O(logn) rounds in expectation. This in turn gives randomized broadcasting in O(Dlogn+log2n) rounds.

These random choices of nodes are mimicked in the labels of nodes. More precisely, the labels store some 0/1 random choices whether to transmit in a given block, assuring a given time bound. In particular, the feedback node of a node v𝐃𝐎𝐌r stores, in the bit Go of its label, information whether v should transmit. Then, the nodes from 𝐃𝐎𝐌r which received Go=1 transmit the broadcast message in the separate Go step of the block r. The labeling scheme obtained in this way is non-constructive. Using ideas from [3] regarding centralized broadcasting in arbitrary bipartite graphs, one can obtain a constructive labeling scheme. However, the time of the broadcasting algorithm such a scheme would support becomes O(Dlog2n) instead of O(Dlogn+log2n) supported by the non-constructive scheme.

3. The fast tracks mechanism.

This mechanism is the main novelty of our solution and permits us to improve the broadcasting time from [7]. The goal here is to implement ideas of a fast centralized algorithm into constant-size advice such that a distributed algorithm can somehow simulate the centralized one. The key ingredient of our approach is illustrated by the notion of a 2-height respecting trees (2-HRT) and the fact that there exists a BFS tree which is also 2-HRT, for each graph. The 2-height of a node v in a tree intuitively denotes the maximum number of “critical branches” (causing large congestion) on a path from v to a leaf. The maximum 2-height is always at most logn. Each time the 2-height of a node v and of some child w of v are the same, transmission of a message from v to w can be made in parallel with other similar transmissions from the level of v dedicated to the particular value of 2-height. Therefore, such an edge connecting v and w with equal 2-heights is called a fast edge. As all but logn edges on each path from the root to a leaf are fast, the centralized algorithm from [13] accomplishes broadcast in almost optimal time O(D+log3n). With this aim, the authors of [13] make use of the notion of gathering trees which somehow minimize collisions between fast edges. Our notion of a 2-HRT imposes stronger requirements than gathering trees, making fast transmissions even more parallelizable. Then, the key challenge is an implementation of the idea of a centralized algorithm by constant-size labels instructing nodes of a distributed algorithm how to simulate the centralized algorithm. The main obstacle here comes from the domination mechanism which switches off some nodes irreversibly, preventing them from transmitting any message starting from the block r in which they are outside of the minimal dominating set 𝐃𝐎𝐌r. We show that, for each such node, one can determine its “rescue node” still present in the dominating set, such that its transmission on behalf of a switched off node does not cause additional collisions.

Our final solution using this mechanism gives a non-constructive labeling scheme of constant length, supporting broadcasting in time O(D+log2n), which is optimal, even for centralized algorithms. Using the technique from [3] we can build labels constructively at the cost of increasing the time complexity of broadcasting to O(D+min(D,logn)log2n).

High-level description of gossiping

We introduce the auxiliary task of gathering: each node of the graph has a message, and all messages have to reach a designated node called the sink. We provide a gathering algorithm working in time O(D+Δlogn+log2n) and using a labeling scheme of length O(logΔ).

With this aim, we make use of properties of a 2-HRT to implement the centralized algorithm for gathering from [13] in a distributed way, using short labels. Let T be a BFS tree of the input graph which is also a 2-HRT. The centralized algorithm from [13] determines the unique round t(v) in which each node v transmits all messages from its subtree of T444The authors of [13] use the notion of gathering trees, but 2-HRT satisfy all properties of gathering trees. to the parent of v without a collission. These collision-free transmissions are assured by the properties of gathering trees from [13] which are also satisfied by 2-HRT. The value of t(v) depends on parameters D, level(v), h2(v)[0,logn], Δ and on some auxiliary label s(v)[0,Δ1]. Thus, while Δ and s(v) can be encoded in the label of v using O(logΔ) bits, we cannot store D, h2(v) and level(v) in the label of length O(logΔ). With this aim we use a modified Size Learning Algorithm from [11] followed by an acknowledged broadcasting algorithm to share information about the value of D among all nodes and assure that nodes learn their levels during an execution of the broadcasting algorithm. Finally, each leaf is marked as such by an appropriate bit of its label. The fact that a node v is a leaf implies also that h2(v)=0. Other nodes learn their values of h2 by modifying the maximal values of h2 of their children.

Our solution of the gossiping problem works as follows. First, we gather all messages in an arbitrary node s, executing our gathering algorithm. Then, all messages collected at s are distributed using our broadcasting algorithm. In order to coordinate all nodes so that they know when the consecutive subroutines of the final algorithm start, we use an acknowledged broadcasting.

References

  • [1] Stephen Alstrup, Haim Kaplan, Mikkel Thorup, and Uri Zwick. Adjacency labeling schemes and induced-universal graphs. SIAM J. Discret. Math., 33(1):116–137, 2019. doi:10.1137/16M1105967.
  • [2] Reuven Bar-Yehuda, Oded Goldreich, and Alon Itai. On the time-complexity of broadcast in multi-hop radio networks: An exponential gap between determinism and randomization. J. Comput. Syst. Sci., 45(1):104–126, 1992. doi:10.1016/0022-0000(92)90042-H.
  • [3] I. Chlamtac and S. Kutten. On broadcasting in radio networks–problem analysis and protocol design. IEEE Trans. on Communic., 33(12):1240–1246, 1985. doi:10.1109/TCOM.1985.1096245.
  • [4] Ferdinando Cicalese, Fredrik Manne, and Qin Xin. Faster deterministic communication in radio networks. Algorithmica, 54(2):226–242, 2009. doi:10.1007/S00453-007-9136-0.
  • [5] Artur Czumaj and Peter Davies. Deterministic communication in radio networks. SIAM J. Comput., 47(1):218–240, 2018. doi:10.1137/17M1111322.
  • [6] Artur Czumaj and Wojciech Rytter. Broadcasting algorithms in radio networks with unknown topology. J. Algorithms, 60(2):115–143, 2006. doi:10.1016/J.JALGOR.2004.08.001.
  • [7] Faith Ellen and Seth Gilbert. Constant-length labelling schemes for faster deterministic radio broadcast. In C. Scheideler and M. Spear, editors, SPAA ’20, pages 213–222. ACM, 2020. doi:10.1145/3350755.3400238.
  • [8] Faith Ellen, Barun Gorain, Avery Miller, and Andrzej Pelc. Constant-length labeling schemes for deterministic radio broadcast. In Christian Scheideler and Petra Berenbrink, editors, SPAA 2019, pages 171–178. ACM, 2019. doi:10.1145/3323165.3323194.
  • [9] Pierre Fraigniaud, Amos Korman, and Emmanuelle Lebhar. Local MST computation with short advice. Theory Comput. Syst., 47(4):920–933, 2010. doi:10.1007/s00224-010-9280-9.
  • [10] Emanuele G. Fusco, Andrzej Pelc, and Rossella Petreschi. Topology recognition with advice. Inf. Comput., 247:254–265, 2016. doi:10.1016/j.ic.2016.01.005.
  • [11] A. Ganczorz, T. Jurdzinski, M. Lewko, and A. Pelc. Deterministic size discovery and topology recognition in radio networks with short labels. In S. Gilbert, editor, DISC 2021, volume 209 of LIPIcs, pages 22:1–22:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPICS.DISC.2021.22.
  • [12] Leszek Gasieniec and Andrzej Lingas. On adaptive deterministic gossiping in ad hoc radio networks. Inf. Process. Lett., 83(2):89–93, 2002. doi:10.1016/S0020-0190(01)00312-X.
  • [13] Leszek Gasieniec, David Peleg, and Qin Xin. Faster communication in known topology radio networks. Distributed Comput., 19(4):289–300, 2007. doi:10.1007/s00446-006-0011-z.
  • [14] Leszek Gasieniec, Tomasz Radzik, and Qin Xin. Faster deterministic gossiping in directed ad hoc radio networks. In Torben Hagerup and Jyrki Katajainen, editors, SWAT 2004, volume 3111 of LNCS, pages 397–407. Springer, 2004. doi:10.1007/978-3-540-27810-8_34.
  • [15] Mohsen Ghaffari and Bernhard Haeupler. Fast structuring of radio networks large for multi-message communications. In Yehuda Afek, editor, DISC 2013, volume 8205 of Lecture Notes in Computer Science, pages 492–506. Springer, 2013. doi:10.1007/978-3-642-41527-2_34.
  • [16] C. Glacet, A. Miller, and A. Pelc. Time vs. information tradeoffs for leader election in anonymous trees. ACM Trans. Algorithms, 13(3):31:1–31:41, 2017. doi:10.1145/3039870.
  • [17] Barun Gorain and Andrzej Pelc. Deterministic graph exploration with advice. ACM Trans. Algorithms, 15(1):8:1–8:17, 2019. doi:10.1145/3280823.
  • [18] Dariusz R. Kowalski and Andrzej Pelc. Broadcasting in undirected ad hoc radio networks. Distributed Computing, 18(1):43–57, 2005. doi:10.1007/s00446-005-0126-7.
  • [19] Dariusz R. Kowalski and Andrzej Pelc. Optimal deterministic broadcasting in known topology radio networks. Distributed Computing, 19(3):185–195, 2007. doi:10.1007/s00446-006-0007-8.
  • [20] Gianluca De Marco. Distributed broadcast in unknown radio networks. SIAM J. Comput., 39(6):2162–2175, 2010. doi:10.1137/080733826.
  • [21] Avery Miller and Andrzej Pelc. Fast rendezvous with advice. Theor. Comput. Sci., 608:190–198, 2015. doi:10.1016/J.TCS.2015.09.025.
  • [22] Shailesh Vaya. Round complexity of leader election and gossiping in bidirectional radio networks. Inf. Process. Lett., 113(9):307–312, 2013. doi:10.1016/J.IPL.2013.02.001.