WO2007056921A1 - A protocol testing device and the protocol testing method thereof - Google Patents

A protocol testing device and the protocol testing method thereof Download PDF

Info

Publication number
WO2007056921A1
WO2007056921A1 PCT/CN2006/002666 CN2006002666W WO2007056921A1 WO 2007056921 A1 WO2007056921 A1 WO 2007056921A1 CN 2006002666 W CN2006002666 W CN 2006002666W WO 2007056921 A1 WO2007056921 A1 WO 2007056921A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
protocol
unit
testing
test
Prior art date
Application number
PCT/CN2006/002666
Other languages
French (fr)
Chinese (zh)
Inventor
Zongsheng Zhang
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2007056921A1 publication Critical patent/WO2007056921A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of testing technologies, and in particular, to a protocol testing device and a testing method. Background of the invention
  • FIG. 1 A schematic diagram of a next-generation (NGN) network structure as shown in FIG. 1, in which a protocol described by an ABNF grammar (AB P is a grammar format describing a communication protocol) between a media gateway (MG) and a soft switch (Soft Switch) is used.
  • AB P is a grammar format describing a communication protocol
  • MGCP Media Gateway Control Protocol
  • SIP Session Initiation Protocol
  • MG includes relay media gateway (TMG), access media gateway (AMG) ), integrated access equipment (IAD), etc.
  • TMG Media Gateway Control Protocol
  • AMG access media gateway
  • IAD integrated access equipment
  • the network contains different devices, and different protocols or signaling may be used between different devices.
  • the protocol for completing the call message exchange includes narrowband SS7 (Integrated Services Digital Network User Part Protocol, ISUP), and broadband signaling MTP2 user adaptation.
  • Layer MTP2 User Adaption Layer, M2UA
  • SCTP Stream Control Transport Protocol
  • H.248 protocol H.248 protocol
  • MGCP protocol MGCP protocol
  • the current protocol test usually uses software to simulate a device sending a message to the peer to test the protocol running between the peer device.
  • the following is an example of testing the TMG.
  • the test set simulates a Soft Switch and forms a network with the TMG.
  • the TMG registers with the test device that simulates the softswitch; after that, the test device sends a message to the TMG based on the customized process, and receives the message returned by the TMG, and then analyzes the message for testing purposes.
  • the test device simulates a softswitch to send an H.248 message and receives the message returned by the TMG, and then the test device can view and analyze whether the message of the process meets the requirements of the protocol.
  • This test method requires the test device to simulate a device in the network to complete the test. It is difficult to fully test the entire process, and it is more difficult to complete the protocol test in a real network. This is because: For the test under this method, a complete process is required on the test device to perform process-based information interaction with the device under test, and the process is usually flexible and complicated, and the processes of different vendors may not be the same. Therefore, the simulation software is difficult to adapt to different manufacturers' equipment, and it is difficult to achieve complete testing. On the other hand, because the stored process cannot include all the real situations, it is impossible to simulate the real situation and handle some special tests in real situations. For example, when signaling between a softswitch and a PSTN network is to be tested, but a signaling gateway (SG) is required, the signaling at this time becomes complicated and it is difficult to complete the test by the existing test device. Summary of the invention
  • the main object of the present invention is to provide a protocol testing device and a testing method for implementing the completeness of the test, and to quickly simulate the test under special circumstances.
  • the protocol testing device provided by the present invention includes:
  • a first interface unit configured to receive a message of the external network, and then send the message to the protocol stack analysis unit, and send the message sent by the protocol test unit to the external network;
  • a protocol stack analyzing unit configured to parse the message sent by the first/second interface unit, and transmit the parsed message to the protocol testing unit;
  • the protocol test unit is configured to analyze the first interface unit message sent by the protocol stack analysis unit to verify whether the message meets the requirements, and restore the parsed first interface unit message to the original message and send the message to the first
  • the second interface unit is further configured to: analyze the second interface unit message sent by the protocol stack analysis unit to verify that the request meets the requirement, and restore the parsed second interface unit message to the original message and send the message to the original message.
  • the first interface unit is further configured to: analyze the second interface unit message sent by the protocol stack analysis unit to verify that the request meets the requirement, and restore the parsed second interface unit message to the original message and send the message to the original message.
  • the device may further comprise:
  • control unit configured to control coordination of each unit of the protocol testing device.
  • the protocol testing unit further includes a message editing module, configured to edit the parsed message according to a test rule.
  • the device further comprises:
  • a management unit configured to implement modification of the test rule, and report the analysis result of the protocol test unit to the user.
  • the first/second interface unit comprises: a serial communication port COM component interface and/or a terminal control language TCL protocol interface and/or an object oriented interpretive language Python protocol interface.
  • a protocol testing method provided by the present invention connects a protocol testing device between a source device and a destination device, and the method includes the following steps:
  • the method further includes: modifying the response message message to a response message message of the first message message, and sending the response message message to the source device.
  • the steps of editing the content of the ⁇ article include: Parsing out the received components of the first message packet; replacing, adding, or deleting the content of one or more components of the parsed message according to the test rule.
  • the steps of the parsing are:
  • the received first message packet is parsed using a message structure specified by the protocol.
  • the step of analyzing whether the response message message meets the message to be received specified by the test rule includes:
  • a method for analyzing whether each component of the message structure conforms to the requirements of the protocol; or / and, sex; or / and, the manner of obtaining the message includes one of the following ways:
  • the method further includes:
  • the result of analyzing the response message is provided to the user.
  • Figure 1 is a schematic diagram of an NGN network.
  • FIG. 2 is a schematic diagram of testing the TMG in the prior art.
  • Figure 3 is a structural view of the test apparatus of the present invention.
  • Figure 4 is a schematic diagram of the test device of the present invention placed in a network when tested.
  • Figure 5 is a flow chart of testing of the test device of the present invention. . Ways of implementing the invention
  • the invention provides a protocol testing device and a testing method.
  • the protocol test apparatus of the present invention is placed between two devices to be tested in the network, such as between device A and device B.
  • the protocol testing device of the present invention receives the message sent by the device A to the testing device, and the testing device modifies the received message message according to the test request, and then sends the message message to the device B; the device B sends a message to the testing device, and the testing device pairs
  • the message is analyzed according to the foregoing test requirements, and then the message message is modified and forwarded to device A to complete the test of the communication protocol between the two devices.
  • the present invention can quickly test whether a protocol transmission is normal by capturing, discriminating, modifying, transmitting a message, and modifying a protocol flow or protocol field.
  • FIG. 3 is a structural diagram of a protocol testing apparatus according to the present invention, including: a first interface unit, a protocol stack analyzing unit, a protocol testing unit, a second interface unit, a control unit, and a management unit. Among them, each unit is detailed as follows:
  • the first interface unit and the second interface unit are configured to send and receive protocol packets, and when receiving the message from the outside of the protocol testing device, notify the control unit to send the message to the protocol stack under the control of the control unit. unit.
  • the interface of the interface unit may be a COM component interface, a control language (TCL) protocol interface, an object-oriented explanatory language (Python) protocol interface, etc., depending on the test protocol.
  • the protocol stack analysis unit is configured to parse the received message according to a certain grammar, such as the ABNF grammar, parse the structure of the message, and send the parsed message to the protocol test unit under the control of the control unit. .
  • the parsing refers to parsing a received series of string codes into a structure required by the protocol, such as: parsing the received 3D68S6H3G string into an ABN grammar into: source address, destination address, protocol content, and the like. Since the transmitted information is composed according to the grammar of the protocol specified by the protocol used, the structure of the protocol must be resolved according to the prescribed grammar.
  • the protocol testing unit is configured to analyze the parsed message according to the predetermined rule, and analyze whether the components of the parsed packet structure conform to the format required by the protocol, and whether the packet meets the content of the message required by the process, etc. And edit the information in the message structure (including replacement, addition, deletion) according to the set requirements, for example, replace the H248 protocol message mid field [129.10.10.1]: 2944 with [129.1.1.1]: 2940,
  • the edited message is reassembled into a message that can be transmitted on the line, such as being restored to a string code, and sent to the interface unit.
  • the different requirements for editing the information in the message structure can be written as different scripts, and stored in the protocol test unit in advance, and the corresponding scripts can be called when needed.
  • the script may include a script that does not perform any operation, and the edit may also include no change to the content of the file.
  • the script is called to verify whether the protocol message in the original state is normal.
  • a control unit that controls the coordinated actions of the various units throughout the process. It includes a series of actions such as control interface unit receiving and forwarding packets, control protocol stack analysis unit execution analysis, control protocol test unit analysis test, modification, and reorganization.
  • the concrete implementation of these actions can be implemented by calling the corresponding script stored by the control unit.
  • the invention analyzes and judges the response message of the message sent after editing by analyzing and editing the message, thereby realizing the test of the protocol.
  • the management unit provides an interface to the control unit, and the script file can be modified through the management unit.
  • the component is sent to the protocol test unit and the control unit, and the protocol test unit analysis result is provided to the user through the management unit.
  • the snap-in also provides a user interface that can be used to edit TCL scripts, as well as script use case management, as well as script control such as script run and stop; the snap-in also includes a display unit for displaying information during the run.
  • the H.248 protocol test is used as an example to test whether the ADD message delivered by the softswitch in a call conforms to the protocol, and whether the ADD message processing of the error version number sent by the TMG is correct. .
  • FIG. 4 a schematic diagram of the test apparatus of the present invention is placed in a network during testing.
  • the test apparatus of the present invention intercepts the softswitch (ie, the MGC described later, and the MGC is controlled by the media gateway).
  • the H.248 message which is part of the softswitch, is found to be an ADD message, and according to the grammar format requirements of the protocol, check whether the data of each field constituting the message meets the requirements of the protocol, so as to complete the test requirement for the softswitch; Then, according to the test requirement, the version number of the message is modified and then forwarded to the TMG, so that after receiving the response (Replay) message of the TMG, according to the grammar format requirement of the protocol, it is checked whether the response message is correct, and the test is completed.
  • the first interface unit of the protocol testing device is an MG interface unit
  • the second interface unit is an MGC interface unit.
  • SS7 ISUP.TUP
  • PRA PRA
  • H.248 messages pass through the protocol test device.
  • the IAM signaling is transmitted to the softswitch through the SG and the IP network.
  • the softswitch is implemented by the MGC and will not be described later.
  • the MGC sends the H.248 ADD message to the TMG in response to the message, the message is obtained by the protocol testing device of the present invention and processed, and includes the following steps:
  • Step 501 The MG interface unit of the protocol testing device receives the message packet, inserts the queue, and then notifies the control unit.
  • the control unit defines the command interface according to the script in advance.
  • the function sends the message to the protocol stack analysis unit.
  • Step 502 After receiving the packet, the protocol stack analyzing unit parses the packet through a unified packet parsing interface.
  • the protocol uses ABNF grammar format to describe, so the parsing result is parsing AB P A grammar format message.
  • the received series of string codes are parsed out of the grammar format required by the protocol, such as:
  • the 3D68S6H3G is parsed into: source address, destination address, protocol content, and the like. And according to the control of the control unit, the parsed message is sent to the protocol test unit.
  • ABNF protocols can be handled by replacing/loading different ABNF protocol stacks.
  • the protocol message can also be parsed by string matching; correspondingly, the message is constructed by string synthesis in a later step.
  • Step 503 The protocol testing unit analyzes whether the packet is correct according to a preset rule, including analyzing the structure of the packet, whether the content of the packet is reasonable, and the like, such as whether the required fields (source address/destination address, etc.) are included. ), and whether the content of the message corresponds to its attribute (such as whether it is a numeric type/string type, etc.). It also includes the analysis of whether the response information sent back and forth after the modification is correct. Application layer analysis results can be provided to the user through the management unit.
  • a preset rule including analyzing the structure of the packet, whether the content of the packet is reasonable, and the like, such as whether the required fields (source address/destination address, etc.) are included. ), and whether the content of the message corresponds to its attribute (such as whether it is a numeric type/string type, etc.). It also includes the analysis of whether the response information sent back and forth after the modification is correct.
  • Application layer analysis results can be provided to the user through the management unit.
  • H248 ADD data meets the requirements of the protocol, including checking the H248 ADD data according to the structure of the message specified by the protocol, checking the attribute values of each field of the data according to the protocol, etc., to complete the soft Exchange test purpose
  • each part of the message structure are modified according to the requirements of the test content, and are tested according to the response message. Thereafter, the message structure is assembled into a message, such as restored to a string code, and sent to the MG interface unit under the control of the control unit.
  • the version number of the message is modified according to the test requirements to check whether the response is correct after receiving the TMG response (Replay) message.
  • Step 504 Notification]
  • the VIGC interface unit sends a message. MGC interface unit will be processed The message in the queue is sent to the TMG.
  • Step 505 After receiving the response (Replay) message of the TMG, the MGC interface unit is sent to the protocol test unit for analysis by the protocol stack analysis unit under the control of the control unit, and analyzes whether the content of the response message is The content of the response message that should be received by the test rule is consistent, thereby determining whether the response message is correct.
  • Step 506 After the test of the essay is finished, the protocol test unit constructs a corresponding response message and sends the message to the MGC through the MG interface unit.
  • the method in which the protocol test device of the present invention captures the packet to be tested may be in the form of a message proxy, that is, the destination IP address is configured as the address of the protocol test device in the network devices at both ends to be tested.
  • the packet is automatically sent to the protocol test device. After the protocol test device processes the packet, the packet is forwarded to the destination device to which the packet is actually sent. It can also be routed, that is, the protocol test device is regarded as a router, and other network devices are respectively placed on different network segments on both sides of the protocol test device, so that IP packets pass through the protocol test device through the routing protocol, and the protocol test is performed.
  • the device analyzes whether it is a protocol packet that needs to be tested at the IP layer. If yes, the device captures the packet, and still forwards the packet through the routing protocol after the processing is completed.
  • the protocol test apparatus of the present invention can be inserted into the network without affecting the network, can comprehensively test protocols in the real network, and can test protocol processing in various special cases and in continuous processes. Moreover, the entire interactive process of pre-writing information is not required as compared with the method of simulating a device for testing as mentioned in the background art.
  • the script call interface can be provided by the popular TCL method/Python method/COM component method/VB script to implement the call to the script.
  • the protocol test is not limited to H.248, MGCP, SIP, and other protocols based on the ABNF format. By switching different ABNF protocol stacks, different protocols can be tested by using the solution of the present invention. For non-ABNF format protocols, protocol test units The present invention can also be used to implement the test as long as the description specification of the format of the protocol to be detected is stored.

