• Keine Ergebnisse gefunden

Exercise 12: Pulse! Task 1: Again, and Again, and Again. . .

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise 12: Pulse! Task 1: Again, and Again, and Again. . ."

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Exercise 12: Pulse!

Task 1: Again, and Again, and Again. . .

In this task, the goal is to show that once a single synchronized pulse is generated by the main state machine from the lecture, the algorithm stabilized. This follows by induction, once we prove that another synchronized pulse will be generated (within the period bounds) without any correct node producing any pulse in between. Of course, this requires some bounds on the timeouts. Throughout this exercise, we assume that each v ∈ V

g

transitions to pulse during [0, 2d].

a) Which inequality does T

1

need to satisfy so that it is guaranteed that each v ∈ V

g

transitions to wait during (T

1

/ϑ, T

1

+ 2d)?

b) If the constraint from a) holds, which inequalities do T

listen

and T

wait

need to satisfy so that it is guaranteed that each v ∈ V

g

transitions to input 1 during (T

1

/ϑ, T

1

+3d)?

c) If the above two constraints are satisfied, which inequality does T

wait

need to satisfy so that it is guaranteed that each v ∈ V

g

transitions to run 1 during ((T

1

+T

2

)/ϑ, T

1

+ T

2

+ 3d)?

d) If the resulting consensus instance is correctly working, argue that another synchro- nized pulse satisfying the period bounds given in the lecture is generated.

e) Provide (minimal) constraints under which the resulting consensus instance is guar- anteed to be executed correctly.

Task 2: NEXT!

In this task, we modify the self-stabilizing pulse synchronization algorithm from the lecture such that it provides the interface required to make the Lynch-Welch algorithm self-stabilizing using the technique from the lecture.

a) Add an intermediate state to the auxilliary state machine that “delays” an output of 1 by the consensus routine. The transitions to pulse and to listen are triggered when one of the following three events occurs: (i) the NEXT signal is triggered, (ii) Guard G4 is satisfied, or (iii) a timeout of O((1 + (ϑ − 1)R)d) expires. Explain why the modified algorithm stabilizes regardless of the NEXT signals, provided suitable timeout assignments can be found. How are the constraints on the timeouts affected (no details necessary)?

b) Argue that the self-stabilizing pulse synchronization algorithm can be made to work in its modified form, i.e., if the original algorithm had a suitable assignment of timeouts and ϑ−1 is sufficiently small, so does the modified algorithm. (Handwaving is ok, no formal proof required.)

c) In the terminology of Section 9.1, determine σ

h

, B

1

, B

2

, and B

3

for the modified algorithm.

d) Arguing as in Task 1 of exercise sheet 9, show that one can choose timeouts so that

the machinery from Section 9.1 works and T, S(1) ∈ O(σ

h

). Here, you will have to

choose T larger than in the lecture. You may assume that ϑ −1 is a sufficiently small

constant. What is the resulting skew bound after stabilization? (Hint: T will only

increase by a constant factor, which will not cause any real trouble; deal with this in

the very end. First, recall that it’s not necessary to choose B

3

= αB

2

= α

2

B

1

. It’s

good enough to ensure that B

1

beats an O(σ

h

+ d) term, which T

2

in the modified

algorithm will have to do anyway, and choose B

3

= αB

2

for some α ∈ 1 + O(ϑ − 1).)

(2)

e*) The result is not actually a good solution to the original problem, as the Lynch-

Welch algorithm now ends up having a bad skew of Ω(d). However, this issue can

be resolved by further modifying how the pulses are generated. Can you see the

solution?

Referenzen

ÄHNLICHE DOKUMENTE

to the east of Sarajevo. They advanced, moving close to the city centre, and Rose called down limited NATO air attacks. The Serbs halted, negotiated a ceasefire, and then broke

Both restitutive wieder and process adjuncts are sensitive to the semantics of the predicate, albeit in different ways: process adjuncts cannot combine with stative predicates

Präsident Bush ist sich bewusst, dass nicht der Sieg in Irak über seine Wiederwahl im November 2004 ent- scheidet; er braucht vielmehr einen nachhaltigen Aufschwung.. Er weiß, dass

Jeder kennt irgendwen, der es schon versucht hat; und viele spielen jahrelang mit dem Gedanken, es auch zu tun - und trauen sich dann noch nicht (oder hatten einfach nie Zeit,

San Sebastian ist eine sehr schöne Stadt an der Atlantikküste, nicht unweit der französischen Küste, und hat zwei Drittel derGröße von Graz.. Ich hatte ein paar Kriterien bei

In sum, it is not possible to tell a plausible story in the current economic situation where the reduction in demand from fiscal austerity will be offset by

This year Russia actually will look a bit more like an Asian power than it normally does, because it's hosting the APEC summit in Vladivostok in December of course. But that

All three of those traditions were influential in the design and execution of our original research project—the Initiative on Bridging Scholarship and Pedagogy in Jewish