Implementation of an Industrial Safety Protocol Model by Using TLA

Author
ZhangQin
Advisor
WangLing , ChengZiXue , Joachim Iden
School
Harbin Institute of Technology
Major
Software Engineering
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2011
Downloads
15
Citations
0

Request the full text

Abstract

As increasing safety-critical systems are used in our daily life, safety engineering attracts more attentions. Under this circumstance, the international functional safety standard IEC 61508 was developed. It describes system safety by the term Safety Integrity Levels (SIL), and recommends many formal methods to verify system safety. Formal methods basically verify three major properties of the system: safeness, liveness and fairness. However, we also discussed three main problems of formal methods. The most important one is the state explosion.In this thesis, we introduced TLA and some prerequisite mathematical knowledge. Then we proposed a divide and conquer paradigm for specification refinement to reduce system complexity. The basic principle is to simplify the system specification from an easy conceptual model. Then we decomposed the system into sub-modules and add system behaviors and data exchanges to them. Meanwhile we analyzed what system features can be omitted, which won’t break system integrity. After that we integrated these sub-modules to a whole one and analyzed the three major properties mentioned above. We also proposed a modeling mechanism called Module State Machine, which is able to be interpreted to TLA model easily.At last, we discussed the experiment result of the TLA model checking. The conclusion is that the system satisfies safeness property, but as the limitations of TLA and its model checker TLC, liveness and fairness properties cannot be checked at the moment. We analyzed the reason of this result and also forecasted the future research approach of formal verification in industry.

Table of contents

Abstract 4-5 Abstract 5-12 Chapter 1 Introduction 12-19 1.1 Background 12-14 1.2 Properties Need to be Checked in Formal Verification 14-15 1.3 Problems 15-16 1.4 Proposal 16-17 1.5 Thesis Outline 17-18 1.6 Summary 18-19 Chapter 2 Prerequisite Knowledge 19-27 2.1 Brief Explanation of TLA 19-20 2.2 Propositional Logic 20-22 2.3 Set Theory 22-24 2.4 Predicate Logic 24 2.5 Linear Temporal Logic 24-26 2.6 Summary 26-27 Chapter 3 Divide and Conquer Paradigm for System Specification Refinement 27-33 3.1 Brief Explanation of Divide and Conquer Paradigm 27 3.2 Module State Machine for Representation of Specification 27-29 3.3 Detailed Steps of Using DC Paradigm for Specification Refinement 29-32 3.4 Summary 32-33 Chapter 4 System Specification Refinement 33-58 4.1 Concise System Specification 33-38 4.1.1 Telegram Structure 34-35 4.1.2 Communication Schema 35 4.1.3 Timing Restrictions 35-36 4.1.4 System States and Behaviors 36-38 4.1.5 Mutual Checking between MPU's 38 4.2 System Division 38-49 4.2.1 System Overall Hierarchical Break-down Structure 38-39 4.2.2 First Level Division 39-40 4.2.3 Second Level Division 40-47 4.2.4 Third Level Division 47-49 4.3 System Conquest 49-56 4.3.1 Robot Refinement 49 4.3.2 Mutual Checking Refinement 49-50 4.3.3 SM_WHT Refinement 50-53 4.3.4 SM_HC Refinement 53-54 4.3.5 Module Integration 54-56 4.4 Liveness and Fairness Properties Analysis 56 4.5 Summary 56-58 Chapter 5 Implementation of Models in TLA 58-77 5.1 Implementation of Telegram Model 58-60 5.2 Implementation of MPU Model 60-61 5.3 Implementation of HC Model 61-67 5.3.1 Modeling Telegram Sending Logic 61-63 5.3.2 Modeling Telegram Receiving Logic 63-67 5.4 Implementation of WHT Model 67-72 5.5 Implementation of Mutual Checking Function 72-73 5.6 Implementation of Communication Channel Model 73-76 5.7 Implementation of Liveness and Fairness Property 76 5.8 Summary 76-77 Chapter 6 Model Analysis 77-82 6.1 Verification Result of the System Model 77-78 6.2 Limitations of TLA and its Model Checker TLC 78-81 6.2.1 State Explosion Problem 79-80 6.2.2 Stuttering Steps 80-81 6.3 Summary 81-82 Conclusion 82-84 References 84-88 Appendix 88-103 Extended Abstract in Chinese 103-107 Acknowledgement 107-108 Resume 108-109

Related dissertations

  1. Research of High Efficient Data Mining Method of Rough Set Based on Divide and Conquer Method
    HuFeng ·Southwest Jiaotong University ·2011 ·Doctoral dissertation
  2. Research on the Parallel Algorithms of0-1Knapsack Problem Based on Divide and Conquer
    LiLingXiao ·Hunan University ·2011 ·Master's thesis
  3. Programmable Logic Device Test System
    XuYunHou ·Yangtze University ·2013 ·Master's thesis
  4. Research on DNA-base Algorithms of Subset-product Problem
    PanGuo ·Hunan University ·2007 ·Master's thesis
  5. Research of an Improved Model on DNA Computation
    YaoFengJuan ·Hunan University ·2007 ·Master's thesis
  6. The Research of Gan-Ning-Qing Three Provinces Ruling Separately
  7. The Dominant Firm Equilibrium in an Asymmetrical Two-sided Market
    LiRui ·Wuhan University ·2005 ·Master's thesis
  8. Double diagonal matrix Moore-Penrose inverse parallel computing
    FangMaoZhong ·Shanghai Normal University ·2005 ·Master's thesis
  9. A STUDY ON ALGORITHMS OF THE SYSTEM FOR INSPECTING AND RECOGNITIZING DOT IMAGES IN COLOR PRINTING
    WangYongGang ·Xi'an University of Technology ·2002 ·Master's thesis
  10. Surface reconstruction parallel algorithm for Voronoi diagram
    FengLiang ·Yanshan University ·2009 ·Master's thesis
  11. Research and Application of an Scalable Model on DNA Computing
    ZhouXu ·Hunan University ·2009 ·Master's thesis
  12. DNA Computing Based Research on Two Special Category of Application Problems
    WangJianBo ·Hunan University ·2008 ·Master's thesis
  13. Triangulation of 3D Reconstruction Technique
    GuLiGuo ·Inner Mongolia Agricultural University ·2011 ·Master's thesis
  14. Arrangement and Implementation in a Computer System of Vocational School
  15. The Research of Technology of AFTN Telegraph Auto-processing System