CS 5412: LECTURE 6 TIMESTAMPED DATA
Ken Birman Spring, 2019
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 1
CS 5412: LECTURE 6 Ken Birman TIMESTAMPED DATA Spring, 2019 - - PowerPoint PPT Presentation
CS 5412: LECTURE 6 Ken Birman TIMESTAMPED DATA Spring, 2019 HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 1 TODAY: DRILL DOWN ON TIME Last time we discussed time more as an active aspect of a coordinated system (one of a few dimensions in
Ken Birman Spring, 2019
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 1
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 2
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 3
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 4
Often, we put “timestamps”
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 5
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 6
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 7
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 8
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 9
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 10
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 11
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 12
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 13
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 14
Drill down: CAP Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 15
P Q A B P sends M Q receives M Drill down: Consistency X
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 16
P LogicalClockP Q LogicalClockQ A P sends M 0 1 2 3 0 1 2 Q receives M B Drill down: Consistency X
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 17
Drill down: Consistency
Q computes: LogicalClockQ = max(0, 3) + 1
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 18
P LogicalClockP Q LogicalClockQ A P sends M 0 1 2 3 0 4 5 Q receives M B Drill down: Consistency LogicalClockM = 3 X
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 19
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 20
P LogicalClockP Q LogicalClockQ A 0 1 0 1 2 3 B X Y Drill down: Consistency Firewall blocks all traffic: P can’t communicate to Q
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 21
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 22
* Securities Exchange Commission
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 23
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 24
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 25
P VectorClockP Q VectorClockQ A [0,0] [1,0] [0,0] [0,1] [0,2] [0,3] B X Y Drill down: Consistency Firewall blocks all traffic: P can’t communicate to Q
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 26
P VectorClockP Q VectorClockQ A [0,0] [1,0] [0,0] [0,1] [1,2] [1,3] B X Y Drill down: Consistency Now the firewall is gone and a message gets through!
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 27
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 28
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 29
P Q A E F R S T U B D C H G Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 30
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 31
Imagine taking photos of our geese one by
a tiled mashup Truth: 7 Geese in a V formation Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 32
But suppose they were in motion while you did this Truth: 7 Geese in a V formation Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 33
Without coordination, some vanish, some are duplicated! You might even see a goose that shifted to avoid collision with another goose, but see that other goose in a much earlier place, before it even got close. Truth: 7 Geese in a V formation
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 34
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 35
P Q E F R S T U B C H G A “cut” across the system D Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 36
P Q E F R S T U B C H G D Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 37
P Q E F R S T U B C H G D A backwards message Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 38
Drill down: Consistency
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 39
Extra: not important, will cover if time permits
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 40
Extra: not important, will cover if time permits
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 41
Extra: not important, will cover if time permits
HTTP://WWW.CS.CORNELL.EDU/COURSES/CS5412/2019SP 42