Results on a Scalable Byzantine Agreement. Olumuyiwa Oluwasanmi, - - PowerPoint PPT Presentation

results on a scalable byzantine agreement
SMART_READER_LITE
LIVE PREVIEW

Results on a Scalable Byzantine Agreement. Olumuyiwa Oluwasanmi, - - PowerPoint PPT Presentation

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work Results on a Scalable Byzantine Agreement. Olumuyiwa Oluwasanmi, University of New Mexico ,


slide-1
SLIDE 1

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Results on a Scalable Byzantine Agreement.

Olumuyiwa Oluwasanmi, University of New Mexico , Joint work with Jared Saia University of New Mexico Valerie King University of Victoria

1/34

slide-2
SLIDE 2

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Motivation

"Unfortunately, Byzantine agreement requires a number of messages quadratic in the number of participants, so it is infeasible for use in synchronizing a large number of replicas" [REGWZK, ’03]. "Eventually batching cannot compensate for the quadratic number of messages [of Practical Byzantine Fault Tolerance (PBFT)]" [CMLRS, ’05]. "The communication overhead of Byzantine Agreement is inherently large" [CWL ’09] .

2/34

slide-3
SLIDE 3

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Motivation

Why Byzantine Agreement is important: Tells us how to build a reliable system from unreliable components.

3/34

slide-4
SLIDE 4

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Byzantine Agreement

Each processor starts with an initial input bit. Each good processor outputs the same bit b, this bit must equal

  • ne of the input bits.

A hidden subset of n/3 processors are bad and they may behave arbitrarily.

4/34

slide-5
SLIDE 5

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Leader Election

Another related problem we consider here is Leader Election: Some good processor p is elected as the leader and is known by all processors. With constant probability, p is good (there is no way to elect a good processor with certainty when there are bad processors).

5/34

slide-6
SLIDE 6

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Universe Reduction

A generalisation of Leader Election: Some set C (of size O(log3 n)) is elected and known by all processors. With high probability (1 − o(1)), C is good i.e . a majority of the processors in C are good.

6/34

slide-7
SLIDE 7

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Our Results

Theory: Can Solve Byzantine Agreement(Leader Election and Universe Reduction) with each processor sending ˜ O(√n) bits [KS, ’09]. Practice: Significant improvements in bandwidth starting at about 16k processors.[This talk]

7/34

slide-8
SLIDE 8

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work The Algorithm

Our Approach

1

Almost Everywhere Universe Reduction: There is a set C of size O(log3 n) that is good and is known by a 1 − ǫ fraction of good processors.

2

Almost Everywhere to Everywhere:

C does B.A. Everybody knows C and C’s output.

8/34

slide-9
SLIDE 9

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work The Algorithm

Universe Reduction

Problem The challenge? Our adversary can insert a greater than expected fraction of bad processors in the subset selected. Solution:Use randomness to select the processors. How to do this by avoiding sending O(n) messages per

  • processor. Solution:Use election graph to elect this subset.

9/34

slide-10
SLIDE 10

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work The Algorithm

Almost Everywhere Universe Reduction

We can reduce message complexity by using an election graph [KSSV, 06,07]. The nodes in this graph are groups of O(ln n) processors called committees. The election proceeds in layers.

10/34

slide-11
SLIDE 11

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work The Algorithm

Election Graph

11/34

slide-12
SLIDE 12

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work The Algorithm

Election Graph

12/34

slide-13
SLIDE 13

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work The Algorithm

Election Graph

13/34

slide-14
SLIDE 14

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work The Algorithm

The Election graph.

Initially at layer 0 we have the leaves of the election graph. Each node in the election graph elects a committee of O(log n) size selected from the nodes below.

14/34

slide-15
SLIDE 15

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work The Algorithm

Gains of using cryptography

New Ideas: We use [AS, 2006] to elect random processors within committees of size Θ(ln n). Can reduce committee size of Θ(ln n) from [KSSV,05]. This reduces message complexity at each layer.

