SlideServe
Menu
Préférences
© SlideServe · v2026

Clock Phase Synchronization Self-Stabilization Algorithm

kizer avatar
7 diapositives · 123 Views · Jan 07, 2020

A self-stabilizing algorithm for n clocks ticking at the same rate, ensuring convergence and closure in phase synchronization. Proof of liveness using arrow game. Design a spanning tree construction algorithm for a network with n nodes.

Clock Phase Synchronization Self-Stabilization Algorithm - slide 1
01 / 7Clock Phase Synchronization Self-Stabilization Algorithm
1 / 17

Télécharger la présentation

Clock Phase Synchronization Self-Stabilization Algorithm
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Self-stabilization

  2. Example 1 0 Clock phase synchronization System of n clocks ticking at the same rate. Each clock is 3-valued, i,e it ticks as 0, 1, 2, 0, 1, 2… A failure may arbitrarily alter the clock phases. The clocks need to return to the same phase. . 1 2 3 n-1

  3. Clock phase synchronization {Program for each clock} (c[k] = phase of clock k, initially arbitrary) do∃j: j∈ N(i) :: c[j] = c[i] +1 mod 3 → c[i] := c[i] + 2 mod 3 [] ∀j: j ∈ N(i) :: c[j] ≠ c[i] +1 mod 3 → c[i] := c[i] + 1 mod 3 od Show that eventually all clocks will return to the same phase (convergence), and continue to be in the same phase (closure) Proof of liveness: an example ∀k: c[k] ∈ {0,1,2} 0 1 2 3 n-1

  4. Let D = d[0] + d[1] + d[2] + … + d[n-1] d[i] = 0 if no arrow points towards clock i; = i + 1 if a ← points towards clock i; = n - i if a → points towards clock i; = 1 if both → and ← point towards clock i. By definition, D ≥ 0. Also, D decreases after every step in the system. So the number of arrows must reduce to 0. Proof of convergence 0 1 2 n-1 0 2 2 2 0 1 1 0 1 1 2 2 2 2 2 Understand the game of arrows

  5. Example 2 • Design a self-stabilizing algorithm for constructing • a spanning tree of a network. The root is given • Assume • - There are n nodes • Each node i has two variables: • parent p(i), and • - a label L(i) that measures the distance of i from the root • via tree edges. • - By definition, L(root) = 0

  6. Example 2 Algorithm due to Chen, Yu, and Huang (1991)

  7. Example 2 Algorithm due to Chen, Yu, and Huang (1991)