Specifications and algorithms, mostly from
Christian Cachin, Rachid Guerraoui, Luís Rodrigues
Introduction to Reliable and Secure Distributed Programming
Springer, Berlin, Heidelberg, 2011
ISBN 978-3-642-15259-7
doi:10.1007/978-3-642-15260-3
Fair-loss point-to-point links
Events
fll.Send(q, m)requestRequests to send message m to process q.
fll.Deliver(p, m)indicationDelivers message m sent by process p.
Properties
If a correct process p infinitely often sends a message m to a correct process q, then q delivers m an infinite number of times.
If a correct process p sends a message m a finite number of times to process q, then m cannot be delivered an infinite number of times by q.
If some process q delivers a message m with sender p, then m was previously sent to q by process p.
Stubborn point-to-point links
Events
sl.Send(q, m)requestRequests to send message m to process q.
sl.Deliver(p, m)indicationDelivers message m sent by process p.
Properties
If a correct process p sends a message m once to a correct process q, then q delivers m an infinite number of times.
If some process q delivers a message m with sender p, then m was previously sent to q by process p.
Retransmit Forever
Perfect point-to-point links
Events
pl.Send(q, m)requestRequests to send message m to process q.
pl.Deliver(p, m)indicationDelivers message m sent by process p.
Properties
If a correct process p sends a message m to a correct process q, then q eventually delivers m.
No message is delivered by a process more than once.
If some process q delivers a message m with sender p, then m was previously sent to q by process p.
Eliminate Duplicates
Logged perfect point-to-point links
Events
lpl.Send(q, m)requestRequests to send message m to process q.
lpl.Deliver(delivered)indicationNotifies the upper layer of potential updates to variable delivered in stable storage. A message m with sender p is log-delivered once (p, m) is in delivered.
Properties
If a process that never crashes sends a message m to a correct process q, then q eventually log-delivers m.
No message is log-delivered by a process more than once.
If some process q log-delivers a message m with sender p, then m was previously sent to q by process p.
Log Delivered
Authenticated perfect point-to-point links
Events
al.Send(q, m)requestRequests to send message m to process q.
al.Deliver(p, m)indicationDelivers message m sent by process p.
Properties
If a correct process sends a message m to a correct process q, then q eventually delivers m.
No message is delivered by a correct process more than once.
If some correct process q delivers a message m with sender p and process p is correct, then m was previously sent to q by p.
Authenticate and Filter
FIFO-order perfect point-to-point links
Events
fpl.Send(q, m)requestRequests to send message m to process q.
fpl.Deliver(p, m)indicationDelivers message m sent by process p.
Properties
If a correct process p sends a message m to a correct process q, then q eventually delivers m.
No message is delivered by a process more than once.
If some process q delivers a message m with sender p, then m was previously sent to q by process p.
If some process sends message m1 before it sends message m2, then no correct process delivers m2 unless it has already delivered m1.
Sequence Number
Perfect failure detector
Events
P.Crash(p)indicationDetects that process p has crashed.
Properties
Eventually, every process that crashes is permanently detected by every correct process.
If a process p is detected by any process, then p has crashed.
Exclude on Timeout
Leader election
Events
le.Leader(p)indicationIndicates that process p is elected as leader.
Properties
Either there is no correct process, or some correct process is eventually elected as the leader.
If a process is leader, then all previously elected leaders have crashed.
Monarchical Leader Election
Eventually perfect failure detector
Events
◇P.Suspect(p)indicationNotifies that process p is suspected to have crashed.
◇P.Restore(p)indicationNotifies that process p is not suspected anymore.
Properties
Eventually, every process that crashes is permanently suspected by every correct process.
Eventually, no correct process is suspected by any correct process.
Increasing Timeout
Eventual leader detector
Events
Ω.Trust(p)indicationIndicates that process p is trusted to be leader.
Properties
There is a time after which every correct process trusts some correct process.
There is a time after which no two correct processes trust different correct processes.
Monarchical Eventual Leader Detection
Elect Lower Epoch
Byzantine eventual leader detector
Events
bld.Trust(p)indicationIndicates that process p is trusted to be leader.
bld.Complain(p)requestReceives a complaint about process p.
Properties
If more than f correct processes that trust some process p complain about p, then every correct process eventually trusts a different process than p.
A correct process does not trust a new leader unless at least one correct process has complained against the previous leader.
There is a time after which no two correct processes trust different processes.
Rotating Byzantine Leader Detection
Best-effort broadcast
Events
beb.Broadcast(m)requestBroadcasts a message m to all processes.
beb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process broadcasts a message m, then every correct process eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
Basic Broadcast
Reliable broadcast
Events
rb.Broadcast(m)requestBroadcasts a message m to all processes.
rb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some correct process, then m is eventually delivered by every correct process.
Lazy Reliable Broadcast
Eager Reliable Broadcast
Uniform reliable broadcast
Events
urb.Broadcast(m)requestBroadcasts a message m to all processes.
urb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some process (whether correct or faulty), then m is eventually delivered by every correct process.
All-Ack Uniform Reliable Broadcast
Majority-Ack Uniform Reliable Broadcast
Ideal Uniform Reliable Broadcast
Stubborn best-effort broadcast
Events
sbeb.Broadcast(m)requestBroadcasts a message m to all processes.
sbeb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a process that never crashes broadcasts a message m, then every correct process delivers m an infinite number of times.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
Basic Stubborn Broadcast
Logged best-effort broadcast
Events
lbeb.Broadcast(m)requestBroadcasts a message m to all processes.
lbeb.Deliver(delivered)indicationNotifies the upper layer of potential updates to variable delivered in stable storage. A message m with sender s is log-delivered once (s, m) is in delivered.
Properties
If a process that never crashes broadcasts a message m, then every correct process eventually log-delivers m.
No message is log-delivered more than once.
If a process log-delivers a message m with sender s, then m was previously broadcast by process s.
Logged Basic Broadcast
Logged reliable broadcast
Events
lrb.Broadcast(m)requestBroadcasts a message m to all processes.
lrb.Deliver(delivered)indicationNotifies the upper layer of potential updates to variable delivered in stable storage. A message m with sender s is log-delivered once (s, m) is in delivered.
Properties
If a process that never crashes broadcasts a message m, then every correct process eventually log-delivers m.
No message is log-delivered more than once.
If a process log-delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is log-delivered by some correct process, then m is eventually log-delivered by every correct process.
Logged Eager Reliable Broadcast
Logged uniform reliable broadcast
Events
lurb.Broadcast(m)requestBroadcasts a message m to all processes.
lurb.Deliver(delivered)indicationNotifies the upper layer of potential updates to variable delivered in stable storage. A message m with sender s is log-delivered once (s, m) is in delivered.
Properties
If a process that never crashes broadcasts a message m, then every correct process eventually log-delivers m.
No message is log-delivered more than once.
If a process log-delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is log-delivered by some process (whether correct or faulty), then m is eventually log-delivered by every correct process.
Logged Majority-Ack Uniform Reliable Broadcast
Probabilistic broadcast
Events
pb.Broadcast(m)requestBroadcasts a message m to all processes.
pb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
There is a positive value ε such that when a correct process broadcasts a message m, the probability that every correct process eventually delivers m is at least 1 − ε.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
Eager Probabilistic Broadcast
Lazy Probabilistic Broadcast
FIFO-order reliable broadcast
Events
frb.Broadcast(m)requestBroadcasts a message m to all processes.
frb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some correct process, then m is eventually delivered by every correct process.
If some process broadcasts message m1 before it broadcasts message m2, then no correct process delivers m2 unless it has already delivered m1.
Broadcast with Sequence Number
FIFO-order uniform reliable broadcast
Events
furb.Broadcast(m)requestBroadcasts a message m to all processes.
furb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some process (whether correct or faulty), then m is eventually delivered by every correct process.
If some process broadcasts message m1 before it broadcasts message m2, then no correct process delivers m2 unless it has already delivered m1.
Broadcast with Sequence Number
Causal-order reliable broadcast
Events
crb.Broadcast(m)requestBroadcasts a message m to all processes.
crb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some correct process, then m is eventually delivered by every correct process.
For any message m1 that potentially caused a message m2, i.e., m1 → m2, no process delivers m2 unless it has already delivered m1.
No-Waiting Causal Broadcast
Garbage-Collection of Causal Past
Waiting Causal Broadcast
No-Waiting Causal Broadcast using FIFO Broadcast
Causal-order uniform reliable broadcast
Events
curb.Broadcast(m)requestBroadcasts a message m to all processes.
curb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some process (whether correct or faulty), then m is eventually delivered by every correct process.
For any message m1 that potentially caused a message m2, i.e., m1 → m2, no process delivers m2 unless it has already delivered m1.
Byzantine consistent broadcast
Events
sparameterThe sender.
bcb.Broadcast(m)requestBroadcasts a message m to all processes. Executed only by process s.
bcb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then every correct process eventually delivers m.
Every correct process delivers at most one message.
If some correct process delivers a message m with sender p and process p is correct, then m was previously broadcast by p.
If some correct process delivers a message m and another correct process delivers a message m', then m = m'.
Authenticated Echo Broadcast
Signed Echo Broadcast
Byzantine reliable broadcast
Events
sparameterThe sender.
brb.Broadcast(m)requestBroadcasts a message m to all processes. Executed only by process s.
brb.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then every correct process eventually delivers m.
Every correct process delivers at most one message.
If some correct process delivers a message m with sender p and process p is correct, then m was previously broadcast by p.
If some correct process delivers a message m and another correct process delivers a message m', then m = m'.
If some message is delivered by any correct process, every correct process eventually delivers a message.
Authenticated Double-Echo Broadcast
Byzantine consistent channel
Events
bcch.Broadcast(m)requestBroadcasts a message m to all processes.
bcch.Deliver(p, ℓ, m)indicationDelivers a message m with label ℓ broadcast by process p.
Properties
If a correct process p broadcasts a message m, then every correct process eventually delivers m.
For every process p and label ℓ, every correct process delivers at most one message with label ℓ and sender p.
If some correct process delivers a message m with sender p and process p is correct, then m was previously broadcast by p.
If some correct process delivers a message m with label ℓ and sender s, and another correct process delivers a message m' with label ℓ and sender s, then m = m'.
Byzantine Consistent Channel
Byzantine reliable channel
Events
brch.Broadcast(m)requestBroadcasts a message m to all processes.
brch.Deliver(p, ℓ, m)indicationDelivers a message m with label ℓ broadcast by process p.
Properties
If a correct process p broadcasts a message m, then every correct process eventually delivers m.
For every process p and label ℓ, every correct process delivers at most one message with label ℓ and sender p.
If some correct process delivers a message m with sender p and process p is correct, then m was previously broadcast by p.
If some correct process delivers a message m with label ℓ and sender s, then every correct process eventually delivers message m with label ℓ and sender s.
Byzantine Reliable Channel
(1, N) regular register
Events
onrr.ReadrequestInvokes a read operation on the register.
onrr.Write(v)requestInvokes a write operation with value v on the register.
onrr.ReadReturn(v)indicationCompletes a read operation on the register with return value v.
onrr.WriteReturnindicationCompletes a write operation on the register.
Properties
If a correct process invokes an operation, then the operation eventually completes.
A read that is not concurrent with a write returns the last value written; a read that is concurrent with a write returns the last value written or the value concurrently written.
Read-One Write-All
Majority Voting Regular Register
(1, N) atomic register
Events
onar.ReadrequestInvokes a read operation on the register.
onar.Write(v)requestInvokes a write operation with value v on the register.
onar.ReadReturn(v)indicationCompletes a read operation on the register with return value v.
onar.WriteReturnindicationCompletes a write operation on the register.
Properties
If a correct process invokes an operation, then the operation eventually completes.
A read that is not concurrent with a write returns the last value written; a read that is concurrent with a write returns the last value written or the value concurrently written.
If a read returns a value v and a subsequent read returns a value w, then the write of w does not precede the write of v.
From (1, N) Regular to (1, 1) Atomic Registers
From (1, 1) Atomic to (1, N) Atomic Registers
Read-Impose Write-All
Read-Impose Write-Majority
(N, N) atomic register
Events
nnar.ReadrequestInvokes a read operation on the register.
nnar.Write(v)requestInvokes a write operation with value v on the register.
nnar.ReadReturn(v)indicationCompletes a read operation on the register with return value v.
nnar.WriteReturnindicationCompletes a write operation on the register.
Properties
If a correct process invokes an operation, then the operation eventually completes.
Every read operation returns the value that was written most recently in a hypothetical execution, where every failed operation appears to be complete or does not appear to have been invoked at all, and every complete operation appears to have been executed at some instant between its invocation and its completion.
From (1, N) Atomic to (N, N) Atomic Registers
Read-Impose Write-Consult-All
Read-Impose Write-Consult-Majority
(1, N) logged regular register
Events
lonrr.ReadrequestInvokes a read operation on the register.
lonrr.Write(v)requestInvokes a write operation with value v on the register.
lonrr.ReadReturn(v)indicationCompletes a read operation on the register with return value v.
lonrr.WriteReturnindicationCompletes a write operation on the register.
Properties
If a process invokes an operation and never crashes, then the operation eventually completes.
A read that is not concurrent with a write returns the last value written; a read that is concurrent with a write returns the last value written or the value concurrently written.
Logged Majority Voting
(1, N) Byzantine safe register
Events
wparameterThe writer.
bonsr.ReadrequestInvokes a read operation on the register.
bonsr.Write(v)requestInvokes a write operation with value v on the register. Executed only by process w.
bonsr.ReadReturn(v)indicationCompletes a read operation on the register with return value v.
bonsr.WriteReturnindicationCompletes a write operation on the register. Occurs only at process w.
Properties
If a correct process invokes an operation, then the operation eventually completes.
A read that is not concurrent with a write returns the last value written.
Byzantine Masking Quorum
(1, N) Byzantine regular register
Events
wparameterThe writer.
bonrr.ReadrequestInvokes a read operation on the register.
bonrr.Write(v)requestInvokes a write operation with value v on the register. Executed only by process w.
bonrr.ReadReturn(v)indicationCompletes a read operation on the register with return value v.
bonrr.WriteReturnindicationCompletes a write operation on the register. Occurs only at process w.
Properties
If a correct process invokes an operation, then the operation eventually completes.
A read that is not concurrent with a write returns the last value written; a read that is concurrent with a write returns the last value written or the value concurrently written.
Authenticated-Data Byzantine Quorum
Double-Write Byzantine Quorum
(1, N) Byzantine atomic register
Events
wparameterThe writer.
bonar.ReadrequestInvokes a read operation on the register.
bonar.Write(v)requestInvokes a write operation with value v on the register. Executed only by process w.
bonar.ReadReturn(v)indicationCompletes a read operation on the register with return value v.
bonar.WriteReturnindicationCompletes a write operation on the register. Occurs only at process w.
Properties
If a correct process invokes an operation, then the operation eventually completes.
A read that is not concurrent with a write returns the last value written; a read that is concurrent with a write returns the last value written or the value concurrently written.
If a read returns a value v and a subsequent read returns a value w, then the write of w does not precede the write of v.
Byzantine Quorum with Listeners
Consensus
Events
c.Propose(v)requestProposes value v for consensus.
c.Decide(v)indicationOutputs a decided value v of consensus.
Properties
Every correct process eventually decides some value.
If a process decides v, then v was proposed by some process.
No process decides twice.
No two correct processes decide differently.
Flooding Consensus
Hierarchical Consensus
Uniform consensus
Events
uc.Propose(v)requestProposes value v for consensus.
uc.Decide(v)indicationOutputs a decided value v of consensus.
Properties
Every correct process eventually decides some value.
If a process decides v, then v was proposed by some process.
No process decides twice.
No two processes decide differently.
Flooding Uniform Consensus
Hierarchical Uniform Consensus
Leader-Driven Consensus
Rotating Coordinator
Lattice agreement
Events
la.Propose(I)requestProposes a set of values I for lattice agreement.
la.Decide(D)indicationOutputs a decided set of values D of lattice agreement.
Properties
If a process p proposes I and decides D, then I ⊆ D, and every value in D was proposed by some process.
If a process decides D and a process decides D', then D ⊆ D' or D' ⊆ D.
Every correct process eventually decides some set.
Proposer-Acceptor Lattice Agreement
Epoch-change
Events
ec.StartEpoch(ts, ℓ)indicationStarts the epoch identified by timestamp ts with leader ℓ.
Properties
If a correct process starts an epoch (ts, ℓ) and later starts an epoch (ts', ℓ'), then ts' > ts.
If a correct process starts an epoch (ts, ℓ) and another correct process starts an epoch (ts', ℓ') with ts = ts', then ℓ = ℓ'.
There is a time after which every correct process has started some epoch and starts no further epoch, such that the last epoch started at every correct process is epoch (ts, ℓ) and process ℓ is correct.
Leader-Based Epoch-Change
Epoch consensus
Events
tsparameterThe timestamp of the epoch.
ℓparameterThe leader of the epoch.
ep.Propose(v)requestProposes value v for epoch consensus. Executed only by the leader ℓ.
ep.AbortrequestAborts epoch consensus.
ep.Decide(v)indicationOutputs a decided value v of epoch consensus.
ep.Aborted(state)indicationSignals that epoch consensus has completed the abort and outputs internal state state.
Properties
If a correct process ep-decides v, then v was ep-proposed by the leader ℓ' of some epoch consensus with timestamp ts' ≤ ts and leader ℓ'.
No two processes ep-decide differently.
Every correct process ep-decides at most once.
If a correct process has ep-decided v in an epoch consensus with timestamp ts' < ts, then no correct process ep-decides a value different from v.
If the leader ℓ is correct, has ep-proposed a value, and no correct process aborts this epoch consensus, then every correct process eventually ep-decides some value.
When a correct process aborts an epoch consensus, it eventually will have completed the abort; moreover, a correct process completes an abort only if the epoch consensus has been aborted by some correct process.
Read/Write Epoch Consensus
Logged epoch-change
Events
lec.StartEpoch(start_ts, start_ℓ)indicationNotifies the upper layer that variables start_ts and start_ℓ in stable storage contain the timestamp and leader of the next epoch to start; the epoch is then log-started.
Properties
If a correct process log-starts an epoch (ts, ℓ) and later log-starts an epoch (ts', ℓ'), then ts' > ts.
If a correct process log-starts an epoch (ts, ℓ) and another correct process log-starts an epoch (ts', ℓ') with ts = ts', then ℓ = ℓ'.
There is a time after which every correct process has log-started some epoch and log-starts no further epoch, such that the last epoch log-started at every correct process is epoch (ts, ℓ) and process ℓ never crashes.
Logged Leader-Based Epoch-Change
Logged epoch consensus
Events
tsparameterThe timestamp of the epoch.
ℓparameterThe leader of the epoch.
lep.Propose(v)requestProposes value v for logged epoch consensus. Executed only by the leader ℓ.
lep.AbortrequestAborts logged epoch consensus.
lep.Decide(epoch_decision)indicationNotifies the upper layer that the variable epoch_decision in stable storage contains the decided value of logged epoch consensus; the value is then log-decided.
lep.Aborted(state)indicationSignals that logged epoch consensus has completed the abort and outputs internal state state.
Properties
If a correct process log-decides v, then v was proposed by the leader ℓ' of some logged epoch consensus with timestamp ts' ≤ ts and leader ℓ'.
No two processes log-decide differently.
If a correct process has log-decided v in a logged epoch consensus with timestamp ts' < ts, then no correct process log-decides a value different from v.
When a correct process aborts a logged epoch consensus, it eventually will have completed the abort; moreover, a correct process completes an abort only if the logged epoch consensus has been aborted by some correct process.
If the leader ℓ never crashes, has proposed a value, and no correct process aborts this logged epoch consensus instance, then every correct process eventually log-decides some value in this instance.
Logged Read/Write Epoch Consensus
Logged uniform consensus
Events
luc.Propose(v)requestProposes value v for consensus.
luc.Decide(decision)indicationNotifies the upper layer that variable decision in stable storage contains the decided value of consensus; the value is then log-decided.
Properties
Every correct process that never crashes eventually log-decides some value.
If a process log-decides v, then v was proposed by some process.
No two processes log-decide differently.
Logged Leader-Driven Consensus
Randomized consensus
Events
rc.Propose(v)requestProposes value v for consensus.
rc.Decide(v)indicationOutputs a decided value v of consensus.
Properties
With probability 1, every correct process eventually decides some value.
If a process decides v, then v was proposed by some process.
No process decides twice.
No two correct processes decide differently.
Randomized Binary Consensus
Randomized Consensus with Large Domain
Common coin
Events
BparameterThe domain: the set of values the coin can output.
coin.ReleaserequestReleases the coin.
coin.Output(b)indicationOutputs the coin value b ∈ B.
Properties
Every correct process eventually outputs a coin value.
Unless at least one correct process has released the coin, no process has any information about the coin output by a correct process.
With probability at least δ, every correct process outputs the same coin value.
In the event that all correct processes output the same coin value, the distribution of the coin is uniform over B (i.e., a matching coin outputs any value in B with probability 1/#B).
Weak Byzantine consensus
Events
wbc.Propose(v)requestProposes value v for consensus.
wbc.Decide(v)indicationOutputs a decided value v of consensus.
Properties
Every correct process eventually decides some value.
If all processes are correct and propose the same value v, then no correct process decides a value different from v; furthermore, if all processes are correct and some process decides v, then v was proposed by some process.
No correct process decides twice.
No two correct processes decide differently.
Byzantine Leader-Driven Consensus
Byzantine consensus
Events
bc.Propose(v)requestProposes value v for consensus.
bc.Decide(v)indicationOutputs a decided value v of consensus.
Properties
Every correct process eventually decides some value.
If all correct processes propose the same value v, then no correct process decides a value different from v; otherwise, a correct process may only decide a value that was proposed by some correct process or the special value □.
No correct process decides twice.
No two correct processes decide differently.
From Anchored Validity to Strong Validity
Byzantine epoch-change
Events
bec.StartEpoch(ts, ℓ)indicationStarts the epoch identified by timestamp ts with leader ℓ.
Properties
If a correct process starts an epoch (ts, ℓ) and later starts an epoch (ts', ℓ'), then ts' > ts.
If a correct process starts an epoch (ts, ℓ) and another correct process starts an epoch (ts', ℓ') with ts = ts', then ℓ = ℓ'.
There is a time after which every correct process has started some epoch and starts no further epoch, such that the last epoch started at every correct process is epoch (ts, ℓ) and process ℓ is correct.
Byzantine Leader-Based Epoch-Change
Byzantine epoch consensus
Events
tsparameterThe timestamp of the epoch.
ℓparameterThe leader of the epoch.
bep.Propose(v)requestProposes value v for epoch consensus. Executed only by the leader ℓ.
bep.AbortrequestAborts epoch consensus.
bep.Decide(v)indicationOutputs a decided value v of epoch consensus.
bep.Aborted(state)indicationSignals that epoch consensus has completed the abort and outputs internal state state.
Properties
If a correct process ep-decides v, then v was ep-proposed by the leader ℓ' of some epoch consensus with timestamp ts' ≤ ts and leader ℓ'.
No two correct processes ep-decide differently.
Every correct process ep-decides at most once.
If a correct process has ep-decided v in an epoch consensus with timestamp ts' < ts, then no correct process ep-decides a value different from v.
If the leader ℓ is correct, has ep-proposed a value, and no correct process aborts this epoch consensus, then every correct process eventually ep-decides some value.
When a correct process aborts an epoch consensus, it eventually will have completed the abort; moreover, a correct process completes an abort only if the epoch consensus has been aborted by some correct process.
Byzantine Read/Write Epoch Consensus
Conditional collect
Events
ℓparameterThe leader.
CparameterThe output predicate.
cc.Input(m)requestInputs a message m.
cc.Collected(M)indicationOutputs a vector M of collected messages.
Properties
If the leader is correct, then every correct process collects the same M, and this M contains at least N − f messages different from UNDEFINED.
If some correct process collects M with M[p] ≠ UNDEFINED for some process p and p is correct, then p has input message M[p].
If all correct processes input compliant messages and the leader is correct, then every correct process eventually collects some M such that C(M) = true.
Signed Conditional Collect
Echo Conditional Collect
Byzantine randomized consensus
Events
brc.Propose(v)requestProposes value v for consensus.
brc.Decide(v)indicationOutputs a decided value v of consensus.
Properties
With probability 1, every correct process eventually decides some value.
If all correct processes propose the same value v, then no correct process decides a value different from v; otherwise, a correct process may only decide a value that was proposed by some correct process or the special value □.
No correct process decides twice.
No two correct processes decide differently.
Byzantine Randomized Binary Consensus
Validated Byzantine consensus
Events
P(·)parameterThe validity predicate.
vbc.Propose(v)requestProposes value v for consensus.
vbc.Decide(v)indicationOutputs a decided value v of consensus.
Properties
Every correct process eventually decides some value.
Every correct process only decides a value v such that P(v) = true. Moreover, if all processes are correct and propose v, then no correct process decides a value different from v.
No correct process decides twice.
No two correct processes decide differently.
Total-order broadcast
Events
tob.Broadcast(m)requestBroadcasts a message m to all processes.
tob.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some correct process, then m is eventually delivered by every correct process.
Let m1 and m2 be any two messages and suppose p and q are any two correct processes that deliver m1 and m2. If p delivers m1 before m2, then q delivers m1 before m2.
Consensus-Based Total-Order Broadcast
Uniform total-order broadcast
Events
utob.Broadcast(m)requestBroadcasts a message m to all processes.
utob.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some process (whether correct or faulty), then m is eventually delivered by every correct process.
Let m1 and m2 be any two messages and suppose p and q are any two processes that deliver m1 and m2 (whether correct or faulty). If p delivers m1 before m2, then q delivers m1 before m2.
Byzantine total-order broadcast
Events
btob.Broadcast(m)requestBroadcasts a message m to all processes.
btob.Deliver(p, m)indicationDelivers a message m broadcast by process p.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No correct process delivers the same message more than once.
If some correct process delivers a message m with sender p and process p is correct, then m was previously broadcast by p.
If a message m is delivered by some correct process, then m is eventually delivered by every correct process.
Let m1 and m2 be any two messages and suppose p and q are any two correct processes that deliver m1 and m2. If p delivers m1 before m2, then q delivers m1 before m2.
Rotating Sender Byzantine Broadcast
Uniform terminating reliable broadcast
Events
sparameterThe sender.
utrb.Broadcast(m)requestBroadcasts a message m to all processes. Executed only by process s.
utrb.Deliver(p, m)indicationDelivers a message m broadcast by process p or the symbol △.
Properties
If a correct process p broadcasts a message m, then p eventually delivers m.
No process delivers more than one message, and every correct process eventually delivers one.
If a correct process delivers some message m, then m was either previously broadcast by process s or it holds m = △.
If any process delivers a message m, then every correct process eventually delivers m.
Consensus-Based Uniform Terminating Reliable Broadcast
Uniform fast consensus
Events
ufc.Propose(v)requestProposes value v for consensus.
ufc.Decide(v)indicationOutputs a decided value v of consensus.
Properties
If all processes propose the same value then every correct process decides some value after one communication step. Otherwise, every correct process eventually decides some value.
If a process decides v, then v was proposed by some process.
No process decides twice.
No two processes decide differently.
From Uniform Consensus to Uniform Fast Consensus
Fast Byzantine consensus
Events
fbc.Propose(v)requestProposes value v for consensus.
fbc.Decide(v)indicationOutputs a decided value v of consensus.
Properties
If all processes are correct and propose the same value, then every correct process decides some value after one communication step. Otherwise, every correct process eventually decides some value.
If all correct processes propose the same value v, then no correct process decides a value different from v; otherwise, a correct process may only decide a value that was proposed by some correct process or the special value □.
No correct process decides twice.
No two correct processes decide differently.
From Byzantine Consensus to Fast Byzantine Consensus
Nonblocking atomic commit
Events
nbac.Propose(v)requestProposes value v = COMMIT or v = ABORT for the commit.
nbac.Decide(v)indicationOutputs the decided value for the commit.
Properties
Every correct process eventually decides some value.
A process can only decide ABORT if some process proposes ABORT or a process crashes.
A process can only decide COMMIT if no process proposes ABORT.
No process decides twice.
No two processes decide differently.
Consensus-Based Nonblocking Atomic Commit
Group membership
Events
gm.View(V)indicationInstalls a new view V = (id, M) with view identifier id and membership M.
Properties
If a process p installs a view V = (id, M) and subsequently installs a view V' = (id', M'), then id < id' and M ⊇ M'.
If some process installs a view V = (id, M) and another process installs some view V' = (id, M'), then M = M'.
If a process p crashes, then eventually every correct process installs a view (id, M) such that p ∉ M.
If some process installs a view (id, M) with q ∉ M for some process q ∈ Π, then q has crashed.
Consensus-Based Group Membership
View-synchronous communication
Events
vs.Broadcast(m)requestBroadcasts a message m to all processes.
vs.Deliver(p, m)indicationDelivers a message m broadcast by process p.
vs.View(V)indicationInstalls a new view V = (id, M) with view identifier id and membership M.
vs.BlockindicationRequests that no new messages are broadcast temporarily until the next view is installed.
vs.BlockOkrequestConfirms that no new messages will be broadcast until the next view is installed.
Properties
If some process delivers a message m from process p in view V, then m was broadcast by p in view V.
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some correct process, then m is eventually delivered by every correct process.
If a process p installs a view V = (id, M) and subsequently installs a view V' = (id', M'), then id < id' and M ⊇ M'.
If some process installs a view V = (id, M) and another process installs some view V' = (id, M'), then M = M'.
If a process p crashes, then eventually every correct process installs a view (id, M) such that p ∉ M.
If some process installs a view (id, M) with q ∉ M for some process q ∈ Π, then q has crashed.
TRB-Based View-Synchronous Communication
Direct Consensus-Based View-Synchronous Communication
Uniform view-synchronous communication
Events
uvs.Broadcast(m)requestBroadcasts a message m to all processes.
uvs.Deliver(p, m)indicationDelivers a message m broadcast by process p.
uvs.View(V)indicationInstalls a new view V = (id, M) with view identifier id and membership M.
uvs.BlockindicationRequests that no new messages are broadcast temporarily until the next view is installed.
uvs.BlockOkrequestConfirms that no new messages will be broadcast until the next view is installed.
Properties
If some process delivers a message m from process p in view V, then m was broadcast by p in view V.
If a correct process p broadcasts a message m, then p eventually delivers m.
No message is delivered more than once.
If a process delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is delivered by some process (whether correct or faulty), then m is eventually delivered by every correct process.
If a process p installs a view V = (id, M) and subsequently installs a view V' = (id', M'), then id < id' and M ⊇ M'.
If some process installs a view V = (id, M) and another process installs some view V' = (id, M'), then M = M'.
If a process p crashes, then eventually every correct process installs a view (id, M) such that p ∉ M.
If some process installs a view (id, M) with q ∉ M for some process q ∈ Π, then q has crashed.
Consensus-Based Uniform View-Synchronous Communication
Logged uniform total-order broadcast
Events
lutob.Broadcast(m)requestBroadcasts a message m to all processes.
lutob.Deliver(delivered)indicationNotifies the upper layer of potential updates to variable delivered in stable storage, where delivered is a sequence of sender/message pairs. A message is log-delivered once it appears in delivered.
Properties
If a process that never crashes broadcasts a message m, then every correct process eventually log-delivers m.
No message is log-delivered more than once.
If a process log-delivers a message m with sender s, then m was previously broadcast by process s.
If a message m is log-delivered by some process (whether correct or faulty), then m is eventually log-delivered by every correct process.
For any two processes p and q, suppose p log-delivers a sequence of messages dp and q log-delivers a sequence of messages dq. Then dp is either a prefix of dq or dq is a prefix of dp.
Logged Uniform Total-Order Broadcast
Replicated state machine
Events
rsm.Execute(command)requestRequests that the state machine executes the command given in command.
rsm.Output(response)indicationIndicates that the state machine has executed a command with output response.
Properties
All correct processes obtain the same sequence of outputs.
If a correct process executes a command, then the command eventually produces an output.