15/34

slide-16
SLIDE 16

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work The Algorithm

Election Scheme.

Select the processors to advance by running the [AS, 2006] algorithm within each committee. A committee is good if >2/3 of the processors are good. Use samplers to spread out bad processors so that with high probability (probability 1 − 1/nc where c is a constant and c > 0) most of the committees in the next layer of elections are good.

16/34

slide-17
SLIDE 17

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Result

At the end of the A.E. protocol: There is a set C of size O(log3 n) with a 2/3 fraction of good processors. Each processor p, has a guess Cp for C. For a majority of good processors p, Cp = C Next step: Ensure everyone knows C.

17/34

slide-18
SLIDE 18

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Almost Everywhere to Everywhere.

Goal: Ensure everyone knows C. Idea: Each processor polls O(log n) processors. Problem: Spam! Bad processors send spurious requests. Idea: Polling requests sent through C, shich enforces few requests per processor Problem: Not everyone knows C!

18/34

slide-19
SLIDE 19

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

AE2E contd.

Idea: p sends it’s poll (of O(log n)) to O(√n) randomly selected

  • processors. Hopefully, someone in this set will forward the poll to

C. Each processor only forwards messages received from a set of O(√n log2 n) random processors. Birthday paradox ensures some processor will forward p’s poll.

19/34

slide-20
SLIDE 20

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

AE2E contd.

C forwards p’s poll to the appropriate processors. A processor answers a requests that it receives from a majority

  • f C’s members.

20/34

slide-21
SLIDE 21

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Sketch of communication flow in AE2E.

p q p

Cq

< C > < Pollp,p,1 >

Listp

< P

  • l

l

p

, p , 2 > < p,3 >

Pollp

p p

21/34

slide-22
SLIDE 22

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

AE2E contd

Problem: If a confused processor thinks it is in C, it will send many messages. Solution: Protocol starts with a check to see if a processor is in C.

22/34

slide-23
SLIDE 23

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Theorem

Our algorithm has the following properties: With high probability all of the good processors learn the value of the bit. Each processor sends O(√n log2 n) messages.

23/34

slide-24
SLIDE 24

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Experiments

We performed a simulation of our algorithm for n from 1000 to about 4,000,000 processors. Compared with CKS algorithm which uses cryptography. Measured bandwidth and latency.

24/34

slide-25
SLIDE 25

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Log log plot total bits sent

25/34

slide-26
SLIDE 26

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Log log plot total messages sent

26/34

slide-27
SLIDE 27

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Latency

27/34

slide-28
SLIDE 28

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Conclusion

1

Can Solve BA( and Universe Reduction) with ˜ O√n bits communication per processor.

2

Practical improvement on networks of size about 16k nodes.

28/34

slide-29
SLIDE 29

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Future directions

Further reduce message complexity? Use a sparse communication network? More realistic simulations? Handle the asynchronous case?

29/34

slide-30
SLIDE 30

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Future work

Less is more: Further reduce message complexity to O(log2 n) per processor. Ideas : Better algorithm for choosing a random peer, running elections recursively.

30/34

slide-31
SLIDE 31

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Sparse communication network

Want: A sparse communication network is more practical. Need communication network with lots of vertex disjoint nodes, so routing messages can be fault tolerant.

31/34

slide-32
SLIDE 32

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Detailed simulation

Some p2p networks could be as large as ten million nodes. Simulate on a cluster, as this more closely simulates real world conditions.

32/34

slide-33
SLIDE 33

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Asynchronous case.

The asynchronous communication is a more realistic model of network communication. Can we make the algorithm asynchronous and keep the bandwidth bounds on the algorithm the same?

33/34

slide-34
SLIDE 34

Introduction Almost Everywhere Byzantine Agreement via Universe Reduction From Almost Everywhere to everywhere(AE2E) Experimental Results Future work

Questions

Questions ?

34/34