Skip to main content
Log in

Synchronous condition-based consensus

  • Regular Paper
  • Published:
Distributed Computing Aims and scope Submit manuscript

Abstract

The condition-based approach studies restrictions on the inputs to a distributed problem, called conditions, that facilitate its solution. Previous work considered mostly the asynchronous model of computation. This paper studies conditions for consensus in a synchronous system where processes can fail by crashing. It describes a full classification of conditions for consensus, establishing a continuum between the asynchronous and synchronous models, with the following hierarchy \({\cal S}_t^{[-t]}\subset\cdots\subset {\cal S}_t^{[0]}\subset\cdots\subset {\cal S}_t^{[t]}\) where \({\cal S}_t^{[t]}\) includes all conditions (and in particular the trivial one made up of all possible input vectors). For a condition \(C \in{\cal S}_t^{[d]}$, $-t \leq d \leq t\), we have:

  • For values of \(d \leq 0\) consensus is solvable in an asynchronous system with t failures, and we obtain the known hierarchy of conditions that allows solving asynchronous consensus with more and more efficient protocols as we go from d = 0 to d = −t.

  • For values of \(d \leq 0\) consensus is solvable in an asynchronous system with t failures, and we obtain the known hierarchy of conditions that allows solving asynchronous consensus with more and more efficient protocols as we go from d = 0 to d = −t.

  • For values of d<0 consensus is known not solvable in an asynchronous system with t failures, but we obtain a hierarchy of conditions that allows solving synchronous consensus with protocols that can take more and more rounds, as we go from d = 0 to d = t.

  • d = 0 is the borderline case where consensus can be solved in an asynchronous system with t failures, and can be solved optimally in a synchronous system.

After having established the complete hierarchy, the paper concentrates on the two last items: \(0\leq d\leq t\). The main result is that the necessary and sufficient number of rounds needed to solve uniform consensus for a condition \(C \in {\cal S}_t^{[d]}\) (such that \(C\notin {\cal S}_t^{[d-1]}\)) is d +1.

