Presentation is loading. Please wait.

Presentation is loading. Please wait.

University of Iowa1 Self-stabilization. The University of Iowa2 Man vs. machine: fact 1 An average household in the developed countries has 50+ processors.

Similar presentations


Presentation on theme: "University of Iowa1 Self-stabilization. The University of Iowa2 Man vs. machine: fact 1 An average household in the developed countries has 50+ processors."— Presentation transcript:

1 University of Iowa1 Self-stabilization

2 The University of Iowa2 Man vs. machine: fact 1 An average household in the developed countries has 50+ processors. Most are embedded or special purpose in nature.

3 The University of Iowa3 A checklist BMW 7 series car55+ Washing and drying machines2 Mobile phone1 Digital TV1 Camera1 CD / DVD / MP3 player1 Kitchen gadgets3 + PC / laptop/ accessories2-3

4 The University of Iowa4 Man vs. machine fact 2 The number of processors in the world is increasing at a faster pace than the number of human beings. We are being outnumbered by the processors.

5 The University of Iowa5 Man vs. machine: fact 3 As computing becomes ubiquitous, failures and perturbations become expected events. Systems must adapt to such events. There will not be enough human beings to fix the systems!

6 The University of Iowa6 So What? Future systems should be able to take care of themselves. These include the ability to self- organize, self-heal, self-optimize etc. IBM proclaimed autonomic computing as their vision of the future of computing systems. Such systems will be able to self-heal, self-organize, self-optimize and self-protect.

7 The University of Iowa7 Self-stabilization The earliest concept in the self -* category Coined by Dijkstra (CACM 74) illustrating three mutual exclusion systems that recover to a legal configurations (i.e. exactly one process in its critical section) from ANY initial configuration.

8 The University of Iowa8 Self-stabilizing systems Recover from any initial configuration to a legitimate configuration in a bounded number of steps as long as the codes are in tact. {true} SSS {Legal} Pre-conditionpost-condition self-stabilizing system

9 The University of Iowa9 Self-stabilizing systems State space legal Transient failures perturb the global state. The ability to spontaneously recover from any initial state implies that no initialization is ever required

10 The University of Iowa10 Self-stabilizing systems Self-stabilizing systems exhibits non-masking fault- tolerance. It satisfies the following two criteria fault 1. Convergence 2. Closure Not Legal Legal convergence closure

11 University of Iowa11 Example: Spanning tree construction Given a connected graph G=(V,E) and a root r, design an algorithm for maintaining a spanning tree in presence of transient failures that may corrupt the local states of processes. Nodes are numbered 0, 1, 2,.., n-1 n = |V|

12 University of Iowa12 Definitions Each process i has two variables: L = level, its distance from the root r via tree edges P = parent N(i) denotes the neighbors of i By definition L(r) = 0, and P(r) is undefined. In a legal state  i  V: i ≠ r, L(i) ≠ n and P(i) ≠ n, and L(i) = L(P(i))+1.

13 University of Iowa13 Sample case 0 1 2 5 4 3 0 1 2 5 4 3 1 2 3 4 5

14 University of Iowa14 The algorithm Repeat (R1).If (L(i)≠ n)  (L(i) ≠ L(P(i)) +1)  (L(P) ≠ n) → L(i) :=L(P(i))+1 (R2). if (L(i)  n)  (L(P(i))=n) → L(i):=n (R3) if (L(i)=n)  (  k  N(i):L(k) < n-1) → L(i) :=L(k)+1; P(i):= k od

15 The University of Iowa15 A spanning tree example L=0 L=1L=2 L=3 L=4 L=5 L(i) = L (P(i)) + 1 When L becomes > n-1, a node looks for a new parent. root L=6

16 The University of Iowa16 A spanning tree example L=0L=1 L=5L=3 L=4L=5 L(i) = L (P(i)) + 1 When L becomes > n-1, a node looks for a new parent. root L=6

17 The University of Iowa17 A spanning tree example L=0L=1L=5L=6 L=4L=5 L(i) = L (P(i)) + 1 When L becomes > n-1, a node looks for a new parent.. root L=6

18 The University of Iowa18 A spanning tree example L=0 L=1L=5 L=6 L=7 L=5 L(i) = L (P(i)) + 1 When L becomes > n-1, a node looks for a new parent. root L=6

19 The University of Iowa19 A spanning tree example L=0L=1 L=5L=6 L=5 L(i) = L (P(i)) + 1 When L becomes > n-1, a node looks for a new parent. root L=6

20 The University of Iowa20 A spanning tree example L=0L=1 L=5 L=6 L=7 L(i) = L (P(i)) + 1 When L becomes > n-1, a node looks for a new parent.. root L=6

21 The University of Iowa21 A spanning tree example L=0 L=1 L=5L=6 L=2 L(i) = L (P(i)) + 1 When L becomes > n-1, a node looks for a new parent. root L=3

22 The University of Iowa22 A spanning tree example L=0 L=1L=4 L=6 L=3 L=2 L(i) = L (P(i)) + 1 When L becomes > n-1, a node looks for a new parent. root L=3

23 The University of Iowa23 A spanning tree example L=0L=1 L=4 L=5 L=3 L=2 L(i) = L (P(i)) + 1 When L becomes > n-1, a node looks for a new parent. root L=3

24 University of Iowa24 Proof of stabilization Define an edge from i to P(i) to be well-formed, when L(i) ≠ n, L(P(i) ≠ n and L(i) = L(P(i))+1. In any configuration, the well-formed edges form a spanning forest. Delete all edges that are not well-formed. Designate each tree T(k) in the forest by the lowest value of L in it.

25 University of Iowa25 Example In the sample graph shown earlier. T(0) = {0, 1} T(2) = {2, 3, 4, 5} Let F(k) denote the number of T(k) in the forest. Define a tuple F= (F(0), F(1), F(2) …, F(n)). For the sample graph, F = (1, 0, 1, 0, 0, 0) after node 2 underwent a transient failure.

26 University of Iowa26 Skeleton of the proof Minimum F = (1,0,0,0,0,0) {legal configuration} Maximum F = (1, n-1, 0, 0, 0, 0). With each action of the algorithm, F decreases lexicographically. Verify the claim! This proves that eventually F becomes (1,0,0,0,0,0) and the spanning tree stabilizes.

27 The University of Iowa27 Pursuer Evader Games In a disaster zone, rescuers (pursuers) can track hot spots (evaders) using sensor networks. (Arora, Demirbas 2003)

28 The University of Iowa28 Pursuer Evader Games A spanning tree (DFS) is constructed on-the-fly with the evader as the root. How fast can the pursuer “catch” the evader?

29 The University of Iowa29 Conclusion Applications are growing. New techniques for convergence by studying the behavior of biological elements. Relationship between game theory and stabilization is worth studying


Download ppt "University of Iowa1 Self-stabilization. The University of Iowa2 Man vs. machine: fact 1 An average household in the developed countries has 50+ processors."

Similar presentations


Ads by Google