Question 5 of 11 · CIE-2 QB · Set 2 · 6 marks
Open in ChatGPTExplain about process resilience and reliable group communication with respect to failure handling and message delivery guarantees.
Introduction
Process resilience is achieved by replicating a process into a group and giving the group properties that a single process cannot have: if one member fails, the group continues. Reliable group communication is the layer that makes the group behave as one entity.
Process resilience
- Replication: the same computation runs on several processes (active) or one runs and others stand by (passive).
- Group membership: the system maintains which members are alive, and a view of the group at any moment.
- Failure detection: heartbeats and timeouts decide that a member has failed; a false positive removes a healthy member, which the protocol must tolerate.
- Tolerance: a group of size k tolerates k − 1 crash failures; with Byzantine faults, more than two-thirds must be correct.
Message delivery guarantees
- Reliable delivery: every message sent to the group is eventually delivered to every correct member, despite retransmission.
- FIFO order: messages from one sender arrive at every member in the order sent.
- Causal order: a message is delivered only after the messages it causally depends on.
- Total order (atomic multicast): all members deliver all messages in the same order. This is what active replication needs, so replicas stay identical.
Implementing total order
- Sequencer: one process numbers every message, and members deliver in that order.
- Fixed sequencer with a ring: the sequence number is passed round the ring.
- Consensus-based: a protocol such as Paxos or Raft agrees on the order of each message.
Example
A replicated stock-price service: every replica must apply price updates in the same order or the replicas diverge. Total-order multicast guarantees the same order everywhere; a lost message is retransmitted, so no replica misses an update.
Conclusion
Reliable group communication reduces replication to a delivery problem: define the membership, then define the ordering guarantee the application needs. Crash tolerance needs reliable total order; weaker guarantees are cheaper but only suit idempotent updates.