Lecture Notes: Agreement Protocols
Lecture Notes: Agreement Protocols
Blank Homework
Notes Labs Scores Blank
Lecture Notes
Dr. Tong Lai Yu, March 2010
Leonardo da Vinci
Agreement Protocols
1. Failure Masking by Redundancy
Design issues
a) Communication in a flat group. b) Communication in a simple hierarchical group.
Impossibility Results
This violates 1.
Hence, no solution exists for 3 generals that works in the presence of a single traitor.
Lamport-Shostak-Pease Algorithm
n generals
majority ( 1, 1, 0 ) = 1
let vi = value General i receives from commander or else RETREAT ( if receives no value )
Nonfaulty Commander
Figure
General 1: majority ( v, v, y ) = v
General 2: majority ( v, v, x ) = v
General 1: majority ( x, y, z )
General 2: majority ( y, x, z )
General 3: majority ( z, x, y )
Faulty Commander
Figure
Examples
( n - 2 ) rounds,
message complexity: O( nm )
6. Consensus Problem
The active processors first make an agreement then send results to passive
processors
The passive processors can use majority rule to find the value
9. Signed Messages
authenticated
1. A loyal general's signature cannot be forged, and any alteration of the contents of his signed messages can be
detected
2. Anyone can verify the authenticity of a general's signature
now a three-general solution does exist
10. Applications