In more detail, the paper presents a generic synchronous early-deciding uniform consensus protocol that enjoys the following properties. Let f be the number of actual crashes, I the input vector and \(C \in {\cal S}_t^{[d]}\) the condition the protocol is instantiated with. The protocol terminates in two rounds when \(I\in C\) and \(f\leq t-d\), and in at most d +1 rounds when \(I\in C\) and \(f>t-d\). (It also terminates in one round when \(I\in C\) and \(d=f=0\).) Moreover, whether I belongs or not to C, no process requires more than min\((t+1,f+2)\) rounds to decide. The paper then proves a corresponding lower bound stating that at least d +1 rounds are necessary to get a decision in the worst case when \(I\in C\) (for \(C \in {\cal S}_t^{[d]}\) and \(C \notin {\cal S}_t^{[d-1]}\)).

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Aguilera, M.K., Toueg, S.: A Simple bivalency proof that t-resilient consensus requires t+1 rounds. Information Processing of Letters 71, 155–178 (1999)

    Article  MathSciNet  Google Scholar 

  2. Attiya, H., Avidor, Z.: Wait-free n-set consensus when inputs are restricted. In: Malkhi, D. (ed.). Proceeding of 16th International Symposium on Distributed Computing (DISC’02), Springer Verlag LNCS 2508, pp 326–338, Toulouse. (2002)

  3. Attiya, H., Welch, J.: Distributed computing: fundamentals, simulations and advanced topics. McGraw-Hill (1998)

  4. Ben Or, M.: Another advantage of free choice: Completely Asynchronous Agreement Protocols. In: Proceedings of 2nd ACM Symposium on Principles of Distributed Computing (PODC’83), pp. 27–30, Montréal (1983).

  5. Chandra, T.K., Toueg, S.: Unreliable failure detectors for reliable distributed systems. J. ACM 43(2), 225–267 (1996)

    Article  MathSciNet  Google Scholar 

  6. Charron-Bost, B., Schiper, A.: Uniform consensus is harder than consensus. Journal of Algorithms 51(1), 15–37 (2004)

    Article  MathSciNet  Google Scholar 

  7. Chaudhuri, S.: More choices allow more faults: set Consensus Problems in Totally Asynchronous Systems. Information and Computation. 105, 132–158 (1993)

    Article  MATH  MathSciNet  Google Scholar 

  8. Dolev, D., Lynch, N.A., Pinter, S.S., Stark, E.W., Weihl, W.E.: Reaching approximate agreement in the presence of faults. Journal of the ACM 33(3), 499–516 (1986)

    Article  MathSciNet  Google Scholar 

  9. Dolev, D., Reischuk, R., Strong, R.: Early stopping in byzantine agreement. J. ACM 37(4), 720–741 (1990)

    Article  MathSciNet  Google Scholar 

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

    Article  MathSciNet  Google Scholar 

  11. Dwork, C., Moses, Y.: Knowledge and common knowledge in a byzantine environment: Crash failures. Information Computation 88(2), 156–186 (1990)

    Article  MathSciNet  Google Scholar 

  12. Fischer, M.J., Lynch, N.: A lower bound for the time to assure interactive consistency. Information Processing Letters 71, 183–186 (1982)

    Article  MathSciNet  Google Scholar 

  13. Fischer, M.J., Lynch, N.A., Paterson, M.S.: Impossibility of distributed consensus with one faulty process. J. ACM 32(2), 374–382 (1985)

    Article  MathSciNet  Google Scholar 

  14. Friedman, R., Mostefaoui, A., Rajsbaum, S., Raynal, M.: Asynchronous distributed agreement and its relation with error correcting codes. In: Malkhi, D. (ed.). Proceedings of 16th International Symposium on Distributed Computing (DISC’02), Springer Verlag LNCS 2508, pp 63–87, Toulouse (2002)

  15. Gafni, E.: Round-by-round fault detectors: Unifying synchrony and asynchrony. In: Proceedings of 17th ACM Symposium on Principles of Distributed Computing (PODC’98), pp 143–152, Puerto Vallarta (1998)

  16. Guerraoui, R., Raynal, M.: The information structure of indulgent consensus. IEEE Transactions on Computers 53(4), 453–466 (2004)

    Article  Google Scholar 

  17. Herlihy, M.P.: Wait-free synchronization. ACM Transactions on Programming Languages and Systems 11(1), 124–149 (1991)

    Article  Google Scholar 

  18. Herlihy, M.P., Rajsbaum, S., Tuttle, M.R.: Unifying synchronous and asynchronous message-passing models. In: Proceedings of 17th ACM Symposium on Principles of Distributed Computing (PODC’98), pp 133–142, Puerto Vallarta (1998)

  19. Hurfin, M., Mostefaoui, A., Raynal, M.: A versatile family of consensus protocols based on chandra-toueg’s unreliable failure detectors. IEEE Transactions on Computers 51(4), 395–408 (2002)

    Article  Google Scholar 

  20. Izumi, T., Masuzawa, T.: Synchronous condition-based consensus adapting to input-vector legality. In: Guerraoui, R. (ed.). Proceedings of 18th International Symposium on Distributed Computing (DISC’04), Springer Verlag LNCS 3274, pp 16–29, Amsterdam (2004)

  21. Izumi, T., Masuzawa, T.: An improved algorithm for adaptive condition-based consensus. In: Pelc, A., Raynal, M. (eds.). Proceedings of 12th Colloquium on Structural Information and Communication Complexity (SIROCCO’05), Springer Verlag LNCS 2499, 170–184, Le Mont-Saint-Michel (2005)

  22. Keidar, I., Rajsbaum, S.: A simple proof of the uniform consensus synchronous lower bound. Information Processing Letters 85, 47–52 (2003)

    Article  MathSciNet  Google Scholar 

  23. Lamport, L., Fischer, M.: Byzantine generals and transaction commit protocols. Unpublished manuscript. 16 (1982)

  24. Lynch, N.A.: Distributed algorithms. Morgan Kaufmann Pub. San Fransisco (1996)

  25. Moses, Y., Rajsbaum, S.: A layered analysis of consensus. SIAM Journal of Computing 31(4), 989–1021 (2002)

    Article  MathSciNet  Google Scholar 

  26. Mostefaoui, A., Rajsbaum, S., Raynal, M.: Conditions on input vectors for consensus solvability in asynchronous distributed systems. Journal of the ACM 50(6), 922–954 (2003)

    Article  MathSciNet  Google Scholar 

  27. Mostefaoui, A., Rajsbaum, S., Raynal, M.: Using conditions to expedite consensus in synchronous systems. In: Fich, F. (ed.). Proceedings of 17th International Symposium on Distributed Computing (DISC’03), Springer-Verlag LNCS 2848, 249–263, Sorrento (2003)

  28. Mostefaoui, A., Rajsbaum, S., Raynal, M.: The synchronous condition-based consensus hierarchy. In: Guerraoui, R.(ed.). Proceedings of 18th International Symposium on Distributed Computing (DISC’04), Springer-Verlag LNCS 3274, pp 1–15 (Amsterdam 2004)

  29. Mostefaoui, A., Rajsbaum, S., Raynal, M., Roy, M.: Condition-based consensus solvability: a Hierarchy of Conditions and Efficient Protocols. Distributed Computing 17, 1–20 (2004)

    Article  Google Scholar 

  30. Mostefaoui, A., Raynal, M.: Leader-based consensus. Parallel Processing Letters 11(1), 95–107 (2001)

    Article  MathSciNet  Google Scholar 

  31. Raynal M.: Consensus in synchronous systems: A concise guided tour. In: Proceedings of 9th IEEE Pacific Rim International Symposium on Dependable Computing (PRDC’02), 221–228, IEEE Computer Press, Tsukuba (2002)

  32. Zibin, Y.: Condition-based consensus in synchronous systems. In: F. Fich (ed.). Proceedings of 17th Int’l Symposium on Distributed Computing (DISC’03), Springer-Verlag LNCS 2848, 239–248, Sorrento (2003)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Michel Raynal.

