Single-Group Vector-Clock Asynchronous Causal Broadcast Step #
This module formalizes a static single-group, single-hop vector-clock causal broadcast (CBCAST)
protocol step toward #7297 (after Birman, Schiper, and Stephenson [BSS91],
§§4.2–4.3, §5.1, and the broadcast specifications of Hadzilacos and Toueg [HT94],
§§3.1, 3.3, 3.8–3.9) over an asynchronous message-passing labelled transition system (Cslib.LTS)
with arbitrary message reordering and arbitrary static crash-fault sets F : Set P (requiring no
2t < n majority or quorum assumption).
Each process p : P maintains a vector timestamp vt : P → ℕ (initially 0), a multiset buffer
pending of received but not yet deliverable packets, and its chronological delivery log
delivered : List (Packet P V).
- Broadcast: To broadcast
payload : V, an operational processpincrements its own entryvt' := Function.update vt p (vt p + 1), delivers⟨p, vt', payload⟩locally immediately, and places point-to-point copies⟨q, ⟨p, vt', payload⟩⟩in flight to allq ≠ p(a faulty senderp ∈ Fmay also crash mid-multicast viaBSSAction.crashBroadcast, sending only to a subsetdests ⊆ Finset.univ.erase pbefore halting). - Causal delivery condition (
Deliverable): Receiverq ≠ sdelivers a buffered packetpkt = ⟨s, ts, payload⟩iffts s = vt q s + 1and∀ r ≠ s, ts r ≤ vt q r, updatingvt q stovt q s + 1(which coincides with the coordinatewise supremumvt q ⊔ ts; seesup_ts_eq_update_of_deliverable).
Model scope relative to primary sources #
[BSS91] additionally studies dynamic group membership views (§4.1, §5.5),
token-holder view-synchronous ABCAST (§5.2), multicast stability and vector compression
(§§5.3–5.4), and overlapping process groups (§6). Here we formalize the static single-group
(dests(m) = P), single-hop CBCAST step of §§4.2–4.3 and §5.1 without diffusion or view-flush
forwarding. Because raw point-to-point multicast can be interrupted mid-send if a faulty sender
crashes (BSSAction.crashBroadcast), liveness at q ∉ F (bss_live_of_packetSentTo) is proved
under the causal-ancestor transmission hypothesis PacketSentTo q (specializing in
bss_live_of_atomic_multicast and BSSSolvesAtomicMulticastCausalBroadcast to liveness when
crashes occur between atomic multicast steps).
Main definitions #
Cslib.Distributed.CausalBroadcast.Packet: broadcast packet carryingsender, vector timestampts : P → ℕ, andpayload.Cslib.Distributed.CausalBroadcast.vtWeight: total timestamp weight∑ r : P, vt r.Cslib.Distributed.CausalBroadcast.Deliverable: Birman–Schiper–Stephenson causal delivery guardpkt.ts s = vt s + 1 ∧ ∀ r ≠ s, pkt.ts r ≤ vt r.Cslib.Distributed.CausalBroadcast.NetMsg,Cslib.Distributed.CausalBroadcast.BSSProcState,Cslib.Distributed.CausalBroadcast.BSSState,Cslib.Distributed.CausalBroadcast.BSSAction: network envelopes, local state, global state, and transition labels.Cslib.Distributed.CausalBroadcast.bssInit,Cslib.Distributed.CausalBroadcast.bssStep,Cslib.Distributed.CausalBroadcast.bssLTS: initial configuration, deterministic state step, and crash-faultCslib.LTSparameterized by arbitraryF : Set P.Cslib.Distributed.CausalBroadcast.BroadcastIn,Cslib.Distributed.CausalBroadcast.CausalStep,Cslib.Distributed.CausalBroadcast.CausalPrec: packets broadcast along a trace and the broadcast causal precedence relationb₁ ≺_bcast b₂.Cslib.Distributed.CausalBroadcast.BSSFair,Cslib.Distributed.CausalBroadcast.PacketSentTo,Cslib.Distributed.CausalBroadcast.BSSSolvesAtomicMulticastCausalBroadcast: weak eventual-delivery fairness for non-crashed processesq ∉ F, packet transmission toq, and bundled single-group safety and atomic-multicast liveness predicate.
Main results #
Cslib.Distributed.CausalBroadcast.sup_ts_eq_update_of_deliverable: underDeliverable vt pkt,vt ⊔ pkt.ts = Function.update vt pkt.sender (vt pkt.sender + 1).Cslib.Distributed.CausalBroadcast.bss_integrity: single-group uniform integrity — every packet delivered at any process (faulty or correct) was previously broadcast bypkt.sender.Cslib.Distributed.CausalBroadcast.bss_no_duplicates: duplicate-free delivery (delivered.Nodup) at every process (faulty or correct).Cslib.Distributed.CausalBroadcast.bss_causalPrec_iff_ts_lt: exact vector-clock characterizationCausalPrec xl b₁ b₂ ↔ b₁.ts < b₂.tsfor broadcast packets inbssLTS F.Cslib.Distributed.CausalBroadcast.bss_causal_delivery: single-group uniform causal delivery order — at every processq(crashed or correct) that deliversb₂, anyb₁withCausalPrec xl b₁ b₂was already delivered strictly earlier (idxOf b₁ < idxOf b₂).Cslib.Distributed.CausalBroadcast.deliverable_stable_until_delivered: once buffered andDeliverable, a packet remains buffered andDeliverableuntil delivered.Cslib.Distributed.CausalBroadcast.bss_live_of_packetSentTo,Cslib.Distributed.CausalBroadcast.bss_live_of_atomic_multicast, andCslib.Distributed.CausalBroadcast.bss_solves_atomicMulticast_causalBroadcast: single-group crash-tolerant liveness under causal-ancestor packet transmission (PacketSentTo) or atomic multicast steps (IsAtomicMulticastAction) for any fault setF : Set Pvia strong induction onvtWeight b.ts.
References #
Packets, vector timestamps, and causal deliverability #
A broadcast packet emitted in the Birman–Schiper–Stephenson CBCAST protocol
([BSS91], §5.1, p. 281): sender is the originating broadcaster, ts is
the vector timestamp VT(m) : P → ℕ assigned upon broadcast, and payload is the message body.
- sender : P
Originating broadcaster process.
- ts : P → ℕ
Vector timestamp
VT(m)recording causal broadcast counts per sender. - payload : V
Application payload carried by the broadcast.
The Birman–Schiper–Stephenson causal delivery guard ([BSS91], §5.1,
step 2, p. 281): a buffered packet pkt from s = pkt.sender is deliverable against local vector
time vt iff pkt is the next undelivered broadcast from s (pkt.ts s = vt s + 1) and the
recipient has already delivered all broadcasts from other senders r ≠ s that causally precede
pkt (pkt.ts r ≤ vt r).
Instances For
Under Deliverable vt pkt, the coordinatewise max rule of [BSS91],
§4.3 (p. 280), coincides with incrementing vt only at pkt.sender.
Network state, actions, and transition system #
Local state of a process in the Birman–Schiper–Stephenson CBCAST protocol. Note that protocol
guards and transitions inspect only vt, pending, and halted; delivered records the sequence
of locally delivered packets for specification.
Global asynchronous network state of the CBCAST protocol: unordered multiset inFlight of
point-to-point packets in transit and per-process local states proc.
Unordered multiset of point-to-point network packets currently in transit.
- proc : P → BSSProcState P V
Local state of each process.
Increment coordinate p of vector clock vt by 1.
The Packet constructed when process p broadcasts payload in state s.
Execute an atomic broadcast by p of payload: increment vt p, deliver locally at p
immediately, and enqueue network copies to all q ≠ p.
Execute a crash-interrupted broadcast by a faulty process p: p increments vt p, delivers
locally, transmits copies only to dests, and halts.
Receive an in-flight network message m into m.dest's pending delay buffer.
Deliver a buffered packet pkt at q, incrementing vt q pkt.sender and appending pkt to
delivered.
Halt process p due to a crash fault.
Transition labels of the CBCAST labelled transition system.
- broadcast {P : Type u_1} {V : Type u_2} (p : P) (payload : V) : BSSAction P V
Process
pbroadcastspayloadto allq ≠ p. - crashBroadcast {P : Type u_1} {V : Type u_2} (p : P) (dests : Finset P) (payload : V) : BSSAction P V
Faulty process
p ∈ Fcrashes mid-multicast after sendingpayloadonly todests. - recv {P : Type u_1} {V : Type u_2} (m : NetMsg P V) : BSSAction P V
Network message
marrives atm.destand enters its delay buffer. - deliver {P : Type u_1} {V : Type u_2} (q : P) (pkt : Packet P V) : BSSAction P V
Process
qcausally deliverspktfrom its delay buffer. - crash {P : Type u_1} {V : Type u_2} (p : P) : BSSAction P V
Faulty process
p ∈ Fcrashes and halts. - stutter {P : Type u_1} {V : Type u_2} : BSSAction P V
Dummy stuttering step leaving the global state unchanged.
Deterministic state-update function for BSSAction.
Guard predicate specifying when act is enabled in state s under crash-fault set F.
Instances For
Labelled transition system of the Birman–Schiper–Stephenson CBCAST protocol for an arbitrary
crash-fault set F : Set P (with no cardinality restriction on F).
Fold a finite list of BSSActions starting from s₀.
Check whether every action in xl is enabled from s₀ under fault set F.
Instances For
Equivalence between LTS.MTr on bssLTS F and bssValidTrace + bssRun.
Trace snapshots and causal precedence #
State after the first i actions of a trace starting from bssInit P V.
The Packet newly broadcast by act from state s, or none if act is not a broadcast.
Set of packets broadcast along the finite trace xl from bssInit P V.
Direct (single-hop) causal relation between two packets broadcast along xl: either the same
process broadcast b₁ strictly before b₂, or b₂.sender had already delivered b₁ when it
broadcast b₂ ([BSS91], §4.2, pp. 278–279; [HT94], §3.3,
p. 11).
Broadcast causal precedence b₁ ≺_bcast b₂, the transitive closure of CausalStep xl.
Trace-extension and monotonicity lemmas #
Inductive protocol invariant #
Step-preservation lemmas for BSSInv #
Integrity and duplicate freedom #
Single-group single-hop CBCAST uniform-integrity step (toward #7297, after
[BSS91], §5.1, p. 281 and [HT94], §3.1, p. 10 & §3.8, p. 14):
in any execution of bssLTS F (for arbitrary F : Set P), every packet delivered at any process
q (faulty or correct) was broadcast earlier in the trace by pkt.sender.
Single-group single-hop CBCAST duplicate-freedom step (toward #7297, after
[BSS91], §5.1, p. 281 and [HT94], §3.1, p. 10 & §3.8, p. 14):
in any reachable state of bssLTS F (for arbitrary F : Set P), every process q's delivery log
(s.proc q).delivered contains no duplicate packets.
Vector-clock characterization and causal delivery order #
Vector-clock causal-precedence characterization for single-group single-hop CBCAST (toward
#7297, after [BSS91], §4.3, p. 280): along any execution of bssLTS F, for
any two broadcast packets b₁, b₂ ∈ BroadcastIn xl, b₁ causally precedes b₂ iff
b₁.ts < b₂.ts.
Single-group single-hop CBCAST uniform causal-delivery step (toward #7297, after
[BSS91], §5.1, Safety, p. 282 and [HT94], §3.3 & §3.8, pp. 11,
15): in any execution of bssLTS F (for arbitrary F : Set P), if b₁ causally precedes b₂
(CausalPrec xl b₁ b₂), then at every process q : P (faulty or correct) that has delivered b₂,
b₁ has already been delivered at q strictly prior to b₂.
Fairness and infinite-execution specification #
Weak eventual-delivery fairness for bssLTS F on an infinite execution (ss, xs):
- Every network packet
maddressed to a non-faulty processm.dest ∉ Fis eventually received. - Every buffered packet at
q ∉ Fthat satisfiesDeliverableis eventually delivered atq. (Seedeliverable_stable_until_deliveredshowingDeliverableremains continuously enabled untilpktis delivered.)
- fair_recv (m : NetMsg P V) : m.dest ∉ F → ∀ (k : ℕ), m ∈ (ss k).inFlight → ∃ (j : ℕ), k ≤ j ∧ xs j = BSSAction.recv m
Fair point-to-point network reception at non-faulty destinations.
- fair_deliver (q : P) : q ∉ F → ∀ (pkt : Packet P V) (k : ℕ), pkt ∈ ((ss k).proc q).pending → Deliverable ((ss k).proc q).vt pkt → ∃ (j : ℕ), k ≤ j ∧ pkt ∈ ((ss j).proc q).delivered
Weak local delivery fairness at non-faulty processes.
Packet b was emitted along (ss, xs) and its copy to q was placed in flight (or b
originated at q itself).
Causal precedence between packets along an infinite execution (ss, xs).
Monotonicity of delivered along an OmegaExecution of bssLTS F: once pkt has been
delivered at q at step i, it remains in ((ss j).proc q).delivered at every step j ≥ i.
Stability of buffered deliverable packets #
Once a buffered packet pkt at q satisfies Deliverable at step k, it remains buffered
and Deliverable at every subsequent step j ≥ k until q delivers pkt.
Liveness under packet transmission and atomic multicast #
Single-group single-hop CBCAST liveness step under causal-ancestor packet transmission (toward
#7297, after [BSS91], §5.1, Liveness, p. 283): for any crash-fault set
F : Set P (without any quorum or majority bound), in any fair infinite execution (ss, xs)
starting from bssInit P V, if q ∉ F and b (along with every causal predecessor b' ≺_bcast b)
was transmitted to q (PacketSentTo q ss xs), then q eventually delivers b.
Proved by strong induction on total vector-timestamp weight vtWeight b.ts = ∑ r, b.ts r.
Predicate stating that an action is not a mid-multicast partial crash (crashBroadcast).
Single-group CBCAST liveness step under atomic multicast steps without mid-send crashes
(toward #7297, after [BSS91], §5.1, p. 283): in any fair execution where
IsAtomicMulticastAction holds at every step (no torn crashBroadcast), every broadcast packet b
is eventually delivered by every non-faulty process q ∉ F, for arbitrary F : Set P.
Bundled single-group CBCAST safety and atomic-multicast liveness specification (toward #7297)
satisfied by bssLTS F for an arbitrary crash-fault set F : Set P: uniform integrity, duplicate
freedom, uniform causal delivery order, and fair liveness at q ∉ F under
IsAtomicMulticastAction.
Single-group single-hop CBCAST safety and atomic-multicast liveness step (toward #7297, after
[BSS91], §5.1): for every static crash-fault set F : Set P (without any
quorum or majority restriction), bssLTS F satisfies
BSSSolvesAtomicMulticastCausalBroadcast P V F.