Research on Passive Testing of Communication Protocols Based on Finite State Machines

Author
ZhangZuo
Advisor
Zhao??
School
University of Science and Technology of China
Major
Computer Software and Theory
Classification
TP393.04 Communication protocols, communication protocols
Degree
Doctoral dissertation
Year
2007
Downloads
401
Citations
4

Request the full text

Abstract

With the development of network technology, networks and communication protocols become more and more complex. The complex protocols and enlarged networks make themselves less reliable. Protocol specifications are called the core of networks and should be obeyed by different communicating entities. In order to ensure the protocol implementations conform to the specifications, it is necessary to use conformance testing techniques. There are two kinds of conformance testing methods: active testing( off-line testing) and passive testing(on-line testing). In active conformance testing, protocol specification is used to generate test sequences, the implementation under test (IUT) is then placed in a dedicated testing environment, according to the predefined test sequences, one(or more) tester sends inputs to the IUT, observes the corresponding outputs, and then analyses them by comparing them with the expected outputs. Passive testing is done by passively observing the inputs and outputs of the IUT without interrupting the normal operation of the networks, which is especially applicable to locating the system faults of running networks. The advantage of active testing lies in that it could control the input of the testing, thus much higher test coverage could be achieved; state homing and fault location are much easier. In active testing, the test sequence length depends on the protocol specifications. If a specification has a lot of states and transitions, the generation of the test sequence is difficult. Most current active testing techniques do not consider testing of the exceptional inputs of the IUT, thus could miss some potential faults. In some special environments, active testing could not be deployed. Passive testing could avoid the shortcomings mentioned above and thus become a useful complement of active testing.Finite State Machine (FSM) is the most commonly used model that describes communication protocols. This paper includes the following parts which mainly focus on the theory and method of passive testing.(1) Identification of missed observations by passive testingThe IUT is running in a network with high speed, thus it is possible that the monitor may fail to capture all packets. In network monitoring system, the missing of key observations may fail the continuous protocol analysis. Thus it is important to deduce the missed observations. In this paper, this problem is solved by constructing the shortest homing sequences between states. Passive testing method is employed to deduce the possible states before missing observation, then backtracing is utilized to get the possible states after missing observations. A consequent method of constructing forest is used to find the qualified homing sequences as the shortest missed ones.(2) Fault coverage analysis in passive testingThe objective of testing is to find the maximal faults with relatively shorter test sequence. In active testing, the test sequence is statically arranged before testing, thus test coverage is independent of actual testing. While in passive testing, the observed sequence is collected at running time. Different observed sequences have different capabilities of finding faults. In order to evaluate this capability, it is necessary to calculate the test coverage of the test sequence. In this paper, a method of analyzing the test coverage by passive testing is proposed, in which fault model is developed firstly, then all possible faults derived from the fault models are generated, finally mutant analysis is used to exclude possible faults. Theoretical and practical results show that increased test sequence and active testing could improve test coverage of passive testing.(3) Fault diagnosis by passive testingAfter detecting the difference between protocol specification and its implementation, how to analyze and locate the difference become more important. In this paper, two mehthods are proposed to sovle the problem.An incremental method of an ideal fault identification algorithm is proposed firstly, in which end states resulting from the faults are recorded during the process of fault identification, a consequent method to distinguish faults by continuing testing from the end states is also given.Secondly, model-based fault diagnosis is introduced to diagnose the faults by passive testing, in which the trace is recorded and mutant analysis method is utilized to generate fault candidates. The size of possible fault set can be reduced by passive observation, active testing can be used to locate the faults. The proposed approach could distinguish equivalent faults, repeated faults and will not be limited by observation steps. Finally this approach is extended to a kind of CFSM.(4) Identification of incremental implementation by passive testingIn internet protocols, most of the state machines are not completely specified. In active testing, traditional automatic test case generation only deals with core events of protocols without considering the non-core events, thus is called weak conformance testing. If a system implements a transition additionally, this kind of testing can not detect the difference. In this paper, an approach is proposed to detect and locate the difference, in which passive testing is employed to confirm that the system has additionally implemented transitions, the possible trace is used to find the possible additionally transitions, cross verification sequence is finally used to identify the transitions. The approach can be applicable to do some finger-printing of target OS and check the exception of the programs.(5) Design and implementation of a protocol testing system using active and passive testingA protocol testing system with high efficiency is developed, in which 1UT could be configured on-line avoiding the high cost of manually configuration, central controller controls several virtual testers to launch the test simplifying the coordination and physical testing networks, XML file is used to organize the test cases and test parameters making the continuous execution of test cases possible, dependency-based test selection method that dynamically determines test sequences and deduces test results helps to improve test efficiency, passive testing is absorbed as a useful complement aiming at improving test coverage.

Table of contents

Abstract 5-8 Abstract 8-11 directory 11-15 List of Figures 15-18 Introduction 18-28 1.1 Background 18-19 1.2 Research 19-25 1.2.1 protocol models and formal Description Language 19-21 1.2.2 take the initiative to test 21-24 1.2.3 Passive Testing 24-25 1.3 research and programs 25-26 1.4 papers 28-60 structure 26-28 Chapter II of the conformance testing theory based on the state machine model 2.1 is limited the basic theory of the state machine 28-34 2.1.1 Finite State Machine, the basic definition 28-30 2.1.2 EFSM basic definition is 2.1.3 communicate the basic definition of the finite state machine 30-31 31-34 2.2 conformance test and its basic problems 34-36 2.2.1 the concept of conformance testing 34-35 2.2.2 Conformance Test of the five basic questions 35-36 2.3 active testing 36-42 <br / > 2.3.1 error type 37-38 2.3.2 common characteristic sequence 38-40 2.3.3 test sequences generated 40-42 2.4 passive testing 42-59 2.4.1 Passive testing defined 42-43 2.4.2 based on FSM error detection algorithm 43-46 2.4.3 EFSM passive test error detection algorithm 46-50 2.4.4 passively observed lack of identification algorithm in the test is 50-59 2.5 Summary 59-60 test coverage analysis in the third chapter of the passive test 60-75 3.1 test coverage analysis of the introduction of 60-61 <br / > 3.2 existing passive test test coverage analysis method 61-64 3.2.1 travel around the map-based test coverage analysis 61-62 3.2.2 based on 62-63 3.2.3 existing test coverage analysis method for the inadequacies of 63-64 3.3 single fault test coverage analysis methods based on variability analysis of passive test test coverage analysis methods 64-74 3.2.1 variability is operator 65-66 3.2.2 variants distinguish 66-68 <br / 3.2.3 equivalent variants identify 68-71 3.2.4 test coverage metrics 71-72 3.2.5 test coverage, improving methods for 72-73 3.2.6 test coverage analysis experiments 73-74 3.4 Summary 74-75 Chapter passive test error diagnostics 75-99 4.1 Introduction 75-76 4.2 existing passive test error diagnosis (identification) and its improved algorithm 76-81 4.2 .1 passive test error diagnostic model 76 4.2.2 Miller's Reverse Labeling Act 76-78 4.2.3 enhancement algorithms based on reverse identifies the method of two the advantages and disadvantages of the 78 4.2.4 existing error identification algorithms 78-81 4.3 extends the passive test error identification algorithms 81-86 4.3 .1 extended error identification algorithms 81-84 4.3.2 algorithm time complexity analysis 84-85 4.3.3 misidentification experiment 85-86 4.4 based on passive testing of the model error diagnosis 86-92 4.4.1 Passive test error diagnosis algorithm 87-90 4.4.2 algorithm time complexity analysis 90-91 4.4.3 Application example 91-92 passive tests 4.5 Model-based fault diagnosis algorithm in ECFSM on application 92-98 4.5.1 ECFSM model Introduction 92-94 4.5.2 Error detection based on passive testing of ECFSM 94-95 4.5.3 based on ECFSM passive test error diagnosis 95-96 the 4.5.4 ECFSM is error detection and diagnostic tests to 96-98 4.6 Summary 98-99 Chapter passive testing identify the incremental implementation 99-112 5.1 protocol testing in incremental implementation defined 99-103 5.2 protocol testing in incremental realization logo 103-109 5.2.1 incremental realization identifies the model 103-104 5.2.2 incremental to achieve detection 104-105 5.2.3 incremental realization identifies 105-108 108-109 5.3 example 109-110 5.4 5.2.4 time complexity analysis in the network security Application 110-111 5.5 Summary 111-112 Chapter VI of the main passive testing a combination of Protocol Conformance Test System Design and Implementation 112-129 < br /> 6.1 Introduction 112-113 6.2 test system design and implementation 113-121 6.2.1 protocol testing framework 113-114 6.2.2 Protocol Conformance Test System 114-121 6.3 of RIP conformance testing 121-128 6.3.1 RIP Protocol Introduction 121-124 < br /> 6.3.2 test case and test results 124-128 6.4 summarize 128-129 Conclusion to Chapter VII 129-133 7.1 papers summary of the work 129-131 7.1.1 passive testing framework identifies observe the missing packets 129-130 7.1.2 passive testing, test coverage analysis of the problem 130 7.1.3 Passive test error diagnosis 130-131 7.1.4 incremental realization that identifies the problem 131 7.1.5 main test system design and test the combination of passive and 131 7.2 Further work is 131-133 reference literature 133-144 published papers and patents 144-145 to participate in the research work 145-146 thank 146