Additional information

This paper is based on the DISC’03 and DISC’04 conference versions MRR03,MRR04

A. Mostefaoui is currently Associate Professor at the Computer Science Department of the University of Rennes, France. He received his Engineer Degree in Computer Science in 1990 from the University of Algiers, and a Ph.D. in Computer Science in 1994 from the University of Rennes, France. His research interests include fault-tolerance and synchronization in distributed systems, group communication, data consistency and distributed checkpointing. Achour Mostefaoui has published more than 70 scientific publications and served as a reviewer for more than 20 major journals and conferences. Moreover, Achour Mostéfaoui is heading the software engineer degree of the University of Rennes

S. Rajsbaum received a degree in Computer Engineering from the National Autonomous University of Mexico (UNAM) in 1985, and a PhD in the Computer Science from the Technion, Israel, in 1991. Since then he has been a member of the Institute of Mathematics at UNAM, where he is now a Full Professor with Tenure. He has been a regular visiting scientist at the Laboratory for Computer Science of MIT. Also, he was a member of the Cambridge Research Laboratory of HP from 2000 to 2002. He was chair of the program committee for Latin American Theoretical Informatics LATIN2002, and for ACM Principles of Distributed Computing PODC03, and member of the Program Committee of various international conferences such as ADHOC, DISC, ICDCS, IPDPS, LADC, PODC, and SIROCCO. His research interests are in the theory of distributed computing, especially issues related to coordination, complexity and computability, and fault-tolerance. He has also published in graph theory and algorithms. Overall, he has published over fifty papers in journals and international conferences. He runs the Distributed Computing Column of SIGACT News, the newsletter of the ACM Special Interest Group on Algorithms and Computation Theory. He has been editor of several special journal issues, such as the Special 20th PODC Anniversary Special Issue of Distributed Computing Journal (with H. Attiya) and of Computer Networks journal special issue on algorithms.

M. Raynalhas been a professor of computer science since 1981. At IRISA (CNRS-INRIA-University joint computing research laboratory located in Rennes), he founded a research group on Distributed Algorithms in 1983. His research interests include distributed algorithms, distributed computing systems, networks and dependability. His main interest lies in the fundamental principles that underly the design and the construction of distributed computing systems. He has been Principal Investigator of a number of research grants in these areas, and has been invited by many universities all over the world to give lectures on distributed algorithms and distributed computing. He belongs to the editorial board of several international journals. Professor Michel Raynal has published more than 90 papers in journals (JACM, Acta Informatica, Distributed Computing, Comm. of the ACM, Information and Computation, Journal of Computer and System Sciences, JPDC, IEEE Transactions on Computers, IEEE Transactions on SE, IEEE Transactions on KDE, IEEE Transactions on TPDS, IEEE Computer, IEEE Software, IPL, PPL, Theoretical Computer Science, Real-Time Systems Journal, The Computer Journal, etc.); and more than 190 papers in conferences (ACM STOC, ACM PODC, ACM SPAA, IEEE ICDCS, IEEE DSN, DISC, IEEE IPDPS, Europar, FST&TCS, IEEE SRDS, etc.). He has also written seven books devoted to parallelism, distributed algorithms and systems (MIT Press and Wiley). Michel Raynal has served in program committees for more than 70 international conferences (including ACM PODC, DISC, ICDCS, IPDPS, DSN, LADC, SRDS, SIROCCO, etc.) and chaired the program committee of more than 15 international conferences (including DISC -twice-, ICDCS, SIROCCO and ISORC). He served as the chair of the steering committee leading the DISC symposium series in 2002-2004. Michel Raynal received the IEEE ICDCS best paper Award three times in a row: 1999, 2000 and 2001. He is a general co-chair of the IEEE ICDCS conference that will be held in Lisbon in 2006.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Mostefaoui, A., Rajsbaum, S. & Raynal, M. Synchronous condition-based consensus. Distrib. Comput. 18, 325–343 (2006). https://doi.org/10.1007/s00446-005-0148-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00446-005-0148-1

Keywords

Navigation