Presentation is loading. Please wait.

Presentation is loading. Please wait.

Slides for Chapter 11: Time and Global State

Similar presentations


Presentation on theme: "Slides for Chapter 11: Time and Global State"— Presentation transcript:

1 Slides for Chapter 11: Time and Global State
From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 4, © Pearson Education 2005

2 Figure 11.1 Skew between computer clocks in a distributed system
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

3 Figure 11.2 Clock synchronization using a time server
p Time server,S Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

4 Figure 11.3 An example synchronization subnet in an NTP implementation
2 3 Note: Arrows denote synchronization control, numbers denote strata. Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

5 Figure 11.4 Messages exchanged between a pair of NTP peers
-2 - 3 Server B Server A Time m m' Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

6 Figure 11.5 Events occurring at three processes
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

7 Figure 11.6 Lamport timestamps for the events shown in Figure 11.5
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

8 Figure 11.7 Vector timestamps for the events shown in Figure 11.5
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

9 Figure 11.8 Detecting global properties
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

10 Figure 11.9 Cuts e p m Physical time Inconsistent cut Consistent cut 1
2 p Physical time e Consistent cut Inconsistent cut 3 Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

11 Figure 11.10 Chandy and Lamport’s ‘snapshot’ algorithm
Marker receiving rule for process pi On pi’s receipt of a marker message over channel c: if (pi has not yet recorded its state) it records its process state now; records the state of c as the empty set; turns on recording of messages arriving over other incoming channels; else pi records the state of c as the set of messages it has received over c since it saved its state. end if Marker sending rule for process pi After pi has recorded its state, for each outgoing channel c: pi sends one marker message over c (before it sends any other message over c). Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

12 Figure 11.11 Two processes and their initial states
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

13 Figure 11.12 The execution of the processes in Figure 11.11
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

14 Figure 11.13 Reachability between states in the snapshot algorithm
init final snap actual execution e ,e 1 ,... recording begins ends pre-snap: e ' ,...e R-1 post-snap: e R R+1 Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

15 Figure 11.14 Vector timestamps and variable values for the execution of Figure 11.9
2 p Physical time Cut C (1,0) (2,0) (4,3) (2,1) (2,2) (2,3) (3,0) x = 1 = 100 = 105 = 95 = 90 Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

16 Figure 11.15 The lattice of global states for the execution of Figure 11.14
Sij = global state after i events at process 1 and j events at process 2 S 00 10 20 21 30 31 32 22 23 33 43 Level 0 1 2 3 4 5 6 7 Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

17 Figure 11.16 Algorithms to evaluate possibly f and definitely f
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005

18 Figure 11.17 Evaluating definitely f
Instructor’s Guide for Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edn © Pearson Education 2005


Download ppt "Slides for Chapter 11: Time and Global State"

Similar presentations


Ads by Google