Related dissertations

  1. Research on Fault Diagnosis of Protocol Conformance Testing
    QianLan ·University of Science and Technology of China ·2006 ·Doctoral dissertation
  2. Research of NIDS Test Methed Composed of Active Test and Passive Test
    WuYin ·Inner Mongolia University ·2011 ·Master's thesis
  3. The Study of Conformance Testing of WLAN Security Access Protocols
  4. Research for Remote Monitoring and Intelligent Diagnosis System of Tire Building Machine
  5. A Research on Industrial Process Fault Diagnosis Method Based on Improved KICA and FDA
    JinZuoZuo ·Northeastern University ·2012 ·Master's thesis
  6. Design and Research on Monitoring and Diagnosis System of Superconducting Medium Radiator Automatic Filling Production Line
    LiuYang ·Harbin Engineering University ·2013 ·Master's thesis
  7. A Research on Web-based Equipment Fault Diagnosis System
  8. The Devising for Fault Diagnosis Expert System of Reciprocating Compressors
    QuanChunFeng ·Xi'an University of Petroleum ·2013 ·Master's thesis
  9. Research of Fault Diagnosis Based on Adaptive Fuzzy Logic System
    ZhangZhan ·Xiangtan University ·2013 ·Master's thesis
  10. The Research and Apply on Monitoring System of Hydrologic Stations
  11. Emulsifier Fault Diagnosis System Research Based on Data-driven
  12. Fault Diagnosis of Complex Industrial Process Based on Multivariate Statistical Method
    GuoBin ·Donghua University ·2014 ·Master's thesis
  13. Fault Diagnosis Research Based on the Expectation Propagation Algorithm
    NaXiaoLong ·Beijing Jiaotong University ·2014 ·Master's thesis
  14. Research on Condition Monitoring and Fault Diagnosis System of Wind Turbine Gearbox
    ZhangShuai ·Zhejiang University ·2014 ·Master's thesis
  15. Research and Design of Automotive Fault Diagnosis System Based on Fault Tree and Case-based Reasoning
    WangWenJing ·Ningxia University ·2014 ·Master's thesis
  16. Research on Process Monitoring Method Based on Kernel Principle Component Analysis
    FengZuo ·Northeastern University ·2013 ·Master's thesis
  17. Development of Data Acquisition and Device Control System Based on LabVIEW
  18. The Research of Condition Monitoring and Control Strategy for Beer Fermentation Process
  19. Research and Design of Intelligent Prosthetic Knee Ankle Coordinated Control System
    BaiJian ·Hebei University of Technology ·2013 ·Master's thesis
  20. The Study of Fault Diagnosis Method of the Control System of Amorphous Ribbon Production Line Based on PLC