Docsity

Determining the Weakest Failure Detector for Consensus in Asynchronous Distributed Systems, Papers of Computer Science

Toggle sidebar
bg1
The paper aims at determining what information about failures is necessary and sufficient
to solve Consensus in asynchronous distributed systems subject to crash failures. In
Chandra and Toueg [1996], it is shown that W, a failure detector that provides
surprisingly little information about which processes have crashed is sufficient to solve
Consensus in asynchronous systems with a majority of correct processes. In this paper, it
is proved that to solve Consensus, any failure detector has to provide at least as much
information as W. Thus, it is indeed the weakest failure detector for solving Consensus in
asynchronous systems with a majority of correct processes.
Motivation:
An algorithm designed for Asynchronous DS does not rely on bounds on message
transmission times and relative processor speeds. Hence, seems a good choice with
unpredictable loads on the system. However, although this model of computation is
attractive, many fundamental problems of fault tolerant DS that are solvable in
synchronous systems, are unsolvable in Asynchronous Systems.
The paper identifies the minimum information necessary and sufficient to solve on the
agreement problems – Consensus Problem. And prove that the Failure Detector Model
suggested by Chandra and Toueg is indeed the Weakest Failure Detector.
Definitions:
Failure Detector:
Informally, a failure detector is a distributed oracle that gives (possibly incorrect)
hints about which processes may have crashed so far: Each process has access to a
local failure detector module that monitors other processes in the system, and
maintains a list of those that it currently suspects to have crashed. Each process
periodically consults its failure detector module, and uses the list of suspects
returned in solving Consensus.
It can be viewed as a function D which maps Failure Pattern to a set of possible
failure detector histories.
Failure Pattern F:
It is a function from time T to power set of processes Π and F(t) denotes a set of
processes crashed so far.
Failure Detector History H:
H (p, t) is the value of Failure Detector Module of process p at time t.
Consensus Problem:
In the Consensus problem, each process p has an initial value, 0 or 1, and must
reach an irrevocable decision on one of these values.
Properties of W:
1. There is a time after which every process that crashes is always suspected by some
correct process.
2. There is a time after which some correct process is never suspected by any correct
process.
pf3
pf4
pf5

Partial preview of the text

Download Determining the Weakest Failure Detector for Consensus in Asynchronous Distributed Systems and more Papers Computer Science in PDF only on Docsity!

The paper aims at determining what information about failures is necessary and sufficient to solve Consensus in asynchronous distributed systems subject to crash failures. In Chandra and Toueg [1996], it is shown that W, a failure detector that provides surprisingly little information about which processes have crashed is sufficient to solve Consensus in asynchronous systems with a majority of correct processes. In this paper, it is proved that to solve Consensus, any failure detector has to provide at least as much information as W. Thus, it is indeed the weakest failure detector for solving Consensus in asynchronous systems with a majority of correct processes. Motivation: An algorithm designed for Asynchronous DS does not rely on bounds on message transmission times and relative processor speeds. Hence, seems a good choice with unpredictable loads on the system. However, although this model of computation is attractive, many fundamental problems of fault tolerant DS that are solvable in synchronous systems, are unsolvable in Asynchronous Systems. The paper identifies the minimum information necessary and sufficient to solve on the agreement problems – Consensus Problem. And prove that the Failure Detector Model suggested by Chandra and Toueg is indeed the Weakest Failure Detector. Definitions:  Failure Detector: Informally, a failure detector is a distributed oracle that gives (possibly incorrect) hints about which processes may have crashed so far: Each process has access to a local failure detector module that monitors other processes in the system, and maintains a list of those that it currently suspects to have crashed. Each process periodically consults its failure detector module, and uses the list of suspects returned in solving Consensus. It can be viewed as a function D which maps Failure Pattern to a set of possible failure detector histories.  Failure Pattern F: It is a function from time T to power set of processes Π and F(t) denotes a set of processes crashed so far.  Failure Detector History H: H (p, t) is the value of Failure Detector Module of process p at time t.  Consensus Problem: In the Consensus problem, each process p has an initial value, 0 or 1, and must reach an irrevocable decision on one of these values. Properties of W:

  1. There is a time after which every process that crashes is always suspected by some correct process.
  2. There is a time after which some correct process is never suspected by any correct process.

Reduction: Consider the Failure Detector Ω which outputs a single correct process q on receiving a query from process p – we say that p trusts q. Clearly, Ω is reducible to W. We shall show that any Failure Detector D which is used to solve the consensus problem is reducible to Ω and hence by the transitivity law, it is reducible to W. Hence, W is indeed the Weakest Failure Detector. Using Failure Detector to solve Consensus: We say that algorithm A uses Failure Detector D to solve Consensus every run R = <F, H, I, S, T> of A using D satisfies following four properties:  Termination: Every correct process eventually decides some value.  Irrevocability: Once a correct process decides a value, it remains decided on that value.  Agreement: No two correct processes decide differently.  Validity: If a correct process decides v, then v was proposed by some process. Notes: An algorithm A is a set of n deterministic automata. Schedule S is a sequence of steps of an Algorithm A. A step e = <p, m, d, A>. It consists of receive, query and send phases. Messages are of the form <p, data, q> Configuration is the pair <s, M> where s is the function which maps process p to its local state and M is set of messages intended for process p. Outline of the Reduction Algorithm:  Step 1: Construct DAG containing information about Failure Detector D  Step 2: Construct a Forest of Simulation Trees containing information about the runs of consensus algorithm ConsensusD.  Step 3: Tag the vertices in the trees and identify the correct process.  Step 4: Prove that the deciding process of a decision gadget is correct  Step 5: Prove that after some time, all the processes select p* as the correct process forever. This correct process is indeed the one which is required by the Failure Detector Ω.

CLAIM: The deciding process of a decision gadget is correct. (We shall prove that) Step 4: Prove that the deciding process of a decision gadget is correct Let g be any decision gadget of Yi There are two cases to consider: (1) g is a fork: The deciding process of g is correct according to the lemma stated earlier. (2) g is a hook. Assume (without loss of generality) that S is the pivot of g, S0 = S.(p', m', d') is the 0-valent leaf of g and S1= S.( p, m, d).(p' m', d') is the 1-valent leaf of g. There are two cases: (a) p = p'. By Lemma stated above for fork, p is correct. (b) p ≠ p'. Suppose, for contradiction, that p crashes. By Lemma, there is a schedule E containing only steps of correct processes (and hence no step of p) such that: (i) S0.E is a vertex of Yi^ and all correct processes have decided in S0.E(Ii). Since S0 is 0-valent, all correct processes must have decided 0 in S0.E(Ii). (ii) If E is applicable to S1(Ii), then S1.E is a vertex of Yi. Let S' = S. (p, m, d) be the parent of S1. The state of every process other than p is the same in S(Ii) and S' (Ii). Furthermore, any message addressed to a process other than p that is in the message buffer in S(Ii) is still in the message buffer in S'(Ii). Therefore, since S0 = S.( p', m', d') and S1 =S'.(p', m', d'), the state of every process other than p is the same in S0(Ii) and S1(Ii). In addition, any message addressed to a process other than p that is in the message buffer in S0(Ii) is also in the message buffer in S1(Ii). Since E is applicable to S0(Ii) and does not contain any steps of p, an easy induction on the number of steps in E shows that: (a) E is also applicable to S1(Ii), and (b) the state of every process other than p is the same in S0.E(Ii) and S1.E(Ii). By (ii), (a) implies that S1.E is a vertex of Yi. By (b), all correct processes decide 0 in S1.E(Ii). Thus, S1 receives a tag of 0. But S1 is 1- valent—a contradiction.

Step 5: Prove that after some time, all the processes select p* as the correct process forever. This correct process is indeed the one which is required by the Failure Detector Ω. There can be many critical indices and several decision gadgets. SELECTION rule selects a particular critical index and the corresponding correct process. SELECTION i = smallest critical index IF i is monovalent critical THEN return pi ELSE return deciding process of the smallest decision gadget in Yi Reduction from D to Ω

  1. Constructing and tagging the finite simulation forest Yp induced by Gp, its present finite approximation of G.
  2. Applying the same rule to Yp to select a particular process.