CN111385164A - Communication protocol gateway function test method for actively reporting multi-protocol free combination message - Google Patents

Communication protocol gateway function test method for actively reporting multi-protocol free combination message Download PDF

Info

Publication number
CN111385164A
CN111385164A CN201811652972.3A CN201811652972A CN111385164A CN 111385164 A CN111385164 A CN 111385164A CN 201811652972 A CN201811652972 A CN 201811652972A CN 111385164 A CN111385164 A CN 111385164A
Authority
CN
China
Prior art keywords
message
information
protocol
reporting
communication protocol
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.)
Granted
Application number
CN201811652972.3A
Other languages
Chinese (zh)
Other versions
CN111385164B (en
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.)
Jiangsu Dina Digital Technology Co ltd
Original Assignee
Jiangsu Dina Digital Technology 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 Jiangsu Dina Digital Technology Co ltd filed Critical Jiangsu Dina Digital Technology Co ltd
Priority to CN201811652972.3A priority Critical patent/CN111385164B/en
Publication of CN111385164A publication Critical patent/CN111385164A/en
Application granted granted Critical
Publication of CN111385164B publication Critical patent/CN111385164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses a communication protocol gateway function test method for actively reporting multiprotocol free combination messages, which belongs to the technical field of gateway test and comprises the following steps of message content editing and message data combination reporting, wherein the message content editing comprises the following steps: defining a link mode and a link protocol of a communication protocol gateway, whether response information exists or not and the like; defining field information of a communication protocol; defining the scene information of the report message, the message data combination and report comprises the following steps: defining each protocol link information; according to the information of protocol, message, etc., resolving into different instructions for processing; and combining and reporting the messages. The invention tests various service scenes under the condition of not needing equipment or not having equipment to report data; the testing cost is saved, and the mobile flow fee is not needed; the testing speed is accelerated; and various protocols are adapted.

Description