Abstract

A protocol testing device comprises a first interface unit, a second interface unit, a protocol stacks analysis unit, and a protocol testing unit. The device may further include a control unit and a management unit. A protocol testing method includes the following steps: obtaining a first message packet transmitted from a source device, editing the content of the packet based on the testing rule, transmitting the edited packet to a destination device; obtaining a response packet to the edited packet from the destination device and analyzing whether the response packet is the received packet conforming the testing rule or not. The invention may realizes the integrity of testing and quickly simulate the testing under an abnormal environment.

Description

一种协议测试装置及测试方法  Protocol testing device and testing method
技术领域 Technical field
本发明涉及测试技术领域,特別涉及一种协议测试装置及测试方法。 发明背景  The present invention relates to the field of testing technologies, and in particular, to a protocol testing device and a testing method. Background of the invention
如图 1所示的下一代(NGN )网络结构示意图,其中,媒体网关(MG ) 和软交换(Soft Switch )之间采用 ABNF文法(AB P是描述通信协议 的一种文法格式)描述的协议, 例如 H.248、 媒体网关控制协议(Media Gateway Control Protocol, MGCP )或 ϋ舌初始 办 i义 ( Session Initiation Protocol , SIP )等, MG包括中继媒体网关( TMG )、接入媒体网关( AMG )、 综合接入设备(IAD )等。 随着 NGN网络的逐渐成熟, 不同厂家的设备 互通测试也逐渐进行。  A schematic diagram of a next-generation (NGN) network structure as shown in FIG. 1, in which a protocol described by an ABNF grammar (AB P is a grammar format describing a communication protocol) between a media gateway (MG) and a soft switch (Soft Switch) is used. For example, H.248, Media Gateway Control Protocol (MGCP) or Session Initiation Protocol (SIP), etc., MG includes relay media gateway (TMG), access media gateway (AMG) ), integrated access equipment (IAD), etc. As the NGN network matures, the interoperability testing of devices from different manufacturers is gradually taking place.
对于 NGN来说, 该网絡包含有不同的设备, 不同设备之间可能使 用不同的协议或信令。 例如, 传统电话交换网络 ( Public Switched Telephone Network, PST )侧呼叫 IAD的过程中 , 完成呼叫消息交互的 协议就包含窄带 SS7(综合业务数字网用户部分协议, ISUP )、 宽带信令 MTP2用户适配层 (MTP2 User Adaption Layer, M2UA )、 流控制传输协 议, Stream Control Transport Protocol, SCTP )、 H.248协议以及 MGCP协 议。 因此, 为了保证不同设备之间的互通, NGN下的协议的测试更显重 要。  For NGN, the network contains different devices, and different protocols or signaling may be used between different devices. For example, in the process of calling the IAD on the side of the Public Switched Telephone Network (PST), the protocol for completing the call message exchange includes narrowband SS7 (Integrated Services Digital Network User Part Protocol, ISUP), and broadband signaling MTP2 user adaptation. Layer (MTP2 User Adaption Layer, M2UA), Stream Control Transport Protocol (SCTP), H.248 protocol, and MGCP protocol. Therefore, in order to ensure interoperability between different devices, the testing of protocols under NGN is even more important.
目前的协议测试通常是用软件模拟一个设备向对端发送消息来测试 与对端设备之间所运行的协议,下面以对 TMG进行测试为例进行说明。 如图 2示出的例子中, 测试装置模拟一个软交换( Soft Switch ),与 TMG 组成一个网络。 在测试时, TMG会向模拟软交换的测试装置进行注册; 之后, 测试 装置根据定制的流程,模拟软交换向 TMG发送消息,并接收 TMG返回 的消息, 然后对消息进行分析以达到测试的目的。 例如, 测试装置模拟 软交换发送一个 H.248消息, 并接收 TMG返回的消息, 然后测试装置 可以查看、 分析这个过程的消息是否符合协议的要求。 The current protocol test usually uses software to simulate a device sending a message to the peer to test the protocol running between the peer device. The following is an example of testing the TMG. In the example shown in Figure 2, the test set simulates a Soft Switch and forms a network with the TMG. During the test, the TMG registers with the test device that simulates the softswitch; after that, the test device sends a message to the TMG based on the customized process, and receives the message returned by the TMG, and then analyzes the message for testing purposes. . For example, the test device simulates a softswitch to send an H.248 message and receives the message returned by the TMG, and then the test device can view and analyze whether the message of the process meets the requirements of the protocol.
这种测试方法需要测试装置模拟网络中一个设备来完成测试, 很难 全面的测试全部流程, 更难在一个真实的网络中实现协议测试的完备 性。 这是因为: 对于这种方法下的测试, 需要测试装置上记录有完整的 流程, 以和被测设备进行基于流程的信息交互, 而流程通常都灵活而复 杂, 而且不同厂商的流程可能还不相同。 所以模拟软件很难适应不同厂 商设备, 难以实现测试的完备性。 另一方面, 由于存储的流程不可能包 括真实所能遇到的各种情况, 因此无法模拟真实情况, 以及处理一些真 实情况下的特殊测试。例如, 当要测试软交换和 PSTN网络之间信令时, 但又要求存在信令网关(SG )时, 此时的信令会变得复杂, 难以由现有 的测试装置完成测试。 发明内容  This test method requires the test device to simulate a device in the network to complete the test. It is difficult to fully test the entire process, and it is more difficult to complete the protocol test in a real network. This is because: For the test under this method, a complete process is required on the test device to perform process-based information interaction with the device under test, and the process is usually flexible and complicated, and the processes of different vendors may not be the same. Therefore, the simulation software is difficult to adapt to different manufacturers' equipment, and it is difficult to achieve complete testing. On the other hand, because the stored process cannot include all the real situations, it is impossible to simulate the real situation and handle some special tests in real situations. For example, when signaling between a softswitch and a PSTN network is to be tested, but a signaling gateway (SG) is required, the signaling at this time becomes complicated and it is difficult to complete the test by the existing test device. Summary of the invention
有鉴于此, 本发明的主要目的在于提供了一种协议测试装置及测试 方法, 以实现测试的完备性, 以及可以快速的模拟特殊情况下的测试。  In view of this, the main object of the present invention is to provide a protocol testing device and a testing method for implementing the completeness of the test, and to quickly simulate the test under special circumstances.
本发明提供的协议测试装置包括:  The protocol testing device provided by the present invention includes:
第一接口单元、 第二接口单元, 用于接收外部网络的报文然后发送 给协议栈分析单元, 以及将协议测试单元传送过来的报文发送到外部网 络;  a first interface unit, a second interface unit, configured to receive a message of the external network, and then send the message to the protocol stack analysis unit, and send the message sent by the protocol test unit to the external network;
协议栈分析单元, 用于解析第一 /第二接口单元传送过来的报文, 并 将所得解析后的报文传送给协议测试单元; 协议测试单元, 用于对协议栈分析单元传送过来解析后的第一接口 单元报文进行分析确认是否符合要求 , 将所述解析后的第一接口单元报 文恢复为原 艮文并发送给第二接口单元; 还用于对协议栈分析单元传送 过来解析后的第二接口单元报文进行分析确认是否符合要求, 将所述解 析后的第二接口单元报文恢复为原报文并发送给第一接口单元。 a protocol stack analyzing unit, configured to parse the message sent by the first/second interface unit, and transmit the parsed message to the protocol testing unit; The protocol test unit is configured to analyze the first interface unit message sent by the protocol stack analysis unit to verify whether the message meets the requirements, and restore the parsed first interface unit message to the original message and send the message to the first The second interface unit is further configured to: analyze the second interface unit message sent by the protocol stack analysis unit to verify that the request meets the requirement, and restore the parsed second interface unit message to the original message and send the message to the original message. The first interface unit.
该装置还可以进一步包括:  The device may further comprise:
控制单元, 用于控制所述协议测试装置的各个单元协调工作。  And a control unit, configured to control coordination of each unit of the protocol testing device.
所述协议测试单元进一步包括报文编辑模块, 用于根据测试规则编 辑所述解析后的报文。  The protocol testing unit further includes a message editing module, configured to edit the parsed message according to a test rule.
较佳地, 该装置进一步包括:  Preferably, the device further comprises:
管理单元, 用于实现对所述测试规则的修改, 以及将协议测试单元 的分析结果报告给用户。  a management unit, configured to implement modification of the test rule, and report the analysis result of the protocol test unit to the user.
较佳地, 所述第一 /第二接口单元包括: 串行通讯端口 COM组件接 口和 /或终端控制语言 TCL协议接口和 /或面向对象的解释性语言 Python 协议接口。  Preferably, the first/second interface unit comprises: a serial communication port COM component interface and/or a terminal control language TCL protocol interface and/or an object oriented interpretive language Python protocol interface.
本发明提供的一种协议测试方法, 将协议测试装置连接在源设备和 目的设备之间, 该方法包括以下步骤:  A protocol testing method provided by the present invention connects a protocol testing device between a source device and a destination device, and the method includes the following steps:
获取源设备发送的第一消息报文, 根据测试规则编辑所述报文的内 容, 将编辑后的报文发送给目的设备;  Acquiring the first message sent by the source device, and editing the content of the packet according to the test rule, and sending the edited packet to the destination device;
获取目的设备对所述编辑后报文的响应消息报文, 分析所述响应消 息报文是否符合测试规则规定的应接收的报文。  Obtaining a response message message of the destination device to the edited message, and analyzing whether the response message meets the message that should be received according to the test rule.
所述获取目的设备对所述编辑后报文的响应消息报文之后 , 该方法 进一步包括: 将所述响应消息报文修改为第一消息报文的响应消息报 文, 并发送给源设备。  After the obtaining the response message of the destination device to the edited message, the method further includes: modifying the response message message to a response message message of the first message message, and sending the response message message to the source device.
编辑所述^ ^艮文内容的步驟包括: 解析出所接收的所述第一消息报文的各个组成部分; 根据测试规则对解析出的报文的一个或一个以上组成部分的内容进 行替换、 添加或删除。 The steps of editing the content of the ^^艮 article include: Parsing out the received components of the first message packet; replacing, adding, or deleting the content of one or more components of the parsed message according to the test rule.
所述解析的步骤为:  The steps of the parsing are:
确定源设备和目的设备之间交互所使用的协议;  Determining the protocol used for interaction between the source device and the destination device;
使用所述协议所规定的报文结构对接收的所述第一消息报文进行解 析。  The received first message packet is parsed using a message structure specified by the protocol.
所述分析响应消息报文是否符合测试规则规定的应接收的报文的步 骤包括:  The step of analyzing whether the response message message meets the message to be received specified by the test rule includes:
分析所述报文结构的各个組成部分是否符合协议要求的结构; 或 / 和, 性; 或 /和, 所述获取报文的方式包括如下方式之一:  A method for analyzing whether each component of the message structure conforms to the requirements of the protocol; or / and, sex; or / and, the manner of obtaining the message includes one of the following ways:
通过消息代理的方式获取;  Obtained by means of a message broker;
通过路由的方式获取。  Obtained by means of routing.
该方法进一步包括:  The method further includes:
将所述分析所述响应报文得到的结果提供给用户。  The result of analyzing the response message is provided to the user.
由上述方法可以看出,由于本发明的测试装置直接放置在网络中间, 可以极为逼真地测试真实环境下的网络中两设备之间的协议完备性, 并 且由于不需要模拟完整的两设备之间的交互流程, 所以编写脚本的数量 本发明采用的结构只需要更换协议栈就能测试不同的协议, 所有协 议测试操作均相同, 能降低工具的使用难度, 且可测试的内容广泛。 附图简要说明 It can be seen from the above method that since the test apparatus of the present invention is directly placed in the middle of the network, the protocol completeness between the two devices in the network in the real environment can be tested extremely realistically, and since it is not necessary to simulate the complete between the two devices The interaction process, so the number of scripts to be used in the structure of the invention only needs to replace the protocol stack to test different protocols, all protocol testing operations are the same, can reduce the difficulty of using the tool, and can test a wide range of content. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为 NGN网络示意图。  Figure 1 is a schematic diagram of an NGN network.
图 2为现有技术对 TMG进行测试的示意图。  2 is a schematic diagram of testing the TMG in the prior art.
图 3为本发明测试装置结构图。  Figure 3 is a structural view of the test apparatus of the present invention.
图 4为本发明测试装置进行测试时放在网絡中的示意图。  Figure 4 is a schematic diagram of the test device of the present invention placed in a network when tested.
图 5为本发明测试装置进行测试时流程图。 . 实施本发明的方式  Figure 5 is a flow chart of testing of the test device of the present invention. . Ways of implementing the invention
本发明提供了一种协议测试装置和测试方法。 测试时, 本发明协议 测试装置置于网络中待测试的两个设备之间,例如设备 A和设备 B之间。 测试时, 本发明协议测试装置接收设备 A发送给测试装置的消息, 测试 装置根据测试的要求修改所接收到的消息报文, 再发送给设备 B; 设备 B回送消息给测试装置, 测试装置对依据前述的测试要求分析该消息, 然后再修改消息报文并转发给设备 A, 完成对这两个设备之间通信协议 的测试。 总的来说, 本发明通过捕获, 判别, 修改, 发送报文以及对协 议流程或协议字段的修改, 能快速的测试协议传输是否正常。  The invention provides a protocol testing device and a testing method. At the time of testing, the protocol test apparatus of the present invention is placed between two devices to be tested in the network, such as between device A and device B. During the test, the protocol testing device of the present invention receives the message sent by the device A to the testing device, and the testing device modifies the received message message according to the test request, and then sends the message message to the device B; the device B sends a message to the testing device, and the testing device pairs The message is analyzed according to the foregoing test requirements, and then the message message is modified and forwarded to device A to complete the test of the communication protocol between the two devices. In general, the present invention can quickly test whether a protocol transmission is normal by capturing, discriminating, modifying, transmitting a message, and modifying a protocol flow or protocol field.
下面参见附图并结合实施例对本发明进行详细说明。  The invention will now be described in detail with reference to the drawings in conjunction with the embodiments.
如图 3示出了本发明协议测试装置结构图 , 包括: 第一接口单元、 协议栈分析单元、协议测试单元、 第二接口单元、控制单元、 管理单元。 其中, 各个单元详述如下:  FIG. 3 is a structural diagram of a protocol testing apparatus according to the present invention, including: a first interface unit, a protocol stack analyzing unit, a protocol testing unit, a second interface unit, a control unit, and a management unit. Among them, each unit is detailed as follows:
第一接口单元、 第二接口单元, 用于协议报文的收发, 以及在接收 到来自协议测试装置外部的报文时, 通知控制单元, 在控制单元的控制 下将报文发送给协议栈分析单元。 其中, 根据测试协议的不同, 接口单 元的接口可以为 COM组件接口、 控制语言 (TCL )协议接口、 面向对 象的解释性语言 (Python )协议接口等。 协议栈分析单元, 用于对收到的报文依照一定的文法, 如 ABNF文 法进行解析, 解析出该报文的结构, 并将解析后的报文在控制单元的控 制下发送给协议测试单元。 所述的解析指将收到的一系列字串代码解析 出协议要求的结构, 如: 将接收的 3D68S6H3G字符串依照 ABN 文法 解析成: 源地址、 目的地址、 协议内容等信息。 由于所传输的信息是按 照所使用协议所规定的协议的文法组成的, 因此, 只要根据规定的文法 必定可以将协议的结构解析出来。 The first interface unit and the second interface unit are configured to send and receive protocol packets, and when receiving the message from the outside of the protocol testing device, notify the control unit to send the message to the protocol stack under the control of the control unit. unit. The interface of the interface unit may be a COM component interface, a control language (TCL) protocol interface, an object-oriented explanatory language (Python) protocol interface, etc., depending on the test protocol. The protocol stack analysis unit is configured to parse the received message according to a certain grammar, such as the ABNF grammar, parse the structure of the message, and send the parsed message to the protocol test unit under the control of the control unit. . The parsing refers to parsing a received series of string codes into a structure required by the protocol, such as: parsing the received 3D68S6H3G string into an ABN grammar into: source address, destination address, protocol content, and the like. Since the transmitted information is composed according to the grammar of the protocol specified by the protocol used, the structure of the protocol must be resolved according to the prescribed grammar.
协议测试单元, 用于根据预定的规则分析解析后的报文, 包括分析 解析出的报文的结构的各个组成部分是否符合协议要求的格式, 所述报 文是否符合流程要求的报文内容等; 以及根据设定的要求对报文结构中 的信息进行编辑(包括替换、 添加、 删除), 比如将 H248协议报文 mid 字段 [129.10.10.1]:2944替换为 [129.1.1.1]:2940, 并将编辑后的报文重新 组装成可以在线路中传输的报文,如恢复为字串代码,发送给接口单元。 其中, 设定的对报文结构中的信息进行编辑的不同的要求可以编写为不 同的脚本, 并预先存储在协议测试单元中, 需要的时候, 调用相应的脚 本即可。 实际上, 所述脚本中可以包括一个不作任何操作的脚本, 则所 述编辑也可包括对 4艮文内容不作任何改动, 调用该脚本就相当检验原始 状态下的协议报文是否正常。  The protocol testing unit is configured to analyze the parsed message according to the predetermined rule, and analyze whether the components of the parsed packet structure conform to the format required by the protocol, and whether the packet meets the content of the message required by the process, etc. And edit the information in the message structure (including replacement, addition, deletion) according to the set requirements, for example, replace the H248 protocol message mid field [129.10.10.1]: 2944 with [129.1.1.1]: 2940, The edited message is reassembled into a message that can be transmitted on the line, such as being restored to a string code, and sent to the interface unit. Among them, the different requirements for editing the information in the message structure can be written as different scripts, and stored in the protocol test unit in advance, and the corresponding scripts can be called when needed. In fact, the script may include a script that does not perform any operation, and the edit may also include no change to the content of the file. The script is called to verify whether the protocol message in the original state is normal.
控制单元, 用来控制整个流程中各个单元的协调动作。 包括控制接 口单元对报文的接收、 转发, 控制协议栈分析单元执行解析, 控制协议 测试单元分析测试、 修改、 重组 4艮文等一系列的动作。 这些动作的具体 实现可以由调用控制单元所存储的相应脚本来实现。 本发明通过对报文 的分析、 编辑, 对编辑后发送的报文的响应报文再分析、 判别, 从而实 现对协议的测试。  A control unit that controls the coordinated actions of the various units throughout the process. It includes a series of actions such as control interface unit receiving and forwarding packets, control protocol stack analysis unit execution analysis, control protocol test unit analysis test, modification, and reorganization. The concrete implementation of these actions can be implemented by calling the corresponding script stored by the control unit. The invention analyzes and judges the response message of the message sent after editing by analyzing and editing the message, thereby realizing the test of the protocol.
管理单元, 提供了对控制单元的接口, 可通过管理单元修改脚本文 件并下发给协议测试单元和控制单元, 以及将协议测试单元分析结果通 过管理单元提供给用户。管理单元还提供用户界面可以用来编辑 TCL脚 本, 以及脚本用例管理, 还有脚本运行、 停止等脚本控制; 管理单元还 包括用于显示运行过程中信息的显示单元。 The management unit provides an interface to the control unit, and the script file can be modified through the management unit. The component is sent to the protocol test unit and the control unit, and the protocol test unit analysis result is provided to the user through the management unit. The snap-in also provides a user interface that can be used to edit TCL scripts, as well as script use case management, as well as script control such as script run and stop; the snap-in also includes a display unit for displaying information during the run.
下面以 H.248协议测试为例子, 来测试一个呼叫过程中软交换下发 的 ADD消息是否符合协议,以及检查 TMG对下发的错误版本号的 ADD 消息处理处理是否正确。 .  The H.248 protocol test is used as an example to test whether the ADD message delivered by the softswitch in a call conforms to the protocol, and whether the ADD message processing of the error version number sent by the TMG is correct. .
如图 4 所示本发明测试装置进行测试时放在网络中的示意图, 在 PSTN和软交换的信息交换中, 本发明测试装置拦截由软交换(即后面 所述的 MGC, MGC是媒体网关控制器,属于软交换的一部分)的 H.248 消息, 发现是 ADD消息后, 依照协议的文法格式要求, 检查构成该消 息的各字段数据是否符合协议的要求, 以完成对软交换的测试要求; 再 依照测试要求对该消息版本号进行修改后再转发到 TMG, 以在收到 TMG的响应(Replay )消息后, 依照协议的文法格式要求, 查看响应消 息是否正确, 完成测试。  As shown in FIG. 4, a schematic diagram of the test apparatus of the present invention is placed in a network during testing. In the information exchange between the PSTN and the softswitch, the test apparatus of the present invention intercepts the softswitch (ie, the MGC described later, and the MGC is controlled by the media gateway). The H.248 message, which is part of the softswitch, is found to be an ADD message, and according to the grammar format requirements of the protocol, check whether the data of each field constituting the message meets the requirements of the protocol, so as to complete the test requirement for the softswitch; Then, according to the test requirement, the version number of the message is modified and then forwarded to the TMG, so that after receiving the response (Replay) message of the TMG, according to the grammar format requirement of the protocol, it is checked whether the response message is correct, and the test is completed.
下面再参见图 5示出的测试时的流程图, 对上述 H.248协议测试进 行详细说明。 其中, 该例中, 协议测试装置第一接口单元为 MG接口单 元, 第二接口单元为 MGC接口单元。 呼叫过程中, SS7 ( ISUP.TUP )、 PRA等信令消息经过 SG; H.248消息经过协议测试装置。  The above H.248 protocol test will be described in detail below with reference to the flowchart at the time of testing shown in FIG. In this example, the first interface unit of the protocol testing device is an MG interface unit, and the second interface unit is an MGC interface unit. During the call, SS7 (ISUP.TUP), PRA and other signaling messages pass through the SG; H.248 messages pass through the protocol test device.
当 PSTN侧发起呼叫时, 通过 SG、 IP网络将 IAM信令传送给软交 换, 本例中软交换由 MGC 实现, 以后不再说明。 MGC响应该消息向 TMG发送 H.248 ADD消息时, 此消息由本发明协议测试装置获得, 并 进行处理, 具体包括以下步骤:  When the PSTN side initiates a call, the IAM signaling is transmitted to the softswitch through the SG and the IP network. In this example, the softswitch is implemented by the MGC and will not be described later. When the MGC sends the H.248 ADD message to the TMG in response to the message, the message is obtained by the protocol testing device of the present invention and processed, and includes the following steps:
步骤 501 : 协议测试装置的 MG接口单元接收到所述消息报文, 插 入队列, 然后通知控制单元; 控制单元根据脚本事先定义好的命令接口 函数, 将报文发送给协议栈分析单元。 Step 501: The MG interface unit of the protocol testing device receives the message packet, inserts the queue, and then notifies the control unit. The control unit defines the command interface according to the script in advance. The function sends the message to the protocol stack analysis unit.
步骤 502: 协议栈分析单元收到报文后, 通过统一的报文解析接口 对报文进行解析, 本例中, 所述协议使用 ABNF的文法格式进行描述, 因此解析的结果是解析出 AB P文法格式的报文。  Step 502: After receiving the packet, the protocol stack analyzing unit parses the packet through a unified packet parsing interface. In this example, the protocol uses ABNF grammar format to describe, so the parsing result is parsing AB P A grammar format message.
例如, 将收到的一系列字串代码解析出协议要求的文法格式, 如: 将 3D68S6H3G解析成: 源地址、 目的地址、 协议内容等。 并依据控制 单元的控制, 将解析后的报文发送给协议测试单元。  For example, the received series of string codes are parsed out of the grammar format required by the protocol, such as: The 3D68S6H3G is parsed into: source address, destination address, protocol content, and the like. And according to the control of the control unit, the parsed message is sent to the protocol test unit.
其中, 可以通过更换 /加载不同的 ABNF协议栈处理不同的 ABNF 协议。 也可以通过字符串匹配来解析协议报文; 相应的, 在后面的步骤 中用字符串合成来构造报文。  Among them, different ABNF protocols can be handled by replacing/loading different ABNF protocol stacks. The protocol message can also be parsed by string matching; correspondingly, the message is constructed by string synthesis in a later step.
步骤 503: 协议测试单元根据预先设定的规则, 对报文进行分析是 否正确, 包括分析报文的结构、 报文内容是否合理等, 如是否包括所要 求的各个字段(源地址 /目的地址等), 又如报文各项的内容是否与其属 性相对应 (如是否为数字类型 /字符串类型等)。 也包括对修改后发送出 去返回的响应信息是否正确进行分析。 应用层分析结果可通过管理单元 提供给用户。 本例中, 即检查 H248 ADD数据是否符合协议的要求, 包 括根据协议规定的该消息的结构对 H248 ADD数据进行检查, 根据协议 规定对该数据各个字段的属性值进行检查等, 来完成对软交换的测试目 的  Step 503: The protocol testing unit analyzes whether the packet is correct according to a preset rule, including analyzing the structure of the packet, whether the content of the packet is reasonable, and the like, such as whether the required fields (source address/destination address, etc.) are included. ), and whether the content of the message corresponds to its attribute (such as whether it is a numeric type/string type, etc.). It also includes the analysis of whether the response information sent back and forth after the modification is correct. Application layer analysis results can be provided to the user through the management unit. In this example, it is checked whether the H248 ADD data meets the requirements of the protocol, including checking the H248 ADD data according to the structure of the message specified by the protocol, checking the attribute values of each field of the data according to the protocol, etc., to complete the soft Exchange test purpose
另一方面, 根据对测试内容的要求对报文结构中的各部分内容进行 修改, 以根据响应消息进行分析来测试。 之后, 在将报文结构组装成报 文, 如恢复为字串代码, 在控制单元的控制下发送给 MG接口单元。 在 本例中, 根据测试要求对该报文版本号进行修改, 以当收到 TMG的响 应 (Replay ) 消息后, 查看响应是否正确。  On the other hand, the contents of each part of the message structure are modified according to the requirements of the test content, and are tested according to the response message. Thereafter, the message structure is assembled into a message, such as restored to a string code, and sent to the MG interface unit under the control of the control unit. In this example, the version number of the message is modified according to the test requirements to check whether the response is correct after receiving the TMG response (Replay) message.
步骤 504: 通知] VIGC接口单元发送报文。 MGC接口单元将处理后 的队列中的报文发送至 TMG。 Step 504: Notification] The VIGC interface unit sends a message. MGC interface unit will be processed The message in the queue is sent to the TMG.
步骤 505: MGC接口单元接收到 TMG的响应 (Replay ) 消息后, 同样的在控制单元的控制下, 交由协议栈分析单元解析后发送给协议测 试单元进行分析, 分析该响应消息的内容是否和测试规则规定的应接收 的响应消息内容一致, 从而判别该响应消息是否正确。  Step 505: After receiving the response (Replay) message of the TMG, the MGC interface unit is sent to the protocol test unit for analysis by the protocol stack analysis unit under the control of the control unit, and analyzes whether the content of the response message is The content of the response message that should be received by the test rule is consistent, thereby determining whether the response message is correct.
步骤 506: 当对该艮文测试结束后, 协议测试单元构造出相应响应 消息通过 MG接口单元发送给 MGC。  Step 506: After the test of the essay is finished, the protocol test unit constructs a corresponding response message and sends the message to the MGC through the MG interface unit.
其中, 本发明协议测试装置捕获待测试的报文的方式, 可以采用消 息代理的方式,也就是在待测的两端网络设备中,分别配置目的 IP地址 为协议测试装置的地址。 这样报文会自动发送给协议测试装置, 协议测 试装置处理后, 再将报文转发给报文实际要发送的目的设备。 也可以通 过路由的方式, 也就是把协议测试装置当作一个路由器, 把其他网络设 备分别放到协议测试装置两侧的不同网段,让 IP报文通过路由协议穿过 协议测试装置,协议测试装置在 IP层分析是否为需要进行测试的协议报 文, 若是则捕获所述报文, 处理完毕后仍然通过路由协议转发报文。  The method in which the protocol test device of the present invention captures the packet to be tested may be in the form of a message proxy, that is, the destination IP address is configured as the address of the protocol test device in the network devices at both ends to be tested. The packet is automatically sent to the protocol test device. After the protocol test device processes the packet, the packet is forwarded to the destination device to which the packet is actually sent. It can also be routed, that is, the protocol test device is regarded as a router, and other network devices are respectively placed on different network segments on both sides of the protocol test device, so that IP packets pass through the protocol test device through the routing protocol, and the protocol test is performed. The device analyzes whether it is a protocol packet that needs to be tested at the IP layer. If yes, the device captures the packet, and still forwards the packet through the routing protocol after the processing is completed.
上述实施例可以看出, 本发明协议测试装置可以插入在网络中不影 响网络, 可以全面测试真实网络中的协议, 并且可以测试各种特殊情况 下以及连续流程中的协议处理过程。 并且, 和背景技术中提到的模拟一 个设备进行测试的方法进行相比, 不需要预先编写信息的整个的交互流 程。  As can be seen from the above embodiments, the protocol test apparatus of the present invention can be inserted into the network without affecting the network, can comprehensively test protocols in the real network, and can test protocol processing in various special cases and in continuous processes. Moreover, the entire interactive process of pre-writing information is not required as compared with the method of simulating a device for testing as mentioned in the background art.
另外,需要说明的是,调用脚本时,可以采用流行的 TCL方式/ Python 方式 /COM組件的方式 /VB Script的方式提供脚本调用接口来实现对脚 本的调用。 另外, 协议测试不只限于 H.248、 MGCP, SIP, 其它基于 ABNF格式的协议, 通过切换不同 ABNF协议栈, 都可以采用本发明方 案对不同的协议进行测试。 而对于非 ABNF格式的协议, 协议测试单元 只要存储有所要检测的协议的格式的描述规范 , 同样可以使用本发明来 实现测试。 In addition, it should be noted that when the script is invoked, the script call interface can be provided by the popular TCL method/Python method/COM component method/VB script to implement the call to the script. In addition, the protocol test is not limited to H.248, MGCP, SIP, and other protocols based on the ABNF format. By switching different ABNF protocol stacks, different protocols can be tested by using the solution of the present invention. For non-ABNF format protocols, protocol test units The present invention can also be used to implement the test as long as the description specification of the format of the protocol to be detected is stored.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均 应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are included in the spirit and scope of the present invention, should be included in the present invention. Within the scope of protection.

