← The Books

Agreeing When Messages Run Late

When messages can be delayed without limit, no protocol can guarantee that a group of computers will ever reach agreement. Yet real networks behave well most of the time: periods of chaos eventually give way to calm. Can we design a protocol that never makes a mistake no matter how late messages run, and is guaranteed to reach a decision once messages start arriving on time again, even though no computer can tell when the calm has arrived?

To see how, we return to the four Greek mercenaries camped at the foot of Mount Phyle on a stormy night when high winds delay their ravens for hours, and watch how they manage to agree whether to attack or hold once the wind finally drops.

To see how, we follow the protocol round by round. Four processes face a network that delays messages for a while and then settles, and must stay safe throughout, and decide once it settles.

After Cynthia Dwork, Nancy Lynch and Larry Stockmeyer, Consensus in the Presence of Partial Synchrony, 1988

From high above at night: a mercenary in a red cloak stands beside a lone tent on bare ground by moonlight, its chest, shield and basket at the mouth, olive bushes casting dark shadows below
Where this book sits
Draws on
Leads to

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

The east camp seen from up the hillside at night: a lone tent small in a bare clearing among scrub and black cypresses, a crescent moon above
The foot of Mount PhyleThe model

Four tents, out of sight of one anotherFour processes, one unreliable network

Four mercenaries are camped at the foot of Mount Phyle, one to a tent, hidden from one another by the folds of the hillside and communicating only by messenger raven.* Before dawn, they must either all attack the hill together, or all hold their positions.Four processes, P1 to P4, run on separate machines and communicate only by messages. Before they finish, they must all decide the same value: 1 or 0.

Only ravensEvery raven eventually reaches its destination, and delivers its strip exactly as written.Reliable messagesEvery message eventually reaches its destination, intact and exactly as sent.
Nobody liesThe mercenaries are honest comrades, none of them ever tampers with a strip or sends a false report.No liarsThe processes are honest, none of them ever tampers with a message or sends a false report.
One may dieAt most one of the four might be killed during the night, leaving their tent permanently silent. Nobody actually dies in tonight's story, but their plan must be prepared for the possibility that one of them might.One may crashAt most one of the four might crash during the execution, going permanently silent. Nobody actually crashes in this story, but the protocol must be prepared for the possibility that one does.
What the four want

All attack, or all holdEveryone decides 1, or everyone decides 0

The four mercenaries must act as one: an assault by only part of the company will be overpowered on the slope, while holding with a mercenary missing leaves a path down the hill unguarded.The four processes must act as one: if some decided 1 while others decided 0, the system would be inconsistent.

At dusk, each mercenary scouted the section of the hill above their tent and formed an initial judgment, a sighting, of either attack or hold. Because they may have seen different things, they must exchange ravens to settle on a single common plan. A mercenary commits when they finally step out of their tent, either to strike camp and climb the slope with the others, or to take up their post in the gully and hold. Once a mercenary commits, their choice is final; whatever they privately thought inside their tent beforehand no longer matters. Any arrangement they use must satisfy three demands.Each process starts with an input value, either 1 or 0. Because their inputs may differ, they must exchange messages to settle on a single common value. A process decides when it irrevocably outputs a value. Any protocol they use must satisfy three properties.

First demandFirst property

No two commit differentlyNo two processes decide differently

Never does one mercenary go out to attack while another stays to hold (consistency).No process decides 1 while another decides 0 (consistency).

Second demandSecond property

A shared sighting winsA shared input wins

If all four mercenaries began with the same sighting at dusk, that is the plan they must commit to (unanimity).If all four processes start with the same input, that is the value they must decide (unanimity).

Third demandThird property

Every living mercenary commitsEvery correct process decides

Every mercenary who has not been killed eventually steps out of their tent with a decision (termination).Every process that does not crash eventually decides (termination).

As established across the water in the Chamber of Paxos, if ravens can be delayed without any bound all night long, no arrangement can guarantee all three demands at once.* The trouble comes from two facts working together: there is no upper limit on how long a raven can take, and a dead mercenary's silence looks identical to a slow bird. If there were a known maximum flight time from the very start of the night, silence lasting longer than that limit would prove a comrade was dead.*As Fischer, Lynch, and Paterson showed, if messages can be delayed without any bound for the whole execution, no protocol can guarantee all three properties at once.* The trouble comes from two facts working together: there is no upper limit on how long a message can take, and a crashed process’s silence looks identical to a slow message. If there were a known maximum delivery time from the very start, silence lasting longer than that limit would prove a process had crashed.*

Tonight, the mercenaries do not have a guaranteed flight time from dusk, but they have something just strong enough, and it comes from the very force that delays their birds.Here, the processes do not have a guaranteed delivery time from the start, but they have something just strong enough, and it comes from the very network that delays their messages.

The only promise

The wind keeps the ravens in the foldsDelays that eventually settle

What makes the ravens late is the mountain wind. While it howls through the gullies, a raven released from a tent is forced down into the pines among the wild crows to wait out the gusts, for an hour or for most of the night, with no telling how long. Even after the wind dies down, a bird that took shelter earlier may linger in the branches as long as it pleases.What makes messages late is an unstable network. While it is congested or glitching, a message can be held up for an hour or for most of the execution, with no telling how long. Even after the network settles, a message that was held up earlier may linger as long as it pleases.

A bird released into still air, however, flies straight to its perch. The one promise of these nights is that the wind always drops eventually, and once it drops, it stays down for the rest of the night. From that moment on, every raven released into the calm air arrives within a short, predictable span of time that all four mercenaries know. That single promise is the entire difference between an impossible night and a solvable one. In the interactive below, Tent 1 releases a bird to Tent 2 during each time span. Step through the spans and see if you can tell, from the arrivals alone, when the wind actually dropped.A message sent into a settled network, however, arrives promptly. The one promise here is that the network always settles eventually, and once it settles, it stays settled for the rest of the execution. From that moment on (Global Stabilization Time, or GST), every message arrives within a short, predictable time bound that all four processes know. That single promise is the entire difference between an impossible system and a solvable one. In the interactive below, P1 sends a message to P2 during each time span. Step through the spans and see if you can tell, from the arrivals alone, when the network actually settled.

Under the moon, a raven with a message tied to its leg sits on a branch of an olive tree bent by the wind, crows sheltering in the branches beside it

Birds let go in the wind one span at a timeMessages sent during instability one span at a time

0birds let gomessages sent0taken in within their own spanreceived within their own span

In each span, tent 1 lets a bird go to tent 2. Let the spans pass and watch which birds come in time.In each span, P1 sends a message to P2. Let the spans pass and watch which messages arrive in time.

The page picks the moment the wind drops at random and hides it from you, just as the hillside hides it from the mercenaries. While the wind blows, delays are arbitrary; once it drops, every newly released bird arrives within its own span.The page picks the moment the network settles at random and hides it from you, just as the real network hides it from the processes. While the network is unstable, delays are arbitrary; once it settles, every newly sent message arrives within its own span.

Notice that the mercenaries cannot tell when the wind has dropped, and watching the birds above does not reveal it either. A brief lull outside one tent says nothing about the ravines two ridges over, where gusts may still be pinning a raven in the pines. Worse, a temporary lull that is about to be broken by a fresh gale looks identical to the true end of the wind. No mercenary ever knows for sure that the wind has died down across the whole mountain. Each mercenary knows only that it eventually will, and without that guarantee, agreement would be impossible.*Notice that the processes cannot tell when the network has settled, and watching the messages above does not reveal it either. A brief lull on one link says nothing about the links elsewhere, where delays may still be building up. Worse, a temporary lull that is about to be broken by new congestion looks identical to the true settling. No process ever knows for sure that the network has settled everywhere. Each knows only that it eventually will, and without that guarantee, agreement would be impossible.*

So the four need a two-part guarantee: their arrangement must never let two mercenaries commit to different plans no matter how long the wind rages, and it must bring every living mercenary to a decision soon after the air turns still. Because the promise speaks of a known span of time, each mercenary alone in their tent first needs a way to measure that span.So the four need a two-part guarantee: their protocol must never let two processes decide different values no matter how long the network stays unstable, and it must bring every correct process to a decision soon after the network settles. Because the promise speaks of a known span of time, each process alone first needs a way to measure that span.

A count every mercenary sharesA count every process shares

Glasses and late birdsRounds and late messages

Each mercenary measures time with sand. Every tent has an identical sandglass, and at the exact moment the last direct sunlight vanished from the summit of Mount Phyle, a sight visible from all four tents at once, every mercenary turned their glass for the first time.Each process measures time with a local clock, and all four start at the same agreed moment. Each clock runs at the same rate, so every process counts the same sequence of rounds.