Communication protocol gateway function test method for actively reporting multi-protocol free combination message
Technical Field
The invention relates to a gateway test method, in particular to a communication protocol gateway function test method for actively reporting a multi-protocol free combination message, belonging to the technical field of gateway test.
Background
The existing gateway test tools on the market include the following disadvantages:
1. the single message to be sent is manually translated into 16-system characters by itself and is directly sent, such as 'TCPUDPBg';
2. according to a certain standard protocol, a single message item needing to be reported is predefined on a main interface, and a tool needs to be upgraded every time a new change occurs;
3. the test method can only adapt to the test under a single message and a single scene, and the time for rewriting the tool is longer; a new protocol is provided and a set of tools needs to be newly developed.
It is necessary to regenerate a function testing tool to quickly test a communication protocol gateway according to different protocols and under the condition of protocol change.
Disclosure of Invention
The invention mainly aims to provide a communication protocol gateway function test method for actively reporting a multi-protocol free combination message, which tests various service scenes under the condition of not needing equipment or not having equipment reporting data; the testing cost is saved, and the mobile flow fee is not needed; the test speed is accelerated to adapt to various protocols.
The purpose of the invention can be achieved by adopting the following technical scheme:
a method for testing the gateway function of communication protocol actively reporting multi-protocol free combination message includes editing message content and combining and reporting message data, the message content includes the following steps:
step A1: defining a link mode and a link protocol of a communication protocol gateway, whether response information exists or not and the like;
step A2: defining field information of a communication protocol;
step A3: and defining the scene information of the report message.
All the information of the single message editing steps is stored in a database.
The message combination and reporting comprises the following steps:
step B1: defining each protocol link information;
step B2: according to the information of protocol, message, etc., resolving into different instructions for processing;
step B3: and combining and reporting the messages.
Preferably, the step a 2: the field information for defining the communication protocol comprises information for defining main fields of a message header, a message tail and the like of the communication protocol and information for defining specific message fields of the communication protocol.
Preferably, the step a 3: the scene information defining the report message comprises the scene information defining the communication protocol continuous report message of the continuous message; defining a use case of a communication protocol single message; defining the message field value range of the communication protocol single message in the continuous reporting scene.
Preferably, the step B3: the message combination and reporting includes single message combination and reporting and continuous message combination and reporting.
Preferably, the single message combination and the report include a single message combination condition, a specific value of each field in the message is generated according to the use case information, specific data of the message is combined according to the defined message fields, and final message data is combined according to the protocol fields; and finding out the link information according to the protocol and reporting the message.
Preferably, the continuous message combination and report includes a continuous message combination condition, and the continuous messages are analyzed into individual single messages according to the continuous messages; processing each single message, generating a specific value of each field in the single message according to the range information of the field of the single message, combining specific data of the message according to the defined field of the single message, combining the specific data of the message into final data of the single message according to the field of the protocol, finding out link information according to the protocol, and reporting the message.
The invention has the beneficial technical effects that: according to the communication protocol gateway function testing method for actively reporting the multi-protocol free combination message, various service scenes are tested under the condition that equipment does not need or does not have equipment reporting data; the testing cost is saved, and the mobile flow fee is not needed; the testing speed is accelerated; and various protocols are adapted.
Detailed Description
In order to make the technical solutions of the present invention more clear and definite for those skilled in the art, the present invention is further described in detail with reference to the following examples, but the embodiments of the present invention are not limited thereto.
The method for testing the function of the communication protocol gateway actively reporting the multi-protocol free combination message provided by the embodiment comprises the steps of editing message contents, combining and reporting message data, wherein the step of editing the message contents comprises the following steps:
step A1: defining a link mode and a link protocol of a communication protocol gateway, whether response information exists or not and the like;
step A2: defining field information of a communication protocol, wherein the field information of the communication protocol comprises information of main fields such as a message header, a message tail and the like of the communication protocol and information of specific message fields of the communication protocol;
step A3: defining scene information of a report message, wherein the scene information of the report message comprises scene information of a continuous report message of a continuous communication protocol of the continuous report message; defining a use case of a communication protocol single message; defining the message field value range of the communication protocol single message in a continuous reporting scene;
all the information of the single message editing step is stored in a database;
the message execution comprises the following steps:
step B1: defining each protocol link information;
step B2: according to the information of protocol, message, etc., resolving into different instructions for processing;
step B3: and combining and reporting the messages, wherein the combining and reporting of the messages comprise combining and reporting of single messages and combining and reporting of continuous messages.
In this embodiment, the single-message combining and reporting includes a single-message processing condition, a specific value of each field in the message is generated according to the use case information, specific data of the message is combined according to the defined message fields, and final message data is combined according to the protocol fields; and finding out the link information according to the protocol and reporting the message. And combining and reporting the messages.
In this embodiment, the continuous message combination and reporting includes the continuous message processing condition, and the continuous messages are analyzed into individual single messages according to the continuous messages; processing each single message, generating a specific value of each field in the single message according to the range information of the field of the single message, combining specific data of the message according to the defined field of the single message, combining the specific data of the message into final data of the single message according to the field of the protocol, finding out link information according to the protocol, and reporting the message. And decomposing the continuous messages.
To sum up, in this embodiment, according to the method for testing a function of a communication protocol gateway for actively reporting a multiprotocol free combination packet of this embodiment, various service scenarios are tested without requiring or without equipment to report data; the testing cost is saved, and the mobile flow fee is not needed; the testing speed is accelerated; and various protocols are adapted.
The above description is only for the purpose of illustrating the present invention and is not intended to limit the scope of the present invention, and any person skilled in the art can substitute or change the technical solution of the present invention and its conception within the scope of the present invention.

Claims (6)

