The second floor of the protocol conformance test tools
- Author
- LuHaiLong
- Advisor
- GaoChuanShan
- School
- Fudan University
- Major
- Computer technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 60
- Citations
- 0
- Layer-2 Network Protocol
- Protocol testing
- Automated Testing
- Conformance testing
- TCL scripting language
Abstract
With the repid development of modern communication and computer techniques, communication protocols become bigger and more complex. Therefor, strict testing for protocol implementation is needed to ensure the quality of network protocol sofeware. Conformance testing validates the consistency between the protocol implementation and protocol standard to insure the correctness and validity; it is the base of other protocol testings and has great significance.Based on the research of the common principle, method and the current development status of protocol conformance testing, an automated testing tool AMTT, which stands for AutoMation Testing Tool, is proposed, designed and implemented in this dissertation. AMTT is based on common computer hardware with Linux system, and focuses on the conformance testing of network protocols on layer-2 switch device.AMTT is developed with multiple computer languages, also has good modularity and expansibility. In this dissertation, describes the detail process how to expand the network security development libraries Libpcap and Libnet to major protocols that run on layer-2 switch devices, and how to encapsulate these expanded libraries to work with Tcl scripting language, to implement the packet capturing/sending mechanism of AMTT. On the other hand, describes how to use multiple encapsulations to isolate the test case development API with the actual deviece which is under test to make the detail information of device under test un-necessary during the development procedure of test cases. At the end of this dissertation, introduces that how AMTT uses the process control technology to implement the control of the common testing procedure.
Table of contents
Abstract 5-6
Abstract 6-7
Introduction 7-9
first chapter 9-14
first section What is software testing 9
Section 2 automated software testing 9-10
Section 3 network protocol testing 10-13
1.3.1 Protocol Test Category 10-11
1.3.2 Conformance Test principle and method 11-13
section IV of this paper, the contents and chapter Introduction 13-14
AMTT system architecture 14-25
Section 1 AMTT About 14
Section II AMTT architecture 14-17
The main module of the
Section III AMTT 17-21
2.3.1 user interface 17-20
2.3.2 AMTT support library 20
2.3.3 test suite 20-21
2.3.4 test results 21
the fourth quarter AMTT development language 21-23
2.4.1 Tcl / Tk scripting language 22
2.4.2 Expect scripting language 22-23
2.4.3 ANSI C 23
2.4.4 SWIG 23
Section V AMTT run environment 23-25
AMTT send and receive packets to achieve 25-42
Section I Development Library About 25-26
Section II of the
development Libpcap library 26-29
3.2.1 Libpcap About 26
than 3.2.2 Libpcap the role 26-27
3.2.3 Libpcap the composition 27-29
Section III Libnet development libraries 29-34
3.3.1 Libnet About 29
3.3.2 Libnet role 29
3.3.3 Libnet packet structure 29-34
the fourth quarter Libpcap expansion 34-37
3.4.1 Libpcap packet capture process 34-35
3.4.2 Libpcap callback function 35-36
3.4.3 Libpcap packet capture function 36-37
section V of the API package 37-42
3.5.1 SWIG works 38
3.5.2 SWIG interface file 38-40
3.5.3 SWIG wrapper file 40
3.5.4 to generate the target language module 40-42
the Chapter AMTT test operation abstract 42-50
Section I AMTT test case execution 42
Section II AMTT support library structure 42-44
Section III AMTT operating an abstract implementation of 44-49
4.3.1 human-computer interaction 44
4.3.2 function identifies the definition of 44-45
4.3.3 associated command set 45-47
4.3.4 abstract configuration operations 47-48
4.3.5 test case development interface 48-49
the fourth quarter to send and receive packet operation extended 49
Section V Summary 49-50
Chapter AMTT testing process control 50-61
Section I AMTT concurrent tasks 50-52
5.1.1 of the main test case process 50
5.1.2 test equipment management process 50-51
5.1.3 packet capture child process 51
5.1.4 to send packets child process 51
5.1.5 GUI main process 51
5.1.6 GUI planning process 51
the
5.1.7 AMTT is captured thread 51-52
Section II AMTT interprocess communication 52-57
5.2.1 Signal 53-56
5.2.2 Shared Memory 56
5.2.3 semaphore 56
5.2.4 pipelines is 56
5.2.5 shared disk file 56-57
Section III AMTT process control 57-61
5.3.1 CMP and its sub-process control 57-58
5.3.2 GMP and its sub-process control 58-61
the practical application of the sixth chapter of AMTT
61-63
Section I AMTT test case set 61
Section II application development projects 61-63
Chapter VII of the summary 63-64
References 64-66
Appendix 66-74
protocol header data structure 66-69
function identifies the definition of 69-74
thank 74-75
Related dissertations
- Design and Implementation of Conformance Testing System for PIM-SM Protocol Based on TCL
- Data Communication Equipment Automatic Test and Implementation
- Development and Application of Protocol Test Tool for IGMP under Linux
- The Application and Research of Automation Test with Dojo Based on Selenium
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- The Design and Implementation of Distributed Automation Testing System for Android Application
- Research on Mobile Games Software Automated Testing Based Machine Learning
- Research and Implementation of PKCS#11Test Platform
- Design and Realization of Test Equipment for a Data Record Device
- Design and implementation of monitoring tool Linux system and its automation test based on
- Fault Related Formal Test Method of the Software in Train Control System
- Research on Conformance Testting of LDP Protocol Based on E-Lotos
- Research and Implementation of IPv6Specification Conformance Testing System
- Analysis and Design of Automated-Testing Framework for E-Commerce System
- Design and Implementation of Automatic Protocol Testing System
- Research and Implementation of an Automatic Embedded Test Platform
- Research and Implementation of Authentication Function Conformance Test for Universal Network
- Design and Implementation of Automated Financial Data Validation Tool for Financial Information Service Industry
- The Design and Implementation of Autotest
- The Design and Implementation of Automated Testing System of Itis on Mac OS