WO2012062108A1 - 一种测试系统及测试方法 - Google Patents

一种测试系统及测试方法 Download PDF

Info

Publication number
WO2012062108A1
WO2012062108A1 PCT/CN2011/075737 CN2011075737W WO2012062108A1 WO 2012062108 A1 WO2012062108 A1 WO 2012062108A1 CN 2011075737 W CN2011075737 W CN 2011075737W WO 2012062108 A1 WO2012062108 A1 WO 2012062108A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
data packet
data
rule
module
Prior art date
Application number
PCT/CN2011/075737
Other languages
English (en)
French (fr)
Inventor
祝大勇
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012062108A1 publication Critical patent/WO2012062108A1/zh

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

Definitions

  • the present invention relates to the field of communications, and in particular, to a test system and a test method. Background technique
  • the test method of the simulation must be taken.
  • the simulation test for a terminal connected to a base station system, since a real-time operating environment is to be simulated, a large number of terminal users are required, so an emulation terminal must be used.
  • the test data server connected through the base station system and a large number of emulation terminals, if the simulation is implemented, there is a great difficulty, so the real test data server is used.
  • a certain test purpose can also be achieved through the FTP data server, but it brings great difficulty to the test.
  • the connection between the FTP client and the FTP data server is established according to the FTP client connection establishment process, and then the base station system is tested by uploading or downloading according to the FTP file transfer process.
  • an FTP data server is used to perform an emulation traffic test on a base station system. In this simulation test, the data service and data related processing capability of the base station system are tested, and the support of the base station system for the FTP protocol or the test FTP is not tested. The data server itself, so no need The FTP data server is not suitable for this traffic test by testing the data through the complete FTP setup process and using FTP commands.
  • testing through the FTP data server does not present any major problems in a small number of end users. However, if a large number of end users do not automate the connection establishment process and the file transfer control process, the entire test process is difficult to implement.
  • the FTP data server is only implemented by the FTP protocol, and cannot perform signaling interaction with the emulation terminal. It cannot perform flexible transmission and reception parameter negotiation with the emulation terminal, and cannot construct various types of test packets according to test requirements. Summary of the invention
  • the main object of the present invention is to provide a test system and a test method, which make the test more diverse and improve the reliability of the system.
  • a test system is configured to test a network device, where the network device forms a test environment with the terminal, the system includes a test data server, and the test data server includes:
  • a parameter setting module configured to set a data packet generation, sending, and receiving rule
  • a data packet generating module configured to generate a data packet according to the generating rule
  • a data processing module configured to send the generated data packet to the network device according to the sending rule, and receive a data packet sent by the terminal according to the receiving rule;
  • the data statistics module is configured to collect traffic information of the sent or received data packet.
  • the data processing module is further configured to: parse the signaling information to obtain a data packet generation, sending, and receiving rule;
  • the data packet generating module is configured to generate a data packet according to a data packet generation rule parsed by the signaling information
  • the data processing module is configured to send and receive data packets parsed by the signaling information
  • the receiving rule sends and receives data packets.
  • the system also includes a logging module for logging log information of the test data server runtime.
  • the logging module is further configured to: perform an exception processing when the test data server fails.
  • the system also includes a display module for displaying data transmission information of the respective terminals.
  • the system also includes a system management module for controlling startup of the test data server and initializing the test data server.
  • connection between the test data server and the network device is a socket connection.
  • a test method a network device for carrying data transmission is connected between a terminal and a test data server to form a test environment, and the method includes:
  • the traffic information of the transmitted or received data packet is counted.
  • the process of transceiving the data packet according to the receiving and sending rules includes:
  • the data packet sent by the terminal includes signaling information, parsing the signaling information, and generating a data packet according to a generation rule parsed by the signaling information, and sending according to the signaling information.
  • the rule sends a data packet, and receives the data packet according to the receiving rule parsed by the signaling information.
  • the method further includes:
  • the beneficial effects of the present invention are: sending, by the data processing module, the data packet generated by the generation rule set by the parameter setting module to the network device according to the sending rule set by the parameter setting module, And receiving the data packet sent by the terminal according to the receiving rule, so that the test can construct various types of test packets according to the testing requirements, thereby making the testing more diversified, and the terminal can flexibly negotiate the sending and receiving parameters, thereby improving the system. reliability.
  • FIG. 1 is a schematic structural view of an embodiment of a test system of the present invention
  • FIG. 2 is a flowchart of system access according to an embodiment of a test system of the present invention
  • FIG. 3 is a flow chart of data processing of an embodiment of a test system of the present invention. detailed description
  • the test system is configured to test a network device, and the network device forms a test environment with the terminal when testing, including a test data server, and the test data server includes:
  • a parameter setting module configured to set a data packet generation, sending, and receiving rule
  • a data packet generating module configured to generate a data packet according to a generation rule set by the parameter setting module
  • a data processing module configured to send the generated data packet to the network device according to the sending rule, and receive the data packet sent by the terminal according to the receiving rule;
  • a data statistics module configured to collect traffic information of a data packet sent or received.
  • the test data server includes a parameter setting module, a data packet generating module, a data processing module, and a data statistics module.
  • the test data server is actually a packet generator, and the data terminal can be connected to the connected terminal or terminal according to the application requirement. The passed link is tested.
  • the network device can be a system of the station or other network device. In the test of the base station system, the connection is established by using the packet generator and a large number of terminals, and the data packet is sent to achieve the test purpose.
  • This parameter setting module is used to set packet generation rules, packet reception rules, and packet transmission.
  • the data packet generation rule includes the generated data packet size, content, and the like;
  • the data packet receiving rule includes the receiving data buffer setting, the parsing of the interaction information, and the like;
  • the data packet sending rule includes whether the sending parameter sends the message according to the parsed message, whether According to the configuration data packet, the data is forcibly transmitted, the data packet is too large, and the sending time interval is too small.
  • the display parameters include the access connection client, that is, the terminal information, the sending and receiving rate, and the sending and receiving statistics.
  • the data packet generation module is responsible for generating a data packet according to the data packet generation rule after the parameter setting module sets the data packet generation rule, and then the data processing module sends the generated data packet to the terminal.
  • the generated data packet may be a data packet of a traditional voice, a short message, or the like, or a data packet of a third generation mobile communication service such as a data transmission or a data application.
  • the data statistics module is responsible for traffic statistics and processing of each connected terminal of the entire test system, including traffic statistics of the access connection and traffic statistics processed by the entire system.
  • the data processing module is the core of the entire test system, including the transmission of data packets sent to the connection terminal, and the reception and parsing of each received connection message.
  • the test system can simulate the situation that a large number of users are connected at the same time, and carry out data services, so that the hardware device can simulate the externally similar actual scene more accurately under certain circumstances, and meet the performance test requirements of the data service, so that the test result is more reliable.
  • the packet size, the time interval for sending packets, etc. it is possible to construct a large packet or a fast packet to impact the network device, and to some extent, test the robustness of the network device, and also test the reception of the access terminal.
  • the ability to data dynamically adjust the transmitted packet size and transmission interval without restarting the test data server, improving test efficiency, and adjusting different transmission and reception parameters for different users, so that reception and transmission are in an optimal state, mining Out of the limit performance of network equipment.
  • the data processing module when the data packet sent by the terminal includes signaling information, the data processing module is further configured to parse the signaling information to obtain a data packet generation, sending, and receiving rule, and the data packet generating module presses The generation rule generated by the signaling information generates a data packet, and the data processing module transmits the data packet according to the transmission rule parsed by the signaling information, and receives the data packet according to the reception rule parsed by the signaling information.
  • the test data server can send and receive data according to the configuration message sent by the terminal connected to the connection, thereby improving the flexibility of testing.
  • a logging module is further included for recording log information when the test data server is running.
  • the logging module also runs through the entire test system and is responsible for the log processing tasks of the entire test system, including the logging of data statistics logs and the logging of test system runtime logs.
  • the logging module is further configured to perform exception handling when the test data server fails. Provide reliable log and abnormal record information through the logging module, which provides a basis for the analysis of test results and the location of problems.
  • An embodiment of the test system of the present invention further includes a display module for displaying data transmission information of each terminal.
  • the display module is used to display the traffic information of each access connection client, which can be displayed in real time, and can dynamically display the information of each connected client through data or graphic.
  • a system management module is further included for controlling the startup of the test data server and initializing the test data server.
  • the system management module controls the start and stop of the test data server and can initialize the various modules of the test system by reading the configuration file.
  • the connection between the test data server and the network device is a socket connection.
  • the test system supports both TCP and UDP socket connections, which makes the test diversified, further ensuring the reliability of the system and the accuracy of the test.
  • a test method provided by the present invention comprising connecting a network device for carrying data transmission And the step of forming a test environment between the terminal and the test data server, further comprising the steps of: setting a data packet generation, sending, and receiving rule;
  • a data statistics module configured to collect traffic information of a data packet sent or received.
  • FIG. 2 is a flowchart of system access according to an embodiment of a test system according to the present invention.
  • the system management module reads a configuration file to initialize each module of the test system. If the initialization is successful, the interception of the accessed socket is started, otherwise the application is terminated. When the new socket connection is detected, the system management module determines whether the access connection is legal. If it is legal, the interface is associated with the data processing module through the interface, and the data processing module calls the display module and the log record. Modules, etc. to serve the socket, real-time information display and log records.
  • FIG. 3 is a data processing flowchart of an embodiment of the test system according to the present invention. If the parameter change setting is not performed, data transmission and reception, log recording, real-time display, and the like are performed according to the configuration information that is initially read.
  • each module operates according to the set parameters.
  • the data processing module and the access connection After the newly accessed socket is associated with the data processing module, the data processing module and the access connection perform signaling interaction to obtain the interaction information and save it.
  • a signaling message that cannot be parsed is received, it is processed as normal data. If the relevant configuration signaling message is not received, and the data configuration is not set in the parameter configuration, the data transmission and reception cannot be processed. If the configuration signaling message sent by the access connection is parsed, the parameter setting module does not set the data packet according to the parameter setting and sends, and the data is constructed according to the configuration signaling message and is sent and received; otherwise, the data packet is constructed according to the parameter setting parameter. Send and receive normally.
  • the actual processing capacity and physical bearer energy of the base station system are combined after all access connections work normally. Force, analyze whether the actual flow information reaches the expected value. If not, reconfigure the transmitted data packet, adjust the transmission time interval, and force the configuration to send data while maintaining all current connections.
  • the data processing module continuously performs heartbeat detection on each connection to detect whether the socket connection is faulty. If a fault occurs, immediately notify the logging module to perform exception processing and record, and notify the real-time display module to stop displaying the socket.
  • the information of the connection, and the association of the socket connection with the data processing module is not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, the data processing module.
  • the method in the step of sending the generated data packet to the network device according to the sending rule, and receiving the data packet sent by the terminal according to the receiving rule, the method further includes:
  • the signaling information is parsed, and the data packet is generated according to the generation rule parsed by the signaling information, and the data packet is sent according to the sending rule parsed by the signaling information, according to the letter
  • the receiving rule that parses the information receives the data packet.
  • the method further includes the steps of:

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种测试系统及测试方法,用于承载数据传输的网络设备连接在终端和测试数据服务器之间以构成测试环境,可以设置数据包生成、发送、接收规则,并根据所述生成规则,生成数据包;将生成的数据包按照所述发送规则发送给所述网络设备,以及按照所述接收规则接收所述终端发送的数据包;统计所述发送或接收的数据包的流量信息。本发明系统及方法,可根据测试需求构造各种类型的测试包,从而使测试更加多样化,并且能灵活进行与终端收发参数的协商,提高了系统的可靠性。

Description

一种测试系统及测试方法 技术领域
本发明涉及通讯领域, 尤其涉及一种测试系统及测试方法。 背景技术
近年来, 随着通信行业的飞速发展, 第三代移动通信网络慢慢遍布全 球。 人们关注的重点除了传统的语音、 短信等等业务外, 数据传输、 数据 应用等业务也成了第三代移动通信网络区别于前几代的移动通信网络的主 要特征, 也成了人们的主要关注点。 作为第三代移动通信网络设备供应商, 为了保障设备数据业务、 数据应用的可靠性和稳定性, 必须把相关业务作 为测试时的一大重点测试任务来进行。
如果按照传统的测试方式, 没办法对当前的基站系统进行有效、 可靠 的测试, 也没办法测试到基站系统的最大负载及各项极限处理能力。 因此, 必须釆取仿真的测试方法。 在仿真测试中, 对于连接到基站系统的终端, 因为要仿真局外真实运行环境, 从而需要大量的终端用户数, 所以必须使 用仿真终端。 对于通过基站系统和大量仿真终端进行连接的测试数据服务 器, 若进行仿真实现则存在较大难度, 所以釆用真实的测试数据服务器。
在真实数据服务器的选择中, 通过 FTP数据服务器也可达到一定的测 试目的, 但给测试带了很大难度。 对于每一个仿真终端作为 FTP客户端都 需要按照 FTP客户端的连接建立流程建立与 FTP数据服务器之间的连接, 然后再按照 FTP 的文件传输流程去通过上传或下载来对基站系统进行测 试。 例如, 使用 FTP数据服务器来对基站系统进行仿真话务测试, 在此仿 真测试中, 要测试的是基站系统的数据业务及数据相关处理能力, 而并非 测试基站系统对 FTP协议的支持或测试 FTP数据服务器本身, 因此没必要 通过完整的 FTP建立过程及使用 FTP 的相关命令进行数据交互来进行测 试, FTP数据服务器在此话务测试中也不太适用。
很明显, 通过 FTP数据服务器来进行测试, 在少量终端用户时不存在 什么大的问题, 但在大量终端用户时如果不把连接建立过程、 文件传输控 制过程实现自动化, 整个测试过程难以实现。 另外, FTP数据服务器仅为 FTP 协议的实现, 不能实现和仿真终端进行信令交互, 不能与仿真终端进 行灵活的收发参数协商, 也不能根据测试需求构造各种类型的测试包。 发明内容
本发明的主要目的在于提供一种测试系统及测试方法, 使测试更加多 样化, 并提高了系统的可靠性。
为了达到上述的目的, 本发明的技术方案是这样实现的:
一种测试系统, 用于对网络设备进行测试, 所述网络设备在进行测试 时与终端构成测试环境, 所述系统包括测试数据服务器, 所述测试数据服 务器包括:
参数设置模块, 用于设置数据包生成、 发送、 接收规则;
数据包生成模块, 用于根据所述生成规则, 生成数据包;
数据处理模块, 用于根据所述发送规则将生成的数据包发送给所述网 络设备, 以及根据所述接收规则接收由所述终端发送的数据包;
数据统计模块, 用于统计所述发送或接收的数据包的流量信息。
当所述终端发送的数据包中包含信令信息时,
所述数据处理模块还用于: 解析所述信令信息以得到数据包生成、 发 送、 接收规则;
所述数据包生成模块, 用于按由所述信令信息解析出的数据包生成规 则生成数据包;
所述数据处理模块, 用于按由所述信令信息解析出的数据包发送、 接 收规则收发数据包。
该系统还包括日志记录模块, 用于记录所述测试数据服务器运行时的 日志信息。
所述日志记录模块还用于: 在所述测试数据服务器出现故障时进行异 常处理。
该系统还包括显示模块, 用于显示所述各个终端的数据传输信息。 该系统还包括系统管理模块, 用于控制所述测试数据服务器的启动, 并进行所述测试数据服务器的初始化。
所述测试数据服务器与所述网络设备之间的连接为套接口连接。
一种测试方法, 用于承载数据传输的网络设备连接在终端和测试数据 服务器之间以构成测试环境, 该方法包括:
设置数据包生成、 发送、 接收规则, 并根据所述生成规则, 生成数据 包;
将生成的数据包按照所述发送规则发送给所述网络设备, 以及按照所 述接收规则接收所述终端发送的数据包;
统计所述发送或接收的数据包的流量信息。
按照所述接收、 发送规则收发所述数据包的的过程包括:
当所述终端发送的数据包中包含信令信息时, 解析所述信令信息, 并 按由所述信令信息解析出的生成规则生成数据包, 按由所述信令信息解析 出的发送规则发送数据包, 按由所述信令信息解析出的接收规则接收数据 包。
进行所述统计之后, 该方法还包括:
记录所述测试数据服务器运行时的日志信息。
本发明的有益效果是: 通过数据处理模块根据参数设置模块设置的发 送规则将按参数设置模块设置的生成规则生成的数据包发送给网络设备, 以及根据接收规则接收所述终端发送的数据包, 使测试可根据测试需求构 造各种类型的测试包, 从而使测试更加多样化, 并且能与终端灵活地进行 收发参数的协商, 提高了系统的可靠性。 附图说明
图 1为本发明测试系统一种实施例的结构示意图;
图 2为本发明测试系统一种实施例的系统接入流程图;
图 3为本发明测试系统一种实施例的数据处理流程图。 具体实施方式
下面通过具体实施方式结合附图对本发明作进一步详细说明。
本发明测试系统的一种实施例中, 该测试系统用于对网络设备进行测 试, 网络设备在进行测试时与终端构成测试环境, 包括测试数据服务器, 测试数据服务器包括:
参数设置模块, 用于设置数据包生成、 发送、 接收规则;
数据包生成模块, 用于根据参数设置模块设置的生成规则, 生成数据 包;
数据处理模块, 用于根据发送规则将生成的数据包发送给网络设备, 以及根据接收规则接收终端发送的数据包;
数据统计模块, 用于统计发送或接收的数据包的流量信息。
请参考图 1 , 测试数据服务器包括参数设置模块、 数据包生成模块、 数 据处理模块和数据统计模块, 该测试数据服务器其实是一个包产生器, 可 根据应用需要产生数据包对连接的终端或终端经过的链路进行测试。 该网 络设备可以 ^^站系统, 也可以是其他网络设备, 在对基站系统的测试中, 通过使用此包产生器和大量终端建立连接, 并发送数据包来达到测试目的。 该参数设置模块用于设置数据包生成规则、 数据包接收规则、 数据包发送 规则、 显示参数、 信令交互信息保存、 参数的文件保存, 其负责整个测试 系统中的参数设置, 贯穿整个测试系统所有模块, 对每个模块的设置都在 这里进行。 数据包生成规则包括生成的数据包大小、 内容等; 数据包接收 规则包括接收数据緩冲区设置、 交互信息的解析等; 数据包发送规则包括 是否按照解析到的消息中发送参数发送消息、 是否按照配置数据包强行发 送数据、 数据包过大及发送时间间隔过小的处理; 显示参数包括接入连接 客户端, 即终端信息、 收发速率、 收发统计。 数据包生成模块负责在参数 设置模块设置数据包生成规则以后, 按照其数据包生成规则生成数据包, 然后由数据处理模块将生成的数据包发送给终端。 该生成的数据包可以是 传统的语音、 短信等业务的数据包, 也可以是数据传输、 数据应用等第三 代移动通信业务的数据包。 数据统计模块负责整个测试系统的各个连接终 端的流量统计和处理, 包括接入连接的流量统计和整个系统所处理的流量 统计。 数据处理模块为整个测试系统的核心, 包括发送给连接终端的数据 包的发送、 接受到的各连接消息的接收与解析。 待所有接入连接工作正常 后, 结合网络设备实际处理能力和物理承载能力, 分析实际流量信息是否 达到预期值。 若没有, 则在保持目前所有连接的情况下, 重新构造发送的 数据包, 调整发送时间间隔, 并强行按配置发送数据。
该测试系统可以模拟大量用户同时连接的情况, 并进行数据业务, 使 得在硬件设备一定的情况下能更精确的模拟局外类似实际场景, 满足了数 据业务的性能测试需求, 使得测试结果更可靠; 通过自由构造数据包大小、 发送数据包的时间间隔等, 可构造大包或者快速小包对网络设备进行冲击, 在一定程度上也测试了网络设备的健壮性, 也测试了接入终端的接收数据 的能力; 通过动态调整发送的数据包大小和发送时间间隔而不用重新启动 测试数据服务器, 提高了测试效率, 同时可调整不同用户时的不同收发参 数, 使接收与发送处于最佳状态, 挖掘出网络设备的极限性能。 本发明测试系统的一种实施例中, 当终端发送的数据包中包含信令信 息时, 数据处理模块还用于解析信令信息以得到数据包生成、 发送、 接收 规则, 数据包生成模块按由信令信息解析出的生成规则生成数据包, 数据 处理模块按由信令信息解析出的发送规则发送数据包, 并按由信令信息解 析出的接收规则接收数据包。 通过对收到的数据包进行解析, 使得测试数 据服务器可以按照接入连接的终端所发送的配置消息收发数据, 提高了测 试的灵活性。
本发明测试系统的一种实施例中, 还包括日志记录模块, 用于记录测 试数据服务器运行时的日志信息。 日志记录模块同样贯穿整个测试系统, 负责整个测试系统的日志处理任务, 包括数据统计日志的记录和测试系统 运行日志的己录。
本发明测试系统的一种实施例中, 日志记录模块还用于在测试数据服 务器出现故障时进行异常处理。 通过日志记录模块提供可靠的日志及异常 记录信息, 为测试结果的分析及出现问题的定位提供了一定依据。
本发明测试系统的一种实施例中, 还包括显示模块, 用于显示各个终 端的数据传输信息。 显示模块用于显示各接入连接客户端的流量信息, 可 以是实时显示, 可通过数据或图形动态显示各连接客户端信息。
本发明测试系统的一种实施例中, 还包括系统管理模块, 用于控制测 试数据服务器的启动, 并进行测试数据服务器的初始化。 系统管理模块控 制测试数据服务器的启动和停止, 并可通过读取配置文件来初始化测试系 统的各个模块。
本发明测试系统的一种实施例中, 测试数据服务器与网络设备之间的 连接为套接口连接。 该测试系统同时支持 TCP、 UDP套接口连接, 使得测 试多样化, 进一步保障了系统的可靠性及测试的准确度。
本发明提供的一种测试方法, 包括将用于承载数据传输的网络设备连 接在终端和测试数据服务器之间构成测试环境的步骤, 还包括步骤: 设置数据包生成、 发送和接收规则;
根据参数设置模块设置的生成规则, 生成数据包;
将生成的数据包按照发送规则发送给网络设备, 以及按照接收规则接 收终端发送的数据包;
数据统计模块, 用于统计发送或接收的数据包的流量信息。
请参考图 2 , 为本发明测试系统一种实施例的系统接入流程图, 系统管 理模块读取配置文件来初始化测试系统各个模块, 若初始化成功, 开始监 听接入的套接口, 否则终止应用程序; 当监听到有新的套接口连接的时候, 系统管理模块判断接入连接是否合法, 若合法则将该套接口通过接口和数 据处理模块关联起来, 数据处理模块再调用显示模块、 日志记录模块等来 为套接口服务, 进行实时信息显示和日志记录。
请参考图 3 , 为本发明测试系统一种实施例的数据处理流程图, 若不进 行参数更改设置, 则按初始化读取的配置信息进行数据收发、 日志记录、 实时显示等。
若通过参数设置模块对参数进行了更改, 则各模块都按照所设置的参 数运行。
当新接入的套接口和数据处理模块关联起来后, 数据处理模块和接入 连接进行信令交互, 获取交互信息并保存起来。
若接收到不能解析的信令消息, 则按普通数据来处理。 如果没接收到 相关的配置信令消息, 参数配置中又没有设置按参数设置要求进行数据收 发, 则数据收发不能处理。 如果解析到接入连接发过来的配置信令消息, 参数设置模块中没有设置按参数设置构造数据包并发送, 就按配置信令消 息构造数据并进行收发送; 否则按参数设置参数构造数据包正常进行收发。
待所有接入连接工作正常后结合基站系统实际处理能力和物理承载能 力, 分析实际流量信息是否达到预期值。 若没有, 则在保持目前所有连接 的情况下, 重新构造发送的数据包, 调整发送时间间隔, 并强行按配置发 送数据。
当连接建立后, 数据处理模块在每一个连接上不断进行心跳检测, 检 测此套接口连接是否故障, 若出现故障则立即通知日志记录模块进行异常 处理并记录、 通知实时显示模块停止显示此套接口连接的信息, 同时解除 此套接口连接与数据处理模块的关联。
本发明测试方法的一种实施例中, 在将生成的数据包按照发送规则发 送给网络设备, 以及按照接收规则接收终端发送的数据包的步骤中, 还包 括:
当终端发送的数据包中包含信令信息时, 解析信令信息, 并按由信令 信息解析出的生成规则生成数据包, 按由信令信息解析出的发送规则发送 数据包, 按由信令信息解析出的接收规则接收数据包。
本发明测试方法的一种实施例中, 在统计发送或接收的数据包的流量 信息的步骤后, 还包括步骤:
记录测试数据服务器运行时的日志信息。
以上内容是结合具体的实施方式对本发明所作的进一步详细说明, 不 能认定本发明的具体实施只局限于这些说明。 对于本发明所属技术领域的 普通技术人员来说, 在不脱离本发明构思的前提下, 还可以做出若干简单 推演或替换, 都应当视为属于本发明的保护范围。

