Slides For Chapter 15: Coordination and Agreement: Distributed Systems: Concepts and Design
Slides For Chapter 15: Coordination and Agreement: Distributed Systems: Concepts and Design
Crashed
router
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.2
Server managing a mutual exclusion token for a set of processes
Server
Queue of
requests
4
2
3. Grant
token
1. Request
token
2. Release p4
p token
1
p2 p
3
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.3
A ring of processes transferring a mutual exclusion token
p
1 p
2
pn
p
3
p
4
Token
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.4
Ricart and Agrawalas algorithm
On initialization
state := RELEASED;
To enter the section
state := WANTED;
Multicast request to all processes; request processing deferred here
T := requests timestamp;
Wait until (number of replies received = (N 1));
state := HELD;
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.5
Multicast synchronization
41
41 p
3
p Reply
1
Reply 34
Reply
34
41
p 34
2
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.6
Maekawas algorithm part 1
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.7
A ring-based election in progress
3
17
24
15
28 24
election election C
Stage 2
answer
p1 p p p
2 3 4
timeout
Stage 3
p p p p
1 2 3 4
Eventually ... ..
coordinat or
C
Stage 4
p p p p
1 2 3 4
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.9
Reliable multicast algorithm
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.10
The hold-back queue for arriving multicast messages
Mess age
proc es sing
deliv er
Hold-back
queue Delivery queue
T1
Notice the consistent T2
delivery ordering of
messages.
Time
C1
C2
C3
P1 P2 P3
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.12
Display from bulletin board program
23 A.Hanlon Mach
24 G.Joseph Microkernels
25 A.Hanlon Re: Microkernels
26 T.LHeureux RPC performance
27 M.Walker Re: Mach
end
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.13
Total ordering using a sequencer
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.14
The ISIS algorithm for total ordering
P2
1 Message
3
22 P4
1
3 Agreed Seq
1
2 P1
3
P3
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.15
Causal ordering using vector timestamps
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.16
Consensus for three processes
d1 :=proceed d2 :=proceed
P1 P2
v1 =proceed v2=proceed
1
v3=abort
P3 (c ras hes)
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.17
Consensus in a synchronous system
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.18
Three Byzantine generals
p1 (Commander) p1 (Commander)
2:1:v 2:1:w
p2 p3 p2 p3
3:1:u 3:1:x
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012
Figure 15.19
Four Byzantine generals
p1 (Commander) p1 (Commander)
p4 p4
Faulty processes are shown coloured
Instructors Guide for Coulouris, Dollimore, Kindberg and Blair, Distributed Systems: Concepts and Design Edn. 5
Pearson Education 2012