CN100385864C - Protocol conformance measuring device and method - Google Patents
Protocol conformance measuring device and method Download PDFInfo
- Publication number
- CN100385864C CN100385864C CNB2005101302936A CN200510130293A CN100385864C CN 100385864 C CN100385864 C CN 100385864C CN B2005101302936 A CNB2005101302936 A CN B2005101302936A CN 200510130293 A CN200510130293 A CN 200510130293A CN 100385864 C CN100385864 C CN 100385864C
- Authority
- CN
- China
- Prior art keywords
- module
- message
- test case
- protocol
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/24—Testing correct operation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
Abstract
The present invention relates to a protocol conformance measuring device, wherein an initial data configuring module is connected with a data storage module. A test case execution module is connected with the data storage module, a message I/O module and a protocol emulational module. A message storage module is connected with the message I/O module to obtain feedback messages. A status execution control module is connected with the modules for coordination. A message handling module is connected with the message storage module to compare a standard response message with an analyzed feedback message and output the analyzed feedback message. The present invention also relates to a protocol conformance measuring method based on the measuring device, which comprises the following steps: editing a test case, configuring network parameters, executing the test case, obtaining the standard response message, receiving a message fed back by a measured business system, comparing the standard response message with the analyzed feedback message and outputting the analyzed feedback message. The present invention realizes test automation and is suitable for different platforms. In addition, the modules have good extension performance.
Description
Technical field
The present invention relates to a kind of testing protocol consistency device and method of testing, especially a kind ofly communicate the automation equipment of testing protocol consistency and adopt this automation equipment to carry out the method for testing protocol consistency at the business platform in the mobile communications network.
Background technology
Along with popularizing and development of the communication technology, various new communication services constantly produce, the appearance of each communication service, must there be the communication protocol of relevant business platform and bottom to support, but because whole communication system is a complicated real-time big system, if do not test, some unforeseen mistakes very likely appear in application, and how reducing mistake as much as possible is a problem that must solve.In relevant test, testing protocol consistency is basic test, can carry out place mat for ensuing protocol-compliant property testing and business platform performance test, so that more easily pinpoint the problems and handle sooner.So-called testing protocol consistency is the requirement according to agreement, formulates the dependence test use-case interface protocol of system under test (SUT) is tested, and checks the interface protocol of system under test (SUT) whether to satisfy the requirement of standard.Through after such test,, can adjust, and then test to reach last required precision if find not meet conforming problem.
Existing conformance test method is aimed at concrete service protocol, develop concrete testing apparatus, and subsidiary a large amount of artificial means are arranged, the a large amount of test case of for example artificial establishment, utilize people's observation to judge or relatively wait, wherein test case (Test Case) typically refers to a specific software product or the network platform is carried out the description of test assignment, embodies testing scheme, method, technology and strategy.For the mobile communication network technology of nowadays making rapid progress, shortcomings such as this method has that efficient is low, poor accuracy, complex operation and autgmentability difference, more recently the communication service of carrying out owing to there is not suitable testing apparatus, has brought very big difficulty to test.
Summary of the invention
First purpose of the present invention provides a kind of testing protocol consistency device, can carry out the test of protocol conformance to the professional related agreement in the mobile communications network, reduces at the probability of makeing mistakes of protocol layer to guarantee business platform.
Second purpose of the present invention provides a kind of protocol conformance test method, can carry out the test of protocol conformance to the professional related agreement in the mobile communications network, reduces at the probability of makeing mistakes of protocol layer to guarantee business platform.
For realizing above-mentioned first purpose, the invention provides a kind of testing protocol consistency device, it comprises:
One primary data configuration module is used to edit test case and network parameter is configured;
One data memory module links to each other with described primary data configuration module, is used to store operational order data and experimental data and network parameter corresponding to test case;
One protocol emulation module is used for carrying out protocol emulation according to the agreement of required test;
One test case Executive Module, link to each other with described data memory module and protocol emulation module, be used to extract described operational order data and experimental data, and call described protocol emulation module according to described operational order data and experimental data and carry out described test case, obtain the standard feedback message that the described test case of described protocol emulation module output is carried out under the protocol emulation state;
One message input/output module links to each other with described test case Executive Module, is used to provide the interface with tested operation system, and sends described experimental data and receive feedback message according to the described operational order data that described test case Executive Module obtains; One message storage module links to each other with described message input/output module, is used to store described feedback message;
One state is carried out control module, links to each other, is used for collaborative work between the control module with described test case Executive Module and message storage module;
One message processing module, carrying out control module with described message storage module and described state links to each other, be used for described feedback message is resolved, and the standard feedback message that described State Control Executive Module is obtained from described test case Executive Module with resolve after feedback message compare, then comparative result is exported.
For realizing above-mentioned second purpose, the invention provides a kind of method of testing protocol consistency, comprising following steps:
Step 1, primary data configuration module editor test case, the configuration network parameter;
Step 4, message input/output module output to tested operation system according to the described operational order data that described test case Executive Module obtains with described experimental data;
Step 5, described message input/output module receive the message of tested operation system feedback, and are saved to message storage module;
Step 7, the described message processing module statistical comparison result line output of going forward side by side.
According to technique scheme as can be known, the present invention carries out control module by state whole test process is controlled, and has realized the automation of test, and each module has good extended attribute, is directed to different platform and all is suitable for.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the structural representation of protocol conformance measurement mechanism of the present invention.
Fig. 2 is the structural representation of a specific embodiment of testing protocol consistency device of the present invention.
Fig. 3 is the schematic flow sheet of a specific embodiment of protocol conformance test method of the present invention.
Embodiment
As shown in Figure 1, be the structural representation of protocol conformance measurement mechanism of the present invention.Among the present invention, the testing protocol consistency device is by forming with lower module, comprising having: primary data configuration module 1, be used for to be configured network parameter (for example: IP address, access interface etc.) simultaneously according to desiring the test contents editor and organizing common large numbers of protocol test use-case; Data memory module 2 links to each other with primary data configuration module 1, and its effect is that pairing operational order data of each test case and experimental data are preserved, and preserves the network parameter of configuration usefulness; Protocol emulation module 4 can be carried out protocol emulation according to the concrete protocol contents of the agreement of required test, can the different protocol contents of emulation; Test case Executive Module 3, link to each other with data memory module 2 and protocol emulation module 4, its effect is according to the operational order data of obtaining from data memory module 2 experimental data to be input to protocol emulation module 4, and under the simulation status of the agreement of required test, carry out, and the result after obtaining to carry out from protocol emulation module 4, i.e. standard feedback message; Message input/output module 5, link to each other with test case Executive Module 3, interface with tested operation system 6 is provided, its effect is according to the operational order data experimental data to be outputed to tested operation system 6, after 6 pairs of experimental datas of tested operation system are carried out, can send feedback message to message input/output module 5, output module 5 is gone in output can send to message storage module 7 with feedback message; Message storage module 7 links to each other with message input/output module 5, is used for the feedback message that storing message input/output module 5 sends; State is carried out control module 9, links to each other with message storage module 7 with test case Executive Module 3, is used for the collaborative work between control module; Message processing module 8, carrying out control module 9 with message storage module 7 and state links to each other, from message storage module 7, extract feedback message, and message content resolved, the standard feedback information that message content after will resolving then and state execution control module 9 obtain from test case Executive Module 3 compares, and comparative result is exported.
As shown in Figure 2, be the structural representation of an embodiment of testing protocol consistency device of the present invention.Present embodiment segments some functional modules among the present invention, and carries out control module 9 by state and coordinate control, this device comprising: test case editor module 10 is used for editor and organizes common large numbers of protocol test use-case; Network data configuration module 11 is used for network parameter (for example: IP address, access interface etc.) is configured; Data memory module 2 links to each other with network data configuration module 11 with test case editor module 10, is used for storing corresponding to the operational order data of test case and the network parameter of experimental data and network data configuration module 11; Protocol emulation module 4 can be carried out protocol emulation according to the concrete protocol contents of the agreement of required test, can the different protocol contents of emulation; Test case Executive Module 3, link to each other with data memory module 2 and protocol emulation module 4, according to the operational order data of from data memory module 2, obtaining experimental data is input to protocol emulation module 4, and under the simulation status of the agreement of required test, carry out, and the result after obtaining to carry out from protocol emulation module 4, i.e. standard feedback message; Message output module 12 links to each other with test case Executive Module 3, and the interface that outputs to tested operation system 6 is provided, and is responsible for according to the operational order data experimental data being outputed to tested operation system 6; Message input module 13 is used to receive the feedback message that tested operation system 6 is beamed back, and feedback message is sent to message storage module 7; Message storage module 7 links to each other with message input module 13, is used for the feedback message that storing message input module 13 sends; Message resolution module 14 links to each other with message storage module 7, extracts feedback message from message storage module 7, and message content is resolved; Message comparison module 15 compares message content after resolving and the standard feedback information that state execution control module 9 obtains from test case Executive Module 3; Output module 16 as a result, and result relatively adds up with message comparison module 15, exports then; State is carried out control module 9, links to each other with test case Executive Module 3, message storage module 7, message resolution module 14 and message comparison module 15, is used for the collaborative work between control module.
In above embodiment, the protocol test that is carried out can be typically applied in the protocol test of instant message (IM) business platform, also can be used in the protocol test of equipment control (DM) business platform, but apparatus of the present invention not merely are confined to the test of these two kinds of agreements, all are suitable for for other platform agreement scheme provided by the invention.
As shown in Figure 3, be the schematic flow sheet of an embodiment of protocol conformance test method of the present invention.
The present embodiment method of testing may further comprise the steps:
In the such scheme, tested operation system in the step 104 can be specially instant message (IM) business platform, it also can be equipment control (DM) business platform, but the inventive method is not confined to the test of these two kinds of business platforms, all is suitable for for other business platform scheme provided by the invention.And the standard feedback information can be kept in by test case Executive Module 3 in step 103, also can be carried out by state and keep in after control module 9 is obtained.
Should be noted that at last: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit; Although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the field are to be understood that: still can make amendment or the part technical characterictic is equal to replacement the specific embodiment of the present invention; And not breaking away from the spirit of technical solution of the present invention, it all should be encompassed in the middle of the technical scheme scope that the present invention asks for protection.
Claims (8)
1. testing protocol consistency device is characterized in that comprising:
One primary data configuration module is used to edit test case and network parameter is configured;
One data memory module links to each other with described primary data configuration module, is used to store operational order data and experimental data and network parameter corresponding to test case;
One protocol emulation module is used for carrying out protocol emulation according to the agreement of required test;
One test case Executive Module, link to each other with described data memory module and protocol emulation module, be used to extract described operational order data and experimental data, and call described protocol emulation module according to described operational order data and experimental data and carry out described test case, obtain the standard feedback message that the described test case of described protocol emulation module output is carried out under the protocol emulation state;
One message input/output module, link to each other with described test case Executive Module, be used to provide interface with tested operation system, and send described experimental data to tested operation system with receive the feedback message of described tested operation system according to the described operational order data that described test case Executive Module obtains;
One message storage module links to each other with described message input/output module, is used to store described feedback message;
One state is carried out control module, links to each other with message storage module with described test case Executive Module, is used for the collaborative work between the control module;
One message processing module, carrying out control module with described message storage module and described state links to each other, be used for described feedback message is resolved, and the standard feedback message that described State Control Executive Module is obtained from described test case Executive Module with resolve after feedback message compare, then comparative result is exported.
2. testing apparatus according to claim 1 is characterized in that described primary data configuration module comprises:
One test case editor module links to each other with described data memory module, is used for editor and tested tissue use-case;
One network data configuration module links to each other with described data memory module, is used for the configuration network relevant parameter.
3. testing apparatus according to claim 1 is characterized in that described message input/output module comprises:
One message output module links to each other with described test case Executive Module, is used to provide and the mutual output interface of described tested operation system, and the described operational order data that obtain according to described test case Executive Module output to tested operation system with experimental data;
One message input module links to each other with described message storage module, is used to provide and the mutual input interface of described tested operation system, and the message that described tested operation system is fed back receives, and sends to described message storage module.
4. testing apparatus according to claim 1 is characterized in that described message processing module comprises:
One message resolution module is carried out control module with described message storage module and described state and is linked to each other, and is used to extract described feedback message and resolves;
One message comparison module is carried out control module with described message resolution module and described state and is linked to each other, and the feedback message that is used for after standard feedback message that described State Control Executive Module is obtained from described test case Executive Module and the parsing compares;
One output module as a result links to each other with described message comparison module, is used for the result of described message comparison module after relatively added up and export.
5. the method for a testing protocol consistency, comprising following steps:
Step 1, primary data configuration module editor test case, the configuration network parameter;
Step 2, data memory module will be stored corresponding to the operational order data of test case and experimental data and network parameter;
Step 3, test case Executive Module invocation protocol emulation module are carried out the test case of calling from described data memory module, and obtain the standard feedback message that the described test case of described protocol emulation module output is carried out under the protocol emulation state;
Step 4, message input/output module output to tested operation system according to the described operational order data that described test case Executive Module obtains with described experimental data;
Step 5, described message input/output module receive the message of tested operation system feedback, and are saved to message storage module;
Step 6, message processing module are resolved the feedback message of described message storage module, and the feedback message state carried out standard feedback message that control module obtains and resolve from described test case Executive Module after compares;
Step 7, the described message processing module statistical comparison result line output of going forward side by side.
6. method of testing according to claim 5, the configuration network parameter is specially IP address and access interface parameter is configured in the wherein said step 1.
7. method of testing according to claim 5, the configuration network parameter is specially IP address or access interface parameter is configured in the wherein said step 1.
8. method of testing according to claim 5 in the wherein said step 4 outputs to described experimental data tested operation system and is specially described experimental data is outputed to instant messaging platform or equipment management information platform.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101302936A CN100385864C (en) | 2005-12-08 | 2005-12-08 | Protocol conformance measuring device and method |
PCT/CN2006/000764 WO2007065321A1 (en) | 2005-12-08 | 2006-04-21 | A protocol conformance test device and a test method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101302936A CN100385864C (en) | 2005-12-08 | 2005-12-08 | Protocol conformance measuring device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1777127A CN1777127A (en) | 2006-05-24 |
CN100385864C true CN100385864C (en) | 2008-04-30 |
Family
ID=36766446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005101302936A Active CN100385864C (en) | 2005-12-08 | 2005-12-08 | Protocol conformance measuring device and method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN100385864C (en) |
WO (1) | WO2007065321A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103986615A (en) * | 2013-02-07 | 2014-08-13 | 国家电网公司 | Testing method and device |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100479393C (en) * | 2006-06-13 | 2009-04-15 | 华为技术有限公司 | Method for realizing executor test |
CN100442729C (en) * | 2006-12-06 | 2008-12-10 | 中国科学院计算技术研究所 | Configuration method of tested system in conformance test of network protocol |
CN101001182B (en) * | 2007-01-12 | 2010-09-29 | 中国电信股份有限公司 | Adaptive test method and system of network management interface test |
CN101262472B (en) * | 2007-03-07 | 2011-09-28 | 力博特公司 | A multi-function protocol parser and its realization method |
CN101150454B (en) * | 2007-07-31 | 2010-12-29 | 中兴通讯股份有限公司 | Testing method for automatic switching optical network |
CN101174899B (en) * | 2007-11-26 | 2010-12-08 | 中兴通讯股份有限公司 | Automatic testing method for service protection and recovery in ASON network |
CN101237454B (en) * | 2008-01-30 | 2011-09-14 | 重庆重邮东电通信技术有限公司 | Design method and system in protocol message editing system |
CN102026257B (en) * | 2009-09-18 | 2013-08-14 | 鼎桥通信技术有限公司 | Automatic test and analysis method for communication protocols |
CN101827379A (en) * | 2010-03-25 | 2010-09-08 | 工业和信息化部电信传输研究所 | General-purpose interoperability test system and test method thereof |
CN103002490B (en) * | 2011-09-08 | 2015-07-29 | 中国移动通信集团公司 | A kind of business simulating test macro and its implementation |
CN103220186A (en) * | 2013-03-21 | 2013-07-24 | 大唐联仪科技有限公司 | Communication equipment testing method and system |
CN103634161B (en) * | 2013-07-31 | 2017-05-03 | 中车青岛四方机车车辆股份有限公司 | Train communication protocol consistency detection device and train communication protocol consistency detection method |
CN103559330B (en) * | 2013-10-10 | 2017-04-12 | 上海华为技术有限公司 | Method and system for detecting data consistency |
CN104601403A (en) * | 2015-01-07 | 2015-05-06 | 上海瀚之友信息技术服务有限公司 | Automatic test system |
CN104734912B (en) * | 2015-02-13 | 2018-12-18 | 大唐联仪科技有限公司 | A kind of method and apparatus of testing protocol consistency |
CN104657272A (en) * | 2015-03-04 | 2015-05-27 | 上海华东电信研究院 | Method and system for judging test items in mobile terminal |
CN106100935A (en) * | 2016-08-06 | 2016-11-09 | 顺德职业技术学院 | Charging equipment of electric automobile communication protocol consistency test device and method |
CN107027140A (en) * | 2017-03-27 | 2017-08-08 | 武汉虹信通信技术有限责任公司 | Protocal layers customer instance consistency maintaining method in a kind of LTE |
CN107065838B (en) * | 2017-06-05 | 2018-04-20 | 广东顺德西安交通大学研究院 | Industrial control system attack detection method with model response analysis is perceived based on instruction |
CN108009088A (en) * | 2017-11-30 | 2018-05-08 | 惠州市德赛西威汽车电子股份有限公司 | A kind of automatization test system of underlying protocol |
CN109831348A (en) * | 2018-12-17 | 2019-05-31 | 北京航天晨信科技有限责任公司 | Automatic jig test method, equipment and system |
CN112328394B (en) * | 2020-11-03 | 2024-03-01 | 北京信而泰科技股份有限公司 | Message sequence processing method, device and readable medium in protocol simulation |
CN115550231A (en) * | 2022-03-31 | 2022-12-30 | 许昌开普检测研究院股份有限公司 | Multi-protocol testing platform based on configuration file and testing method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09181871A (en) * | 1995-12-21 | 1997-07-11 | Ricoh Co Ltd | G3 protocol measuring device |
CN1489306A (en) * | 2002-10-10 | 2004-04-14 | 华为技术有限公司 | Measuring device |
US6804796B2 (en) * | 2000-04-27 | 2004-10-12 | Microsoft Corporation | Method and test tool for verifying the functionality of a software based unit |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6373822B1 (en) * | 1999-01-08 | 2002-04-16 | Cisco Technology, Inc. | Data network protocol conformance test system |
CN1207857C (en) * | 2001-08-08 | 2005-06-22 | 中国科学院计算技术研究所 | Virtual testing system in communication protocal conformance test and its method |
-
2005
- 2005-12-08 CN CNB2005101302936A patent/CN100385864C/en active Active
-
2006
- 2006-04-21 WO PCT/CN2006/000764 patent/WO2007065321A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09181871A (en) * | 1995-12-21 | 1997-07-11 | Ricoh Co Ltd | G3 protocol measuring device |
US6804796B2 (en) * | 2000-04-27 | 2004-10-12 | Microsoft Corporation | Method and test tool for verifying the functionality of a software based unit |
CN1489306A (en) * | 2002-10-10 | 2004-04-14 | 华为技术有限公司 | Measuring device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103986615A (en) * | 2013-02-07 | 2014-08-13 | 国家电网公司 | Testing method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2007065321A1 (en) | 2007-06-14 |
CN1777127A (en) | 2006-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100385864C (en) | Protocol conformance measuring device and method | |
CN108366067B (en) | System and method for testing consistency of universal service protocol of power system | |
CN101110734A (en) | Automatization test approach and system | |
CN106648845A (en) | Distributed type task scheduling system and method | |
CN111522727B (en) | Simulation object test method, device and system | |
US8027435B2 (en) | Method and system for protocol embedded automated test control | |
CN104967732A (en) | Information processing method and electronic device | |
CN107015912A (en) | Realize system, method, device and the electronic equipment of remote debugging | |
CN105260168B (en) | Log-output method and device | |
CN101193154A (en) | Testing data integration system and method for mobile phone product | |
KR20130075252A (en) | Apparatus and method for conformance testing of service choreography | |
CN101141753A (en) | Big traffic automatization testing device and method | |
Kelly et al. | Feature interaction detection using SDL models | |
CN100389627C (en) | Testing equipment of short message interface | |
CN101303706A (en) | Method and system for sharing data between modeling tool and simulation tool | |
CN114168137A (en) | Internet of things system and method adaptive to multiple platforms | |
CN100456866C (en) | Base station simulator and base station testing method | |
CN105141674B (en) | A kind of ability cut-in method and system | |
CN111666097A (en) | Capability domination method and device based on service scene | |
CN105988932B (en) | A kind of test method and system of ESB | |
CN112615745B (en) | Method and system for accessing Internet of things card platform to upstream through parameter configuration | |
CN211454888U (en) | Scheduling data network terminal service access protocol simulation simulator and simulation system | |
CN100531068C (en) | Short message signalling anolog testing system and method | |
CN117714332A (en) | Cloud-edge coordinated power distribution edge gateway on-site automatic test system architecture method | |
KR100248576B1 (en) | Message processor for ain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |