使用模型检测方法对Paxos算法进行验证与改进  被引量:1

Verification and Improvement of Paxos Algorithm Based on Model Checking

在线阅读下载全文

作  者:何东炼 杨晋吉[1] 赵淦森[1] 管金平 HE Dong-lian;YANG Jin-ji;ZHAO Gan-sen;GUAN Jin-ping(Schoolof Computing,South China Normal University,Guangzhou 510631,China)

机构地区:[1]华南师范大学计算机学院,广州510631

出  处:《小型微型计算机系统》2022年第5期1109-1113,共5页Journal of Chinese Computer Systems

基  金:广东省自然科学基金项目(2020A1515010445)资助。

摘  要:因通信的同步问题、网络分区的可靠性问题等,分布式系统难以在通信、分区等环节失效的情况下对特定的状态达成共识.Paxos是近年分布式系统中常见且有效的共识算法,本文通过使用模型检测的方法对Paxos算法进行形式化建模,分析和验证了Paxos作为共识算法所应当满足的性质,结果表明,Paxos算法满足安全性、活性,但执行过程中有发生活锁的可能,并通过模型检测器重现了算法发生活锁时的运行轨迹.最后通过对算法进行改进,以应对现有算法执行过程中可能出现的活锁问题,并通过了模型检测器的验证.Due to the synchronization of communication and the reliability of network partition,it is difficult for distributed systems to reach a consensus on a specific state when the communication,partition,or others fail.Paxos is a common and effective consensus algorithm in distributed systems in recent years.This paper uses the method of model checking to formally model the Paxos algorithm,analyzes and verifies the properties that Paxos should satisfy as a consensus algorithm.The results show that Paxos algorithm meets the safetyand liveness,but it is possible to generate livelocks,the trace of livelock is reproduced by model checker.Finally,the algorithm is improved to deal with the livelock problem that may occur during the execution of thealgorithm,and it has passed the verification of the model checker.

关 键 词:形式化验证 模型检测 Paxos SPIN 

分 类 号:TP301[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象