Threshold Logical Clocks
Manuel Vidigueira
Distributed and Decentralized Systems Lab (DEDIS) École polytechnique fédérale de Lausanne (EPFL) Supervised by Bryan Ford and Ceyhun Alp
Threshold Logical Clocks Manuel Vidigueira Distributed and - - PowerPoint PPT Presentation
Threshold Logical Clocks Manuel Vidigueira Distributed and Decentralized Systems Lab (DEDIS) cole polytechnique fdrale de Lausanne (EPFL) Supervised by Bryan Ford and Ceyhun Alp Outline Motivation Threshold Logical Clocks
Distributed and Decentralized Systems Lab (DEDIS) École polytechnique fédérale de Lausanne (EPFL) Supervised by Bryan Ford and Ceyhun Alp
2
3
like a synchronous network
transmission delay
time
4
More robust Easier to prove/analyse Can we get the best of both worlds?
5
Meet tomorrow? TAlice: 00:00 Yes! TBob: 00:20 Meet today? TAlice: 00:10
Alice Bob
Meet tomorrow? Meet today? Yes!
Messages are
Meet tomorrow? Yes! Meet today?
6
Alice Bob Same order (and correct)
Meet tomorrow? Yes! Meet today? Meet tomorrow? Yes! Meet today?
Meet tomorrow? A: 1, B: 0 Yes! A: 1, B: 1 Meet today? A: 2, B: 0
crashing
(behave arbitrarily)
7
Stronger
8
Meet tomorrow? A: 1, B: 0, ... Meet today? A: 2, B: 0, ... Yes! A: 2, B: 1, ... Alice Bob Eve Hey Bob... A: 2, B: 0, ... Messages arrive
Meet tomorrow? Meet today? Yes! Meet tomorrow? Yes! Meet today?
9
Alice Bob
Everyone else Messages lost, delayed... A: 3 A: 3 A: 0 Local “time”
10
11
Alice Bob
R: 0 R: 1 R: 2 R: 3 (T = 2)
Performance goals Security goals
Honest nodes must be able to make progress (go to next round)
Rounds should be fast and use few round trips.
Should scale to at least 100s of nodes
No use of timeouts or synchronous assumptions.
Can tolerate as many byzantine
12
Round R
TLC
m S
A validation function fval filters bad messages
13
Round 0 Round 1 Round 2
TLC TLC
14
Real time m S
TLC
m S
TLC
m S
15
(T,A) - TLC
16
Broadcast O(N) Acknowledgements O(N2)
Simple TLC round split by trip time
Messages for one node
17
Broadcast O(N2) Acknowledgements O(N3)
~TLC round split by trip time
Messages for all nodes
18
19
(T,A) - TLC
Broadcast O(N) Acknowledgements O(N) Threshold Witnessed TLC round split by trip time Messages for one node Rebroadcast O(N)
20
Broadcast O(N2) Acknowledgements O(N2) Threshold Witnessed TLC round split by trip time Messages for all nodes Rebroadcast O(N2)
21
22
○ Simple: ~420 lines ○ Threshold Witnessed: ~575 lines
○ Kyber crypto library ○ Onet network library
○ 100 Mbps bandwidth ○ 200 ms round-trip latency ○ 1KB payloads
23
24
T = A = (n+1)/2 T = A = (2n+1)/3
25
T = A = (n+1)/2 T = A = (2n+1)/3
26
○ The communication logic is reduced to TLC time-steps. ○ Can be used for Byzantine consensus as well. ○ Details are currently in the works.
27
28
○ robust round based communication ○ group based notion of time ○ implementation with reduced bandwidth and latency ○ scales to 100s of nodes ○ many potential applications Round X
TLC
m S Thanks!
29