Claims

权利要求书
1、 一种测试系统, 用于对网络设备进行测试, 所述网络设备在进行测 试时与终端构成测试环境, 其特征在于, 所述系统包括测试数据服务器, 所述测试数据服务器包括:
参数设置模块, 用于设置数据包生成、 发送、 接收规则;
数据包生成模块, 用于根据所述生成规则, 生成数据包;
数据处理模块, 用于根据所述发送规则将生成的数据包发送给所述网 络设备, 以及根据所述接收规则接收由所述终端发送的数据包;
数据统计模块, 用于统计所述发送或接收的数据包的流量信息。
2、 如权利要求 1所述的系统, 其特征在于, 当所述终端发送的数据包 中包含信令信息时,
所述数据处理模块还用于: 解析所述信令信息以得到数据包生成、 发 送、 接收规则;
所述数据包生成模块, 用于按由所述信令信息解析出的数据包生成规 则生成数据包;
所述数据处理模块, 用于按由所述信令信息解析出的数据包发送、 接 收规则收发数据包。
3、 如权利要求 1所述的系统, 其特征在于, 该系统还包括日志记录模 块, 用于记录所述测试数据服务器运行时的日志信息。
4、如权利要求 3所述的系统,其特征在于, 所述日志记录模块还用于: 在所述测试数据服务器出现故障时进行异常处理。
5、 如权利要求 1所述的系统, 其特征在于, 该系统还包括显示模块, 用于显示所述各个终端的数据传输信息。
6、 如权利要求 1至 5任一项所述的系统, 其特征在于, 该系统还包括 系统管理模块, 用于控制所述测试数据服务器的启动, 并进行所述测试数 据服务器的初始化。
7、 如权利要求 1至 5任一项所述的系统, 其特征在于, 所述测试数据 服务器与所述网络设备之间的连接为套接口连接。
8、 一种测试方法, 用于承载数据传输的网络设备连接在终端和测试数 据服务器之间以构成测试环境, 其特征在于, 该方法包括:
设置数据包生成、 发送、 接收规则, 并根据所述生成规则, 生成数据 包;
将生成的数据包按照所述发送规则发送给所述网络设备, 以及按照所 述接收规则接收所述终端发送的数据包;
统计所述发送或接收的数据包的流量信息。
9、 如权利要求 8所述的方法, 其特征在于, 按照所述接收、 发送规则 收发所述数据包的的过程包括:
当所述终端发送的数据包中包含信令信息时, 解析所述信令信息, 并 按由所述信令信息解析出的生成规则生成数据包, 按由所述信令信息解析 出的发送规则发送数据包, 按由所述信令信息解析出的接收规则接收数据 包。
10、 如权利要求 8或 9所述的方法, 其特征在于, 进行所述统计之后, 该方法还包括:
记录所述测试数据服务器运行时的日志信息。
PCT/CN2011/075737 2010-11-09 2011-06-14 一种测试系统及测试方法 WO2012062108A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010536448.7A CN102006616B (zh) 2010-11-09 2010-11-09 一种测试系统及测试方法
CN201010536448.7 2010-11-09

Publications (1)

Publication Number Publication Date
WO2012062108A1 true WO2012062108A1 (zh) 2012-05-18

Family

ID=43813594

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/075737 WO2012062108A1 (zh) 2010-11-09 2011-06-14 一种测试系统及测试方法

Country Status (2)

Country Link
CN (1) CN102006616B (zh)
WO (1) WO2012062108A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006616B (zh) * 2010-11-09 2014-06-11 中兴通讯股份有限公司 一种测试系统及测试方法
CN102209010B (zh) * 2011-06-10 2013-09-25 北京神州绿盟信息安全科技股份有限公司 一种网络测试系统和方法
CN103166842B (zh) * 2011-12-13 2016-08-31 百度在线网络技术(北京)有限公司 基于多核平台的报文生成方法及生成装置
WO2014000269A1 (en) * 2012-06-29 2014-01-03 Hewlett-Packard Development Company, L.P. Rule-based automated test data generation
WO2015077920A1 (zh) * 2013-11-26 2015-06-04 华为技术有限公司 网络设备的性能测试方法、终端、管理设备和系统
CN104486146B (zh) * 2014-12-03 2017-12-22 中国航空工业集团公司第六三一研究所 一种测试控制台与测试设备之间的通信方法
CN105792261A (zh) * 2014-12-17 2016-07-20 中兴通讯股份有限公司 丢包位置的辅助定位方法及装置
CN107480053B (zh) * 2017-07-21 2021-08-17 销冠网络科技有限公司 一种软件测试数据生成方法及装置
CN108199957A (zh) * 2017-12-13 2018-06-22 深圳市共进电子股份有限公司 一种用于路由器测试的测试系统、方法及装置
CN109120483B (zh) * 2018-10-30 2020-08-04 杭州迪普科技股份有限公司 一种防火墙设备性能测试方法及装置
CN109634789B (zh) * 2018-11-20 2022-06-21 锐捷网络股份有限公司 基于数据中心的Full Mesh性能测试方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070047448A1 (en) * 2005-08-24 2007-03-01 Inventec Corporation Network equipment testing method and system
CN100401824C (zh) * 2004-02-04 2008-07-09 华为技术有限公司 移动通信网络测试系统及其方法
WO2009157286A1 (ja) * 2008-06-24 2009-12-30 日本電気株式会社 ネットワーク機器試験システム
CN101656640A (zh) * 2009-09-16 2010-02-24 中兴通讯股份有限公司 一种确定测试数据的方法和设备
CN102006616A (zh) * 2010-11-09 2011-04-06 中兴通讯股份有限公司 一种测试系统及测试方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100401824C (zh) * 2004-02-04 2008-07-09 华为技术有限公司 移动通信网络测试系统及其方法
US20070047448A1 (en) * 2005-08-24 2007-03-01 Inventec Corporation Network equipment testing method and system
WO2009157286A1 (ja) * 2008-06-24 2009-12-30 日本電気株式会社 ネットワーク機器試験システム
CN101656640A (zh) * 2009-09-16 2010-02-24 中兴通讯股份有限公司 一种确定测试数据的方法和设备
CN102006616A (zh) * 2010-11-09 2011-04-06 中兴通讯股份有限公司 一种测试系统及测试方法

Also Published As

Publication number Publication date
CN102006616B (zh) 2014-06-11
CN102006616A (zh) 2011-04-06

Similar Documents

Publication Publication Date Title
WO2012062108A1 (zh) 一种测试系统及测试方法
CN110351156B (zh) 一种测试方法和装置
CN100471139C (zh) 一种网络测试的系统和方法
CN109525461B (zh) 一种网络设备的测试方法、装置、设备及存储介质
CN105553943B (zh) 传屏软件的传输方法、传屏方法、设备及数据传输系统
CN108712485A (zh) 一种物联网设备的资源订阅方法和装置
CN102821416A (zh) 无线通信模块的异常中断测试系统及其应用方法
JP5792379B2 (ja) 自律的に自動中断させるネットワーク要素のためのメッセージフロールート変更
CN101378573B (zh) 一种测试接入网关性能的系统和方法
CN102098702B (zh) 性能测试系统、方法和设备
CN106302027A (zh) 一种sdn控制器性能测试仪及测试方法
CN107819649B (zh) 一种基于海量终端的卫星通信网络的私有协议测试方法
CN101035346B (zh) 一种分组数据业务大话务仿真测试的方法及装置
CN110138617B (zh) 数据传输质量测试方法、系统、电子设备及存储介质
CN101247276B (zh) 用于WiMAX系统的大话务模拟测试工具及测试方法
CN101702811A (zh) 业务质量监控方法和装置
CN112333019A (zh) 路由器的配置、测试方法及系统和可读存储介质
CN105117344B (zh) 一种基于pb的接口集成测试方法和系统
CN100394732C (zh) Wap网关性能的测试方法
CN102315981B (zh) 一种演进分组核心网设备的测试设备及方法
CN105208574A (zh) 终端无线模块的性能检测方法及装置
CN116418567A (zh) 一种网络协议安全性测试系统
CN100518097C (zh) Ggsn设备的简单测试方法
US8595393B2 (en) Message flow rerouting for self-disrupting network element
CN101437029B (zh) 数据传输方法、本地维护终端、代理设备及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11839657

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11839657

Country of ref document: EP

Kind code of ref document: A1