CN102377506A - Test message processing system - Google Patents

Test message processing system Download PDF

Info

Publication number
CN102377506A
CN102377506A CN2010102520322A CN201010252032A CN102377506A CN 102377506 A CN102377506 A CN 102377506A CN 2010102520322 A CN2010102520322 A CN 2010102520322A CN 201010252032 A CN201010252032 A CN 201010252032A CN 102377506 A CN102377506 A CN 102377506A
Authority
CN
China
Prior art keywords
message
module
field
decapsulation
treatment system
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.)
Pending
Application number
CN2010102520322A
Other languages
Chinese (zh)
Inventor
杨曙军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN2010102520322A priority Critical patent/CN102377506A/en
Publication of CN102377506A publication Critical patent/CN102377506A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a test message processing system, comprising a message format definition database, a message capsulation module for finishing message capsulation, a message decapsulation module for finishing message decapsulation and a message processing engine, wherein the message format definition database is used for defining the length, effective value range, default value and processing mode of each field in a message; and the message processing engine is used for inquiring the message format definition database and directing the message capsulation module and the message decapsulation module to correctly execute instructions so as to finish the message capsulation and decapsulation. By using the test message processing system independent of a test platform, a field rule database is introduced, so that the development of a new message is simplified to the maintenance of the message format definition database, thus the supports of the test platform for new protocols can be realized in the process of automated test without processing the test platform.

Description

The test packet treatment system
Technical field
The present invention relates to a kind of test packet treatment system, relate in particular to a kind of test packet treatment system that is applied in the automatic test.
Background technology
Along with the develop rapidly of the communication technology, the research and development of communication equipment must high-quality, high-speed, becomes one of key link that product decides the issue of the battle so how to accomplish the test of new product efficiently.Automatic test is the choosing of ideal, and the test case of communication equipment generally is made up of several parts shown in Figure 1.
The simulation of procotol and the checking of the operating state of equipment under test must be in the face of the encapsulation and the decapsulation process of message.In the face of huge procotol family, the exploitation of test platform will be supported the variety of protocol message, and this has brought huge workload for the exploitation of test platform; The tester difficult point of grasp and the bottleneck of test case have also been become.
In recent years, along with the development of automatization testing technique, some reasonable technical schemes that also occur:
As shown in Figure 2, can provide graphical interfaces to let the tester simply click the mouse and accomplish encapsulation and the decapsulation of using message always.Like the IxExplorer of testing software that IXIA releases, can in the interface, accomplish the encapsulation and the decapsulation of message commonly used.
Can let the structure of tester's GPRS message just can completion group bag like command line mode of the prior art.See also Fig. 3, like the open source software nemesis of Linux.
More than two technology, though all be that the tester provides the scheme that makes things convenient for message encapsulation and decapsulation, their operating process is following: 1) at first tester's query software can be supported the encapsulation and the decapsulation of certain message; 2) accomplish encapsulation and decapsulation according to the software operation instruction; 3) for the unsupported message format of software, the tester is powerless can only to be fed back to the software developer and carries out software upgrading.
Above technology is that the test of common protocol provides a kind of approach, but because test platform has been used C language or the C Plus Plus etc. of more complicated in the development phase, different according to software design, every money software only can be supported the encapsulation and the decapsulation of several kinds of protocol massages.In case will support other agreement then must carry out the renewal of software.Shortcomings such as size of code is big because software itself exists, complex design, programming language profundity, expert that must platform could accomplish this renewal.In the epoch of communication technology develop rapidly, this mechanism has obviously restricted the development of automatic test.
In view of this, be necessary to propose a kind of brand-new test packet treatment system, reduce the maintenance cost of test platform to improve testing efficiency.
Summary of the invention
The object of the present invention is to provide a kind of test packet treatment system, it reduces the test platform maintenance cost, improves testing efficiency.
For realizing above-mentioned purpose, the invention relates to a kind of test packet treatment system, it comprises the message encapsulation module of message format definition database, the encapsulation of completion message, the message decapsulation module and the message processing engine of completion message decapsulation.Length, valid value range, default value and the processing mode of each field in the message format definition database definition message.The message processing engine is responsible for query message formal definition database and is commanded the message encapsulation module and the instruction of message decapsulation module correct execution, to accomplish the encapsulation and the decapsulation of message.
As further improvement of the present invention, said message encapsulation module comprises that the field input interface module of the field value of importing encapsulated message, the message package module of completion message encapsulation reach the message output module with the encapsulated result of specified format outgoing message.
As further improvement of the present invention, said message encapsulated phase, the message processing engine is responsible for the message format definition database is searched, and sends correct processing instruction to field input interface module and message package module.
As further improvement of the present invention, unified TCL (the Tool Command Langulage) language interface of said field input interface module definition is accomplished the setting to each field value of message.
As further improvement of the present invention, said message package module is accomplished the encapsulation of message according to the field value of field input interface module input and the result of message format definition of data library lookup.
As further improvement of the present invention; Said message package module comprises message field (MFLD) processing module, message packing rule processing module and message Knockdown block, and wherein message field (MFLD) processing module query message formal definition database is with the setting of legal value defined with other field attributes completion field values of unpack field; Message packing rule processing module query message formal definition database is handled the field rule that defines in the database; The message Knockdown block is accomplished the encapsulation to message.
As further improvement of the present invention, said message decapsulation module comprises provides the message of message output interface input interface module, incoming message is resolved message decapsulation module of taking out each field value in the message and the field value output module of exporting analysis result.
As further improvement of the present invention, in the said message decapsulation stage, the message processing engine is searched the message format definition database and is connect package module to message and sends correct processing instruction.
As further improvement of the present invention, said message input interface module provides input original message character string, so that message is carried out correct decapsulation, takes out each field value in the message.
As further improvement of the present invention, the result of said field value output module outgoing message decapsulation is to make things convenient for reading and comparison of automatic test platform.
As further improvement of the present invention; Said message decapsulation module comprises that identification message module, field parsing module and field are provided with module, wherein discerns message module query message formal definition database with each field type in the identification message and take out corresponding resolution rules; The field parsing module resolves and takes out the value of each field to field according to rule corresponding in the message format definition database; Field is provided with module and according to the result who resolves the value of field is provided with.
The invention has the beneficial effects as follows: with test platform test packet treatment system independently mutually; Introducing through the field rule database; The exploitation of new message is reduced to the maintenance of message format definition database, need do any improvement and can accomplish test platform in the automatic test course the support of New Deal to test platform.
Description of drawings
Fig. 1 is the composition of communication equipment test case in the prior art;
Fig. 2 is the part sectional drawing of the IxExplorer of testing software that IXIA releases in the prior art;
Fig. 3 is the part sectional drawing of the open source software nemesis of Linux in the prior art;
Fig. 4 is the basic block diagram of test packet treatment system of the present invention;
Fig. 5 is the message encapsulation flow chart of test packet treatment system of the present invention;
Fig. 6 is the message decapsulation flow chart of test packet treatment system of the present invention.
Embodiment
Test packet treatment system of the present invention comprises: comprise field input interface module, message package module and message output module the message encapsulation module, comprise message decapsulation module, message processing engine and the message format definition database of message input interface module, message decapsulation module and field value output module.Wherein:
Message format definition database: defined length, valid value range, default value, processing mode of each field in the message etc.
The message processing engine: main inquiry and the processing of being responsible for the message format definition database, command the correct execution command of other modules.
The field input interface module of message encapsulation module: define unified TCL (Tools Command Language, Tool Command Language) language interface, accomplish setting to each field value of message.
The message package module of message encapsulation module:, accomplish the encapsulation of message according to the field value of input and the result of database lookup.
The message output module of message encapsulation module: with the form of appointment, the result of outgoing message encapsulation.
The message input interface module of message decapsulation module: input original message character string is provided,, takes out the value of each field in each message so that message is carried out correct decapsulation.
The message decapsulation module of message decapsulation module: the original message to input carries out decapsulation, parses the value of each field of message.
The field value output module of message decapsulation module: the result of outgoing message decapsulation makes things convenient for reading and comparison of automatic test platform.
Fig. 4 is a basic block diagram of the present invention, mainly divides two parts:
The encapsulation of 1 message:
Field input interface module S101, the field value of input encapsulated message.
Message package module S102 according to the field that is provided with, accomplishes the encapsulation of message.
Message output module S103 is with the encapsulated result of the form outgoing message of appointment.
Import the field value of encapsulated message and message package module S102 accomplishes message according to the field that is provided with encapsulated phase at field input interface module S101; Message processing engine S105 is responsible for message format definition database S104 is searched, and sends correct processing instruction for field input interface module S101 and message package module S102.
The decapsulation of 2 messages:
Message input module S106 provides the output interface of message.
Message decapsulation module S107 resolves incoming message, takes out the value of each field in the message.
Field value output module S108, the result that output is resolved.
At message deblocking encapsulated phase, message processing engine S105 can search message format definition database S104, and sends correct processing instruction for message decapsulation module S107.
Message package module S102 comprises message field (MFLD) processing module S202, message packing rule processing module S204 and message Knockdown block S205 three sub-module.Fig. 5 shows the step that message package module S102 of the present invention carries out the message encapsulation, and its handling process is following:
Step 1: message field (MFLD) processing module S202, at first search message format definition database S203, the legal value defined of unpack field and other field attributes are accomplished the setting of field value.
Step 2: message packing rule processing module S204, search message format definition database S203, the field processing rule that defines in the database is handled.
Step 3: message Knockdown block S205, accomplish the encapsulation to message.
Message decapsulation module S107 comprises that identification message module S303, field parsing module S304 and field are provided with module S305 three sub-module.Fig. 6 shows the step that message decapsulation module S107 of the present invention carries out the message decapsulation, and its handling process is following:
Step 1: identification message module S303, at first search message format definition database S302, identify in the message each field type and take out corresponding resolution rules in the database.
Step 2: field parsing module S304, according to rule corresponding among the message format definition database S302, field is resolved, take out the value of each field.
Step 3: field is provided with module S305, according to the result who resolves, the value of field is provided with.
Special needs to be pointed out is that only with this test packet treatment system as an example, the test packet treatment system of any kind all is suitable for the principle that the present invention discloses in practical application in the specific embodiment of the invention.For the person of ordinary skill of the art, that under instruction of the present invention, is done changes to equivalence of the present invention, must be included in the scope that claim of the present invention advocates.