1. A method for testing the gateway function of communication protocol actively reporting multi-protocol free combination message includes message content editing and message data combination and reporting, and is characterized in that: the message content editing comprises the following steps:
step A1: defining a link mode and a link protocol of a communication protocol gateway, whether response information exists or not and the like;
step A2: defining field information of a communication protocol;
step A3: defining scene information of a report message;
all the information of the single message editing step is stored in a database;
the message data combination and report comprises the following steps:
step B1: defining each protocol link information;
step B2: according to the information of protocol, message, etc., resolving into different instructions for processing;
step B3: and combining and reporting the messages.
2. The method for testing the gateway function of a communication protocol according to claim 1, wherein the step a2 is as follows: the field information for defining the communication protocol comprises information for defining main fields of a message header, a message tail and the like of the communication protocol and information for defining specific message fields of the communication protocol.
3. The method for testing the gateway function of a communication protocol according to claim 1, wherein the step a3 is as follows: defining the scene information of the report message comprises defining the scene information of the continuous report message of the communication protocol; defining a use case of a communication protocol single message; defining the message field value range of the communication protocol single message in the continuous reporting scene.
4. The method for testing the gateway function of a communication protocol according to claim 1, wherein the step B3 is as follows: the message combination and reporting includes single message combination and reporting and continuous message combination and reporting.
5. The method according to claim 1, wherein the single message combination and report includes a single message combination condition, the specific value of each field in the message is generated according to the case information, the specific data of the message is combined according to the defined message fields, and the final message data is combined according to the protocol fields; and finding out the link information according to the protocol and reporting the message. And combining and reporting the messages.
6. The method as claimed in claim 1, wherein the combining and reporting of the continuous messages includes processing the continuous messages, and parsing the continuous messages into individual single messages; processing each single message, generating a specific value of each field in the single message according to the range information of the field of the single message, combining specific data of the message according to the defined field of the single message, combining the specific data of the message into final data of the single message according to the field of the protocol, finding out link information according to the protocol, and reporting the message. And decomposing the continuous messages.
CN201811652972.3A 2018-12-29 2018-12-29 Communication protocol gateway testing method for actively reporting multi-protocol free combination message Active CN111385164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811652972.3A CN111385164B (en) 2018-12-29 2018-12-29 Communication protocol gateway testing method for actively reporting multi-protocol free combination message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811652972.3A CN111385164B (en) 2018-12-29 2018-12-29 Communication protocol gateway testing method for actively reporting multi-protocol free combination message

Publications (2)

Publication Number Publication Date
CN111385164A true CN111385164A (en) 2020-07-07
CN111385164B CN111385164B (en) 2021-11-30

Family

ID=71218426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811652972.3A Active CN111385164B (en) 2018-12-29 2018-12-29 Communication protocol gateway testing method for actively reporting multi-protocol free combination message

Country Status (1)