The instant a sandglass runs empty, its owner flips it again and adds one to their count of glasses (rounds). Because all four glasses were started together at sunset and run at the same rate, all four mercenaries are always on the same glass count. Real sandglasses drift slightly over a night, of course, but by far less than a raven's flight, which is close enough. That shared sunset does not violate the rules of the camp because no mercenary sent it, nature provided one shared starting mark at dusk, and nothing like it will happen again until dawn. (The bandits up on the summit cannot use this trick: their posts face different slopes where the sun vanishes at different times, and their chief inside the ring wall sees only the sky overhead.)Each time a round’s timer runs out, the process starts the next round and adds one to its round count. Because all four timers started together and run at the same rate, all four processes are always in the same round. Real clocks drift slightly over time, of course, but by far less than a message delay, which is close enough.

One glass is sized so that a mercenary has time to write and tie strips for all four tents, release their ravens, and, if the air is still, have every raven reach its destination before the sand runs out. That is what the known flight time buys: once the wind has dropped, any bird released at the start of a glass is guaranteed to arrive before that same glass ends. Birds delayed by the wind that straggle in during a later glass are handled by a simple rule.One round is sized so that a process has time to write and send messages to all four processes and, once the network has settled, have every message arrive before the round ends. That is what the known delivery time buys: once the network has settled, any message sent at the start of a round is guaranteed to arrive before that same round ends. Messages delayed by the unstable network that straggle in during a later round are handled by a simple rule.

Every stripEvery message

Carries its glassCarries its round

Whenever a mercenary writes a strip, they mark it with the number of the glass in which they sent it.Whenever a process sends a message, it marks it with the number of the round in which it was sent.

A late birdA late message

Is read, and set aside

If a raven arrives during a later glass than the one written on its strip, its strip is ignored, except for learning which sightings were seen at dusk, its vote or call counts for nothing.If a message arrives during a later round than the one written on it, its content is ignored, except for learning which inputs were proposed; its vote or proposal counts for nothing.

One exception

The parting birdThe decision message

One special strip, a parting bird announcing that a comrade has already committed, is accepted whenever it arrives. We will meet it shortly.One special message, a decision message announcing that a process has already decided, is accepted whenever it arrives. We will meet it shortly.

Watch ravens arrive at Tent 2 below. For each bird, compare the glass number written on its strip with the glass currently running on Tent 2's chest.Watch messages arrive at P2 below. For each message, compare the round number written on it with the round currently running at P2.

Birds at a tent pole taken in, or set asideMessages at a process counted, or set aside

0counted0set aside

A bird comes in at tent 2. Is it taken in, or set aside?A message arrives at P2. Is it counted, or set aside?

Each bird is generated at random and handled according to the rule above.Each message is generated at random and handled according to the rule above.

Setting late birds aside makes every glass completely self-contained. What a mercenary does during glass 7 depends only on the birds sent and received during glass 7; stragglers from glass 3 can never arrive out of nowhere and muddle a later step. While the wind blows, of course, a glass's birds may arrive late and be set aside, which simply means that during windy glasses, some birds fail to show up in time.Setting late messages aside makes every round completely self-contained. What a process does during round 7 depends only on the messages sent and received during round 7; stragglers from round 3 can never arrive out of nowhere and muddle a later step. While the network is unstable, of course, a round’s messages may arrive late and be set aside, which simply means that during unstable rounds, some messages fail to show up in time.

Notice that the sandglasses help only because the wind eventually drops. Without that promise, flipping sandglasses all night would buy the mercenaries nothing at all:* if flights have no time bound, a glass that runs out with no bird at the perch tells a mercenary nothing about whether their comrade is dead or the bird is merely slow. The glasses get their power from the eventual calm, even though no mercenary can see when that calm begins.Notice that the round clocks help only because the network eventually settles. Without that promise, counting rounds all execution would buy the processes nothing at all:* if delays have no time bound, a round that ends with no message from a process tells a process nothing about whether it has crashed or its message is merely slow. The rounds get their power from the eventual settling, even though no process can see when it begins.

With a synchronized count of glasses and a clean rule for late birds, the four mercenaries can use those glasses to reach agreement.With a synchronized round count and a clean rule for late messages, the four processes can use those rounds to reach agreement.

The hill, as this telling uses it, stated in the paper's termsThe model, as this book uses it, stated in the paper’s terms

(1) While the wind blows, a bird may take any amount of time, though no bird is ever permanently lost.
(2) The wind drops at some moment and stays down. From then on, any bird released at the start of a glass reaches its perch within that same glass. A bird released before the wind dropped may still be sitting in the pines.
(3) No mercenary knows when the wind has dropped.
(4) The glasses were started together at sunset and run at the same rate, so every mercenary shares the same glass count.
(5) Late birds: any message strip arriving in a later glass than the one in which it was written is ignored, except for parting birds (and the piggybacked set of initial sightings).
(6) At most one of the four mercenaries may be killed. No one lies.
(1) Before GST, a message may take any amount of time, though no message is ever permanently lost.
(2) GST occurs at some moment and the network stays settled. From then on, any message sent at the start of a round reaches its destination within that same round. A message sent before GST may still be in transit.
(3) No process knows when GST has occurred.
(4) The round clocks were started together and run at the same rate, so every process shares the same round count.
(5) Late messages: any message arriving in a later round than the one in which it was sent is ignored, except for decision messages (and the piggybacked set of proper values).
(6) At most one of the four processes may crash. No one lies.

Communication is partially synchronous, “Δ holds eventually”: the bound Δ is known and holds from an unknown global stabilization time (GST) onward, §2.3. Processors are synchronous, Φ = 1, §4. Each processor simulates a round of the basic round model in a group of N + Δ steps, and any message arriving in a later round is ignored, §4.1. Fail-stop faults, N = 4, t = 1.

Who may propose

Turns and pledgesPhases and locks

To keep from talking over one another, the four mercenaries group their glasses into blocks of four. Each block of four glasses is one turn (phase): glasses 1 to 4 make turn one, glasses 5 to 8 make turn two, and so on through the night.To keep their rounds from interfering with one another, the four processes group their rounds into blocks of four. Each block of four rounds is one phase: rounds 1 to 4 make phase one, rounds 5 to 8 make phase two, and so on.

Each turn belongs to a single mercenary, rotating in tent order: turn one belongs to Tent 1, turn two to Tent 2, turn three to Tent 3, turn four to Tent 4, turn five back to Tent 1, and so on. That mercenary is the turn's owner (coordinator or proposer). Being the owner does not make them a commander: nobody elected them, and the rotation hands a turn to a dead mercenary's tent just the same as a living one's. Even in their own turn, the owner cannot simply order what they like, they may only propose a plan that at least three mercenaries (themselves included) have just reported they are free to accept. When the fourth glass of the turn runs out, the turn ends and passes to the next tent, regardless of whether anything was settled. Inside their tent, each mercenary tracks two pieces of state, governed by one rule for when an answer is acceptable.Each phase belongs to a single process, rotating in order: phase one belongs to P1, phase two to P2, phase three to P3, phase four to P4, phase five back to P1, and so on. That process is the phase’s coordinator (proposer). Being the coordinator does not make it a commander: nobody elected it, and the rotation hands a phase to a crashed process just the same as a correct one. Even in its own phase, the coordinator cannot simply impose what it likes, it may only propose a value that at least three processes (itself included) have just reported they find acceptable. When the fourth round of the phase ends, the phase ends and passes to the next process, regardless of whether anything was settled. Each process tracks two pieces of state, governed by one rule for when a value is acceptable.

What each mercenary keepsWhat each process keeps

The sighted answersThe proper values

The set of dusk sightings this mercenary knows somebody in the camp saw (proper values). It begins with their own sighting; every strip they send includes their list, and they add any sighting they learn of from incoming strips. If all four saw hold at dusk, only hold ever appears on anyone's list.The set of inputs this process knows some process actually had (proper values). It begins with its own input; every message it sends includes its set, and it adds any input it learns of from incoming messages. If all four had input 0, only 0 ever appears in anyone’s set.

What each mercenary keepsWhat each process keeps

PledgesLocks

A strip tied to their tent pole naming an answer and a turn, such as hold, turn five (a lock). Tying that pledge means the owner of turn five might commit to hold, so this tent promises not to help a later turn switch to attack unless the pledge is first untied. In windy weather, a mercenary can end up holding pledges on both answers at once.A record naming a value and a phase, such as 0, phase five (a lock). Holding that lock means the coordinator of phase five might decide 0, so this process promises not to help a later phase switch to 1 unless the lock is first released. In an unstable network, a process can end up holding locks on both values at once.

A word for it

To acceptTo find acceptable

A mercenary is free to accept an answer only if they currently holds no pledge on the opposite answer.A process may find a value acceptable only if it currently holds no lock on the opposite value.

The four glasses of a turn each have a distinct job: the asking glass, the calling glass, the answering glass, and the untying glass. Scroll through turn five below, run in still air, and watch how pledges are checked, tied, and untied.The four rounds of a phase each have a distinct job: the asking round, the proposing round, the acknowledging round, and the releasing round. Scroll through phase five below, run in a settled network, and watch how locks are checked, taken, and released.

1 · The owner1 · The coordinator

Turn five is tent 1'sPhase five is P1’s

The air is now still, so every bird arrives within its glass. At dusk, Tent 3 sighted attack and the other three sighted hold; by turn five, everyone knows both answers were sighted. One old pledge remains from a windy turn earlier: Tent 2 holds a pledge for attack, turn two, though nobody committed on it.The network is now settled, so every message arrives within its round. At the start, P3 had input 1 and the other three had input 0; by phase five, everyone knows both values were proposed. One old lock remains from an unstable phase earlier: P2 holds a lock for 1, phase two, though nobody decided on it.

2 · The asking glass2 · The asking round

Every mercenary names what can be acceptedEvery process names what it finds acceptable

3 · The calling glass3 · The proposing round

The owner counts, and callsThe coordinator counts, and proposes

4 · The answering glass4 · The acknowledging round

Pledges are tied, and the owner commitsLocks are taken, and the coordinator decides

5 · The untying glass5 · The releasing round

An older pledge is untiedAn older lock is released

A call requires three mercenaries who can accept, while committing requires only two pledges, because both numbers come from having four mercenaries when at most one may die. Because one comrade might be dead, the owner can never wait to hear from all four; three is the most they can count on in the asking glass. And once two mercenaries tie pledges for the owner's call in the answering glass, those two pledges are enough to lock out the opposite answer: out of four mercenaries in total, if two hold pledges for hold, at most two mercenaries are left without a pledge for hold, one short of the three needed for any later owner to call attack!A proposal requires three processes that find it acceptable, while deciding requires only two locks, because both numbers come from having four processes when at most one may crash. Because one might have crashed, the coordinator can never wait to hear from all four; three is the most it can count on in the asking round. And once two processes take locks for the coordinator’s proposal in the acknowledging round, those two locks are enough to lock out the opposite value: out of four processes in total, if two hold locks for 0, at most two are left without a lock for 0, one short of the three needed for any later coordinator to propose 1!

Notice too that the arrangement does not care whether attack or hold is wiser. If three mercenaries can accept both answers, the owner is free to call either one. And the list of sighted answers automatically guarantees the second demand (unanimity): an owner can only call an answer that three mercenaries reported from their sighted lists, and an answer only enters those lists if someone actually saw it at dusk. If all four saw hold, attack never enters any list and can never be called.Notice too that the protocol does not care whether 1 or 0 is wiser. If three processes find both values acceptable, the coordinator is free to propose either one. And the set of proper values automatically guarantees the second property (unanimity): a coordinator can only propose a value that three processes reported from their proper sets, and a value only enters those sets if some process actually had it as input. If all four had input 0, 1 never enters any set and can never be proposed.

Turn five ran smoothly because the air was still. While the wind blows, however, ravens arrive late and get set aside, leaving half-finished turns and scattered pledges behind. Next we must check why those windy turns can never trick two mercenaries into committing to opposite plans.Phase five ran smoothly because the network was settled. While it is unstable, however, messages arrive late and get set aside, leaving half-finished phases and scattered locks behind. Next we must check why those unstable phases can never trick two processes into deciding opposite values.

The four glasses of a turn, stated in the paper's termsThe four rounds of a phase, stated in the paper’s terms

The asking glass. Every mercenary (including the turn's owner) sends the owner the list of answers they can currently accept that also appear in their list of sighted answers.
The calling glass. If at least three mercenaries (the owner possibly among them) named the same answer in the asking glass, the owner calls it by sending pledge to hold, turn five (for instance) to every tent, including their own. If both answers qualify, they call either one; if neither gets three, they call nothing.
The answering glass. Any mercenary who receives the owner's call during the calling glass ties a pledge for that answer and turn to their tent pole, unties any older pledge they held on that same answer, and sends pledged back to the owner. Any pledge they hold on the other answer stays tied for now. If the owner receives pledged from at least two mercenaries (including themselves) during the answering glass, the owner commits to the called answer.
The untying glass. Every mercenary broadcasts all the pledges currently tied to their tent pole (both answer and turn number) to every tent. If a mercenary holds a pledge on one answer from turn h and learns of a pledge on the opposite answer from a turn h' that is at least as late (h' ≥ h), they unty their older pledge.
The asking round. Every process (including the phase’s coordinator) sends the coordinator the list of values it currently finds acceptable that also appear in its set of proper values.
The proposing round. If at least three processes (the coordinator possibly among them) named the same value in the asking round, the coordinator proposes it by sending lock 0, phase five (for instance) to every process, including itself. If both values qualify, it proposes either one; if neither gets three, it proposes nothing.
The acknowledging round. Any process that receives the coordinator’s proposal during the proposing round takes a lock for that value and phase, releases any older lock it held on that same value, and sends ack back to the coordinator. Any lock it holds on the other value stays for now. If the coordinator receives ack from at least two processes (including itself) during the acknowledging round, it decides the proposed value.
The releasing round. Every process broadcasts all the locks it currently holds (both value and phase number) to every process. If a process holds a lock on one value from phase h and learns of a lock on the opposite value from a phase h' that is at least as late (h' ≥ h), it releases its older lock.

Algorithm 1, §3.2.1: trying phase k of three rounds and lock-release phase k of one; phase k belongs to pi when k ≡ i (mod N). A proposal needs N − t = 3 processors finding the value acceptable and proper; a decision needs acknowledgments from t + 1 = 2. The sighted answers are the PROPER set.

Safety asks nothing of the windSafety asks nothing of the network

Never two answers, in any windNever two values, under any delays

Because no mercenary can tell when the wind has dropped, the first demand, that no two mercenaries ever commit to opposite plans, cannot depend on still air. It must hold unconditionally, even in the worst gale.Because no process can tell when the network has settled, the first property, that no two processes ever decide opposite values, cannot depend on a settled network. It must hold unconditionally, even in the worst instability.

It holds because of two simple facts. First, in any single turn, only that turn's owner can make a call, and they call at most one answer, so two mercenaries can never tie pledges for opposite answers carrying the same turn number. Second, consider the earliest turn in which anyone commits, say Tent 1 commits to hold in turn five. To commit, Tent 1 had to receive pledged from at least two mercenaries in the answering glass, which means at least two mercenaries tied hold, turn five to their poles. Neither of those two mercenaries can ever untie that pledge. By the untying rule, a mercenary only unties hold, turn five if they hear of a pledge for attack from turn five or later. By our first fact, there is no pledge for attack from turn five. And for anyone to tie a pledge for attack in a later turn, say turn eight, its owner would first need three mercenaries in turn eight's asking glass who hold no pledge for hold. Since two of the four mercenaries are still holding hold, turn five, at most two mercenaries in the entire camp are free to accept attack. Turn eight's owner can never gather three, so attack can never be called!It holds because of two simple facts. First, in any single phase, only that phase’s coordinator can make a proposal, and it proposes at most one value, so two processes can never take locks on opposite values carrying the same phase number. Second, consider the earliest phase in which anyone decides, say P1 decides 0 in phase five. To decide, P1 had to receive ack from at least two processes in the acknowledging round, which means at least two processes took the lock 0, phase five. Neither of those two can ever release that lock. By the releasing rule, a process only releases 0, phase five if it hears of a lock on 1 from phase five or later. By our first fact, there is no lock on 1 from phase five. And for anyone to take a lock on 1 in a later phase, say phase eight, its coordinator would first need three processes in phase eight’s asking round that hold no lock on 0. Since two of the four processes are still holding 0, phase five, at most two processes in the entire system are free to accept 1. Phase eight’s coordinator can never gather three, so 1 can never be proposed!

Never Two Answers

However long the wind blows and however badly ravens are delayed, no two mercenaries ever commit to different answers. Moreover, if all four sighted the same answer at dusk, no mercenary ever commits to the other.

Never Two Values

However long the network stays unstable and however badly messages are delayed, no two processes ever decide different values. Moreover, if all four started with the same input, no process ever decides the other value.

Test this pigeonhole arithmetic for yourself below. Choose how many mercenaries tie the pledge for hold in turn five, and how many of their pledged ravens make it back to the owner in time, to see when attack is permanently locked out.Test this pigeonhole arithmetic for yourself below. Choose how many processes take the lock for 0 in phase five, and how many of their ack messages make it back to the coordinator in time, to see when 1 is permanently locked out.

Pledges in turn five, and a call to attack later try each countLocks in phase five, and a proposal of 1 later try each count

Mercenaries who tie hold, turn fiveProcesses that take 0, phase five
Pledged birds in timeack messages in time

Which specific mercenaries tied the pledge does not matter, only how many. An owner commits on at least two pledged birds, and any later call for the opposite answer requires three mercenaries free to accept it.Which specific processes took the lock does not matter, only how many. A coordinator decides on at least two ack messages, and any later proposal of the opposite value requires three processes free to accept it.

Notice that the wind plays no part in this safety argument. All the wind can do is delay ravens so that they arrive in a later glass and get set aside. That can prevent a call from reaching enough tents, or prevent pledged birds from reaching the owner in time, but failing to commit is always safe. And once any owner does receive two pledged birds in time, those two pledges are already tied on their tent poles, forming an unbreakable wall against the opposite answer.Notice that the network’s timing plays no part in this safety argument. All the instability can do is delay messages so that they arrive in a later round and get set aside. That can prevent a proposal from reaching enough processes, or prevent ack messages from reaching the coordinator in time, but failing to decide is always safe. And once any coordinator does receive two ack messages in time, those two locks are already held, forming an unbreakable wall against the opposite value.

The untying glass has its own job. Suppose in an earlier windy turn, the owner called attack, one mercenary received the call and tied attack, turn two, and the other ravens were blown into the pines so nobody committed. Without a way to untie old pledges, that lone pledge from a failed turn would sit on its pole all night, forever forbidding that mercenary from accepting hold. Worse, another mercenary might similarly hold a lone pledge for hold from turn three, deadlocking the camp! The untying glass lets a newer pledge override an older one, clearing away debris from aborted turns, while still ensuring that once two mercenaries hold pledges from a turn where someone committed, no opposite call can ever be made to untie them.The releasing round has its own job. Suppose in an earlier unstable phase, the coordinator proposed 1, one process received the proposal and took the lock 1, phase two, and the other messages were delayed so nobody decided. Without a way to release old locks, that lone lock from a failed phase would sit there all execution, forever forbidding that process from accepting 0. Worse, another process might similarly hold a lone lock for 0 from phase three, deadlocking the system! The releasing round lets a newer lock override an older one, clearing away debris from aborted phases, while still ensuring that once two processes hold locks from a phase where someone decided, no opposite proposal can ever be made to release them.

So no mercenary ever commits to a wrong answer, in any wind. Of course, an arrangement where everybody stayed in their tents forever would also never make a mistake. To satisfy the third demand, we must now see why every living mercenary is guaranteed to commit once the wind drops.So no process ever decides a wrong value, under any delays. Of course, a protocol where everybody stayed idle forever would also never make a mistake. To satisfy the third property, we must now see why every correct process is guaranteed to decide once the network settles.

Proof · that no two mercenaries commit to different answers, in any windProof · that no two processes decide different values, under any delays

In the paper's terms a turn is a phase, a pledge is a lock, to accept an answer is to find a value acceptable, and to commit is to decide; k and h are turn numbers, N = 4 and t = 1. Theorem 3.1 and Theorem 4.1(a). However messages are delayed, no two processors decide different values (consistency), and if all four started with the same value no processor decides another (strong unanimity).Theorem 3.1 and Theorem 4.1(a). However messages are delayed, no two processors decide different values (consistency), and if all four started with the same value no processor decides another (strong unanimity). Here k and h are phase numbers, N = 4 and t = 1.

  1. One answer per turn. Only a turn's owner calls, and the owner calls at most one answer in it. A pledge for turn k is tied only on taking in the call of turn k. So all pledges for turn k are on one answer.One value per phase. Only a phase’s coordinator proposes, and it proposes at most one value in it. A lock for phase k is taken only on receiving the proposal of phase k. So all locks for phase k are on one value.
  2. Suppose some mercenary commits, and let turn k be the earliest turn in which an owner committed; say that owner committed to hold. The owner had pledged from two mercenaries, so two mercenaries tied hold, turn k. Mercenaries who commit on a parting bird (described below) commit to an answer some owner committed to earlier, so it is enough to show that no owner in a later turn commits to attack.Suppose some process decides, and let phase k be the earliest phase in which a coordinator decided; say that coordinator decided 0. It received ack from two processes, so two processes took 0, phase k. Processes that decide on a decision message (described below) decide a value some coordinator decided earlier, so it is enough to show that no coordinator in a later phase decides 1.
  3. The two keep a pledge to hold. Suppose not, and take the first untying glass in which one of the two unties a pledge to hold for turn k or later without having a later one. That mercenary unties it on learning of a pledge to attack for some turn h at least as late. By step 1, h is not k, so h is later than k, and no later than this untying glass.The two keep a lock on 0. Suppose not, and take the first releasing round in which one of the two releases a lock on 0 for phase k or later without having a later one. That process releases it on learning of a lock on 1 for some phase h at least as late. By step 1, h is not k, so h is later than k, and no later than this releasing round.
  4. A pledge to attack for turn h means attack was called in turn h, so three mercenaries could accept attack in turn h's asking glass: three mercenaries with no pledge to hold. But both of the two had a pledge to hold from turn k until this untying glass, which is no earlier than turn h's own. There are four mercenaries; at most two had no pledge to hold. This contradicts the three.A lock on 1 for phase h means 1 was proposed in phase h, so three processes could accept 1 in phase h’s asking round: three processes with no lock on 0. But both of the two had a lock on 0 from phase k until this releasing round, which is no earlier than phase h’s own. There are four processes; at most two had no lock on 0. This contradicts the three.
  5. So from turn k on, two mercenaries always have a pledge to hold, or have committed to hold and send nothing. In no later asking glass can three mercenaries name attack, attack is never called, no mercenary ties a pledge to attack for a later turn, and no owner commits to attack.So from phase k on, two processes always have a lock on 0, or have decided 0 and send nothing. In no later asking round can three processes name 1, 1 is never proposed, no process takes a lock on 1 for a later phase, and no coordinator decides 1.
  6. The second demand. An answer is named in an asking glass only if it is among the sighted answers, and an answer enters that list only through someone's sighting. If all four sighted hold, only hold can be named, called or committed to.∎The second property. A value is named in an asking round only if it is among the proper values, and a value enters that set only through some process’s input. If all four had input 0, only 0 can be named, proposed or decided.∎
The third demandThe third property

Committing once the wind dropsDeciding once the network settles

When a mercenary commits, they step out of their tent to take their place on the slope or in the gully, leaving their ravens and sandglass behind. If they simply vanished without a word, the comrades left behind might lack thethree voices needed to complete a turn of their own. So before any mercenary steps out of their tent, they release one final set of ravens to the other three tents, their parting birds: parting, hold.When a process decides, it stops taking part, leaving its messages and timers behind. If it simply stopped without announcing it, the processes left behind might lack the three responses needed to complete a phase of their own. So before any process stops, it sends one final set of messages to the other three processes, its decision messages: decide 0.

Unlike ordinary strips, a parting bird carries no glass number and is never set aside, no matter when it lands. Any mercenary who receives a parting bird immediately releases parting birds of their own to all the other tents and commits to the same answer. Every mercenary relays a full set of parting birds, rather than relying on the first mercenary's birds alone, because the first mercenary might be killed halfway through releasing their birds, after sending to one comrade but not the others. Having every recipient relay a full set guarantees that as long as at most one mercenary dies, and because no raven is ever permanently lost, the parting birds will reach every living mercenary, and all of them will commit. That leaves the third demand resting on a single fact to be shown: once the wind drops, at least one mercenary is guaranteed to commit.Unlike ordinary messages, a decision message carries no round number and is never set aside, no matter when it arrives. Any process that receives a decision message immediately sends decision messages of its own to all the other processes and decides the same value. Every process relays a full set of decision messages, rather than relying on the first process’s messages alone, because the first process might crash halfway through sending, after reaching one process but not the others. Having every recipient relay a full set guarantees that as long as at most one process crashes, and because no message is ever permanently lost, the decision messages will reach every correct process, and all of them will decide. That reduces the entire third property to a single question: once the network settles, why is at least one process guaranteed to decide?

While the wind is blowing, a turn can stall in any of three places:While the network is unstable, a phase can stall in any of three places:

First place

The asking birds are in the pinesThe asking messages are delayed

The turn's owner hears from only one or two mercenaries in the asking glass, and cannot make a call.The phase’s coordinator hears from only one or two processes in the asking round, and cannot make a proposal.

Second place

The call is lateThe proposal is late

The owner makes a call, but the wind delays their birds so that at most one mercenary receives it in the calling glass.The coordinator makes a proposal, but delays mean that at most one process receives it in the proposing round.

Third place

The pledged birds are lateThe acks are late

Several mercenaries receive the call and tie pledges, but their pledged replies arrive after the answering glass ends and are set aside.Several processes receive the proposal and take locks, but their ack replies arrive after the acknowledging round ends and are set aside.

Those stalled turns can leave conflicting pledges scattered across the camp, say Tent 2 holding an older pledge for attack and Tent 1 holding a newer pledge for hold. Now watch what happens as soon as the wind drops. In the very first untying glass that runs entirely in still air, every living mercenary's broadcast reaches every other living mercenary before the sand runs out. Every mercenary sees the full set of active pledges across the camp, and anyone holding an older pledge on the losing answer unties it in favor of the latest turn's pledge. By the end of that single calm untying glass, all remaining pledges among the living mercenaries point to at most one answer, and every living mercenary also shares the exact same list of sighted answers.Those stalled phases can leave conflicting locks scattered across the system, say P2 holding an older lock for 1 and P1 holding a newer lock for 0. Now watch what happens as soon as the network settles. In the very first releasing round that runs entirely in a settled network, every correct process’s broadcast reaches every other correct process before the round ends. Every process sees the full set of active locks across the system, and any process holding an older lock on the losing value releases it in favor of the latest phase’s lock. By the end of that single settled releasing round, all remaining locks among the correct processes point to at most one value, and every correct process also shares the exact same set of proper values.

Now follow the very next turn owned by a living mercenary. In its asking glass, all the living mercenaries (at least three of them) share the same sighted list, and since any remaining pledges are on at most one answer, there is at least one sighted answer that all of them are free to accept. All three report that answer to the owner in time; the owner calls it in the calling glass; all three receive the call and tie pledges in the answering glass; and their pledged birds fly back in still air before the glass runs out. The owner commits!Now follow the very next phase coordinated by a correct process. In its asking round, all the correct processes (at least three of them) share the same proper set, and since any remaining locks are on at most one value, there is at least one proper value that all of them find acceptable. All three report that value to the coordinator in time; the coordinator proposes it in the proposing round; all three receive the proposal and take locks in the acknowledging round; and their ack messages arrive back before the round ends. The coordinator decides!

Committing After the Wind

Once the wind drops, every mercenary who is not killed eventually commits. If nobody had yet committed when the wind dropped, everyone commits within at most twenty glasses (five turns) after the drop. If someone had already committed while the wind was blowing, the others commit as soon as their parting birds finish making their way out of the pines.

Deciding After Stabilization

Once the network settles, every process that does not crash eventually decides. If nobody had yet decided when the network settled, everyone decides within at most twenty rounds (five phases) after GST. If someone had already decided while the network was unstable, the others decide as soon as its decision messages finish making their way through the network.

Explore the glass count below. Pick the turn and the glass in which the wind drops, and see which turn brings the camp to a decision, even if the first turn after the cleanup happens to belong to the one mercenary who died.Explore the round count below. Pick the phase and the round in which the network settles, and see which phase brings the system to a decision, even if the first phase after the cleanup happens to belong to the one process that crashed.

When the wind drops choose the turn and the glassWhen the network settles choose the phase and the round

The wind drops in turnThe network settles in phase
in that turn's glassin that phase’s round
the wind dropsthe network settleswholly still glasswholly settled roundcommits, every mercenary alivedecides, every process alivecommits, if the owner of the first turn is the silent onedecides, if the coordinator of the first phase is the crashed one

Choose when the wind drops. The mercenaries cannot see it. Only the page knows.Choose when the network settles. The processes cannot see it. Only the page knows.

The timeline traces two possibilities after the wind drops: one where all four mercenaries are alive, and one where the owner of the first full turn after the untying glass happens to be dead, so the camp finishes on the very next turn.The timeline traces two possibilities after the network settles: one where all four processes are alive, and one where the coordinator of the first full phase after the releasing round happens to have crashed, so the system finishes on the very next phase.

The paper states a bound of twenty glasses (five turns of four glasses). The timeline here finishes in at most sixteen, which is this telling's own count for these four mercenaries rather than the paper's figure, and nothing essential hangs on the difference. One subtle distinction does matter, though: in the paper's basic arrangement, a mercenary that decides keeps running the rounds forever, whereas on our hill a mercenary who commits leaves their tent. If one mercenary committed while the wind was still blowing and another was killed, the two mercenaries left in their tents could never gather three voices for a call on their own, so they rely on the parting birds released before the first mercenary left, which are guaranteed to arrive eventually, though no fixed count of glasses can say when they will leave the pines.The paper states a bound of twenty rounds (five phases of four rounds). The timeline here finishes in at most sixteen, which is this book’s own count for four processes rather than the paper’s figure, and nothing essential hangs on the difference. One subtle distinction does matter, though: in the paper’s basic protocol, a process that decides keeps running the rounds forever, whereas here a process that decides stops taking part. If one process decided while the network was still unstable and another crashed, the two processes left could never gather three voices for a proposal on their own, so they rely on the decision messages sent before the first process stopped, which are guaranteed to arrive eventually, though no fixed count of rounds can say when.

Even when nobody commits early, no mercenary can ever look at their sandglass at glass 40 and say, “By now we are guaranteed to have committed.” The twenty-glass countdown starts from the moment the wind drops, and because no mercenary can see that moment, no mercenary knows which glass started the countdown.Even when nobody decides early, no process can ever look at its round count at round 40 and say, “By now we are guaranteed to have decided.” The twenty-round countdown starts from the moment the network settles, and because no process can see that moment, none knows which round started the countdown.

Our arrangement tolerates one death among four mercenaries. A cleverer arrangement tolerating two deaths out of four is the next question.Our protocol tolerates one crash among four processes. A cleverer protocol tolerating two crashes out of four is the next question.

Where the allegory leaks

A real night ends at dawn, whereas the paper's rounds can continue indefinitely: the formal model allows the wind to blow for an arbitrarily large number of rounds before dropping, and promises a decision within a fixed number of rounds after GST. On a real mountain, if the wind only dropped five minutes before sunrise, dawn might arrive before the twenty glasses finished. In the mathematical model there is no dawn: safety holds at every round forever, and termination holds within a bounded number of rounds after GST, however late GST occurs.

Proof · that the four commit once the wind has droppedProof · that the four decide once the network has settled

In the paper's terms the wind drops at the global stabilization time GST, and a glass is a round. Termination (Theorem 3.1; Theorem 4.1; §3.2.1). Every correct processor decides by round GST + 4(N + 1), with N = 4 and t = 1. If some processor had already decided when the wind dropped, the others decide when its “decide” arrives. h is a turn number.Termination (Theorem 3.1; Theorem 4.1; §3.2.1). The network settles at the global stabilization time GST, and a round is a round. Every correct processor decides by round GST + 4(N + 1), with N = 4 and t = 1. If some processor had already decided when the network settled, the others decide when its “decide” arrives. h is a phase number.

  1. From the glass after the wind drops, every bird let go by a live mercenary is taken in within its own glass, so no bird between live mercenaries is set aside.From the round after the network settles, every message sent by a correct process is received within its own round, so no message between correct processes is set aside.
  2. After a still untying glass, pledges are on one answer at most. In it every live mercenary hears all the pledges of every live mercenary. If live mercenaries have pledges on both answers, take the latest turn among them, say turn h on hold; by the first step of Never Two Answers there is no pledge to attack for turn h. Every pledge to attack is for a turn no later than h, and the mercenary at its tent, hearing of hold, turn h, unties it.After a settled releasing round, locks are on one value at most. In it every correct process hears all the locks of every correct process. If correct processes have locks on both values, take the latest phase among them, say phase h on 0; by the first step of Never Two Values there is no lock on 1 for phase h. Every lock on 1 is for a phase no later than h, and the process holding it, hearing of 0, phase h, releases it.
  3. Every mercenary knows the same sighted answers. Every strip carries its sender's list, and in a still untying glass every live mercenary hears from every other. After it, an answer that any live mercenary knows was seen is known to all of them. An answer still pledged was called by some owner, who called it from a list, so it is among them.Every process knows the same proper values. Every message carries its sender’s set, and in a settled releasing round every correct process hears from every other. After it, a value that any correct process knows was an input is known to all of them. A value still locked was proposed by some coordinator, who proposed it from a set, so it is among them.
  4. If some mercenary had already committed when the wind dropped, that mercenary's parting birds are never lost, so they reach every tent in the end and every mercenary left alive commits. A parting bird let go while the wind blew may still be in the pines, so no count of glasses bounds this. So suppose no one had committed when the wind dropped. From then on a mercenary who commits sends parting birds in still air, and they arrive within the glass.If some process had already decided when the network settled, its decision messages are never lost, so they reach every process in the end and every process left correct decides. A decision message sent while the network was unstable may still be in transit, so no count of rounds bounds this. So suppose no one had decided when the network settled. From then on a process that decides sends decision messages into a settled network, and they arrive within the round.
  5. The wind drops during some turn. The untying glass of the turn after it is wholly still. Of the two turns after that, at least one is owned by a live mercenary, since only one mercenary may be dead. Take the first of them owned by a live mercenary: it begins within three turns of the drop and ends within four, sixteen glasses.The network settles during some phase. The releasing round of the phase after it is wholly settled. Of the two phases after that, at least one is coordinated by a correct process, since only one process may have crashed. Take the first of them coordinated by a correct process: it begins within three phases of the settling and ends within four, sixteen rounds.
  6. In its asking glass, each of the live mercenaries, at least three, names every answer on the common list that the mercenary can accept. If some answer is still pledged, every live mercenary can accept it, since no pledge on the other answer remains; and it is on the list. If none is pledged, every live mercenary can accept every answer on the list. Either way at least three mercenaries name a common answer, and the owner hears them all within the glass and calls it.In its asking round, each of the correct processes, at least three, names every value on the common set that it finds acceptable. If some value is still locked, every correct process finds it acceptable, since no lock on the other value remains; and it is in the set. If none is locked, every correct process finds every value in the set acceptable. Either way at least three processes name a common value, and the coordinator hears them all within the round and proposes it.
  7. Every live mercenary takes in the call within the calling glass, pledges and sends pledged; the owner takes in at least two within the answering glass and commits, sending parting birds, within sixteen glasses of the wind's dropping.Every correct process receives the proposal within the proposing round, takes a lock and sends ack; the coordinator receives at least two within the acknowledging round and decides, sending decision messages, within sixteen rounds of the network settling.
  8. By the parting birds, every mercenary left alive then commits, and by Never Two Answers they all commit to the same answer.∎By the decision messages, every correct process then decides, and by Never Two Values they all decide the same value.∎