Claims (11)

1. test packet treatment system, it comprises the message format definition database, accomplish the message encapsulation module of message encapsulation, accomplish the message decapsulation module and the message processing engine of message decapsulation; Length, valid value range, default value and the processing mode of each field in the message format definition database definition message; The message processing engine is responsible for query message formal definition database and is commanded the message encapsulation module and the instruction of message decapsulation module correct execution, to accomplish the encapsulation and the decapsulation of message.
2. test packet treatment system as claimed in claim 1; It is characterized in that said message encapsulation module comprises that the field input interface module of the field value of importing encapsulated message, the message package module of completion message encapsulation reach the message output module with the encapsulated result of specified format outgoing message.
3. test packet treatment system as claimed in claim 2; It is characterized in that; Said message encapsulated phase, message processing engine are responsible for the message format definition database is searched, and send correct processing instruction to field input interface module and message package module.
4. test packet treatment system as claimed in claim 2 is characterized in that, unified TCL (the Tool Command Langulage) language interface of said field input interface module definition is accomplished the setting to each field value of message.
5. test packet treatment system as claimed in claim 2 is characterized in that, said message package module is accomplished the encapsulation of message according to the field value of field input interface module input and the result of message format definition of data library lookup.
6. test packet treatment system as claimed in claim 2; It is characterized in that; Said message package module comprises message field (MFLD) processing module, message packing rule processing module and message Knockdown block, and wherein message field (MFLD) processing module query message formal definition database is with the setting of legal value defined with other field attributes completion field values of unpack field; Message packing rule processing module query message formal definition database is handled the field rule that defines in the database; The message Knockdown block is accomplished the encapsulation to message.
7. test packet treatment system as claimed in claim 1; It is characterized in that said message decapsulation module comprises provides the message of message output interface input interface module, incoming message is resolved message decapsulation module of taking out each field value in the message and the field value output module of exporting analysis result.
8. test packet treatment system as claimed in claim 7 is characterized in that, in the said message decapsulation stage, the message processing engine is searched the message format definition database and connect package module to message and sends correct processing instruction.
9. test packet treatment system as claimed in claim 7 is characterized in that, said message input interface module provides input original message character string, so that message is carried out correct decapsulation, takes out each field value in the message.
10. test packet treatment system as claimed in claim 7 is characterized in that, the result of said field value output module outgoing message decapsulation is to make things convenient for reading and comparison of automatic test platform.
11. test packet treatment system as claimed in claim 7; It is characterized in that; Said message decapsulation module comprises that identification message module, field parsing module and field are provided with module, wherein discerns message module query message formal definition database with each field type in the identification message and take out corresponding resolution rules; The field parsing module resolves and takes out the value of each field to field according to rule corresponding in the message format definition database; Field is provided with module and according to the result who resolves the value of field is provided with.
CN2010102520322A 2010-08-12 2010-08-12 Test message processing system Pending CN102377506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102520322A CN102377506A (en) 2010-08-12 2010-08-12 Test message processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102520322A CN102377506A (en) 2010-08-12 2010-08-12 Test message processing system

Publications (1)

Publication Number Publication Date
CN102377506A true CN102377506A (en) 2012-03-14

Family

ID=45795560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102520322A Pending CN102377506A (en) 2010-08-12 2010-08-12 Test message processing system

Country Status (1)

