Consensus Hierarchy Part 1 - PowerPoint PPT Presentation

1 / 41
About This Presentation
Title:

Consensus Hierarchy Part 1

Description:

the configuration is bivalent, and after the processor takes step ... If is a bivalent configuration. then, there is at least one processor. which is not critical ... – PowerPoint PPT presentation

Number of Views:25
Avg rating:3.0/5.0
Slides: 42
Provided by: costas
Category:

less

Transcript and Presenter's Notes

Title: Consensus Hierarchy Part 1


1
Consensus HierarchyPart 1
2
Consensus in Shared Memory
Consider processors in shared memory
3
Local memory
Local memory
Shared memory
Every process starts with an initial value stored
in local memory (0 or 1)
4
communication through shared memory
5
At the end of execution, every process has
decided the same value (0 or 1)
6
Validity condition
If every process starts with the same value, the
every process should decide that value
Additional condition The decided value is one of
the initial values
7
Wait-freedom in asynchronous systems
A process should be able to finish execution of
an algorithm even if all other processes fail
8
Read/Write
Shared Memory
Suppose that the shared Memory can only be
accessed through Read or Write operations
9
Theorem
Wait-free consensus cannot be solved using only
read/write objects for processors
Proof of Theorem
We will show that any algorithm that solves
consensus, has an execution that never terminates
10
System configuration

Is the set of all variables in the system,
including local and shared
11
A distributed system execution can be always be
viewed a sequence of configurations
Initial configuration
Final configuration
Read or Write
Processor action
12
Valence of system configurations
bivalent
univalent
bivalent
univalent
0-valent
1-valent
Consensus value at possible execution paths
13
To prove the theorem, we will show that there is
always an execution where every configuration is
bivalent
14
Similar configurations for processor
Same shared variables Local variables of others
may differ
15
Lemma
If there exist univalent configurations
and such that
then if is -valent then is
-valent too
Proof of Lemma
16
Univalent
All possible executions from
final decision for each Possible execution
Execution with only taking actions
17
Univalent
Univalent
Execution with only taking actions
Execution with only taking actions
18
Univalent
Univalent
Execution with only taking actions
Execution with only taking actions
19
Univalent
Univalent
Execution with only taking actions
Execution with only taking actions
End of Lemma Proof
20
Lemma
There exists a bivalent initial configuration
Proof of Lemma
21
Possible Initial Configurations
Local Memory
Shared Memory
Initial Configuration
Empty
22
Possible Initial Configurations
Local Memory
Shared Memory
Initial Configuration
?
Empty
0-valent
1-valent
23
Possible Initial Configurations
Local Memory
Shared Memory
Initial Configuration
Empty
0-valent
1-valent
1-valent?
No, because
24
Possible Initial Configurations
Local Memory
Shared Memory
Initial Configuration
Empty
0-valent
1-valent
0-valent?
No, because
25
Possible Initial Configurations
Local Memory
Shared Memory
Initial Configuration
Empty
0-valent
1-valent
bivalent
End of Lemma Proof
26
Critical processor for a configuration
the configuration is bivalent, and after the
processor takes step the configuration becomes
univalent
Bivalent
Univalent
27
Lemma
If is a bivalent configuration then, there
is at least one processor which is not critical
Proof of Lemma
28
Assume for contradiction that all processors are
critical
univalent
Possible executions
bivalent
univalent
univalent
29
It cannot be that all have the same valence
valent
bivalent
valent
valent
30
It cannot be that all have the same valence
Contradiction
valent
bivalent
valent
valent
valent
31
There must exist two processors with different
valences
bivalent
32
Case 1 suppose that they access different
shared variables
bivalent
x
Read x
y
Read y
33
two possible executions
bivalent
Read y
Read x
different valence
impossible since
Read y
Read x
34
same result holds for any kind of operation
(Read or Write) that the processors apply to x
and y
35
Case 2 suppose that they access the same
shared variable
subcase read/read
bivalent
x
Read x
Read x
36
two possible executions
bivalent
Read x
Read x
different valence
impossible since
Read x
Read x
37
subcase read/write
bivalent
Read x
Write x
38
two possible executions
bivalent
Write x
Read x
different valence
impossible since
Write x
Read x
39
subcase write/write
bivalent
Write x
Write x
different valence
impossible since
Write x
Write x
40
In all cases we obtained contradiction
Therefore, there exists a processor which is not
critical
univalent
bivalent
univalent
bivalent
(not critical)
univalent
End of Lemma Proof
41
Therefore, we can construct an execution
bivalent
bivalent
bivalent
Never ends
Initial configuration
Consensus can never be reached
End of Theorem Proof
Write a Comment
User Comments (0)
About PowerShow.com