What the arrangement cannot bearWhat the protocol cannot bear

Two against two

No arrangement, no matter how clever, can tolerate two deaths out of four on a windy hill. Once again, the culprit is the wind, which can temporarily split the camp in half.No protocol, no matter how clever, can tolerate two crashes out of four in an unstable network. Once again, the culprit is the delay, which can temporarily split the system in half.

Suppose up to two mercenaries might die during the night. Then if Tents 1 and 2 hear nothing at all from Tents 3 and 4, they cannot wait forever, for all they know, Numbers 3 and 4 are dead, and the third demand requires the living to commit eventually. Likewise, if Tents 3 and 4 hear nothing from Tents 1 and 2, they too must eventually commit on their own. Now imagine a third night on which nobody is dead, but the wind blows between the two pairs of tents, holding every raven that crosses between {1, 2} and {3, 4} in the pines until after both pairs have given up waiting and committed, and only then does the wind drop! Compare the three nights side by side below: let as many glasses pass as you like, then decide when each pair must give up waiting.Suppose up to two processes might crash. Then if P1 and P2 hear nothing at all from P3 and P4, they cannot wait forever, for all they know, P3 and P4 have crashed, and the third property requires the correct processes to decide eventually. Likewise, if P3 and P4 hear nothing from P1 and P2, they too must eventually decide on their own. Now imagine a third execution in which nobody crashes, but the network holds every message that crosses between {P1, P2} and {P3, P4} until after both pairs have given up waiting and decided, and only then does the network settle! Compare the three executions side by side below: let as many rounds pass as you like, then decide when each pair must give up waiting.

Three nights give up waiting, pair by pairThree executions give up waiting, pair by pair

Let some glasses pass, then say when tents 1 and 2 give up waiting for tents 3 and 4.Let some rounds pass, then say when P1 and P2 give up waiting for P3 and P4.

You choose how many glasses each pair waits before committing, since a arrangement could set that threshold as high as it likes. Each pair's choice on the first two nights is forced by unanimity, and on the third night the wind simply outlasts both thresholds before dropping.You choose how many rounds each pair waits before deciding, since a protocol could set that threshold as high as it likes. Each pair’s choice in the first two executions is forced by unanimity, and in the third the network simply outlasts both thresholds before settling.

More Than Half

If two of the four mercenaries may die, no arrangement can meet all three demands, even with synchronized sandglasses, even though the wind always drops eventually, and even under the weakest unanimity rule (that when all four live and see the same sighting, they must commit to it).

More Than Half

If two of the four processes may crash, no protocol can meet all three properties, even with synchronized clocks, even though the network always settles eventually, and even under the weakest unanimity rule (that when all four are correct and start with the same input, they must decide it).

On the third night, nobody died and the wind eventually dropped, just as promised. Yet because the wind lasted longer than the time each pair could afford to wait, Tents 1 and 2 experienced a night identical to Night 1 (where 3 and 4 were dead and everyone saw hold), while Tents 3 and 4 experienced a night identical to Night 2 (where 1 and 2 were dead and everyone saw attack). One pair committed to hold and the other to attack! This partition argument works against any group where half or more might fail: to survive deaths under partial synchrony, a camp needs more than twice as many mercenaries as may die, so that a strict majority are always living.In the third execution, nobody crashed and the network eventually settled, just as promised. Yet because the instability lasted longer than the time each pair could afford to wait, P1 and P2 experienced an execution identical to the first (where P3 and P4 had crashed and everyone had input 0), while P3 and P4 experienced one identical to the second (where P1 and P2 had crashed and everyone had input 1). One pair decided 0 and the other 1! This partition argument works against any group where half or more might fail: to survive t crashes under partial synchrony, a system must have at least 2t + 1 members, a strict majority of correct processes.

Notice how this echoes the fundamental dilemma of the camp: a dead mercenary looks just like a slow bird.* The difference is that in a night with no bound on flight times, the wind never has to stop, whereas here the wind need only hold the cross-camp birds until both halves have committed. Only by requiring every decision to involve more than half the camp can we ensure that no two groups can ever decide in isolation from one another.Notice how this echoes the fundamental dilemma: a crashed process looks just like a slow message.* The difference is that in a purely asynchronous network, the delays never have to stop, whereas here the network need only hold the cross-pair messages until both halves have decided. Only by requiring every decision to involve more than half the system can we ensure that no two groups can ever decide in isolation from one another.

At the foot of the hill, mercenaries may die, but they never lie. Up on the summit, the same wind blows across the bandits' ring wall, where a comrade may be a traitor. The next question is how many mercenaries agreement requires when the wind blows among liars.In this model, processes may crash, but they never lie. A process may also be a traitor, and the next question is how many processes agreement requires when delays are unbounded and processes may lie.

Proof · that four mercenaries cannot bear two deathsProof · that four processes cannot bear two crashes

In the paper's terms this is Theorem 4.3: there is no t-resilient consensus protocol for fail-stop faults when N ≤ 2t, even for weak unanimity and binary values. Here N = 4 and t = 2. A and B are numbers of glasses.Theorem 4.3: there is no t-resilient consensus protocol for fail-stop faults when N ≤ 2t, even for weak unanimity and binary values. Here N = 4 and t = 2. A and B are numbers of rounds.

  1. Suppose some arrangement does. Divide the four into two pairs, tents 1 and 2 on one side, tents 3 and 4 on the other.Suppose some protocol does. Divide the four into two pairs, P1 and P2 on one side, P3 and P4 on the other.
  2. The first night. All four sighted hold. The mercenaries of tents 3 and 4 are dead from dusk, and every bird between tents 1 and 2 is taken in within its glass. Two deaths are allowed, so by the third demand the mercenaries of tents 1 and 2 commit, within some number of glasses, say A. They commit to hold. For if they committed to attack, take a night the same for them in every respect, except that the mercenaries of tents 3 and 4 are alive and sighted hold, and the wind holds every bird from them for more than A glasses before dropping. Tents 1 and 2 cannot tell that night from this one, so they commit to attack, though all four were alive and sighted hold.The first execution. All four have input 0. P3 and P4 crash at the start, and every message between P1 and P2 is received within its round. Two crashes are allowed, so by the third property P1 and P2 decide, within some number of rounds, say A. They decide 0. For if they decided 1, take an execution the same for them in every respect, except that P3 and P4 are alive with input 0, and the network holds every message from them for more than A rounds before settling. P1 and P2 cannot tell that execution from this one, so they decide 1, though all four were alive and had input 0.
  3. The second night. All four sighted attack; the mercenaries of tents 1 and 2 are dead from dusk; by the same argument tents 3 and 4 commit to attack within some B glasses.The second execution. All four have input 1; P1 and P2 crash at the start; by the same argument P3 and P4 decide 1 within some B rounds.
  4. The third night. Tents 1 and 2 sighted hold, tents 3 and 4 attack. Nobody dies. Birds within each pair are taken in within their glass, and the wind holds every bird between the pairs for more than A and more than B glasses, and then drops. That is a night the wind allows.The third execution. P1 and P2 have input 0, P3 and P4 have input 1. Nobody crashes. Messages within each pair are received within their round, and the network holds every message between the pairs for more than A and more than B rounds, and then settles. That is an execution the model allows.
  5. Tents 1 and 2 cannot tell the third night from the first until more than A glasses have passed, and by then they have committed to hold. Tents 3 and 4 cannot tell it from the second, and have committed to attack. Two mercenaries committed to different answers, which contradicts the first demand.∎P1 and P2 cannot tell the third execution from the first until more than A rounds have passed, and by then they have decided 0. P3 and P4 cannot tell it from the second, and have decided 1. Two processes decided different values, which contradicts the first property.∎
The same wind, on the crownThe same delays, with liars

Liars and sealsLiars and signatures

Up on the crown of Mount Phyle, the bandits face traitors in their own ranks,* and on windy nights the same gales sweep the summit, pinning their messenger rats in their burrows between the posts for hours at a time.Some systems face traitors in their own ranks,* and on unstable networks the same delays hold up messages between processes for hours at a time.

On the first night, when there was no wind and every rat arrived on schedule, unforgeable wax seals did all the work: they allowed any number of posts to agree despite any number of traitors.* Once the wind blows, however, wax seals lose that power. Dwork, Lynch, and Stockmeyer worked out the exact number of participants needed across every combination of wind and fault type. Use the selector below to compare them.When the network was perfectly timed and every message arrived on schedule, unforgeable digital signatures did all the work: they allowed any number of processes to agree despite any number of traitors.* Once delays are unbounded, however, signatures lose that power. Dwork, Lynch, and Stockmeyer worked out the exact number of participants needed across every combination of timing and fault type. Use the selector below to compare them.

How many mercenaries are enough? choose the wind and the troubleHow many processes are enough? choose the network and the trouble

The windThe network
Mercenaries who mayProcesses that may
How many may

These bounds come from Table I of the paper: under a wind that eventually drops, tolerating deaths or lost birds takes more than twice as many mercenaries as may fail, while tolerating liars takes more than three times as many, with or without unforgeable seals.These bounds come from Table I of the paper: under a network that eventually settles, tolerating t crashes or message-dropping faults requires at least 2t + 1 participants, while tolerating t liars requires at least 3t + 1, with or without unforgeable signatures.

Look at the middle wind setting, a wind that drops, when mercenaries may lie. Whether the mercenaries use unforgeable wax seals or not, tolerating one liar requires four posts; three posts can never tolerate even a single liar!Look at the middle setting, a network that settles, when processes may lie. Whether or not the processes use unforgeable signatures, tolerating one liar requires four processes; three can never tolerate even a single liar!

Wax seals stop reducing the number of posts needed as soon as the wind blows. On a calm night with guaranteed delivery times, silence is informative: if a post fails to relay a sealed strip before the round ends, everyone knows that post is acting dishonestly. Under the wind, however, nobody can wait for all four posts, because one post might be a traitor staying silent. With three posts (call them Post 2, Post 3 and Post 4) and one possible traitor, any two posts must be able to decide without waiting for the third. Then a traitor Post 3 can play a double game: to Post 2, Post 3 claims to have seen hold and pretends Post 4 is silent; to Post 4, Post 3 claims to have seen scatter and pretends Post 2 is silent, stamping every strip honestly with Post 3’s own genuine seal! Meanwhile, the wind delays all strips directly between Post 2 and Post 4 until Post 2 commits to hold and Post 4 commits to scatter. A wax seal stops a liar from forging someone else's signature, but it cannot stop a liar from signing two contradictory stories of their own while an honest comrade's strip is stuck in the wind.Signatures stop reducing the number of processes needed as soon as delays are unbounded. On a perfectly timed network with guaranteed delivery times, silence is informative: if a process fails to relay a signed message before the round ends, everyone knows that process is acting dishonestly. Under unbounded delay, however, nobody can wait for all the processes, because one might be a traitor staying silent. With three processes (P, Q, R) and one possible traitor, any two must be able to decide without waiting for the third. Then a traitor Q can play a double game: to P, Q claims to have input 0 and pretends R is silent; to R, Q claims to have input 1 and pretends P is silent, signing every message honestly with Q’s own genuine signature! Meanwhile, the network delays all messages directly between P and R until P decides 0 and R decides 1. A signature stops a liar from forging someone else’s, but it cannot stop a liar from signing two contradictory stories of its own while an honest process’s message is stuck in the network.

That is why four legislators are needed to keep one law scroll among liars under delayed messengers, tolerating one traitor in the Tholos.*That is why replicated services under Byzantine faults use four processes to tolerate one traitor under unbounded delay.*

The paper's table of liars and sealsThe paper’s table of liars and signatures

This is Table I of the paper: the smallest N for a t-resilient protocol. The middle column is its third, the one for partially synchronous communication and synchronous processors.

Who may fail, and howNo windSynchronousWind that dropsPartially synchronousWind for everAsynchronous
mercenaries who may dieprocesses that may crashany numbermore than twice as many as may die: 2t + 12t + 1no arrangementno protocol
mercenaries who may drop birds, or fail to take them inprocesses that may drop messages, or fail to receive themany number2t + 1no arrangementno protocol
mercenaries who may lie, with seals no one can forgeprocesses that may lie, with unforgeable signaturesany numbermore than three times as many as may lie: 3t + 13t + 1no arrangementno protocol
mercenaries who may lie, without sealsprocesses that may lie, without signatures3t + 13t + 1no arrangementno protocol
Proof · sealed or not, three posts cannot bear one liar under a wind that dropsProof · signed or not, three processes cannot bear one liar under delays that eventually settle

In the paper's terms this is Theorem 4.4: there is no t-resilient consensus protocol for authenticated Byzantine faults when N ≤ 3t. Here N = 3 and t = 1; P, Q and R are the three posts.Theorem 4.4: there is no t-resilient consensus protocol for authenticated Byzantine faults when N ≤ 3t. Here N = 3 and t = 1; P, Q and R are the three processes.

  1. Take three posts, P, Q and R, of whom one may lie, and suppose some arrangement meets the three demands.Take three processes, P, Q and R, of which one may lie, and suppose some protocol meets the three properties.
  2. The first night. All sighted hold. R is silent from dusk, which a liar may be. P and Q must act without R, within some number of glasses, and, as with the two pairs of mercenaries, they must choose hold.The first execution. All have input 0. R is silent from the start, which a liar may be. P and Q must act without R, within some number of rounds, and, as with the two pairs, they must decide 0.
  3. The second night. All sighted scatter. P is silent from dusk. Q and R choose scatter, within some number of glasses.The second execution. All have input 1. P is silent from the start. Q and R decide 1, within some number of rounds.
  4. The third night. P sighted hold, R scatter, and Q is the liar. To P the liar behaves exactly as on the first night, to R exactly as on the second, sealing every strip honestly with the liar's own seal. The wind holds every bird between P and R until both have acted. P cannot tell this night from the first, nor R from the second, so they choose differently.∎The third execution. P has input 0, R has input 1, and Q is the liar. To P the liar behaves exactly as in the first execution, to R exactly as in the second, signing every message honestly with the liar’s own signature. The network holds every message between P and R until both have acted. P cannot tell this execution from the first, nor R from the second, so they decide differently.∎
Questions left over

What the wind does not sayWhat the settling does not say

The key to partial synchrony is that the arrangement relies on the wind dropping without ever needing to detect that it has dropped. Eight natural questions follow from that insight.The key to partial synchrony is that the protocol relies on the network settling without ever needing to detect that it has settled. Eight natural questions follow from that insight.

Does anyone learn when the wind dropped?Does anyone learn when the network settled?

No. Nothing in the arrangement detects when the air has calmed, so no mercenary ever knows when GST has passed. They simply run the same four-glass turns during the wind and after it. When an owner finally receives two pledged birds in time and commits, they do not know whether the whole mountain is calm or whether their birds merely caught a lucky break, and a mercenary still waiting in their tent cannot tell whether the wind is still blowing or the current turn's owner is dead.No. Nothing in the protocol detects when the network has settled, so no process ever knows when GST has passed. They simply run the same four-round phases before it and after it. When a coordinator finally receives two ack messages in time and decides, it does not know whether the whole network is settled or whether its messages merely happened to arrive in time, and a process still waiting cannot tell whether the network is still unstable or the current coordinator has crashed.

Would the glasses alone have been enough?Would the round clocks alone have been enough?

No. Synchronized sandglasses without any bound on flight times leave the mercenaries right back in the impossibility of the first nights.* If flights have no bound, a glass that runs out with no bird at the perch tells a mercenary only that sand has fallen through a glass. Both ingredients are required: a way to measure rounds and an eventual bound on flight times.No. Synchronized round clocks without any bound on delivery times leave the processes right back in the impossibility met earlier.* If delays have no bound, a round that ends with no message from a process tells a process only that time has passed. Both ingredients are required: a way to measure rounds and an eventual bound on message delay.

What if the glasses had not been started together?What if the clocks had not been started together?

Here the four mercenaries shared sunset on the summit as a starting mark, and their glasses ran at the same rate. The paper also solves the harder case where processors start at different times and their local clocks drift at bounded rates. They build a shared round counter using ravens alone: each processor broadcasts its current count and advances only when a majority have reached that step, a clock kept by ravens.Here the four processes share a common starting moment, and their clocks run at the same rate. The paper also solves the harder case where processors start at different times and their local clocks drift at bounded rates. They build a shared round counter using messages alone: each processor broadcasts its current count and advances only when a majority have reached that step, a distributed clock kept by messages.

What if nobody knew how long a still flight takes?What if nobody knew the delivery bound?

Here the mercenaries know how long a flight takes in still air, and size their sandglasses accordingly. The paper also solves the dual model of partial synchrony, where the air is calm from the start (a fixed bound Δ exists) but nobody knows how large Δ is! The fix is simple: make each round slightly longer than the previous one, so that eventually the rounds grow long enough to outlast any flight, and from that point on the arrangement succeeds just as before.Here the processes know the delivery time bound and size their rounds accordingly. The paper also solves the dual model of partial synchrony, where the network is well behaved from the start (a fixed bound Δ exists) but nobody knows how large Δ is! The fix is simple: make each round slightly longer than the previous one, so that eventually the rounds grow long enough to outlast any delay, and from that point on the protocol succeeds just as before.

