In an asynchronous network, a computer that has crashed looks identical to one whose messages are merely running slow, and that single ambiguity makes agreement impossible. An imperfect detector at each machine can guess which machines have crashed, and those guesses can be wrong almost all the time while still allowing the group to agree.
To find out how, we visit the Chamber of Paxos, where each part-time legislator keeps an attendance slate at their bench, chalking the colleagues they believe have left for good, and see how little those slates need to get right for the parliament to settle the colour.
To find out how, we follow the algorithms step by step. Four processes each keep a list of the processes they suspect have crashed, and we see how little those lists need to get right for the system to agree.
After Tushar Deepak Chandra and Sam Toueg, Unreliable Failure Detectors for Reliable Distributed Systems, 1996

Each link traces how one paper built upon another. Hover over or tap any link to see the connection.
a paper this book retells a paper retold in another book a paper outside the series
Four part-time legislators assemble in the domed Chamber of Paxos, one to each quarter bench, under no perpetual president.* Each tends private olive groves between parliamentary sessions.Four processes, P1 to P4, run on separate machines with no coordinator.
Before the session ends, all four legislators must agree on a single colour for the temple frieze, blue or red. Each legislator formed an initial proposal on entering, and committing is final: once a legislator has painted their own panel of the frieze, the paint cannot be scraped off.All four processes must decide the same value, 1 or 0. Each starts with an input value, and deciding is final: a process that decides then stops.
Whatever parliamentary arrangement they use to settle on a single colour must satisfy three demands:Whatever protocol they use to settle on a single value must satisfy three properties:
No two of the four ever commit to different colours (agreement).No two of the four ever decide different values (agreement).
A legislator may only commit to a colour that at least one of the four actually proposed on entering (validity).A process may only decide a value that at least one of the four actually had as input (validity).
Every legislator who has not departed eventually commits to a colour (termination).Every process that does not crash eventually decides (termination).
As we saw when a single bench fell silent, if messengers can take arbitrarily long and nothing more is given, no arrangement can satisfy all three demands.* The stumbling block is a silent bench: a legislator waiting for a messenger from Legislator 4 cannot tell whether Legislator 4 has sailed away to the mainland or their messenger is merely delayed in the olive groves.As we saw earlier, if messages can take arbitrarily long and nothing more is given, no protocol can satisfy all three properties.* The stumbling block is a silent process: a process waiting for a message from P4 cannot tell whether P4 has crashed or its message is merely delayed.
Without help, both choices fail: waiting forever leaves the parliament stalled if Legislator 4 has departed, while voting early risks acting without a present colleague whose messenger was just about to enter the rotunda.Without help, both choices fail: waiting forever leaves the system stalled if P4 has crashed, while giving up early risks acting without a live process whose message was just about to arrive.

Suppose each legislator had an imperfect guide to tell them when to stop waiting. That is the single addition made here. Each legislator keeps a chalked attendance slate (a pinakion) at their own bench, with a row for each colleague. The slate is the record of whatever way that legislator watches for departures, such as turning a sandglass for each bench. Whenever that watching makes them suspect a colleague has departed, they chalk that colleague's row; if the suspicion passes, say because a note from that colleague arrives, they wipe the chalk mark out again. Which way of watching a legislator uses does not matter here, because a way of watching is judged only by the marks it leaves on the slate; how any slate can be kept at all is left for the end. A legislator waiting for a note from a colleague simply waits until either the messenger arrives or that colleague's row is chalked on their slate.Suppose each process had an imperfect hint telling it when to stop waiting. That is the single addition made here. Each process gets a failure detector (a suspect list) with an entry for each of the other processes. The list is the output of whatever mechanism the process uses to watch for crashes, such as a timeout for each process. Whenever that mechanism suspects a process of having crashed, it is on the list; if the suspicion passes, it can be taken off again. Which mechanism a process uses does not matter here, because a detector is judged only by what its list contains; how any detector can be built at all is left for the end. A process waiting for a message from another simply waits until either the message arrives or that process is on its suspect list.
Crucially, the slates at different benches need not agree with one another, and they are often wrong: a legislator may chalk a present colleague whose messenger is merely slow in the heat, or leave an absent member's row blank for a while. How reliable these slates have to be before the four legislators can settle the colour is what remains to be settled.Crucially, the suspect lists at different processes need not agree with one another, and they are often wrong: a list may include a live process whose message is merely slow, or omit a crashed one for a while. How reliable these lists have to be before the four processes can reach agreement is what remains to be settled.
Any attendance slate can make only two kinds of mistakes: it can fail to chalk an absent legislator, or it can falsely chalk a present colleague. So we judge a slate by two promises, how well it chalks the absent (completeness), and how well it spares the present (accuracy).Any failure detector can make only two kinds of mistakes: it can fail to suspect a crashed process, or it can falsely suspect a live one. So we judge a detector by two promises, how well it suspects the crashed (completeness), and how well it spares the live (accuracy).
Try keeping an attendance slate yourself below. You are Legislator 1, and some benches have sent no messenger yet. Chalk the members you suspect have departed, then reveal the session to see which of the two mistakes you made.Try keeping a suspect list yourself below. You are P1, and some processes have sent no message yet. Mark the processes you suspect have crashed, then reveal the execution to see which of the two mistakes you made.
Every legislator who departs is eventually chalked permanently (completeness), either on every present member's slate (strong), or on at least one present member's slate (weak).Every crashed process is eventually suspected permanently (completeness), either by every correct process (strong), or by at least one correct process (weak).
Present legislators are not falsely chalked (accuracy), either all present legislators or at least one present legislator, and either from the start or only eventually.Correct processes are not falsely suspected (accuracy), either all correct processes or at least one, and either from the start or only eventually.
A slate that simply chalks every bench from the start permanently chalks every absent legislator, yet conveys no information at all.A detector that simply suspects every process from the start permanently suspects every crashed process, yet conveys no information at all.
That third card is worth pausing over. If all you ask of an attendance slate is that it eventually chalks the absent, you can build one without any effort: just chalk every bench at the start of the session and never wipe the marks off. A legislator who relied on such a slate would never wait for anyone. What gives a slate real power is pairing completeness with some guarantee of sparing the present.That third card is worth pausing over. If all you ask of a detector is that it eventually suspects the crashed, you can build one without any effort: just suspect every process at the start and never remove a suspicion. A process that relied on such a detector would never wait for anyone. What gives a detector real power is pairing completeness with some guarantee of sparing the live.
We can ask a slate to spare the present in four strengths, from strictest to loosest. Combined with the two ways of chalking the absent (by every present legislator, or by at least one present legislator), they form a grid of eight kinds of slates:We can ask a detector to spare the live in four strengths, from strictest to loosest. Combined with the two ways of suspecting the crashed (by every correct process, or by at least one), they form a grid of eight kinds of detectors:
| every present member chalks the absentevery correct process suspects the crashed | some present member chalks the absentsome correct process suspects the crashed | |
|---|---|---|
| never chalkednever suspected | perfect (P) | - |
| one never chalkedone never suspected | strong (S) | weak (W) |
| in the end, never chalkedin the end, never suspected | in the end perfect (◇P) | - |
| in the end, one never chalkedin the end, one never suspected | in the end strong (◇S) | in the end weak (◇W) |
Look at the bottom row of the table, in the end strong (◇S) and in the end weak (◇W). They promise very little. For hours on end, every present legislator can be falsely chalked by everyone else, marks can be wiped off and redrawn repeatedly, and even after the slates finally settle down, only one present colleague needs to be spared from false chalking, while nobody in the Chamber knows when that moment arrived or which member is the spared one.Look at the bottom row of the table, in the end strong (◇S) and in the end weak (◇W). They promise very little. For a long time, every correct process can be falsely suspected by everyone else, suspicions can be removed and re-added repeatedly, and even after the detectors finally settle down, only one correct process needs to be spared, while nobody in the system knows when that moment arrived or which process is the spared one.
Better yet, we do not need to study all eight kinds separately, because a simple step turns the right-hand column of the table directly into the left-hand column.Better yet, we do not need to study all eight kinds separately, because a simple step turns the right-hand column of the table directly into the left-hand column.
Completeness, strong and weak; accuracy, strong, weak, eventual strong and eventual weak (§2.3). The failure detector classes of Fig. 1.
| never suspected | one never suspected | eventually never suspected | eventually one never suspected | |
|---|---|---|---|---|
| strong completeness | P | S | ◇P | ◇S |
| weak completeness | Q | W | ◇Q | ◇W |
“Some present member chalks the absent” is just as good as “every present member chalks the absent”, because the legislators can share their attendance marks by messenger.“Some correct process suspects the crashed” is just as good as “every correct process suspects the crashed”, because the processes can share their suspicions by message.
Suppose each legislator keeps a second slate, their copy, and repeatedly sends messengers to every other bench listing the marks on their own slate. Whenever a legislator receives such a note from another colleague, they do two things on their copy: they add all the chalk marks that colleague reported, and they wipe out any mark against that colleague themselves, since that colleague was obviously present to send the messenger.Suppose each process keeps a second list, its copy, and repeatedly sends messages to every other process listing the suspicions on its original list. Whenever a process receives such a message from another process, it does two things on its copy: it adds all the suspicions that the sender reported, and it removes any suspicion of the sender itself, since the sender was obviously alive to send the message.
Try this below. Legislator 4 is absent, and among the three present members only Legislator 1's original slate has chalked Legislator 4, while Legislators 1 and 3 also falsely chalk present colleagues at first. Send rounds of messengers and watch how every present legislator's copy comes to chalk Legislator 4 while sparing the present.Try this below. P4 has crashed, and among the three live processes only P1’s original list suspects P4, while P1 and P3 also falsely suspect live processes at first. Send rounds of messages and watch how every live process’s copy comes to suspect P4 without suspecting the live ones.
See why copying works so cleanly: once Legislator 4 departs, they send no more messengers, so after their last note in transit arrives, nobody ever wipes Legislator 4 off a copy. Meanwhile, the one present legislator whose original slate permanently chalked Legislator 4 keeps circulating that mark, so every present legislator's copy permanently chalks Legislator 4. At the same time, copying preserves whichever accuracy guarantee the original slates had: if nobody's original slate ever chalks Legislator 2, no copy ever will; and if all original slates eventually stop chalking Legislator 2, then because Legislator 2 is present and keeps sending messengers, Legislator 2's own notes wipe out any leftover false marks against Legislator 2 on everyone's copy.See why copying works so cleanly: once P4 crashes, it stops sending messages, so after its last message in flight arrives, nobody ever removes P4 from a copy. Meanwhile, the one live process whose original list permanently suspects P4 keeps broadcasting that suspicion, so every live process’s copy permanently suspects P4. At the same time, copying preserves whichever accuracy guarantee the original lists had: if nobody’s original list ever suspects P2, no copy ever will; and if all original lists eventually stop suspecting P2, then because P2 is alive and keeps sending messages, P2’s own messages remove any leftover false suspicions of P2 from everyone’s copy.
That means any weak slate (W or ◇W) can be automatically upgraded into a strong one (S or ◇S). And since a perfect slate (P) is already a special case of a strong slate (S), and ◇P is a special case of ◇S, we only need to design parliamentary arrangements for two classes of slates: strong (S) and in the end strong (◇S).That means any weak detector (W or ◇W) can be automatically upgraded into a strong one (S or ◇S). And since a perfect detector (P) is already a special case of a strong detector (S), and ◇P is a special case of ◇S, we only need to design consensus protocols for two classes: strong (S) and in the end strong (◇S).
Let us start with a strong (S) slate, where at least one present legislator is never chalked from the start of the session, though nobody knows which colleague they are.Let us start with a strong (S) detector, where at least one correct process is never suspected from the start, though nobody knows which one it is.
The reduction TD→D′ of Fig. 3, §3: every process p keeps outputp, repeatedly sends its own suspect list to all, and on receiving the list of q sets outputp to (outputp ∪ the list of q) − {q}. Theorem 1. If the detector D has weak completeness, output has strong completeness, and it satisfies the same accuracy property as D.
Suppose the legislators have strong (S) slates: every absent colleague is eventually chalked on every slate, and there is at least one present legislator, say Legislator 2, whom nobody ever chalks from the start. Even though nobody knows that Legislator 2 is the unchalked one, the four can reach agreement no matter how many of them depart, even if three of the four sail away.Suppose the processes have strong (S) detectors: every crashed process is eventually suspected by every correct process, and there is at least one correct process, say P2, that nobody ever suspects from the start. Even though nobody knows that P2 is the unsuspected one, the four can reach agreement no matter how many of them crash, even if three of the four crash.
Each legislator keeps a four-row sheet of proposals, one row per bench, initially containing only their own initial proposal in their own row and blanks for the other three. The arrangement runs in three short stages to guarantee that every surviving legislator ends up with the exact same sheet:Each process keeps a four-entry vector of inputs, one entry per process, initially containing only its own input in its own entry and blanks for the other three. The protocol runs in three short stages to guarantee that every surviving process ends up with the exact same vector:
In each of 3 rounds (one round fewer than there are benches), every legislator sends all benches any proposals they learned for the first time in the previous round (in round 1, their own proposal). They wait for a note from every bench that is not currently chalked on their slate, and add any new proposals to their sheet.In each of 3 rounds (one round fewer than the number of processes), every process sends to all any inputs it learned for the first time in the previous round (in round 1, its own input). It waits for a message from every process that is not currently on its suspect list, and adds any new inputs to its vector.
Each legislator sends their entire four-row sheet to every bench and waits for sheets from all unchalked benches. If a row is blank in any sheet they receive, they blank that row in their own sheet too (taking the intersection of the sheets).Each process sends its entire four-entry vector to every process and waits for vectors from all unsuspected processes. If an entry is blank in any vector it receives, it blanks that entry in its own vector too (taking the intersection of the vectors).
Each legislator looks down their finished sheet in order (row 1, row 2, row 3, row 4) and commits to the colour in the first row that is not blank.Each process looks down its finished vector in order (entry 1, 2, 3, 4) and decides the value in the first entry that is not blank.
Scroll through the session below. Legislator 4 departs in round 1 after their messenger reaches only Legislator 3, and the slates falsely chalk present colleagues in rounds 1 and 2, except for Legislator 2, who is never chalked by anyone.Scroll through the execution below. P4 crashes in round 1 after its message reaches only P3, and the detectors falsely suspect live processes in rounds 1 and 2, except for P2, which is never suspected by anyone.
At the start of the session, each legislator's sheet holds only their own proposal (red or blue). Legislator 2 will never be chalked by anyone during this session, though nobody knows that. Legislator 4 is about to depart.At the start, each process’s vector holds only its own input (1 or 0). P2 will never be suspected by anyone in this execution, though nobody knows that. P4 is about to crash.
Legislator 4's round-1 messenger reaches only Legislator 3 before Legislator 4 departs. Meanwhile, Legislator 1 falsely chalks Legislator 3 (and moves on without waiting for Legislator 3's note), and Legislator 3 falsely chalks Legislator 1. Only Legislator 3 has learned Legislator 4's proposal.P4’s round-1 message reaches only P3 before P4 crashes. Meanwhile, P1 falsely suspects P3 (and moves on without waiting for P3’s message), and P3 falsely suspects P1. Only P3 has learned P4’s input.
In round 2, both Legislators 1 and 2 falsely chalk Legislator 3 and do not wait for its note, so Legislator 4's proposal, which only Legislator 3 was relaying in round 2, fails to reach Legislators 1 and 2. Legislator 3 waits for everyone and learns Legislator 1's proposal.In round 2, both P1 and P2 falsely suspect P3 and do not wait for its message, so P4’s input, which only P3 was relaying in round 2, fails to reach P1 and P2. P3 waits for everyone and learns P1’s input.
In round 3, nothing new is learned. At the end of the three spreading rounds, Legislators 1 and 2 have rows 1, 2, and 3 filled, while Legislator 3 has all four rows filled.In round 3, nothing new is learned. At the end of the three spreading rounds, P1 and P2 have entries 1, 2 and 3 filled, while P3 has all four entries filled.
Now comes the comparing round: everyone circulates their full sheet. Because nobody ever chalks Legislator 2, everyone waits for Legislator 2's sheet, and since row 4 is blank on Legislator 2's sheet, Legislator 3 blanks row 4 on its own sheet. Every surviving sheet now matches Legislator 2's sheet.Now comes the comparing round: everyone broadcasts their full vector. Because nobody ever suspects P2, everyone waits for P2’s vector, and since entry 4 is blank in P2’s vector, P3 blanks entry 4 in its own vector. Every surviving vector now matches P2’s vector.
Each surviving legislator commits to the first non-blank row on their sheet: row 1, red. All three agree on a genuine initial proposal, despite a departure and repeated false chalk marks.Each surviving process decides the value in the first non-blank entry of its vector: entry 1, value 1. All three agree on a genuine input, despite a crash and repeated false suspicions.
Every surviving sheet ends up identical to Legislator 2's sheet, for two reasons. First, because nobody ever chalks Legislator 2, every present legislator waits for Legislator 2's messenger in every single round. That guarantees that by the end of the 3 spreading rounds, every proposal that reached Legislator 2 has also reached every other surviving legislator: if Legislator 2 learned a proposal in round 1 or 2, Legislator 2 relayed it in the next round and everyone waited for that note; if Legislator 2 only learned it in round 3, that proposal had already passed through the other three benches along a chain of length 3. Thus, after spreading, every surviving sheet contains at least all the rows filled in Legislator 2's sheet.Every surviving vector ends up identical to P2’s vector, for two reasons. First, because nobody ever suspects P2, every live process waits for P2’s message in every single round. That guarantees that by the end of the 3 spreading rounds, every input that reached P2 has also reached every other surviving process: if P2 learned an input in round 1 or 2, P2 relayed it in the next round and everyone waited for P2’s message; if P2 only learned it in round 3, that input had already passed through the other three processes along a chain of length 3. Thus, after spreading, every surviving vector contains at least all the entries filled in P2’s vector.
Second, in the comparing round, every surviving legislator again waits for Legislator 2's sheet and crosses out any row that is blank in Legislator 2's sheet, while no row that is filled in Legislator 2's sheet is ever crossed out, because every surviving sheet already has that row filled. Thus, after comparing, every surviving sheet is identical to Legislator 2's sheet, and at least row 2 (Legislator 2's own proposal) is guaranteed to be non-blank.Second, in the comparing round, every surviving process again waits for P2’s vector and blanks any entry that is blank in P2’s vector, while no entry that is filled in P2’s vector is ever blanked, because every surviving vector already has that entry filled. Thus, after comparing, every surviving vector is identical to P2’s vector, and at least entry 2 (P2’s own input) is guaranteed to be non-blank.
Try generating random parliamentary sessions below with 0, 1, 2, or even 3 departures, and verify that the survivors always end with identical sheets.Try generating random executions below with 0, 1, 2, or even 3 crashes, and verify that the survivors always end with identical vectors.
Each click generates random initial proposals, departures, and false chalk marks (while keeping one present legislator unchalked), and runs the four rounds.Each click generates random inputs, crashes, and false suspicions (while keeping one correct process unsuspected), and runs the four rounds.
A strong slate (Class S) is remarkably powerful, since it tolerates any number of departures. Requiring that one present member is never falsely chalked from the very start of the session, however, is a tall order when messengers can be delayed early on. The next case is slates that only stop chalking that one present legislator eventually (Class ◇S).A strong detector (Class S) is remarkably powerful, since it tolerates any number of crashes. Requiring that one correct process is never falsely suspected from the very start, however, is a tall order when the network is unstable early on. The next case is detectors that only stop suspecting that one process eventually (Class ◇S).
Theorem 2. With a failure detector of class S, consensus is solvable whatever the number of crashes. Here n = 4; Vp is the sheet of p (a blank is ⊥); the algorithm is that of Fig. 5, §6.1, with n − 1 = 3 rounds of Phase 1, then Phase 2, then Phase 3.Theorem 2. With a failure detector of class S, consensus is solvable whatever the number of crashes. Here n = 4; Vp is the vector of p (a blank is ⊥); the algorithm is that of Fig. 5, §6.1, with n − 1 = 3 rounds of Phase 1, then Phase 2, then Phase 3.
With an in the end strong (◇S) slate, every present legislator might be falsely chalked by their colleagues for the first several hours of the session. Only after some unknown point in time is a single present legislator left unchalked. Under this weak guarantee, the four legislators can still settle the colour, provided more than half of them remain present (at most one departure out of four).With an in the end strong (◇S) detector, every correct process might be falsely suspected by everyone else for a long time. Only after some unknown point in time is a single correct process left unsuspected. Under this weak guarantee, the four processes can still reach agreement, provided more than half of them remain correct (at most one crash out of four).
The four-round sheet arrangement cannot be used here, because it relied on having an unchalked legislator during rounds 1 through 4, and with ◇S the slates might still be chalking everyone during those rounds. Instead, the legislators run an open-ended sequence of rounds with a rotating president (the epistates: Legislator 1 in round 1, Legislator 2 in round 2, Legislator 3 in round 3, Legislator 4 in round 4, Legislator 1 in round 5, and so on).* Each legislator maintains a current estimate (starting as their initial proposal) together with the round number in which they last adopted a president's proposal. Each round has four steps:The four-round vector protocol cannot be used here, because that protocol relied on having an unsuspected process during rounds 1 through 4, and with ◇S the detectors might still be suspecting everyone during those rounds. Instead, the processes run an open-ended sequence of rounds with a rotating coordinator (P1 in round 1, P2 in round 2, P3 in round 3, P4 in round 4, P1 in round 5, and so on), in the same way that turns rotate in other round-based protocols.* Each process maintains a current estimate (starting as its input) together with the round number in which it last adopted a coordinator’s proposal. Each round has four steps:
Step through the rounds below. During the first two rounds, the slates falsely chalk present presidents so the rounds abort safely; from round 3 onward, one present legislator is spared.Step through the rounds below. During the first two rounds, the detectors falsely suspect live coordinators so the rounds abort safely; from round 3 onward, one correct process is spared.
Choose a session.Choose an execution.
Two legislators can never commit to different colours, no matter how badly the slates err. Take the earliest round in which a president receives three agreed replies, say for blue. Because those three legislators replied agreed in that round, all three of them updated their estimate to blue and stamped it with that round. Now consider any later round's president: in Step 2, that president must wait for estimates from three of the four benches. Because any two groups of three out of four must overlap in at least two benches, the new president is guaranteed to hear from at least one of the three legislators who adopted blue in that round. And because no estimate before that round can have a timestamp as high, the most recently stamped estimate in the next round (and by induction in every round after) must be blue. Once three legislators say agreed in any round, the colour is permanently locked for the rest of the session.Two processes can never decide different values, no matter how wrong the detectors are. Take the earliest round in which a coordinator receives three ack replies, say for the value 0. Because those three processes replied ack in that round, all three of them updated their estimate to 0 and stamped it with that round number. Now consider any later round’s coordinator: in step 2, it must wait for estimates from three of the four processes. Because any two groups of three out of four must overlap in at least two processes, the new coordinator is guaranteed to hear from at least one of the three that adopted 0 in that earlier round. And because no estimate before that round can have a timestamp as high, the most recently stamped estimate in the next round (and by induction in every round after) must be 0. Once three processes reply ack in any round, the estimate is permanently locked for the rest of the execution.
Every present legislator eventually commits. At most one legislator departs, so at least three members are present to send estimates in Step 1 and replies in Step 3, and nobody ever gets stuck waiting on an absent president in Step 3 because every absent member is eventually chalked on every slate. Then, once the moment arrives after which one present legislator is never chalked by anyone, the turn rotation reaches that member's round: their bench gathers three estimates, sends its proposal to everyone, nobody chalks that bench so all present members wait for the proposal and reply agreed, and it receives three agreed replies and sends out the colour scroll.Every correct process eventually decides. At most one process crashes, so at least three are alive to send estimates in step 1 and replies in step 3, and nobody ever gets stuck waiting on a crashed coordinator in step 3 because every crashed process is eventually suspected by every correct process. Then, once the moment arrives after which one correct process is never suspected by anyone, the rotation reaches that process’s round: it gathers three estimates, sends its proposal to everyone, nobody suspects it so all correct processes wait for the proposal and reply ack, and it receives three ack replies and sends out the decision message.
Notice the clean separation: while the slates are making mistakes early in the session, false chalk marks can cause a round to abort with not agreed, costing time, but an aborted round never sends a colour scroll and never breaks safety.Notice the clean separation: while the detectors are making mistakes early on, false suspicions can cause a round to abort with nack, costing time, but an aborted round never sends a decision message and never breaks safety.
What remains is why ◇S required more than half the Chamber to stay present, whereas S tolerated up to three departures out of four, and whether a cleverer arrangement for ◇S, or even for an in the end perfect (◇P) slate, could tolerate two departures out of four.What remains is why ◇S required more than half the processes to stay correct, whereas S tolerated up to three crashes out of four, and whether a cleverer algorithm for ◇S, or even for an in the end perfect (◇P) detector, could tolerate two crashes out of four.
Theorem 3. With a failure detector of class ◇S, consensus is solvable if fewer than n/2 processes crash. Here n = 4, so three is ⌈(n + 1)/2⌉; the algorithm is the rotating coordinator of Fig. 6, §6.2, and the colour scroll is Reliable Broadcast of the decision (Fig. 4). Here e is an estimate, r a round, and q a process.Theorem 3. With a failure detector of class ◇S, consensus is solvable if fewer than n/2 processes crash. Here n = 4, so three is ⌈(n + 1)/2⌉; the algorithm is the rotating coordinator of Fig. 6, §6.2, and the decision message is Reliable Broadcast of the decision (Fig. 4). Here e is an estimate, r a round, and q a process.
Requiring more than half the Chamber to remain present is not a quirk of the rotating-president arrangement; it is a hard law for every arrangement whose slates are only eventually accurate, even if the slates are in the end perfect (◇P).Requiring more than half the processes to be correct is not a quirk of the rotating-coordinator algorithm; it is a hard law for every algorithm whose detectors are only eventually accurate, even if the detectors are in the end perfect (◇P).
The reason is that an "eventual" guarantee allows the slates to be wrong for as long as it takes two isolated halves of the Chamber to commit on their own. Step through the three sessions below to see the trap.The reason is that an “eventual” guarantee allows the detectors to be wrong for as long as it takes two isolated halves of the system to decide on their own. Step through the three executions below to see the trap.
Each line is one bench, with time moving outward from the center. A hollow dot is a legislator who has not committed; a filled dot is one who has (painted blue or red). A cross marks an absent legislator.Each lane is one process, with real time running left to right. A hollow dot is a process that has not decided; a filled dot is one that has (blue for 0, red for 1). A cross marks a crashed process, and its lane stops there.
In the third session, nobody has departed, but every messenger traveling between Legislators 1 and 2 and Legislators 3 and 4 is delayed in the olive groves while each pair's slates falsely chalk the other pair. Because the arrangement must tolerate two absences, Legislators 1 and 2 must eventually commit to blue, and Legislators 3 and 4 must eventually commit to red. Only after both pairs have committed do the delayed messengers arrive and the slates wipe off all their chalk marks, satisfying the definition of in the end perfect (◇P). Yet the parliament has already split in two.In the third execution, nobody crashes, but every message between {P1, P2} and {P3, P4} is delayed while each pair’s detectors falsely suspect the other pair. Because the protocol must tolerate two crashes, P1 and P2 must eventually decide 0, and P3 and P4 must eventually decide 1. Only after both pairs have decided do the delayed messages arrive and the detectors remove all their suspicions, satisfying the definition of in the end perfect (◇P). Yet the system has already split in two.
Notice the exact contrast with a strong (S) slate: with S, at least one present legislator is never chalked from the start, preventing the Chamber from ever splitting into two halves that completely chalk each other. Once accuracy holds only eventually, every colour must wait for a strict majority of the Chamber so that any two deciding quorums are forced to overlap.Notice the exact contrast with a strong (S) detector: with S, at least one correct process is never suspected from the start, preventing the system from ever splitting into two halves that completely suspect each other. Once accuracy holds only eventually, every decision must wait for a strict majority so that any two deciding groups are forced to overlap.
Theorem 5. Consensus cannot be solved using a failure detector of class ◇P if f ≥ n/2, where f is the number of processes that may crash. Here n = 4 and f = 2; the three sessions are the runs R₀, R₁ and RA, and A and B are times defined in the steps.Theorem 5. Consensus cannot be solved using a failure detector of class ◇P if f ≥ n/2, where f is the number of processes that may crash. Here n = 4 and f = 2; the three executions are the runs R₀, R₁ and RA, and A and B are times defined in the steps.
A reliable attendance slate has to come from somewhere. In a hall where messengers have no bound on travel time at all, no legislator can build even an in-the-end-weak (◇W) slate, for if they could, the Chamber could always finish a session with arbitrarily delayed messengers, which is impossible.*A reliable detector has to come from somewhere. In a completely asynchronous network where messages have no bound on delay at all, no process can build even an in-the-end-weak (◇W) detector, for if it could, the system could solve consensus in a purely asynchronous network, contradicting the impossibility result.*
An attendance slate is therefore a clean way of separating the pace of the island's roads from the rules of the hall: the parliamentary arrangement asks only what the slate's marks eventually get right, without caring how the attendance slate was kept.A failure detector is therefore a clean way of packaging a timing assumption about the outside world into a purely logical interface: the algorithm asks only what the detector’s suspicions eventually get right, without caring how the detector was built.

How to build an in-the-end-perfect (◇P) slate across the island. When island weather and road traffic eventually settle down, each legislator can maintain a ◇P slate using a water clock or sandglass. Every legislator periodically sends messengers to every other bench. If a legislator's sandglass runs out with no messenger from a bench, they chalk that bench on their slate. If a delayed messenger arrives later on, they wipe out the chalk mark against it and increase the wait they allow that bench next time. Try watching one bench with this rule below, first when the watched legislator is present and then when they depart.How to build an in-the-end-perfect (◇P) detector when message delays eventually settle. On a network where the delays eventually settle,* each process can easily maintain a ◇P detector using timeouts. Every process periodically sends heartbeat messages to every other process. If a process’s timer runs out with no heartbeat from another process, it suspects that process. If a delayed heartbeat arrives later on, it removes the suspicion and increases the timeout it allows that process next time. Try watching one process with this rule below, first when the watched process is alive and then when it crashes.
Each cell is a time step moving left to right. Blue cells mark the unstable period when messengers can run arbitrarily late. A dot is an arriving messenger, a cross is a chalk mark against the watched bench, and a loop is a mark wiped out (which increases the wait for that bench).Each cell is a time step moving left to right. Blue cells mark the unstable part of the execution, when messages can be arbitrarily late. A dot is an arriving heartbeat, a cross is a suspicion of the watched process, and a loop is a suspicion removed (which increases the timeout for that process).
While traffic is erratic, slow messengers cause false chalk marks that lengthen the wait; once roads settle, the wait is big enough that a present colleague is never chalked again.While the network is unstable, slow heartbeats cause false suspicions that lengthen the timeout; once it settles, the timeout is big enough that a live process is never suspected again.
See how the adaptive wait works: every time a slow messenger causes a false chalk mark, wiping it out makes the legislator more patient with that bench in the future. Once conditions settle, a present member's messengers arrive within a bounded time, so after at most a few adjustments the wait exceeds that bound and the legislator never falsely chalks that present colleague again. Meanwhile, a departed member sends no more messengers at all, so their sandglass eventually runs out for the last time and they stay chalked forever.See how the adaptive timeout works: every time a slow heartbeat causes a false suspicion, removing it makes the watcher wait longer for that process in the future. Once the network settles, a live process’s heartbeats arrive within a bounded time, so after at most a few adjustments the watcher’s timeout exceeds that bound and it never falsely suspects that live process again. Meanwhile, a crashed process stops sending heartbeats altogether, so its timeout eventually expires for the last time and it stays suspected forever.
Three final observations complete the picture:
In the rotating-presidency arrangement for ◇S, even if the slates go completely wild, chalking the present endlessly or never chalking the absent, two legislators will still never commit to different colours. Bad slates can only stall a session, never break agreement.In the rotating-coordinator algorithm for ◇S, even if the detectors go haywire forever, suspecting the live endlessly or never suspecting the crashed, two processes will still never decide different values. Bad detectors can only stall termination, never break agreement.
Because sharing attendance slates upgrades ◇W to ◇S, an in-the-end-weak slate (with a present majority) is sufficient to settle the colour. Even a weak slate that is right only in the end is enough, and no weaker slate can ever suffice.Because sharing suspicions upgrades ◇W to ◇S, an in-the-end-weak detector (with a correct majority) is sufficient to solve consensus. In a companion paper that same year, Chandra, Hadzilacos, and Toueg proved that ◇W is also necessary, the weakest failure detector that can solve consensus.
Agreeing on a single colour and agreeing on the exact sequence of colours in a continuous painted pattern are equivalent: either task can be built directly out of a solution to the other, using the exact same slates.Chandra and Toueg also showed that agreeing on a single choice (consensus) and agreeing on the exact order of a stream of messages (atomic broadcast) are equivalent in asynchronous systems: either problem can be built directly out of a solution to the other, using the exact same detectors.
A failure detector can make mistakes repeatedly and still make consensus solvable: if one correct process is never suspected, consensus survives any number of crashes; if that holds only eventually, consensus survives as long as a majority of processes remain alive.
Instead of reasoning directly about clocks and network delays, failure detectors isolate the exact information needed to tell the absent from the slow.
Setting The Chamber of Paxos
The paper behind this book. Tushar Deepak Chandra and Sam Toueg, Unreliable Failure Detectors for Reliable Distributed Systems. Journal of the ACM 43, 2 (March 1996), 225–267. Defines the eight classes of failure detectors, the reduction from weak to strong completeness, the consensus algorithms for S and ◇S, the majority lower bound for ◇P, and the equivalence of consensus and atomic broadcast.
The ideas, plainly. Deterministic consensus is impossible in an asynchronous system if even a single process can crash, because a crashed process cannot be distinguished from a slow one. Chandra and Toueg factor that obstacle into an abstract module at each process, an unreliable failure detector that outputs a set of processes currently suspected to have crashed. Detectors are specified purely by two axiomatic properties: completeness (crashed processes are eventually permanently suspected, either by every correct process or by at least one correct process) and accuracy (correct processes are spared from false suspicion, either all of them or at least one of them, and either perpetually from the start or only eventually).
Because processes can gossip their suspect lists and clear any process from which they receive a message, weak completeness reduces to strong completeness while preserving accuracy, leaving four core classes (P, S, ◇P, ◇S). With class S (some correct process is never suspected), a three-phase relay protocol (four rounds for four processes) solves consensus regardless of how many processes crash (f < n). With class ◇S (eventually some correct process is never suspected), a rotating-coordinator protocol solves consensus whenever a strict majority of processes are correct (f < n/2); safety holds unconditionally even if the detector misbehaves forever, and termination occurs as soon as the detector stabilizes. A partition argument shows that f < n/2 is necessary even for ◇P.
Failure detectors separate the why of timing from the how of agreement: in a partially synchronous system, heartbeats with adaptive timeouts implement ◇P, while the consensus protocol itself can be written and proved without mentioning clocks or message delay bounds at all.
| an attendance slate (pinakion) at each bench | A local failure detector module Dp outputting a set of currently suspected processes. §2.2. |
| chalking the absent (by all, or by some) | Strong completeness and weak completeness. §2.3. |
| sparing the present (never chalked; one never chalked; in the end) | Strong, weak, eventual strong, and eventual weak accuracy. §2.3. |
| eight kinds of slate (P, S, W, ◇P, ◇S, ◇W) | The eight classes of failure detectors. Fig. 1, §2.3. |
| sharing attendance slates onto a copy | The reduction TD→D′ from weak to strong completeness. Fig. 3, §3, Theorem 1. |
| the four-row sheet of proposals (spreading, comparing, committing) | Solving consensus using any strong failure detector D ∈ S for f < n. Fig. 5, §6.1, Theorem 2. |
| rounds by turns with a rotating president (epistates) | Solving consensus using any eventually strong failure detector D ∈ ◇S for f < n/2. Fig. 6, §6.2, Theorem 3. |
| a colour scroll relayed to every bench | Reliable Broadcast of the decision value. Fig. 4, §5. |
| Why More Than Half (three sessions splitting the four) | Impossibility of consensus with ◇P when f ≥ n/2. §6.3, Theorem 5. |
| a slate kept with a sandglass and growing wait | Time-out implementation of ◇P in a partially synchronous system. Fig. 10, §9. |