Country Link
CN (1) CN111385164B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030035553A1 (en) * 2001-08-10 2003-02-20 Frank Baumgarte Backwards-compatible perceptual coding of spatial cues
CN101196817A (en) * 2008-01-04 2008-06-11 福建星网锐捷网络有限公司 Test case generating method and system
CN101312404A (en) * 2007-05-24 2008-11-26 杭州华三通信技术有限公司 SNMP message processing method and apparatus
EP2245559A2 (en) * 2008-02-22 2010-11-03 Nokia Corporation Systems and methods for providing information in a rich media environment
CN102394795A (en) * 2011-11-04 2012-03-28 盛科网络(苏州)有限公司 Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor
CN104517056A (en) * 2014-12-09 2015-04-15 北京邮电大学 Method for extending Peach platform and testing multiple network message fields
CN105099833A (en) * 2015-09-14 2015-11-25 北京华青融天技术有限责任公司 Business test method , device and system
CN105490881A (en) * 2015-12-09 2016-04-13 北京交控科技股份有限公司 Configurable data interface test method and system
CN106781796A (en) * 2016-12-22 2017-05-31 国网浙江省电力公司培训中心 The communication protocol Training Methodology of connected applications scene, system and scene relating method
CN108227519A (en) * 2017-12-29 2018-06-29 中国铁道科学研究院通信信号研究所 CTCS2-200C type train control on board equipment automation simulation test platforms
CN108737003A (en) * 2017-04-25 2018-11-02 是德科技新加坡(控股)私人有限公司 For testing time sensitive network(TSN)Method, system and the computer-readable medium of element
CN108924133A (en) * 2018-06-29 2018-11-30 北京明朝万达科技股份有限公司 A kind of network data leakage prevention method and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030035553A1 (en) * 2001-08-10 2003-02-20 Frank Baumgarte Backwards-compatible perceptual coding of spatial cues
CN101312404A (en) * 2007-05-24 2008-11-26 杭州华三通信技术有限公司 SNMP message processing method and apparatus
CN101196817A (en) * 2008-01-04 2008-06-11 福建星网锐捷网络有限公司 Test case generating method and system
EP2245559A2 (en) * 2008-02-22 2010-11-03 Nokia Corporation Systems and methods for providing information in a rich media environment
CN102394795A (en) * 2011-11-04 2012-03-28 盛科网络(苏州)有限公司 Throughput performance test processing engine embedded into Ethernet exchange chip and implementation method therefor
CN104517056A (en) * 2014-12-09 2015-04-15 北京邮电大学 Method for extending Peach platform and testing multiple network message fields
CN105099833A (en) * 2015-09-14 2015-11-25 北京华青融天技术有限责任公司 Business test method , device and system
CN105490881A (en) * 2015-12-09 2016-04-13 北京交控科技股份有限公司 Configurable data interface test method and system
CN106781796A (en) * 2016-12-22 2017-05-31 国网浙江省电力公司培训中心 The communication protocol Training Methodology of connected applications scene, system and scene relating method
CN108737003A (en) * 2017-04-25 2018-11-02 是德科技新加坡(控股)私人有限公司 For testing time sensitive network(TSN)Method, system and the computer-readable medium of element
CN108227519A (en) * 2017-12-29 2018-06-29 中国铁道科学研究院通信信号研究所 CTCS2-200C type train control on board equipment automation simulation test platforms
CN108924133A (en) * 2018-06-29 2018-11-30 北京明朝万达科技股份有限公司 A kind of network data leakage prevention method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ZHONG DONG,: ""A new data transmission mechanism in aeronautical ad hoc network"", 《 2014 INTERNATIONAL CONFERENCE ON BIG DATA AND SMART COMPUTING (BIGCOMP)》 *
习成,: ""基于CAN总线的乘用车信息通信系统试验研究"", 《中国优秀硕士学位论文全文数据库-工程科技Ⅱ辑》 *
刘新娥,: ""基于同心圆模型的测试用例管理方法"", 《计算机工程与应用》 *

Also Published As

Publication number Publication date
CN111385164B (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN105684382A (en) Packet control method, switch and controller
US20190230005A1 (en) Service function chain detection path method and device
CN105515847A (en) Terminal fault processing method, device and system
CN109167762B (en) IEC104 message checking method and device
CN109218058B (en) Method and system for acquiring OAM information and computer readable storage medium
CN109656792A (en) Applied performance analysis method, apparatus, computer equipment and storage medium based on network call log
CN113900941A (en) Micro-service processing method, micro-service system, electronic device and storage medium
US20240106751A1 (en) Method and apparatus for processing detnet data packet
CN109150794B (en) VoLTE voice service quality analysis processing method and device
CN105260168B (en) Log-output method and device
US9361581B2 (en) Method for loading a rule set in a rule engine
CN103200107B (en) Message transmitting method and message transmitting equipment
CN110113222B (en) Method and device for acquiring link bandwidth utilization rate and terminal
CN111385164B (en) Communication protocol gateway testing method for actively reporting multi-protocol free combination message
CN112350890B (en) Message processing method, device, server and storage medium
CN102143010A (en) Method for detecting message revision, sender equipment and receiver equipment
CN104954257A (en) Message forwarding system and method
CN102420809A (en) Terminal managing system, server and method
CN110445658B (en) Message processing method and system
US9900180B2 (en) Information processing method and switch
CN109495302B (en) Link monitoring method, cloud server and computer readable storage medium
CN114070624B (en) Message monitoring method, device, electronic equipment and medium
CN109246117A (en) A kind of analysis method, system and the relevant apparatus of pcap data message
CN102868559A (en) Method and system for generating weblog data
CN105635225A (en) Method and system of using mobile terminal to access mobile internet-based server and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant