Geração Quase-Instantânea de Orientações Acíclicas em Sistemas Distribuídos Anônimos

Gladstone M. Arantes, Felipe M. G. França2001 · DOI

Abstract

Este artigo discute um conjunto de algoritmos distribuídos não-determinísticos para a geração de orientações acíclicas em um sistema distribuído anônimo de topologia arbitrária. Embora possam ser concebidas outras aplicações práticas para essa forma de quebra de simetria, estaremos focando o problema da inicialização de um sistema para a operação do Escalonamento por Reversão de Arestas (ERA), um simples e poderoso algoritmo de escalonamento distribuído. O ERA requer uma orientação acíclica inicial no grafo que representa o compartilhamento de recursos do sistema alvo para executar corretamente e tal condição inicial determina a "quantidade de concorrência" associada à dinâmica do escalonamento. Os algoritmos são analisados tanto em termos de tempo de convergência quanto em termos de quantidade de concorrência produzida. Em particular, é proposto um novo algoritmo chamado Alg-Arestas que, em certas condições, é capaz de produzir orientações acíclicas quase instantaneamente, isto é, em menos de dois (2) passos.

Introduction

In the field of distributed computing, anonymous systems—where nodes lack unique identifiers and global network maps—present a significant challenge for coordination. A fundamental problem in this domain is symmetry breaking, specifically the generation of Acyclic Orientations (AOs). These orientations are essential for initializing distributed scheduling protocols like Scheduling by Edge Reversal (SER), which manage shared resources without a central authority.

The Scheduling by Edge Reversal (SER) Mechanism

SER models a system as a graph where nodes are processors and edges represent shared resources. A node is permitted to operate only when it becomes a "sink," meaning all its incident edges are directed toward it. Once the task is complete, the node reverses the direction of all its edges, effectively passing the operational priority to its neighbors.

Dynamics of Scheduling by Edge Reversal (SER) showing state transitions and edge reversals.

For SER to function correctly and avoid deadlocks, the initial state must be a Directed Acyclic Graph (DAG). Generating this initial DAG efficiently in an anonymous system is the primary hurdle addressed by this research.

Proposed Algorithmic Approaches

The researchers evaluated three distinct strategies for generating acyclic orientations:

  1. Alg-Viz (Node-Centric): Nodes attempt to become sinks by rolling an $f$-sided die and comparing the result with their neighbors. While reliable, this approach can be slow in dense networks as nodes must wait for local consensus.
  2. Alg-Arestas (Edge-Centric): This novel approach shifts the focus from nodes to edges. Each node rolls a die, and for every unoriented edge, the node with the higher roll "claims" the direction. This "polarized" method allows for significantly faster convergence.
  3. Alg-Cor (Concurrency-Optimized): A variation of Alg-Viz that incorporates a greedy coloring mechanism to maximize the number of initial sinks, thereby increasing the system's initial parallel processing capacity.

Performance and Convergence Results

The most striking result of the study is the efficiency of Alg-Arestas. By orienting edges directly based on local stochastic rolls, the algorithm bypasses the scaling issues inherent in node-centric approaches.

Convergence time comparison between polarized (Alg-Arestas) and non-polarized (Alg-Viz) approaches in complete graphs.

As illustrated in the experimental data, while the convergence time for non-polarized algorithms scales exponentially with the number of nodes in complete graphs, the polarized Alg-Arestas remains remarkably efficient. Under ideal conditions—where the number of die faces $f$ is significantly larger than the number of edges $m$—Alg-Arestas converges in fewer than two steps, regardless of the network's size or density.

Concurrency and Quality Trade-offs

While Alg-Arestas offers "quasi-instant" convergence, there is a trade-off regarding the "quality" of the resulting orientation. Quality is measured by concurrency, or the proportion of nodes that can operate simultaneously. High connectivity in the graph tends to reduce concurrency as longer directed paths are formed. While Alg-Arestas is the fastest, Alg-Cor is designed to produce orientations with higher initial concurrency, making it more suitable for systems where initial throughput is more critical than setup speed.

Conclusion

The introduction of Alg-Arestas provides a robust solution for the rapid initialization of anonymous distributed systems. Its ability to generate acyclic orientations almost instantly makes it a valuable primitive for symmetry breaking, with potential applications extending beyond scheduling into areas like graph coloring and maximal independent set selection.

Summary updated

Abstract

Este artigo discute um conjunto de algoritmos distribuídos não-determinísticos para a geração de orientações acíclicas em um sistema distribuído anônimo de topologia arbitrária. Embora possam ser concebidas outras aplicações práticas para essa forma de quebra de simetria, estaremos focando o problema da inicialização de um sistema para a operação do Escalonamento por Reversão de Arestas (ERA), um simples e poderoso algoritmo de escalonamento distribuído. O ERA requer uma orientação acíclica inicial no grafo que representa o compartilhamento de recursos do sistema alvo para executar corretamente e tal condição inicial determina a "quantidade de concorrência" associada à dinâmica do escalonamento. Os algoritmos são analisados tanto em termos de tempo de convergência quanto em termos de quantidade de concorrência produzida. Em particular, é proposto um novo algoritmo chamado Alg-Arestas que, em certas condições, é capaz de produzir orientações acíclicas quase instantaneamente, isto é, em menos de dois (2) passos.
BibTeX
@misc{arantes2001geracao,
  author = {Gladstone M. Arantes and Felipe M. G. França},
  title = {{Geração Quase-Instantânea de Orientações Acíclicas em Sistemas Distribuídos Anônimos}},
  year = {2001},
  doi = {10.5753/wscad.2001.19123},
}
Figure