Is there a bound before the wind drops?Is there a bound before the network settles?

None at all. The twenty-glass guarantee is measured from the unknown moment the wind drops, and how long the wind blows before then is entirely up to the weather. On a hypothetical night where the wind never dropped, nobody could be guaranteed to commit*, yet even then, safety would hold and nobody would ever commit to a conflicting plan.None at all. The twenty-round guarantee is measured from the unknown moment the network settles, and how long it stays unstable before then is entirely up to the environment. In a hypothetical execution where the network never settled, nobody could be guaranteed to decide*, yet even then, safety would hold and nobody would ever decide a conflicting value.

Does it matter that no bird is lost?Does it matter that no message is lost?

It matters if mercenaries want to stop and leave their tents. Because parting birds are never lost, a mercenary who sends them and steps out of their tent knows they will eventually arrive. As the paper notes, if birds could be permanently dropped before GST, no deciding mercenary could ever safely halt, because it could never be sure its comrades had heard the decision.It matters if processes want to stop. Because decision messages are never lost, a process that sends them and stops knows they will eventually arrive. As the paper notes, if messages could be permanently dropped before GST, no deciding process could ever safely halt, because it could never be sure its peers had heard the decision.

Is the wind the only way out?Is partial synchrony the only way out?

No, two other changes at the foot of Mount Phyle escape the impossibility of agreement in different ways. If each mercenary can flip a coin inside their tent, they reach agreement with probability 1 without needing the wind to drop.* And if each mercenary has a failure-detector slate that eventually marks the dead while sparing at least one living comrade, they can agree using the same rotating turn ownership used here.*No, two other changes escape the impossibility of agreement in different ways. If each process can flip a coin, they reach agreement with probability 1 without needing the network to settle.* And if each process has a failure detector that eventually suspects the crashed while sparing at least one correct process, they can agree using the same rotating coordinator used here.*

What follows from committing?What follows from deciding?

In the story, once they commit, the four mercenaries either climb the slope together or hold the gullies together. What happens in the battle afterward lies outside the agreement problem: the arrangement's sole job is to ensure they act as one.Once the processes decide, they act on the value together. What they do with it lies outside the consensus problem: the algorithm’s sole job is to ensure they act as one.

When messages may run arbitrarily late for a while but arrive promptly from some unknown moment onward, a consensus protocol can stay safe under all delays and guarantee a decision once the network settles.

Safety never depends on network timing. Only progress waits for the calm, even though no machine can tell when the calm has arrived.

Setting Four Mercenaries Who Must Agree

At the camps and in the paper: the whole table

So that the reader may check the windy nights at the camps against the paper of Dwork, Lynch and Stockmeyer.

At the campsWhat it means
the four mercenariesThe processors, N = 4. §2.1.
a sighting, attack or holdA processor's initial value, from a binary domain. The protocols work for any domain V; the lower bounds hold already for |V| = 2. Technical Remark 3.
committingAn irrevocable decision. §2.1.
the three demandsConsistency; strong unanimity; termination. §2.4.
a mercenary who may be killed; at most oneA fail-stop fault; t = 1. §2.2.
ravens, never lostMessages that are delayed but not lost. The strengthened model of §4.2, Remark 2.
the wind; its dropping; a still flight within a glassUnbounded delay before an unknown time, and a known bound after it. “Δ holds eventually”; GST; §2.3.
no mercenary knows when the wind droppedGST is unknown to the processors. §1.2.
glasses started together at last light, run alike; the countCompletely synchronous processors with a common step count. Φ = 1, §4.
a glassA round of the basic round model, simulated by N + Δ steps. §3.1, §4.1.
a late bird, set asideA message arriving in a later round than it was sent is ignored, so rounds are independent. §4.1.
a turn; its owner, in number orderA trying phase of three rounds and a lock-release phase of one; phase k belongs to pi when k ≡ i mod N. Algorithm 1, §3.2.1. The same rotation as the coordinator of Chandra and Toueg's ◇S algorithm.
the sighted answersThe set of values a processor knows to be proper, piggybacked on every message. PROPER, §3.2.
a pledge on the tent pole; accepting an answerA lock with its phase number; a value is acceptable if the processor holds no lock on another value. §3.2.1.
the asking glassEach processor sends the phase's owner its acceptable, proper values. Round s = 4k − 3.
the calling glassThe owner proposes a value that N − t processors found acceptable and proper: (lock v, k). Round s + 1.
the answering glass; committing on two pledgedReceivers lock v, releasing only earlier locks on v, and acknowledge; the owner decides on t + 1 acknowledgments. Round s + 2.
the untying glassAll locks are broadcast; a lock on v at phase h is released on learning of a lock on w ≠ v at phase h′ ≥ h. Lock-release phase, round 4k.
one answer per turnLemma 3.1.
the two keep a pledge on the answerAfter the first decision, at least t + 1 processors keep a lock on its value at that phase or later. Lemma 3.2.
Never Two AnswersConsistency and strong unanimity hold however messages are delayed. Theorem 3.1; Theorem 4.1(a).
after a still untying glass, one answer at mostLemma 3.3.
Committing After the Wind; twenty glassesTermination; all correct processors decide by round GST + 4(N + 1). Theorem 3.1; §3.2.1; time bound 4(N + 1)(N + Δ) after GST in Theorem 4.1. The paper's processors keep participating after deciding; with halting (Remark 2), a decision made before GST gives termination without that bound.
a parting bird, sent by every mercenary who commits“Decide v”, untagged, accepted at any time; a receiver decides at once; with fail-stop faults a processor may halt after sending it. Remarks 1 and 2 (§3, §4.2). Each send is a separate step: there is no atomic broadcast, Technical Remark 1.
More Than Half; the three nightsNo t-resilient consensus for fail-stop faults when N ≤ 2t, even for weak unanimity and binary values. Theorem 4.3, Scenarios A, B, C.
the table of liars and sealsThe smallest N for a t-resilient protocol. Table I; the middle column is its third, the one for partially synchronous communication and synchronous processors.
mercenaries who may drop birds, or fail to take them inOmission faults. §2.2; Algorithm 1 also covers them.
liars; sealsByzantine faults; authentication. §2.2; Algorithms 2 and 3.
three posts cannot bear one liarNo t-resilient consensus for authenticated Byzantine faults when N ≤ 3t. Theorem 4.4.
a clock kept by ravensDistributed clocks for partially synchronous processors. §5; for fail-stop faults the authenticated clock of §5.2, simplified, with N ≥ 2t + 1.
rounds given more time each time“Δ unknown”: round r is simulated by N + r steps. §4.2, Theorem 4.2.
some mercenary sending for everIf messages can be lost before GST, some correct processor cannot halt. §2.4; Remark 2.
The paper behind this book

The paper behind this book. Cynthia Dwork, Nancy Lynch and Larry Stockmeyer, Consensus in the Presence of Partial Synchrony. Journal of the ACM 35, 2 (April 1988), 288–323. Introduces the two models of partially synchronous communication and processors, the basic round model and Algorithms 1–3, the lower bounds on fault tolerance (Theorems 4.3 and 4.4), and distributed clock synchronization under partial synchrony.

The ideas. Fischer, Lynch, and Paterson proved that deterministic consensus is impossible in a completely asynchronous system if even a single process can crash, because a crashed process cannot be distinguished from a slow one. Dwork, Lynch, and Stockmeyer asked how much timing synchrony is actually needed to bridge the gap. Their answer is partial synchrony: either a fixed upper bound Δ on message delay exists but is unknown to the processes, or the bound Δ is known in advance but holds only from some unknown Global Stabilization Time (GST) onward.

In both models, consensus becomes possible, and the paper establishes the exact fault-tolerance thresholds: with crash or omission faults, a strict majority of processes must remain correct (N ≥ 2t + 1); with Byzantine faults, more than two-thirds must remain correct (N ≥ 3t + 1), even when messages carry unforgeable cryptographic signatures. Both lower bounds rely on partition arguments: if too many processes can fail, the network can delay messages between two groups until each group is forced to decide on its own.

The protocols organize rounds into four-round phases, rotating phase ownership among the processes in turn. In each phase, the owner proposes a value that enough processes report as acceptable; processes lock that value and send acknowledgments; the owner decides upon receiving enough acknowledgments; and a lock-release round allows newer locks to supersede older ones from incomplete phases. Safety holds regardless of message delays because once a value is decided, the processes holding locks on it prevent any opposite value from gathering the quorum needed for a new proposal. Termination follows once message delays stabilize because the next phase owned by a correct process after GST is guaranteed to complete.

This clean separation—guaranteeing safety under arbitrary network delays while relying on eventual synchrony only for liveness, using rotating proposers and locks carried across phases—became the blueprint for modern consensus protocols from Paxos and Raft to Tendermint and HotStuff.

Dwork, C., Lynch, N., and Stockmeyer, L. Consensus in the presence of partial synchrony. J. ACM 35, 2 (1988), 288–323.