Claims

权利要求书 Claim
1、 一种协议测试装置, 其特征在于, 该装置包括:  A protocol testing device, characterized in that the device comprises:
第一接口单元、 第二接口单元, 用于接收外部网络的报文然后发送 给协议栈分析单元, 以及将协议测试单元传送过来的报文发送到外部网 络; .  The first interface unit and the second interface unit are configured to receive the message of the external network and then send the message to the protocol stack analyzing unit, and send the message transmitted by the protocol testing unit to the external network.
协议栈分析单元, 用于解析第一 /第二接口单元传送过来的报文, 并 将所得解析后的报文传送给协议测试单元;  a protocol stack analyzing unit, configured to parse the message sent by the first/second interface unit, and transmit the parsed message to the protocol testing unit;
协议测试单元, 用于对协议栈分析单元传送过来解析后的第一接口 单元报文进行分析确认是否符合要求, 将所述解析后的第一接口单元报 文恢复为原^ ¾文并发送给第二接口单元; 还用于对协议栈分析单元传送 过来解析后的第二接口单元报文进行分析确认是否符合要求, 将所述解 析后的第二接口单元报文恢复为原报文并发送给第一接口单元。  The protocol testing unit is configured to analyze the first interface unit message sent by the protocol stack analyzing unit to confirm whether the request meets the requirement, and restore the parsed first interface unit message to the original message and send the message to the original The second interface unit is further configured to: analyze the second interface unit message sent by the protocol stack analysis unit to confirm whether the request meets the requirement, and restore the parsed second interface unit message to the original message and send the message. Give the first interface unit.
2、 根据权利要求 1所述的装置, 其特征在于, 该装置进一步包括: 控制单元, 用于控制所述协议测试装置的各个单元协调工作。  2. The device according to claim 1, wherein the device further comprises: a control unit, configured to control coordinated operation of each unit of the protocol testing device.
3、根据权利要求 1所述的装置、其特征在于, 所述协议测试单元进 一步包括报文编辑模块, 用于根据测试规则编辑所述解析后的报文。  The apparatus according to claim 1, wherein the protocol testing unit further comprises a message editing module for editing the parsed message according to a test rule.
4、 根据权利要求 1所述的装置, 其特征在于, 该装置进一步包括: 管理单元, 用于实现对所述测试规则的修改, 以及将协议测试单元 的分析结果报告给用户。  The device according to claim 1, wherein the device further comprises: a management unit, configured to implement modification of the test rule, and report the analysis result of the protocol test unit to the user.
5、 根据权利要求 1、 2、 3或 4所述的装置, 其特征在于, 所述第一 /第二接口单元包括: 串行通讯端口 COM组件接口和 /或终端控制语言 TCL协议接口和 /或面向对象的解释性语言 Python协议接口。  5. The apparatus according to claim 1, 2, 3 or 4, wherein the first/second interface unit comprises: a serial communication port COM component interface and/or a terminal control language TCL protocol interface and/or Or an object-oriented interpretive language Python protocol interface.
6、 一种协议测试方法, 其特征在于, 该方法包括以下步骤: 获取源设备发送的第一消息报文, 根据测试规则编辑所述报文的内 容, 将编辑后的报文发送给目的设备; A method for testing a protocol, the method comprising the steps of: acquiring a first message sent by a source device, and editing the message according to the test rule To send the edited message to the destination device;
获取目的设备对所述编辑后报文的响应消息报文, 分析所述响应消 息报文是否符合测试规则规定的应接收的报文。  Obtaining a response message message of the destination device to the edited message, and analyzing whether the response message meets the message that should be received according to the test rule.
7、根据权利要求 6所述的方法, 其特征在于, 所述获取目的设备对 所述编辑后报文的响应消息报文之后, 该方法进一步包括: 将所述响应 消息报文修改为第一消息报文的响应消息报文, 并发送给源设备。  The method according to claim 6, wherein after the obtaining the response message of the destination device to the edited message, the method further comprises: modifying the response message message to the first The response message of the message packet is sent to the source device.
8、根据权利要求 6所述的方法, 其特征在于, 编辑所述报文内容的 步骤包括:  The method according to claim 6, wherein the step of editing the content of the message comprises:
解析出所接收的所述第一消息报文的各个组成部分;  Parsing out the received components of the first message packet;
根据测试规则对解析出的报文的一个或一个以上组成部分的内容进 行替换、 添加或删除。  The content of one or more components of the parsed message is replaced, added, or deleted according to a test rule.
9、 根据权利要求 8所述的方法, 其特征在于, 所述解析的步骤为: 确定源设备和目的设备之间交互所使用的协议;  The method according to claim 8, wherein the parsing step is: determining a protocol used for interaction between the source device and the destination device;
使用所述协议所规定的报文结构对接收的所述第一消息报文进行解 析。  The received first message packet is parsed using a message structure specified by the protocol.
10、 根据权利要求 6所述的方法, 其特征在于, 所述分析响应消息 报文是否符合测试规则规定的应接收的报文的步骤包括:  The method according to claim 6, wherein the step of analyzing whether the response message message meets the message that should be received according to the test rule comprises:
分析所述报文结构的各个组成部分是否符合协议要求的结构; 或 / 和, 性; 或 /和,  Analyzing whether the various components of the message structure conform to the structure required by the agreement; or / and, sex; or / and,
11'、 根据权利要求 6所述的方法, 其特征在于, 所述获取报文的方 式包括如下方式之一: The method according to claim 6, wherein the method for obtaining a message comprises one of the following ways:
通过消息代理的方式获取; 通过路由的方式获取。 Obtained by means of a message broker; Obtained by means of routing.
12、根据权利要求 6至 11任一项所述的方法, 其特征在于: 进一步包括:  The method according to any one of claims 6 to 11, further comprising:
将所述分析所述响应报文得到的结果提供给用户。  The result of analyzing the response message is provided to the user.
PCT/CN2006/002666 2005-11-16 2006-10-11 A protocol testing device and the protocol testing method thereof WO2007056921A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2005101149531A CN100387004C (en) 2005-11-16 2005-11-16 Protocol testing apparatus and method thereof
CN200510114953.1 2005-11-16

Publications (1)

Publication Number Publication Date
WO2007056921A1 true WO2007056921A1 (en) 2007-05-24

Family

ID=37133648

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002666 WO2007056921A1 (en) 2005-11-16 2006-10-11 A protocol testing device and the protocol testing method thereof

Country Status (2)

Country Link
CN (1) CN100387004C (en)
WO (1) WO2007056921A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106100935A (en) * 2016-08-06 2016-11-09 顺德职业技术学院 Charging equipment of electric automobile communication protocol consistency test device and method
CN110249644A (en) * 2017-02-06 2019-09-17 瑞典爱立信有限公司 Lawful intercept safety
CN111782452A (en) * 2020-07-03 2020-10-16 携程商旅信息服务(上海)有限公司 Method, system, device and medium for interface contrast test
CN113852610A (en) * 2021-09-06 2021-12-28 招银云创信息技术有限公司 Message processing method and device, computer equipment and storage medium
CN114070761A (en) * 2021-11-11 2022-02-18 北京轨道交通路网管理有限公司 Protocol message detection method, device and electronic equipment
CN114584330A (en) * 2020-11-16 2022-06-03 华为技术有限公司 Vulnerability testing method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931564B (en) * 2009-06-25 2012-07-25 成都市华为赛门铁克科技有限公司 Method and system for testing protocol anomaly, test device and control device
CN105721236B (en) * 2014-12-04 2019-05-17 北京视联动力国际信息技术有限公司 A kind of method and device thereof of Ethernet mistake packet test
CN106407061B (en) * 2015-07-27 2020-06-16 中兴通讯股份有限公司 Northbound interface testing device and northbound interface testing method
CN106980889A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 Analogy method, device and the analogue means of non-contact IC card
CN109660519A (en) * 2018-11-23 2019-04-19 北京字节跳动网络技术有限公司 The route agent of formula kidnaps method, apparatus and electronic equipment based on programming
CN111884776A (en) * 2020-07-02 2020-11-03 深圳市赛特新能科技有限公司 Charging pile protocol consistency testing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08102772A (en) * 1994-09-30 1996-04-16 Matsushita Electric Ind Co Ltd Protocol analyzer
CN1509016A (en) * 2002-12-19 2004-06-30 ��ʽ����Ntt����Ħ Agreement test system and method thereof
JP2005018245A (en) * 2003-06-24 2005-01-20 Sumitomo Electric Ind Ltd Protocol testing device, protocol testing method, and protocol testing program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1231032C (en) * 2002-07-22 2005-12-07 华为技术有限公司 Network protocol measuring method and measuring system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08102772A (en) * 1994-09-30 1996-04-16 Matsushita Electric Ind Co Ltd Protocol analyzer
CN1509016A (en) * 2002-12-19 2004-06-30 ��ʽ����Ntt����Ħ Agreement test system and method thereof
JP2005018245A (en) * 2003-06-24 2005-01-20 Sumitomo Electric Ind Ltd Protocol testing device, protocol testing method, and protocol testing program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHAO H.: "Protocol testing of ISDN (3)", MODERN SCIENCE & TECHNOLOGY OF TELECOMMUNICATIONS, no. 10, 1994 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106100935A (en) * 2016-08-06 2016-11-09 顺德职业技术学院 Charging equipment of electric automobile communication protocol consistency test device and method
CN110249644A (en) * 2017-02-06 2019-09-17 瑞典爱立信有限公司 Lawful intercept safety
CN110249644B (en) * 2017-02-06 2023-10-03 瑞典爱立信有限公司 Lawful interception security
CN111782452A (en) * 2020-07-03 2020-10-16 携程商旅信息服务(上海)有限公司 Method, system, device and medium for interface contrast test
CN114584330A (en) * 2020-11-16 2022-06-03 华为技术有限公司 Vulnerability testing method and device
CN113852610A (en) * 2021-09-06 2021-12-28 招银云创信息技术有限公司 Message processing method and device, computer equipment and storage medium
CN113852610B (en) * 2021-09-06 2024-03-05 招银云创信息技术有限公司 Message processing method, device, computer equipment and storage medium
CN114070761A (en) * 2021-11-11 2022-02-18 北京轨道交通路网管理有限公司 Protocol message detection method, device and electronic equipment
CN114070761B (en) * 2021-11-11 2023-09-26 北京轨道交通路网管理有限公司 Protocol message detection method and device and electronic equipment

Also Published As

Publication number Publication date
CN100387004C (en) 2008-05-07
CN1852178A (en) 2006-10-25

Similar Documents

Publication Publication Date Title
WO2007056921A1 (en) A protocol testing device and the protocol testing method thereof
US20060034188A1 (en) Method and apparatus for analyzing a media path in a packet switched network
JP4490312B2 (en) Correlation system and method for heterogeneous telecommunications signaling protocols
JP2007049415A (en) Voice data conversion apparatus, network system, and control method and program
WO2006075390A1 (en) Repeating method, repeater, communication system, and computer program
US7420928B2 (en) Testing of transmission quality in packet-based networks
CN102123154B (en) Session initiation protocol (SIP) terminal and session processing method
US20140164543A1 (en) Communication System, Application Server and Communication Method for Server Cooperation
JP2004533743A (en) Method for recording an event in an IP network
CN1874610B (en) Method and system for debugging telephone call
KR100725853B1 (en) Device and method for testing multiple protocols
CN107453936A (en) A kind of method and gateway device for diagnosing voice delay time
US8031708B2 (en) Methods and apparatus for dual-tone multi-frequency signal analysis within a media over internet protocol network
US7823005B2 (en) Communications system
US8184633B2 (en) Automated interoperability assessments based on iterative profling and emulation of SIP or T.38 fax-relay enabled devices
JP5311460B2 (en) Connection control device
US8787363B2 (en) Fault isolation constructs for POTS emulation service on an FTTx platform
US8406380B2 (en) Test phone using SIP
KR100452890B1 (en) call test system and method thereof in ALL-IP mobile communication network
Bao et al. Compliance and Interoperability Testing of SIP Devices Tomaciello
Pang Stream Control Transmission Protocol Support in Session Initiation Protocol Proxy Server
US20040160981A1 (en) Hardware service provider
Dechjaroen Performance Evaluation of Voice Over Internet Protocol
Tumkur et al. PROTOCOL PERFORMANCE MEASUREMENT METHODOLOGY-EXPERIMENTATION WITH SIGNALING SYSTEM NO 7
Lau Performance measurements and modeling of a Java-based session initiation protocol implementation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06791240

Country of ref document: EP

Kind code of ref document: A1