Machines can fail by stopping, by going silent, or by lying. Which kind you expect decides the whole design.
A machine can fail in more than one way. The two big families are crash failures (it just stops) and Byzantine failures (it keeps going but sends wrong or lying answers). Which one you plan for decides how many machines you need and how hard the design is.
A failure model is a promise about how things are allowed to go wrong. Before you design a distributed system, you say: "I expect machines to fail in these ways, and no others." Every algorithm is only correct inside its failure model.
The models are ordered from gentle to harsh. A harsher model includes everything in the gentler ones, so an algorithm built for the harsh model also works in the gentle one, but it costs more.
The name Byzantine comes from a famous 1982 paper where generals must agree on a plan, but some of them may be traitors who send different messages to different people. A Byzantine node is not just broken. It can behave in the worst possible way.
| Type | What the node does | Example | How we cope |
|---|---|---|---|
| Crash (crash-stop) | Stops and never returns | Power cut, kernel panic | Replicas, timeouts, replace the node |
| Crash-recovery | Stops, then restarts with only its saved state | Process restart | Write promises to disk before replying |
| Omission | Runs, but some messages are lost | Full buffer, dropped packet | Retries, acknowledgements |
| Timing | Answers correctly but too late | Long GC pause, slow disk | Timeouts, fencing tokens |
| Byzantine | Does anything, even lies | Bug, corrupt memory, hacked node | 3f + 1 nodes, signatures, voting |
If up to f nodes can be faulty, you need enough healthy nodes left to still form a clear answer.
Simplified: one faulty node out of three is shown, while the node counts follow the formulas for f faulty nodes. Crash-only agreement needs a majority (2f + 1 nodes). Agreement when nodes may lie needs 3f + 1.
| Term | Meaning in easy words |
|---|---|
| Failure model | A statement of how components are allowed to fail |
| Crash-stop | A node stops and never comes back |
| Crash-recovery | A node stops, then returns with only the state it saved to disk |
| Omission failure | A node or link loses messages but is otherwise correct |
| Timing failure | A node responds correctly but outside the expected time |
| Byzantine failure | A node behaves arbitrarily, including lying or sending conflicting answers |
| Fail-stop | A crash that other nodes can reliably detect |
| f | The number of faulty nodes a system is designed to survive |
| Quorum | The smallest group whose agreement is enough to decide |
| Fail-silent | A node that stops and gives no sign, so others cannot be sure it is dead |
| Gray failure | A node that is partly working, so some checks pass and some fail |
| Choice | We gain | We lose |
|---|---|---|
| Assume crash only | Few nodes, fast, simple | Unsafe if a node lies |
| Assume Byzantine | Safe against liars and bugs | 3f + 1 nodes and heavy messaging |
| Crash-recovery | Nodes can restart safely | Every promise must reach disk first |
| Short timeouts | Quick failure detection | Slow nodes treated as dead |
| Checksums and signatures only | Cheap protection against small lies | Not full Byzantine safety |