Country Link
CN (1) CN102377506A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049256A (en) * 2015-08-10 2015-11-11 北京思特奇信息技术股份有限公司 Method and system for realizing universal custom interface message
CN105279032A (en) * 2015-11-24 2016-01-27 浪潮(北京)电子信息产业有限公司 Method and apparatus for synchronizing interface message and javaBean
CN105512102A (en) * 2015-12-01 2016-04-20 北京交控科技股份有限公司 Data parse method and system
CN105528294A (en) * 2015-12-29 2016-04-27 广东金赋信息科技有限公司 Method and system for automatically generating interface testing case
CN106790058A (en) * 2016-12-20 2017-05-31 武汉数字工程研究所(中国船舶重工集团公司第七0九研究所) A kind of ADS B message data parsing method and systems
CN108184174A (en) * 2017-12-29 2018-06-19 武汉长光科技有限公司 A kind of method of self-defined OAM under EPON system
CN108769028A (en) * 2018-05-31 2018-11-06 阿里巴巴集团控股有限公司 Assemble the method and device of message

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008061340A1 (en) * 2006-11-21 2008-05-29 Etaliq Inc. Automated testing and control of networked devices
CN101262472A (en) * 2007-03-07 2008-09-10 力博特公司 A multi-function protocol parser and its realization method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008061340A1 (en) * 2006-11-21 2008-05-29 Etaliq Inc. Automated testing and control of networked devices
CN101262472A (en) * 2007-03-07 2008-09-10 力博特公司 A multi-function protocol parser and its realization method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049256B (en) * 2015-08-10 2018-11-13 北京思特奇信息技术股份有限公司 A kind of general self defined interface message realization method and system
CN105049256A (en) * 2015-08-10 2015-11-11 北京思特奇信息技术股份有限公司 Method and system for realizing universal custom interface message
CN105279032A (en) * 2015-11-24 2016-01-27 浪潮(北京)电子信息产业有限公司 Method and apparatus for synchronizing interface message and javaBean
CN105279032B (en) * 2015-11-24 2019-06-28 浪潮(北京)电子信息产业有限公司 A kind of method and device of sync cap message and javaBean
CN105512102A (en) * 2015-12-01 2016-04-20 北京交控科技股份有限公司 Data parse method and system
CN105528294A (en) * 2015-12-29 2016-04-27 广东金赋信息科技有限公司 Method and system for automatically generating interface testing case
CN105528294B (en) * 2015-12-29 2018-05-25 广东金赋科技股份有限公司 The method and system that a kind of interface testing use-case automatically generates
CN106790058A (en) * 2016-12-20 2017-05-31 武汉数字工程研究所(中国船舶重工集团公司第七0九研究所) A kind of ADS B message data parsing method and systems
CN106790058B (en) * 2016-12-20 2019-09-06 武汉数字工程研究所(中国船舶重工集团公司第七0九研究所) A kind of ADS-B message data parsing method and system
CN108184174A (en) * 2017-12-29 2018-06-19 武汉长光科技有限公司 A kind of method of self-defined OAM under EPON system
CN108184174B (en) * 2017-12-29 2021-05-18 武汉长光科技有限公司 Method for customizing OAM (operation administration and maintenance) under EPON (Ethernet Passive optical network) system
CN108769028A (en) * 2018-05-31 2018-11-06 阿里巴巴集团控股有限公司 Assemble the method and device of message
CN108769028B (en) * 2018-05-31 2020-09-29 阿里巴巴集团控股有限公司 Method and device for assembling message

Similar Documents

Publication Publication Date Title
CN102377506A (en) Test message processing system
CN104065545B (en) RS485 bus communication methods based on Modbus agreements and the power electronic system based on the means of communication
US7739696B2 (en) Message translation systems and methods
CN106777101B (en) Data processing engine
CN105590051B (en) Trusted application for credible performing environment generates and installation method
CN110430219A (en) Method and system of the various protocols internet of things equipment from adaptation
CN104461516B (en) A kind of data processing method and device
CN106656980A (en) Method for automatically configuring accessing control of Docker container
CN107632817A (en) A kind of Mobile solution efficient iterative Spark frameworks
CN102480467A (en) SOC (System on a Chip) software and hardware collaborative simulation verification method based on network communication protocol
CN105677303A (en) Configuration software picture editing tool design method
CN101980546B (en) Intelligent network platform, service execution method and method for analyzing service abnormality
CN100407663C (en) Universal testing system and method for telecommunication intelligent service
CN106850559B (en) Extensible network protocol analysis system and method
CN102957568B (en) A kind of method for managing and monitoring of multi node server
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN107301067A (en) Beidou subscriber machine remote update system and its upgrade method based on IAP technologies
CN104063227B (en) A kind of instruction learning method based on Internet of Things
CN116708592A (en) Configurable communication protocol interaction method and system
CN105791011A (en) System and method for realizing unified network management platform based on Docker
CN103984540A (en) Method and device for generating hardware interface running program
CN103546527B (en) A kind of extendible industrial configuration or simulation software communication method
CN101908985A (en) Message checking method and device
CN106301833A (en) A kind of transformer station schedule information method of testing
CN104578418A (en) Configuration method and system of automatic power distribution equipment based on 101 protocols, and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120314