← The Books

Spreading by Word of Mouth

Can an update reach every machine in a large system just by each passing it on to a few others, with no one organising the spread?

We find out by exploring how a change to the scholars' compendium spread from library to library by word of mouth, and how the libraries caught whatever the gossip missed.

We find out by following the methods themselves: updates reach every site of a large system by anti-entropy exchanges and rumor mongering at random, with no central coordinator, and deletions spread as death certificates.

After Alan Demers, Mark Gealy, Dan Greene, Carl Hauser, Wes Irish, John Larson, Sue Manning, Scott Shenker, Howard Sturgis, Dan Swinehart, Doug Terry and Don Woods, Epidemic Algorithms for Replicated Database Maintenance, 1987

The festival ground at eye level: scholars in grey and librarians in cream sit in pairs at the long stone tables comparing their scrolls, a runner hurrying past in the distance, a hill of olive trees and cypresses beyond
Where this book sits
Draws on
  • The Clearinghouse: A Decentralized Agent for Locating Named Objects in a Distributed EnvironmentOppen & Dalal 1981
  • Grapevine: An Exercise in Distributed ComputingBirrell et al. 1982
Leads to

Each link is an idea one paper took from another. Point at one, or tap it, to read how.

a paper this book retells a paper retold in another book a paper outside the series

The scholars' coast from the air: small red-roofed libraries in clearings among olive groves, linked by a pale road and footpaths, the long stoa beside the shore and a town on the point beyond
The scholars' coastThe model

Many libraries, no one in chargeMany replicas, no one in charge

Below the fork of Paxos the island widens into the scholars' coast, a string of small libraries among the olive groves, each keeping its own copy of the compendium of what is known. Nothing here waits for a vote in the Chamber or the Tholos: a library answers readers from its own copy, and the copies come to agree in the end by comparing and merging rather than by assembly.*A group of sites each keep their own copy of the same database. Nothing waits for a vote: a site answers clients straight from its own copy, and every site comes to agree in the end by comparing and merging rather than by coordination.

The larger tally winsEvery version of an entry carries the day and hour it was written. Of two versions of the same entry, a library always keeps the later.The larger timestamp winsEvery value carries the time it was written. Of two values for the same key, a site always keeps the later one.
No one in chargeNo master office tracks what every library holds, and no one checks whether a piece of news has arrived everywhere.No one in chargeNo central site tracks what every site holds, and no one checks whether an update has arrived everywhere.
Old for a whileWhile a new version travels up and down the coast, some copies still hold the older one. The goal is that every copy agrees in the end.Old for a whileWhile a new value travels through the system, some sites still hold the older one. The goal is simply that every site agrees in the end.
What has to travel

One scrap, many shelvesOne update, many replicas

Each library's copy of an entry is a version of it. Every version carries a tally: the day and hour by the sun when it was written, with the number of the library that wrote it added to break ties.Each site's copy of a key is its value. Every value carries a timestamp: the time at which it was written, with the number of the site that wrote it added to break ties.

What travels from library to library is brief: one entry under its heading, written on a scrap of papyrus. Suppose Demerios, working at Library 1, revises the compendium's entry on the heavens to say that the Earth goes round the Sun. The new version is written today, so its tally is larger than that of any earlier version of the entry on the coast.What travels from site to site is brief: a single entry under a key. Suppose a client of site 1 updates the key orbit. Because it is written now, the new value carries a timestamp larger than any earlier value of that key in the system.

Writing a new version at one's own library is the only change a scholar makes directly. Every other change to a library's copy happens when it receives a version from another library and compares the tallies. An incoming version with a larger tally replaces the one held; one with a smaller tally is ignored. That single rule means any two libraries comparing an entry agree at once on which version to keep.Writing a new value at one's own site is the only change a client makes directly. Every other change to a site's copy happens when it receives a value from another site and compares timestamps. If the incoming value has a larger timestamp than the one stored, it replaces it; if its timestamp is smaller, it is ignored. That single rule guarantees that any two sites comparing a key will immediately agree on which value to keep.

The whole question is how Demerios's scrap gets from one library to every other library on the coast: how quickly each habit spreads it, how much walking and carrying it costs, and which libraries, if any, are left behind.The whole question is how one update gets from the site that received it to every other site, how quickly each method spreads it, how much traffic it costs, and which sites, if any, get left behind.

A small library of white plaster on a stone base, a porch of four plain columns before its open double doors and a tiled roof above, the low reading room at its side, a hillside of olives and cypresses behind
The simplest habitThe simplest method

Letters to everyoneDirect mail

The most obvious way to spread a new version is direct mail: whenever a scholar writes a new version, the library copies it onto a slip for every other library on the coast and sends a courier to each.The most obvious way to spread an update is direct mail: whenever a site receives a new value, it sends a message with the update to every other site.

While the coast had only a handful of libraries, sending letters to everyone seemed good enough. As the coast grew to hundreds of libraries, three flaws made it unworkable on its own.While the system had only a handful of sites, mailing everyone seemed good enough. As it grew to hundreds of sites, three flaws made it unworkable on its own.

What goes wrong

A courier is lostA message is lost

A courier may be delayed, turned back at a closed door, or lose the slip on the road. The library it was meant for then never hears of the new version.A message may be delayed, dropped by the network, or lost with a crashed site. When that happens, the destination site never hears of the update.

What goes wrong

A library is not on the listA site is not on the list

No one is in charge of the coast, so Demerios's list of libraries may be incomplete. A newly founded library that is not yet on the list receives no courier at all.Because no one is in charge, the sender's list of sites may be incomplete. A newly added site that is not yet on its list receives no message at all.

What goes wrong

One library does all the workOne site does all the work

Every new version makes the library that wrote it copy and send out hundreds of slips at once, crowding the roads around it.Every single update forces the site that received it to send out hundreds of messages at once, loading the network around it.

Worst of all, a slip that goes astray goes unnoticed. The library that missed it cannot know a slip was ever sent, and the sender has no record that it failed to arrive. On a coast of hundreds of libraries, no one can track down missing slips by hand, so something must catch what the letters miss without anyone keeping a list.Worst of all, when a message goes astray, nobody notices. The site that missed it has no way of knowing a message was ever sent, and the sender has no record that it failed to arrive. In a system of hundreds of sites, no one can track down missing messages by hand.

Close along one of the festival tables in the late afternoon: a scholar and a librarian sit facing each other across it, comparing their scrolls on the rests, more pairs at the tables beyond
The habit that misses no oneThe method that misses no one

The festivalAnti-entropy

