Skip to main content

Safety Verification of the Raft Leader Election Algorithm Using Athena

  • Conference paper
  • First Online:
Advances in Computing (CCC 2023)

Abstract

The Raft consensus algorithm is widely recognized for its practicality and comprehensibility in achieving consensus within distributed systems. This paper presents a comprehensive exploration of Raft, making clear key concepts and verifying critical properties. We delve into the fundamental components of Raft, encompassing leader election, log replication, and safety guarantees. Detailed explanations are shown in order to illustrate the interactions between actors during commit phases, leader selection, and other significant stages. The Athena proof system is employed to verify essential properties such as leader completeness, log consistency, and fault tolerance, ensuring the algorithm’s resilience in the face of failures. Drawing upon the Athena programming language’s actor model implementation, we simulate and validate the behavior of Raft, providing practical insights into its functionality.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The full implementation of our work is available at: undisclosedtokeepanonymity.

  2. 2.

    Athena’s assumption base works as the set of premises held to be true, Athena’s system ensures that a sentence is added to the assumption base if and only if it is sound with the current theory.

References

  1. Agha, G.A., Mason, I.A., Smith, S.F., Talcott, C.L.: A foundation for actor computation. J. Funct. Program. 7(1), 1–72 (1997)

    Article  MathSciNet  MATH  Google Scholar 

  2. Agha, G.A., Thati, P., Ziaei, R., Bowman, H., Derrick, J.: Actors: a model for reasoning about open distributed systems. In: Formal Methods for Distributed Processing: A Survey of Object-Oriented Approaches, pp. 155–176 (2001)

    Google Scholar 

  3. Arkoudas, K., Musser, D.: Fundamental Proof Methods in Computer Science: A Computer-Based Approach. MIT Press, Cambridge (2017). ISBN: 9780262035538

    MATH  Google Scholar 

  4. Bao, Q., Li, B., Hu, T., Cao, D.: Model checking the safety of raft leader election algorithm. In: IEEE International Conference on Software Quality, Reliability and Security, pp. 400–409. IEEE (2022)

    Google Scholar 

  5. Lamport, L.: Paxos made simple. ACM SIGACT News (Distrib. Comput. Column) 32(4), 51–58 (2001)

    Google Scholar 

  6. Lamport, L.: The part-time parliament. Trans. Comput. Syst. 16(2), 133–169 (1998). ISSN: 0734-2071

    Article  MATH  Google Scholar 

  7. Musser, D.R., Varela, C.A.: Structured reasoning about actor systems. In: Proceedings of the Workshop on Programming Based on Actors, Agents, and Decentralized Control, Indianapolis, Indiana, USA, pp. 37–48. ACM (2013). ISBN: 9781450326025

    Google Scholar 

  8. Ongaro, D., Ousterhout, J.: In search of an understandable consensus algorithm (extended version). In: Proceeding of USENIX Annual Technical Conference, USENIX ATC, pp. 19–20 (2014)

    Google Scholar 

  9. Woos, D., Wilcox, J.R., Anton, S., Tatlock, Z., Ernst, M.D., Anderson, T.: Planning for change in a formal verification of the raft consensus protocol. In: Proceedings of the Conference on Certified Programs and Proofs, St. Petersburg, FL, USA, pp. 154–165. ACM (2016). ISBN: 9781450341271

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mateo Sanabria .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Sanabria, M., Angel, L., Cardozo, N. (2024). Safety Verification of the Raft Leader Election Algorithm Using Athena. In: Tabares, M., Vallejo, P., Suarez, B., Suarez, M., Ruiz, O., Aguilar, J. (eds) Advances in Computing. CCC 2023. Communications in Computer and Information Science, vol 1924. Springer, Cham. https://doi.org/10.1007/978-3-031-47372-2_23

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-47372-2_23

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-47371-5

  • Online ISBN: 978-3-031-47372-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics