Cuts - PowerPoint PPT Presentation

1 / 39
About This Presentation
Title:

Cuts

Description:

... consistent cut such that. Maximal Consistent Cut. Maximal ... OK. Spring 2003. Costas Busch. 23. 2. 1. 3. 4. 5. 1. 2. 3. 4. 2. 1. 3. 4. 5. 6. 7. OK. OK ... – PowerPoint PPT presentation

Number of Views:55
Avg rating:3.0/5.0
Slides: 40
Provided by: costas
Category:
Tags: cut | cuts

less

Transcript and Presenter's Notes

Title: Cuts


1
Cuts
2
(No Transcript)
3
consists from an event from each process
Cut
4
no messages cross the cut
Consistent cut
5
messages can cross from left to right of the cut
Consistent cut
6
messages cross from right to left of the cut
Inconsistent cut
7
messages cross from right to left of the cut
Inconsistent cut
8
Maximal Consistent Cut
Consider some (inconsistent) cut
Maximal Consistent Cut of
A consistent cut such that
and contains most recent events
9
(inconsistent cut)
10
maximal consistent cut
(inconsistent cut)
11
Theorem
For every cut , there is a unique maximal
consistent cut
Proof
Proof by contradiction
12
Assume for contradiction there are two (or more)
maximal cuts of
maximal consistent cuts
13
It cannot be that and dont cross
not maximal!
14
and cross
15
and cross
new cut
16
and cross
impossible
is consistent
since
17
and cross
impossible
is consistent
since
18
and cross
Contradiction!
not maximal!
not maximal!
is consistent
End of proof
19
A distributed algorithm for computing the
maximum consistent cut of
  • Use vector clocks
  • For each processor
  • Find most recent event with
  • vector clock

20
(No Transcript)
21
(No Transcript)
22
OK
23
OK
OK
24
OK
OK
25
OK
OK
OK
26
(No Transcript)
27
Distributed Snapshot
  • A set of processors initiate the
  • computation for obtaining a global snapshot

(these processors receive special marker
messages from the system)
  • The cut contains the state of at least
  • one processor in in the initiation

28
A Distributed Snapshot Algorithm
Processor
  • Count local events in
  • Upon receiving a marker message

If then
set
send marker to all neighbors
29
(No Transcript)
30
m
31
m
m
m
32
m
m
m
33
m
m
m
m
m
m
m
m
34
m
m
m
m
m
m
m
m
35
m
m
m
m
m
m
m
m
m
36
m
m
m
m
m
m
m
m
m
cut
37
Theorem
The cut obtained by the algorithm is consistent
By contradiction
Proof
38
Suppose the cut is incosistent
39
(we assume FIFO)
It must be
m
Impossible!
End of proof
Write a Comment
User Comments (0)
About PowerShow.com