To make sure no version is lost for good, the copyists of the coast gather once a year on the festival ground, where rows of long stone tables stand below the stoa.To make sure no update is lost for good, every site periodically runs an anti-entropy cycle.

There each copyist draws by lot the name of one other library, walks over to its copyist, and sits down across a stone table with their two whole copies of the compendium unrolled between them. Every choice is by lot, so some copyists are drawn two or three times and some not at all, though every copyist starts one table.In each cycle, every site chooses one other site at random and the two compare their entire databases. Because every choice is random, some sites are chosen two or three times and some are not chosen at all, though every site initiates one exchange.

The pair compare their copies entry by entry. Wherever they hold different versions of the same entry, the smaller tally gives way to the larger, in one direction or both, depending on which of three rules the festival follows.The pair compare their copies key by key. Whenever they hold different values for the same key, the site with the smaller timestamp replaces its value with the larger, depending on which of three rules the cycle follows.

Three ways to sitThree ways to exchange

GivingPush

The copyist who drew the lot gives (push) any newer versions they hold to the partner they chose, and takes nothing back.The site that initiated the exchange pushes (push) any newer values it holds to the partner it chose, and takes nothing back.

Three ways to sitThree ways to exchange

AskingPull

The copyist who drew the lot asks (pull) the chosen partner for any newer versions the partner holds, and hands over nothing.The site that initiated the exchange pulls (pull) any newer values its partner holds, without handing over its own.

Three ways to sitThree ways to exchange

BothPush-pull

Each copyist both gives and asks (push-pull), so when they rise from the table, both hold the newer version of every entry, whoever brought it.Each site both pushes and pulls (push-pull), so when they finish, both hold the newer value of every key, regardless of who brought it.

One hundred libraries hold the festival, year after yearOne hundred sites run a cycle, again and again

At each tableIn each exchange
0festivals heldcycles run1hold the new versionhold the new value

One library holds the new version. Every copyist draws one name by lot.One site holds the new value. Every site picks one other at random.

It never fails

Every copyist has some chance of being paired with every otherEvery site has some chance of being paired with every other

As long as every library has some chance of drawing every other, a library that holds the newest version will in time sit across from any library that lacks it. No master list of deliveries is needed, and since the number of libraries holding it roughly doubles each festival at first, doubling the size of the coast adds only a festival or two to the wait.As long as every site has a non-zero chance of picking every other site, a site that holds the newest value will eventually be paired with any site that lacks it. No master list of deliveries is needed, and because the number of informed sites roughly doubles each cycle at first, doubling the size of the system adds only a single extra cycle or two to the wait.

Proof · that anti-entropy with every pair possible reaches every site with probability 1

Let S be the set of sites. Suppose that for every pair s, s′ in S the probability that s chooses s′ as partner in a cycle is at least some q > 0. Claim. Every site comes to hold the value with the largest timestamp, with probability 1. For the number of cycles the paper quotes Pittel: about log2 n + ln n for push, which this book takes on the paper's word.

  1. This is the paper's argument of §3.2, set out. Let S be the set of sites, and suppose that for every pair s, s′ in S the probability that s chooses s′ as partner in a cycle is at least some q > 0.
  2. Let s₀ be a site holding the entry with the largest timestamp t, and let s be any site holding an older value. In any cycle, the probability that s chooses s₀ is at least q.
  3. If s chooses s₀, then whichever of push, pull or push-pull is in use, ResolveDifference leaves s with a value of timestamp at least t, since the value with the smaller timestamp is replaced by the one with the larger, and none is larger than t. (With push alone the same holds in the cycle in which s₀ chooses s.)
  4. The probability that s has not chosen s₀ in c cycles is at most (1 − q)c, which tends to 0 as c grows. Since there are finitely many sites, the probability that some site still holds an older value tends to 0.∎
The last few librariesThe last few sites

When few remain, asking beats givingWhen few remain, pull beats push

Near the end of the spread, almost every library already has the new version and only a few stragglers still lack it.Notice what happens near the end of the spread, when almost every site already has the new value and only a few stragglers still lack it.

Suppose one library in ten (0.10) still lacks it. Under asking (pull), each straggler draws a partner and asks, and stays uninformed only if the partner it draws is also a straggler: a chance of 0.10 × 0.10 = 0.01, and at the next festival 0.01 × 0.01 = 0.0001. Each festival squares the fraction still missing the news.Suppose nine out of ten sites already have the value, and one in ten (0.10) still lacks it. Under pull, each straggler actively picks a partner and asks. It stays uninformed only if the partner it picks also happens to be one of the few stragglers, which happens with probability 0.10 × 0.10 = 0.01, and at the next cycle 0.01 × 0.01 = 0.0001. Each cycle squares the fraction of sites still missing the update.

Under giving (push), the stragglers wait for an informed copyist to draw their name. Even when nearly everyone is informed, a straggler has about a 1/e chance (about 37%) of being drawn by no one in a festival. So giving shrinks the remaining fraction by only a constant factor each year, while asking clears the tail in a couple of festivals. Doing both (push-pull) gets the fast start of giving and the quick finish of asking.Under push, by contrast, the stragglers wait passively for one of the informed sites to pick them. Even when nearly everyone is informed, each straggler has roughly a 1/e (about 37%) chance of not being picked by anyone in a given cycle. So push shrinks the remaining fraction by only a constant factor each cycle, while pull wipes out the tail in a couple of steps. Doing both (push-pull) gets the fast early growth of push and the quadratic finish of pull.

One library in ten lacks the news worked out from the two rules, for a coast of a thousand librariesOne site in ten lacks the update worked out from the two rules, for a system of a thousand sites

The page works these out; it does not run a festival for them.The page works these out; it does not run a cycle for them.

Proof · that pull squares the susceptible fraction and push only scales it

Let pi be the probability that a site is still susceptible (has not received the update) after the ith cycle, n the number of sites, with partners chosen uniformly. Claim. With pull, pi+1 = pi²; with push, pi+1 = pi(1 − 1/n)n(1−pi).

  1. This is the paper's deterministic model of §1.3. Let pi be the probability that a site is still susceptible after the ith cycle, n the number of sites, and partners be chosen uniformly.
  2. Pull. A site is susceptible after cycle i + 1 exactly when it was susceptible after cycle i and the partner it contacted was also susceptible. The partner is susceptible with probability pi, independently, so pi+1 = pi².
  3. Push. A site is susceptible after cycle i + 1 exactly when it was susceptible after cycle i and none of the infective sites chose it. There are n(1 − pi) infective sites, each choosing it with probability 1/n, so pi+1 = pi(1 − 1/n)n(1−pi).
  4. For large n the last factor is close to e−(1−pi), and for small pi close to e−1. Push therefore multiplies a small pi by about 1/e each cycle, a geometric decrease, while pull squares it, which falls faster than any geometric decrease once pi is small.
  5. Push-pull makes a site informed if either holds, so it does at least as well as pull; the paper reports that it behaves essentially like pull.∎

The festival is completely reliable, but it has one heavy cost: at every table, the two copyists read through their whole copies from first entry to last, even when almost every entry already agrees. Nearly all their effort goes into finding that nothing needs changing.Anti-entropy is completely reliable, but it has one glaring cost: in every exchange, the two sites compare their entire databases from first key to last, even when almost every key already agrees. Nearly all their effort is spent verifying that nothing needs changing.

A cheaper table

Comparing sums firstComparing checksums first

To avoid reading thousands of identical entries, each library keeps a sum beside its copy of the compendium: a single compact figure (a checksum) worked from all its versions and their tallies.To avoid comparing thousands of identical entries, each site keeps a checksum beside its database: a single compact number computed from all its values and timestamps.

Whenever a library replaces a version with a newer one, it works its sum again on the spot. When two copyists sit down at the festival, they compare their two sums first. If the sums match, their copies are the same and they can rise from the table at once.Whenever a site replaces an old value with a newer one, it updates its checksum on the spot. When two sites start an exchange, they first compare their two checksums. If the checksums match, their databases are identical and they can stop at once.

On a busy coast, however, the two sums almost never match at once. Any version written in the last few days has reached some libraries and not others, so two copyists drawn by lot almost always differ on at least one recent entry, and are sent back to a full reading unless they clear away recent differences first.On a busy system, however, the two checksums almost never match right away. Any update written in the last few cycles has reached some sites and not others, so two randomly paired sites will almost always differ on at least one recent key, forcing them right back into a full comparison unless they clear away recent differences first.

The remedy

The recent list

Each library keeps a separate recent list of every version whose tally falls within a chosen span (say, the past week). Two copyists who sit down first exchange their recent lists, bringing their copies and sums up to date, and only then compare their sums. Now the sums almost always match.Each site keeps a separate recent list of all updates whose timestamps fall within a chosen recent time window (say, the past hour). When two sites start an exchange, they first swap their recent lists, updating their databases and checksums, and only then compare their checksums. Now the checksums almost always match.

Its price

The span must be long enoughThe window must be long enough

The span must be longer than the time a version needs to cross the whole coast. If the coast grows until versions take longer than the span to finish spreading, old differences fall off the recent list before everyone has them, the sums disagree every time, and the copyists are back to reading whole copies.The time window of the recent list must be longer than the time an update needs to cross the entire system. If the system grows until updates take longer than that window to finish spreading, old differences fall off the recent list before everyone has them, the checksums disagree every time, and the sites are forced back to comparing whole databases.

With no spanWith no window

Newest first

To avoid choosing a span at all, each library can keep an index of its copy ordered from newest tally to oldest. The two copyists compare versions newest first, what the paper calls peel back, bringing their sums up to date as they go and stopping the moment the two sums agree.To avoid picking a fixed time window at all, each site can keep an index of its database ordered from newest timestamp to oldest. The two sites compare entries newest first, what the paper calls peel back, updating their checksums as they go and stopping the instant the two checksums agree.

Between festivalsBetween cycles

Word of mouthRumor mongering

Even with sums, the festival is a heavy undertaking held only now and then. Between festivals, news travels faster and lighter by word of mouth in the stoa, the long colonnade beside the festival ground where scholars from every library stroll and talk.Even with checksums, anti-entropy is a heavy undertaking run only from time to time. Between cycles, news travels much faster and lighter by rumor mongering: sites pass fresh updates to random peers.

A scholar who writes a new version, or hears of one for the first time, copies the scrap onto a small wax tablet carried under the arm, the hot tablet. Each day in the stoa the scholar picks another scholar at random and tells them the scraps on the hot tablet. Nobody arranges who speaks to whom, and nobody keeps a list of which libraries have heard.Whenever a site receives a new update, or learns of one for the first time, it puts it on its hot list. Each cycle, it picks another site at random and shares the updates on its hot list. Nobody coordinates who contacts whom, and nobody keeps a list of which sites have received the update.

From inside the stoa in the golden evening light: a scholar walks out between the columns with a scroll under his arm, their long shadows across the paving, the festival tables and the bay beyond
With respect to one scrapWith respect to one update

Has not heard

The scholar's library does not hold this version yet (in the paper's epidemic terms, susceptible).The site does not hold this update yet (in the paper's epidemic terms, susceptible).

With respect to one scrapWith respect to one update

Still tellingStill spreading

The scrap is on the scholar's hot tablet (infective), and the scholar tells it to those they meet. Anyone who hears it for the first time puts it on their own hot tablet and starts telling it too.The update is on the site's hot list (infective), and it passes it on to the peers it meets. Any peer that receives it for the first time puts it on its own hot list and starts passing it on too.

With respect to one scrapWith respect to one update

Has stopped

The version is in the library's copy for readers to consult, but the scholar has wiped it off the hot tablet and no longer tells it in the stoa (removed).The value is stored for clients to read, but the site has taken it off its hot list and no longer spreads it (removed).

Why a scholar stopsWhy a site stops

Losing interest

If scholars never wiped a scrap off their hot tablets, the stoa would soon drown in old news. Each scholar needs a rule of their own for when news has grown stale, and the natural cue is meeting people who already know it.If sites never took an update off their hot lists, the system would soon drown in old news. A site needs a local rule for when an update has grown stale, and the natural cue is meeting peers who already know it.

Each scholar has an allowance, k, that sets their patience. While a scrap is new, almost everyone a scholar meets has not heard it, so the number of tellers multiplies fast. Once most of the coast knows it, a teller keeps meeting listeners who say my library already has that, loses interest, and wipes it from the hot tablet.Each site has an allowance k that governs its patience. When an update is brand new, almost every peer it contacts has not heard it yet, so the number of spreaders multiplies rapidly. Once most of the system knows the update, however, a spreader keeps contacting peers that already have it, and it loses interest and removes it from its hot list.

The paper compares two pairs of choices for how a scholar loses interest:The paper compares two pairs of choices for how a site loses interest:

First, attentive (feedback) or blind: an attentive scholar learns whether the listener already knew the scrap, and loses interest only when the telling was wasted; a blind scholar waits for no reply and may lose interest after any telling, even one that informed someone new.First, feedback versus blind: a site with feedback checks whether its peer already knew the update and only loses interest when the message was wasted on a peer that already knew; a blind site does not wait for a reply and may lose interest after any message, even one that informed someone new.

Second, toss (coin) or count (counter): with a toss, each wasted (or blind) telling has a 1 in k chance of making the scholar stop; with a count, the scholar stops after exactly k wasted tellings. An attentive counting scholar who tells someone who needed the news starts the count again from zero.Second, coin versus counter: with a coin, each wasted (or blind) message has a 1 in k chance of making the site stop; with a counter, the site stops after exactly k wasted messages. (If a site with feedback and a counter sends to a peer that needed the update, it resets its wasted-message count back to zero.)

When the last teller stops

Who never hearsSites that never receive the update

Word of mouth runs until the last scholar wipes the scrap from their hot tablet. Then the rumour has died out, and a library that has not heard by then will never hear by gossip alone. The libraries left out are the residue.Rumor mongering runs until the last spreader takes the update off its hot list. At that moment the rumor dies out completely, and any site that has not received the update by then will never receive it by rumor alone. Those left-out sites are the residue.

The paper tracks three quantities that trade off against one another: the residue (the fraction of libraries that never hear), the average number of tellings per library (the communication traffic), and the delay (both the average number of days until a library hears, and the day the very last library hears).The paper tracks three quantities that trade off against one another: the residue (the fraction of sites that never receive the update), the average number of messages per site (the communication traffic), and the delay (both the average number of cycles until a site receives it, and the cycle in which the very last site receives it).

A thousand libraries, one scrap choose how the scholars tell, then let it runA thousand sites, one update choose how the sites spread it, then let it run

Allowance
Does the teller learn whether the hearer knew?Does the sender learn whether the receiver knew?
Gives up
0never heard0tellings a librarymessages a site0dayscycles

Pale: has not heard. Gold: still telling. Green: has stopped.Pale: has not received it. Gold: still spreading. Green: has stopped.

The paper's measures, on a thousand librariesThe paper's measures, on a thousand sites

Counting, attentiveCounter, with feedback

An allowance of 1 leaves about 18% of libraries without the news, at 1.7 tellings per library. An allowance of 3 leaves only 1% unheard at 4.5 tellings. An allowance of 5 leaves roughly 1 in 1,000 unheard at 6.7 tellings.An allowance of 1 leaves about 18% of sites without the update, at 1.7 messages per site. An allowance of 3 leaves only 1% unheard at 4.5 messages. An allowance of 5 leaves roughly 1 in 1,000 unheard at 6.7 messages.

The paper's measures

A larger allowance, a smaller residue

With an attentive scholar who gives up on a toss, an allowance of 1 leaves about 20% of a large coast unheard, and 2 leaves about 6%. Increasing the allowance drives the residue down exponentially, though no finite allowance ever makes it strictly zero.With feedback and a coin, an allowance of 1 leaves about 20% of a large system unheard, and 2 leaves about 6%. Increasing the allowance drives the residue down exponentially, though no finite allowance ever makes it strictly zero.

The paper's measures

Delay changes little

Raising the allowance barely slows the spread, and counting is noticeably brisker than tossing: a library hears in 11–13 days on average with attentive counting (17 for the last to hear), compared with 14–19 days with blind tosses (and over 30 for the last).Raising the allowance barely slows the spread, and a counter is noticeably brisker than a coin: a site receives the update in 11–13 cycles on average with feedback and a counter (17 for the last to receive it), compared with 14–19 cycles with a blind coin (and over 30 for the last).

Proof · that the fraction who never hear satisfies s = e−(k+1)(1−s)

Let s, i, r be the fractions of the population susceptible (have not heard), infective (still telling) and removed (have stopped), with s + i + r = 1, and let an infective site lose interest with probability 1/k each time it calls a site that is not susceptible. Claim. When the epidemic ends, s = e−(k+1)(1−s).

  1. This is the paper's model of §1.4. Let s, i, r be the fractions of the population susceptible, infective and removed, so that s + i + r = 1. A susceptible site becomes infective in proportion to si; an infective site becomes removed at rate (1/k)(1 − s) per unit of i, since it loses interest with probability 1/k when it calls a site that is not susceptible, which happens with probability 1 − s. Hence
    ds/dt = −si,   di/dt = si − (1/k)(1 − s)i.
  2. Dividing the second by the first removes t: di/ds = −1 + (1 − s)/(ks) = −(k + 1)/k + 1/(ks).
  3. Integrating, i(s) = −((k + 1)/k)s + (1/k) ln s + c.
  4. At the start one site in n is infective, so i(1 − ε) = ε with ε = 1/n. For large n, ε → 0, so i(1) = 0 and c = (k + 1)/k. Hence i(s) = ((k + 1)/k)(1 − s) + (1/k) ln s.
  5. The epidemic ends when i = 0, that is when ln s = −(k + 1)(1 − s), so the residue satisfies s = e−(k+1)(1−s). For k = 1 the solution is about 0.20 and for k = 2 about 0.06, as the paper states.∎
One price in every version

The residue is always about e−m, where m is the average tellings per libraryThe residue is always about e−m, where m is the average messages per site

Whether scholars are attentive or blind, and whether they stop by count or by toss, a striking law holds across every push variant: if the epidemic sends an average of m tellings per library (nm random tellings in total), the probability that a given library is never picked by any of those nm random tellings is (1 − 1/n)^(nm) ≈ e^(−m). Thus 1.7 tellings per library always leaves about e^(−1.7) ≈ 18% unheard, and 6.7 tellings leaves about e^(−6.7) ≈ 0.12% unheard. Counting and attentiveness do not beat that traffic-to-residue curve; what they improve is the delay.Whether sites use feedback or are blind, and whether they stop by counter or by coin, a striking law holds across every push variant: if the epidemic sends an average of m messages per site (nm random messages in total), the probability that a given site is never picked by any of those nm random messages is (1 − 1/n)^(nm) ≈ e^(−m). Thus 1.7 messages per site always leaves about e^(−1.7) ≈ 18% unheard, and 6.7 messages leaves about e^(−6.7) ≈ 0.12% unheard. A counter and feedback do not beat that traffic-to-residue curve; what they improve is the delay.

Argument · that s = e−m in every version of rumour mongering

Let n be the number of sites, s the residue, and m the average number of updates sent from a site, so that the epidemic sends nm updates in all, each to a site chosen uniformly. Claim. s = e−m. The paper says the argument is not fully proved.

  1. The paper gives this argument in §1.4 and says it is not fully proved. Let m be the average number of updates sent from a site, so the epidemic sends nm updates in all.
  2. Each update is addressed to a site chosen uniformly, so a given site is not chosen by any one with probability 1 − 1/n.
  3. If the updates were independent, the probability that a given site is chosen by none of them is (1 − 1/n)nm, which tends to e−m as n grows. This probability is the residue s.
  4. The step that is not proved is that m may be treated as a constant: it varies from site to site, and the relation holds only if its spread about the mean goes to zero as n → ∞. The authors observe this empirically and have not proved it.
  5. Table 1 agrees with the relation: m = 1.7 gives e−1.7 ≈ 0.18 and m = 3.3 gives ≈ 0.037.∎
Two ways to meet

Telling, asking and crowded daysPush, pull and busy sites

As at the festival, word of mouth in the stoa can work by telling (push) or by asking (pull). A telling scholar goes up to someone at random and offers what is on the hot tablet; an asking scholar goes up to someone at random and asks, What is on your hot tablet?Just as in anti-entropy, rumor mongering can work by push or by pull. A pushing site approaches a random peer and offers what is on its hot list; a pulling site approaches a random peer and asks, What is on your hot list?

Again asking beats telling in the tail, shrinking the residue to roughly e−Θ(m³) instead of e−m. With attentive counting scholars, an allowance of 1 leaves only 3% unheard (at 2.7 tellings per library); an allowance of 2 leaves 6 in 10,000; and an allowance of 3 leaves 4 in a million.Once again, pull beats push dramatically in the tail, shrinking the residue to roughly e−Θ(m³) instead of e−m. With feedback and a counter, an allowance of 1 leaves only 3% unheard (at 2.7 messages per site); an allowance of 2 leaves 6 in 10,000; and an allowance of 3 leaves 4 in a million.

The same thousand libraries telling against asking, attentive and countingThe same thousand sites push against pull, with feedback and a counter

Each dayEach cycle
Allowance
0never heard0tellings a librarymessages a site0dayscycles

With asking, every library asks one other each day, and a scholar who still has the scrap on the hot tablet hands it over. A scholar asked by several in a day counts the day as wasted only if none of them needed the scrap, and starts the count afresh if any did.With pull, every site asks one other each cycle, and a site that still has the update on its hot list sends it. A site asked by several in a cycle counts the cycle as wasted only if none of them needed the update, and starts the count afresh if any did.

Why telling is used at allWhy push is used at all

A quiet coastA quiet system

Telling earns its place on a quiet coast. When no new versions are being written, telling scholars have empty hot tablets and say nothing at all, while asking scholars still walk up to someone every day to ask What is new?, wasting breath. Asking suits a busy coast; telling suits a quiet one.Push earns its place in a quiet system. When no new updates are being written, pushing sites have empty hot lists and send nothing, while pulling sites still contact a peer every cycle to ask What is new?, wasting messages. Pull suits a busy system; push suits a quiet one.

Doing both

Only the lower count is charged

When two scholars both tell and ask (push-pull) and find they both already hold the scrap, the meeting could count as wasted for either. The paper's minimization rule charges only the scholar with the smaller wasted-telling count (or both, if tied), which keeps hot tablets alive longer and gives the smallest residue of all.When two sites both push and pull (push-pull) and find that both already hold the update on their hot lists, the exchange could count as wasted for either. The paper's minimization rule charges only the site with the smaller wasted-message count (or both if tied), keeping hot lists alive longer and yielding the smallest residue of all.

Crowded daysBusy sites

Turned away, and hunting

Suppose a scholar can speak with only so many others a day and turns extra callers away. Under telling, being turned away helps, since the busy listener had probably been told already. Under asking it hurts, unless a refused scholar hunts for someone still free.Suppose a site can talk to at most a fixed number of peers per cycle and rejects extra connections. Under push, being rejected actually helps, because the busy peer had probably received the update already. Under pull, being rejected hurts, unless a refused site hunts for another peer that is still free.

In fact, if each scholar accepts only one partner per day and anyone turned away hunts until they find an available partner, the stoa pairs everyone off into one-to-one tables. Telling and asking become identical, and the residue drops almost to nothing.In fact, if each site accepts only one partner per cycle and any site that is rejected hunts until it finds an available partner, the system pairs everyone off into one-to-one exchanges. Push and pull become identical, and the residue drops almost to nothing.

Two habits, each covering the other

The festival behind the gossipAnti-entropy behind rumor mongering

Word of mouth in the stoa is fast and cheap, but leaves a small residue of libraries untold. The festival is slow and thorough, and leaves no one behind. Put together, each cures the other's weakness.Rumor mongering is fast and cheap, but leaves a small residue of sites that never receive the update. Anti-entropy is slow and thorough, and leaves no one behind. Put together, each cures the other's weakness.

Nearly all versions reach nearly all libraries within days by word of mouth in the stoa. Then, now and then, copyists sit down at a festival table (anti-entropy) and sweep up the few scraps the gossip missed, or heal the coast after a stopped courier cuts it in two and the gossip dies out on one side.Nearly all updates reach nearly all sites within seconds by rumor mongering. Then, every so often, sites run an anti-entropy exchange and sweep up whatever few updates the rumor missed, or heal the system after a partition cuts it in two and lets the rumor die out on one side.

When two copyists at a festival table find that one of them holds a version the other missed, they copy it across. The paper weighs three answers to whether the newly informed library should also start spreading that version again, in case others missed it too:When two sites in an anti-entropy exchange discover that one of them holds an update the other missed, they copy it across. The paper weighs three answers to whether the newly informed site should also start spreading that update again, in case others missed it too:

The cautious reply

Nothing more

Copy the missing version into the library's copy and leave it off the hot tablet. The festival will carry it to any other stragglers in time.Simply copy the missing value into the database and leave it off the hot list. Anti-entropy itself will eventually carry it to any other stragglers.

The bolder reply, by lettersThe bolder reply, by mail

Tell everyone again, by courierMail everyone again

This can explode in cost. If a stopped courier left half the coast without a version, then at the next festival about half the copyists find it missing at once, and each sends it to everyone: on the order of n² letters.This can explode in cost: if a network partition left half the system without an update, then at the next exchange roughly half the sites will discover the missing update at once and each mail it to everyone: O(n²) messages.

The bolder reply, by word of mouthThe bolder reply, by rumor

Treat it as news again

Putting the rediscovered version back on the hot tablet is always cheap: if almost everyone has it, the teller soon meets people who know it and drops it; if half the coast lacks it, gossip spreads it without flooding the roads.Putting the rediscovered update back on the hot list for rumor mongering is always cheap: if almost everyone already has it, the spreader quickly meets informed peers and drops it; if half the system lacks it, the rumor spreads it cleanly without flooding the network.

A combination that cannot fail

Swap from the head of the list until the sums agreeSwap from the head of the list until the checksums agree

A library can also merge gossip and festival into one habit. Instead of wiping old scraps from a hot tablet, each library keeps its versions in a list ordered by how recently each proved useful: a scrap that was news to a listener moves to the front, and one the listener already knew slips back. When two scholars meet, they exchange scraps from the front of their lists in small batches until their sums match.Even better, a site can merge rumor mongering and anti-entropy into a single method. Instead of dropping old updates from a hot list, each site keeps its entries in a list ordered by how recently each update proved useful: whenever an update is new to a peer, it moves to the front of the list; whenever the peer already knew it, it slips back. When two sites meet, they exchange updates from the front of their lists in small batches until their checksums match.

Spreading an absence

Withdrawing an entryDeleting a key

Suppose Demerios judges an entry spurious and wants it withdrawn (deleted) from the compendium. Taking the entry's scroll out of one library's pigeonholes is not enough.Suppose a client decides that an entire key should be deleted from the database. Removing it from one site's copy is not enough.

At the next festival table, that library's copyist sits across from one whose copy still holds the entry. One copy has nothing under the heading and the other has a version from day 3, so the festival's rule copies the old version back. Every habit so far spreads what is present; an empty place in the pigeonholes has no tally and cannot beat a version that has one.At the next anti-entropy exchange, that site is paired with a site that still holds the old value. Its own copy has nothing under the key and the partner has a value from day 3, so the rule copies the old value back. Every method we have seen spreads what is present; an empty space has no timestamp and cannot beat an existing value.

To make an absence travel, the library turns the withdrawal into a record: a notice of withdrawal (in the paper's terms, a death certificate). The notice names the entry and carries the tally of the moment it was withdrawn, as a new version does. It spreads by word of mouth and at the festival, and wherever it meets a version with a smaller tally, the version is struck and the notice takes its place.To make an absence travel, the site must turn the deletion into a positive record: a death certificate. It names the deleted key and carries the timestamp of the moment of deletion, just like a new value. Now it spreads by rumor mongering and anti-entropy, and wherever it meets a value with a smaller timestamp, that value is replaced by the certificate.

Two libraries meet at the festival choose what Library 1 didTwo sites exchange choose what site 1 did

Library 2 still holds the old version, written on day 3.Site 2 still holds the old value, written on day 3.

What notices costWhat certificates cost

They pile up

If libraries kept every notice of withdrawal for ever, their pigeonholes would slowly fill with notices for long-gone entries. A library could throw a notice away once every library has seen it, but knowing that needs word from every library, and a single closed library withholds it.If sites kept every death certificate forever, their databases would gradually fill up with tombstones for long-deleted keys. A site would love to discard a certificate once every site has seen it, but knowing that everyone has heard requires hearing from everyone, which a single unreachable site blocks.

The plain answer

A fixed spanA fixed threshold

Each library can throw away a notice once its tally is older than a fixed span, τ₁ (say, a month). The risk: if a library cut off for a month and a day comes back, its old version brings the withdrawn entry back across the whole coast.Each site can discard a certificate once its timestamp is older than a fixed threshold τ₁ (say, a month). The risk is that if a long-cut-off site comes back after a month and a day, its old value will resurrect the deleted key across the whole system.

A far longer spanA far longer memory

Dormant noticesDormant certificates

For a much longer memory without filling every library's pigeonholes, each notice names a few wardens (retention sites) chosen by lot. After the first span ordinary libraries throw the notice away, while its wardens keep it asleep (dormant), taking space at only those few libraries and costing the festival nothing unless an old version turns up.To get a much longer memory without filling every site's database, each certificate names a few retention sites chosen at random. After the first threshold τ₁, ordinary sites discard the certificate, while its retention sites keep it dormant, taking up space at only those few sites and generating zero anti-entropy traffic unless an old value resurfaces.

What a woken notice carriesWhat a woken certificate carries

Two talliesTwo timestamps

Suppose an old version from day 3 reaches a warden on day 10. The warden wakes its sleeping notice from day 5, so that it travels again and strikes the returned version. The woken notice must carry a date, and the obvious one is wrong.Suppose an old copy from day 3 finally reaches a retention site on day 10. It wakes its dormant certificate from day 5 so that it can travel again and replace the resurrected day-3 value. The woken certificate needs a timestamp, and the obvious one is wrong.

If the warden gave the woken notice a fresh tally of day 10, it would also strike any version written legitimately after the withdrawal: had a scholar written the entry again on day 8, the day-10 notice would wipe out that version too.If the site gave the woken certificate a fresh timestamp of day 10, it would also replace any value written legitimately after the deletion: had a client written the key again on day 8, the day-10 certificate would wipe out that value too.

So a notice of withdrawal carries two tallies: its withdrawal tally, t (day 5), which never changes and decides which versions the notice may strike (those with a smaller tally), and a waking tally, a (activation timestamp), which moves to day 10 when the notice wakes and decides only whether it is awake and spreading.To prevent that, a death certificate carries two timestamps: its original deletion timestamp t (day 5), which never changes and decides which values the certificate is allowed to replace (u < t), and an activation timestamp a, which is updated to day 10 when woken and decides only whether the certificate is awake and actively spreading.

A sleeping notice wakes the entry was withdrawn on day 5, and written again on day 8A dormant certificate wakes the key was deleted on day 5, and written again on day 8

An old version from day 3 turns up at a warden on day 10. Wake the notice.An old value from day 3 turns up at a retention site on day 10. Wake the certificate.

Proof · that reactivating by the activation timestamp cancels no later update

A death certificate carries an ordinary timestamp t and an activation timestamp a, equal when it is created. It is dormant once a is older than the threshold τ₁, and deleted once a is older than τ₁ + τ₂. Claim. Reactivation, which sets a to the current time, cancels no item whose timestamp u exceeds t.

  1. This is the argument of §2.2, set out. A death certificate carries an ordinary timestamp t and an activation timestamp a, equal when created.
  2. The rule of cancellation uses only t: a certificate cancels an item with timestamp u exactly when t > u. The rule of propagation uses only a: the certificate is dormant, and so not propagated by anti-entropy, once a is older than τ₁, and is deleted once a is older than τ₁ + τ₂.
  3. Suppose a site has a legitimate item with timestamp u > t, an update that reinstated the item after its deletion. The certificate has t < u, so it does not cancel it.
  4. Reactivating a certificate sets a to the current time and leaves t unchanged. The cancellation test is unchanged, so the reactivated certificate still fails to cancel any item with u > t, while the new a lets it propagate.
  5. By contrast, had reactivation set t to the current time, a certificate with t′ > u would cancel the reinstating update, which is incorrect.∎

Dormant notices act like the memory of an immune system: for the same space at each library, a coast of n libraries can remember withdrawals about n times longer, years instead of weeks. The first span must still be longer than a version needs to cross the coast, which grows only slowly (as log n) with the number of libraries.Dormant certificates act like an immune system's memory cells: for the same space per site, a system of n sites can remember deletions roughly n times longer (years instead of weeks). Still, the first threshold τ₁ must be kept longer than the time an update needs to cross the system, which grows slowly (as O(log n)) with the number of sites.

A coast is not an even plainA network is not uniform

Near partners and the ferryNear partners and the critical link

Up to now, every scholar and copyist has picked partners uniformly at random from the entire coast. On a real coast, however, some crossings are bottlenecks.Up to now, every site has picked partners uniformly at random from the entire system. On a real network, however, some links are bottlenecks.

Suppose most libraries lie along the main coast road, while a few lie across an inlet crossed only by one ferry. If every library picks partners uniformly at random, the few across the inlet almost always pick a partner on the main coast, and the many on the main coast often pick one across the inlet. Every such pairing rides the one ferry.Suppose most sites lie on one main network, while a few lie across a single slow link. If every site picks partners uniformly at random, the few sites across the link almost always pick a partner on the main network, and the many sites on the main network frequently pick one across the link. Every one of those pairings has to cross the single link.

To spare the ferry, the paper has each library prefer nearer partners: it ranks all the others from nearest to farthest and picks the d-th nearest with probability proportional to 1/d². The chance depends on a library's rank in the list, not on distance along the road, so it adapts on its own where libraries are close together and where they are far apart.To spare the link, the paper has each site prefer nearer partners: each site ranks all the others from nearest to farthest, and picks the d-th nearest site with probability proportional to 1/d². Because the probability depends on a site's rank d in the list rather than raw distance, it adapts automatically where sites are clustered tightly and where they are spread far apart.

The coast from over the sea: the stoa's harbour with its quay, pier and two moored boats, the festival ground's rows of tables and the long stoa behind them, wooded hills rising beyond with a road climbing them

Partners by lot, or nearer first the paper's trials, on a coast with one such crossingRandom partners, or nearer first the paper's trials, on a network with one such link

These are the paper's measures. The page does not work them out.

How much nearer

Along one roadAlong one line

If scholars spoke only to their next-door neighbours, the ferry would be spared, but news would creep down the coast one library a day (a delay on the order of n). Picking the d-th neighbour with probability 1/d² keeps the traffic on the roads and the ferry low (on the order of log n) and still spreads news in time on the order of log n.If sites spoke only to their immediate neighbours, the link would be spared, but news would creep along the line one site per cycle (O(n) delay). Picking the d-th neighbour with probability 1/d² keeps link traffic low (O(log n)) while still spreading news in O(log n) time.

Safe for the festivalSafe for anti-entropy

Every pair still has some chance

Because every library on the list still has a non-zero probability of being drawn, anti-entropy at the festival remains guaranteed to reach every library on the coast.Because every site on the list still has a non-zero probability of being picked, anti-entropy remains guaranteed to reach every site in the system.

Not safe for the tellingNot safe for rumor mongering

Telling the neighbour againSpreading to the neighbour again

For word of mouth alone, favouring near libraries can backfire on an uneven coast: two libraries close to each other and far from the rest may keep picking each other, use up their allowance k, and stop telling before the news ever crosses the gap.For rumor mongering alone, favouring nearby sites can backfire on uneven networks: two sites close to each other and far from the rest may repeatedly pick each other, exhaust their allowance k, and stop spreading before the rumor ever jumps the gap.

Combining telling and asking (push-pull) with a slightly higher allowance makes spatial gossip much more resilient, and the festival behind the gossip catches anything that stalls at a bottleneck. When the authors deployed spatial epidemic algorithms on Xerox's real Clearinghouse network, cross-gateway traffic dropped sharply and replica convergence improved.Combining push and pull (push-pull) with a slightly higher allowance makes spatial rumor mongering much more resilient, and anti-entropy behind it catches anything that stalls at a bottleneck. When the authors deployed spatial epidemic algorithms on Xerox's real Clearinghouse network, cross-gateway traffic dropped sharply and replica convergence improved.

The limits

What it does not say

The coast's epidemic habits eventually bring every library the news without anyone in charge. Here are five things they do not promise.These epidemic methods eventually bring every site the update without anyone in charge. Here are five things they do not promise.

Does news arrive within a fixed number of days?

No. Because every pairing is chosen by lot, there is no hard deadline by which every library is guaranteed to have heard. Once writing stops, the probability that any library is still behind falls exponentially with time, a trade the authors gladly accept for algorithms so simple and decentralized.No. Because every pairing is chosen at random, there is no hard deadline by which every site is guaranteed to have received it. Once writing stops, the probability that any site is still behind falls exponentially with time, a trade the authors gladly accept for algorithms so simple and decentralized.

Does telling alone reach everyone?Does rumor mongering alone reach everyone?

No. Word of mouth in the stoa always leaves some libraries that never hear, and on an awkward lie of the land it can die out early. Only the festival (anti-entropy) behind the gossip guarantees that every library comes to agree.No. Rumor mongering always leaves a non-zero residue of sites that never receive the update, and on awkward network topologies it can die out early. Only anti-entropy behind the rumor guarantees that 100% of sites eventually converge.

Does the coast ever agree at one instant?Does the system ever agree at one instant?

Only if everyone stops writing new versions long enough for the last scraps to finish spreading. While scholars keep writing, some copies are always a little behind, and a reader may be handed an older version. How likely that is, and how far behind, is measured on the same coast.*Only if everyone stops writing new values long enough for the last updates to finish spreading. While clients keep writing, some sites are always slightly behind, and a read may return an older value. How likely that is, and how far behind, is a question of probabilistically bounded staleness.*

What if two scholars change the same entry at once?What if two clients write the same key at once?

The larger tally wins (last-writer-wins), and the version with the smaller tally is overwritten, not merged, even when the two changed different parts of the entry.* And since tallies come from each library's reading of the sun, a library whose reading runs fast writes versions that beat later versions written elsewhere.The larger timestamp wins (last-writer-wins), and the value with the smaller timestamp is silently overwritten rather than merged, even when the two writes touched different parts of the value.* Moreover, because timestamps come from each site's clock, if one site's clock runs fast its values will beat later values written elsewhere.

What is left open?

The authors note several open questions: how to prevent spatial distributions from stalling rumor mongering on arbitrary network graphs, whether fixed time thresholds on death certificates can be avoided without global snapshots, and whether organizing sites into a hierarchy would beat flat random pairing.

Reconciling at random reaches every replica in the end; passing fresh news on at random is quick and cheap, and leaves a small fraction for the reconciling to catch.

Deletions have to be spread as certificates, or an old copy brings the item back.

Setting Libraries That Agree in the End

The paper behind this book

Alan Demers, Mark Gealy, Dan Greene, Carl Hauser, Wes Irish, John Larson, Sue Manning, Scott Shenker, Howard Sturgis, Dan Swinehart, Doug Terry and Don Woods, Epidemic Algorithms for Replicated Database Maintenance. Proceedings of the Sixth Annual ACM Symposium on Principles of Distributed Computing (PODC), Vancouver, August 1987, 1–12; the version used here is Xerox PARC CSL-89-1, January 1989. — Direct mail, anti-entropy with checksums and peel back, rumor mongering, death certificates and spatial distributions, from the Clearinghouse servers of the Xerox Corporate Internet.

The ideas, plainly.

Demers and co-authors keep a database copied at many sites and ask how an update made at one site can reach all the others with very little help from the network and no one in charge. Each entry carries a timestamp and the larger timestamp wins, so any two sites that meet can settle which entry is newer. Mailing the update to everyone is quick but unreliable, and the sender may not know every site. Anti-entropy, in which each site regularly picks another at random and the two reconcile, always reaches every site, but slowly and at the cost of comparing whole databases; checksums and lists of recent updates make it cheap.

Rumor mongering passes an update on while it is still news: a site that has it tells others and loses interest after meeting enough who already knew. That is quick and cheap, but it can leave a fraction of sites who never hear, a fraction that shrinks exponentially with the patience allowed and is tied to the traffic by one relation in every version. Pull does much better than push when few sites are left. Anti-entropy run rarely behind it makes certain that nothing is missed.

Deletions have to be spread too, or an old copy brings the item back, so a deletion is a certificate with a timestamp; certificates cannot be kept for ever, so a few sites keep them asleep and wake them if an old copy turns up, with a second timestamp so that waking does not cancel newer updates. Choosing partners nearer first, with a chance that falls with the number of closer sites, spares the few critical links, at a small cost in delay; but it can defeat rumor mongering in awkward networks, which is another reason for the anti-entropy behind it.

Demerios stands for Alan Demers, the first author. The paper names twelve authors, Alan Demers, Mark Gealy, Dan Greene, Carl Hauser, Wes Irish, John Larson, Sue Manning, Scott Shenker, Howard Sturgis, Dan Swinehart, Doug Terry and Don Woods, and all are credited here. Only Demerios is named; the scholars of the stoa and the copyists of the festival are not told apart, since no one is in charge of either.

In the paper, term by term
the libraries along the coast, each with its own copy of the compendiumSites, each storing a replica of the database. §1.1.
an entry in the compendium, under its headingA key of the database. §1.1.
a version; its tally, the day and hour by the sun with the library's number; the larger tally winsA value with a timestamp; the larger timestamp supersedes. §1.1.
writing a new version at one's own libraryUpdate[v]: the one client operation, at one site. §1.1.
a scrap of papyrus with a new versionAn update. §0.
letters to every libraryDirect mail: n messages per update, unreliable, and the sender may not know every site. §1.2.
the festival: pairs by lot compare whole copies of the compendiumAnti-entropy: a simple epidemic that reaches every site with probability 1. §1.3, §3.2.
giving, asking, or bothPush, pull, push-pull. §1.3.
asking squares the share still without it; giving scales itPull: pi+1 = pi²; push: pi(1 − 1/n)n(1−pi). §1.3.
the sum worked from a library's whole copyA checksum of the database, updated incrementally. §1.3.
the recent list; a span longer than the news needsThe recent update list and the window T. §1.3.
newest first until the sums agreePeel back, with an index by timestamp. §1.3.
drawing a name by lotChoosing a partner uniformly at random. §1.3.
the scholars in the stoa; a day's meetingRumor mongering, a complex epidemic, in cycles. §1.4.
the hot tabletThe infective list of updates a site is sharing. §1.4.
has not heard; still telling; has stoppedSusceptible, infective, removed. §1.4.
the allowance; losing interestThe parameter k: loss of interest with probability 1/k, or after k unnecessary contacts. §1.4.
attentive or blind; toss or countFeedback or blind; coin or counter. §1.4.
those who never hearThe residue s. §1.4.
tellings per library; days to hearTraffic m; delay tave and tlast. §1.4.
the residue is one over the exponential of the tellingss = e−m, shared by the variations; not fully proved. §1.4.
telling and asking, on busy and quiet coastsPush versus pull in rumor mongering; pull has s = e−Θ(m³). §1.4.
both sides' counts, only the lower one addedMinimization. §1.4.
a limit on speakers per day; hunting for anotherConnection limit and hunting; the chance of a site being contacted by j others in a cycle is about e−1/j!. §1.4.
the festival behind the gossip; telling a found difference afreshBacking up a complex epidemic with anti-entropy; redistribution, by mail O(n²) messages in the worst case. §1.5.
the list kept in order of use; swapping batches until the sums agreePeel back combined with rumor mongering by a doubly-linked list. §1.5.
a notice of withdrawalA death certificate. §2.
a fixed span; asking whether everyone has the noticeA fixed threshold; Sarin and Lynch's snapshot-based discarding. §2.
the wardens named by lot; a sleeping notice; the first and second spansDormant death certificates; retention sites; thresholds τ₁ and τ₂; the history kept grows by a factor of O(n), and τ₁ must grow as O(log n). §2.1.
the two tallies of a notice; wakingOrdinary and activation timestamps; reactivation. §2.2, §2.3.
preferring near partners; the ferrySpatial distributions; critical links. On a line, a d−2 distribution gives traffic per link of O(log n). §3, §3.1.
chance falling with a place in the listA distribution parameterised by Qs(d), the number of sites within distance d. §3.
the two small coasts where telling failsFigures 1 and 2: spatial distributions can defeat rumor mongering. §3.2.