Gossip and Epidemic Protocols

Gossip protocols spread information through randomized local exchanges. Their performance depends on the sampling model, and eventual repair needs an explicit merge rule.

Source
Anbloq
Language
English
Created
Updated
Chapters
3
Reading time
1 min
In this article3 chapters
  1. Count one idealized push round
  2. Anti-entropy exchanges repair omissions
  3. Dissemination and failure detection serve different purposes

Count one idealized push round

Suppose \(N\) members are reachable and \(m\) currently know an update. Each informed member randomly chooses one destination independently, allowing self-selection. A fixed uninformed member is missed with probability \((1-1/N)^m\). By linearity of expectation, the number informed after one round satisfies

\[ \mathbb E[I_{t+1}\mid I_t=m] =m+(N-m)\bigl[1-(1-1/N)^m\bigr]. \]

No independence between the membership indicators is needed for the expectation. Early rounds grow approximately multiplicatively, while finding the last uninformed members takes further exchanges because many choices hit members already informed.

Indicator variables express the number of new recipients in a round as a sum of local events. Anti-entropy determines which records a contacted replica actually needs.

Anti-entropy exchanges repair omissions

Real replicas can compare digests or version summaries and transfer data they are missing. A digest must identify what equality of summaries guarantees. If messages are duplicated or reordered, an idempotent and order-independent merge can preserve correctness. If membership is stale or a partition blocks some paths, the uniform-choice model may no longer fit. Progress assumptions must mention communication across the actual topology and periods of reachability.

Dissemination and failure detection serve different purposes

SWIM-style membership uses probing and indirect checks with dissemination of membership changes. A timeout can indicate suspicion, while the timing model determines whether it is reliable as a failure decision. Gossip can disseminate the same update many times without coordinating an agreement decision. That works well with conflict-free replicated types. For order or causality, see logical clocks and causal storage. Distributed timing limits remain relevant to failure detection.[1][2]

References

  1. Alan Demers et al., Epidemic Algorithms for Replicated Database Maintenance ↩
  2. Abhinandan Das, Indranil Gupta and Ashish Motivala, SWIM ↩