CN102006616B - Test system and test method - Google Patents
Test system and test method Download PDFInfo
- Publication number
- CN102006616B CN102006616B CN201010536448.7A CN201010536448A CN102006616B CN 102006616 B CN102006616 B CN 102006616B CN 201010536448 A CN201010536448 A CN 201010536448A CN 102006616 B CN102006616 B CN 102006616B
- Authority
- CN
- China
- Prior art keywords
- packet
- test
- rule
- module
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a test system and a test method. The test system comprises a test data server, wherein the test data server comprises a parameter setting module for setting data packet generating, sending and receiving rules, a data packet generating module, a data processing module for sending the generated data packet to network equipment according to the data packet sending rules, and a data calculation module. As data processing module sends data packets generated according to the data packet generating rules set by the parameter setting module to the network equipment according to the data packet sending rules set by the parameter setting module and receives the data packets sent by a terminal according to the data packet receiving rules, various test packages for test can be generated according to test requirements, so that test is more diversified; and the system can flexibly negotiate the receiving and sending parameters with the terminal, so that the reliability of the system is improved.
Description
Technical field
The present invention relates to communication field, relate in particular to a kind of test macro and method of testing.
Background technology
In recent years, along with the develop rapidly of the communications industry, 3 G mobile communication network slowly spreads all over the world.The emphasis that people pay close attention to is except traditional voice, note etc. business, and the business such as transfer of data, market demand have also become 3 G mobile communication network to be different from the principal character of the mobile communications network of earlier generations, have also become people's main focus.As 3 G mobile communication network equipment supplier, for the reliability and stability of support equipment data service, market demand, must the large stress test task using related service as when test carry out.
If according to traditional test mode, can not carry out effectively current base station system, test reliably, also can not test maximum load and every limit disposal ability of base station system.Therefore, must take the method for testing of emulation.In emulation testing, for the terminal that is connected to base station system, because want emulation real running environment not in the know, thereby need a large amount of terminal use's numbers, so must use emulation terminal.For by base station system and the test data server that a large amount of emulation terminals are connected, there is larger difficulty if carry out the Realization of Simulation, so adopt real test data server.
In the selection of True Data server, also can reach certain test purpose by FTP data server, but give test tape great difficulty.Need to set up being connected between FTP data server for each emulation terminal according to the connection building process of ftp client as ftp client, and then go by uploading or downloading base station system is tested according to the file transfer flow process of FTP.For example, base station system is carried out to emulation call test with FTP data server, in this emulation testing, what test is data service and the data correlation process ability of base station system, and be not support or the test FTP data server itself of testing base station system to File Transfer Protocol, therefore need not and carry out data interaction with the related command of FTP and test by complete FTP process of establishing, FTP data server be also not too applicable in this call test.
Clearly, test by FTP data server, in the time of a small amount of terminal use, do not have what large problem, if but connection process of establishing, file transfer control procedure are not realized to automation in the time of great amount of terminals user, whole test process is difficult to realize.In addition, FTP data server is only the realization of File Transfer Protocol, can not realize with emulation terminal and carry out Signalling exchange, can not be flexibly and emulation terminal receive and dispatch the negotiation of parameter etc., can not construct various types of test packs according to testing requirement.
Summary of the invention
The main technical problem to be solved in the present invention is, a kind of test macro and method of testing are provided, and makes test more diversified, and improved the reliability of system.
A kind of test macro provided by the invention, for the network equipment is tested, the described network equipment in the time testing and terminal form test environment, comprise test data server, described test data server comprises:
Parameter arranges module, generates, sends, receives rule for packet is set;
Packet generation module, the packet create-rule arranging for module is set according to described parameter, generated data bag;
Data processing module, for giving the described network equipment according to Packet Generation rule by the Packet Generation of described generation, and receives according to packet the packet that the described terminal of rule reception sends;
Data statistics module, for adding up the flow information of packet of described transmission or reception.
In a kind of embodiment of test macro of the present invention, in the time comprising signaling information in the packet that described terminal sends, described data processing module also obtains packet generation for resolving described signaling information, sends, receives rule, described packet generation module is by the packet create-rule generated data bag being parsed by described signaling information, described data processing module sends packet by the Packet Generation rule being parsed by described signaling information, and receives rule reception packet by the packet being parsed by described signaling information.
In a kind of embodiment of test macro of the present invention, also comprise logger module, the log information while operation for recording described test data server.
In a kind of embodiment of test macro of the present invention, described logger module also for carrying out abnormality processing in the time that described test data server breaks down.
In a kind of embodiment of test macro of the present invention, also comprise display module, for showing the data transmission information of described each terminal.
In a kind of embodiment of test macro of the present invention, also comprise system management module, for controlling the startup of described test data server, and carry out the initialization of described test data server.
In a kind of embodiment of test macro of the present invention, the socket that is connected between described test data server and the described network equipment is connected.
A kind of method of testing provided by the invention, comprises and will be connected to the step that forms test environment between terminal and test data server for the network equipment of bearer data transmission, also comprises step:
Packet generation, sending and receiving rule are set;
According to described parameter, the packet create-rule that module arranges, generated data bag are set;
The packet of described generation is sent to the described network equipment according to described Packet Generation rule, and receive according to described packet the packet that the described terminal of rule reception sends;
Data statistics module, for adding up the flow information of packet of described transmission or reception.
In a kind of embodiment of method of testing of the present invention, the packet of described generation is being sent to the described network equipment according to described Packet Generation rule, and is receiving according to described packet in the step of packet of the described terminal transmission of rule reception, also comprising:
In the time comprising signaling information in the packet that described terminal sends, resolve described signaling information, and by the packet create-rule generated data bag being parsed by described signaling information, send packet by the Packet Generation rule being parsed by described signaling information, receive rule by the packet being parsed by described signaling information and receive packet.
In a kind of embodiment of method of testing of the present invention, after the step of the flow information of the packet of the described transmission of described statistics or reception, also comprise step:
Log information while recording described test data server operation.
The invention has the beneficial effects as follows: the Packet Generation rule that module setting is set according to parameter by data processing module will arrange Packet Generation that packet create-rule that module arranges generates to the network equipment by parameter, and receive according to packet the packet that the described terminal of rule reception sends, make test construct various types of test packs according to testing requirement, thereby make test more diversified, and this system energy is flexible and terminal is received and dispatched the negotiation of parameter, therefore improved the reliability of system.
Brief description of the drawings
Fig. 1 is the structural representation of a kind of embodiment of test macro of the present invention;
Fig. 2 is the system access flow chart of a kind of embodiment of test macro of the present invention;
Fig. 3 is the flow chart of data processing figure of a kind of embodiment of test macro of the present invention.
Embodiment
By reference to the accompanying drawings the present invention is described in further detail below by embodiment.
In a kind of embodiment of test macro of the present invention, this test macro is for testing the network equipment, the network equipment in the time testing with terminal formation test environment, comprise test data server, test data server comprises:
Parameter arranges module, generates, sends, receives rule for packet is set;
Packet generation module, the packet create-rule arranging for module is set according to parameter, generated data bag;
Data processing module, for according to Packet Generation rule by the Packet Generation generating to the network equipment, and receive according to packet the packet that regular receiving terminal sends;
Data statistics module, for adding up the flow information of the packet sending or receive.
Please refer to Fig. 1, test data server comprises that parameter arranges module, packet generation module, data processing module and data statistics module, this test data server is a packet generation device in fact, can need to produce packet according to application the terminal connecting or the link of terminal process are tested.This network equipment can be base station system, can be also other network equipments, in to the test of base station system, by using this packet generation device and great amount of terminals to connect, and sends packet and reaches test purpose.This parameter arranges that module receives for packet create-rule, packet are set that rule, Packet Generation are regular, display parameters, Signalling exchange information are preserved, the file of parameter is preserved, it is responsible for the parameter setting in whole test macro, run through all modules of whole test macro, the setting of each module is here carried out.Packet create-rule comprises data package size, the content etc. of generation; Packet receives the regular parsing that comprises reception data buffer setting, interactive information etc.; Whether Packet Generation rule comprises according to sending parameter in the message being resolved to and sends message, whether sends by force data, packet is excessive and transmission time interval is too small processing according to configuration data bag; Display parameters comprise that access connects client, i.e. end message, transmitting-receiving speed, transmitting-receiving statistics.Packet generation module is responsible for after parameter arranges module packet create-rule is set, according to its packet create-rule generated data bag, then by data processing module by the Packet Generation generating to terminal.The packet of this generation can be the packet of the traditional business such as voice, note, can be also the packet of the 3G (Third Generation) Moblie such as transfer of data, market demand business.Data statistics module is responsible for traffic statistics and the processing of each connection terminal of whole test macro, comprises traffic statistics and the handled traffic statistics of whole system that access connects.Data processing module is the core of whole test macro, comprises and sends to the transmission of the packet that connects terminal, reception and the parsing of each connection message of receiving.After all accesses connections are working properly, in conjunction with network equipment actual treatment ability and physical carrying capacity, analyze actual flow information and whether reach desired value.If no,, in the situation that keeping current all connections, re-construct the packet of transmission, adjust transmission time interval, and send data by configuration by force.
This test macro can be simulated the situation that a large number of users connects simultaneously, and carry out data service, make can simulate more accurately similar actual scene not in the know in the situation that hardware device is certain, met the performance test demand of data service, make test result more reliable; By free structure data package size, send time interval etc. of packet, can construct large bag or fast parcel the network equipment is impacted, also tested to a certain extent the robustness of the network equipment, also tested the ability of the reception data that access terminal; The data package size sending by dynamic adjustment and transmission time interval and need not restart test data server, improve testing efficiency, simultaneously difference transmitting-receiving parameter when capable of regulating different user, makes to receive and sends in optimum state, excavates the limiting performance of the network equipment.
In a kind of embodiment of test macro of the present invention, in the time comprising signaling information in the packet that terminal sends, data processing module also obtains packet generation for resolving signaling information, sends, receives rule, packet generation module is by the packet create-rule generated data bag being parsed by signaling information, data processing module sends packet by the Packet Generation rule being parsed by signaling information, and receives rule reception packet by the packet being parsed by signaling information.By the packet of receiving is resolved, the configuration messages transceiving data that the terminal that test data server can be connected according to access sends, has improved the flexibility of testing.
In a kind of embodiment of test macro of the present invention, also comprise logger module, the log information while operation for record test data server.Logger module runs through whole test macro equally, is responsible for the log processing task of whole test macro, comprises the record of data statistics daily record and the record of test macro running log.
In a kind of embodiment of test macro of the present invention, logger module also for carrying out abnormality processing in the time that test data server breaks down.Provide reliable daily record and exception record information by logger module, for the analysis of test result and the location going wrong provide certain foundation.
In a kind of embodiment of test macro of the present invention, also comprise display module, for showing the data transmission information of each terminal.Display module connects the flow information of client for showing each access, can be real-time demonstration, can respectively connect client-side information by data or figure dynamic display.
In a kind of embodiment of test macro of the present invention, also comprise system management module, for controlling the startup of test data server, and carry out the initialization of test data server.The startup of system management module control test data server and stopping, and can carry out by reading configuration file the modules of initialization test system.
In a kind of embodiment of test macro of the present invention, the socket that is connected between test data server and the network equipment is connected.This test macro supports TCP, UDP socket to connect simultaneously, makes test variation, has further ensured the reliability of system and the accuracy of test.
A kind of method of testing provided by the invention, comprises and will be connected to the step that forms test environment between terminal and test data server for the network equipment of bearer data transmission, also comprises step:
Packet generation, sending and receiving rule are set;
According to parameter, the packet create-rule that module arranges, generated data bag are set;
The packet of generation is sent to the network equipment according to Packet Generation rule, and receive according to packet the packet that regular receiving terminal sends;
Data statistics module, for adding up the flow information of the packet sending or receive.
Please refer to Fig. 2, is the system access flow chart of a kind of embodiment of test macro of the present invention, and system management module reads configuration file and carrys out initialization test system modules, if initialization success starts to monitor the socket of access, otherwise stops application program; In the time listening to new socket connection, system management module judges whether access connects legal, this socket is associated by interface and data processing module if legal, data processing module calls display module, logger module etc. again to be come, for socket service, to carry out real time information demonstration and log recording.
Please refer to Fig. 3, is the flow chart of data processing figure of a kind of embodiment of test macro of the present invention, if do not carry out parameter change setting, the configuration information reading by initialization carries out data transmit-receive, log recording, demonstration in real time etc.
If module is set by parameter, parameter is changed, each module is all according to set parameter operation.
After the socket of new access and data processing module associate, data processing module is connected and carries out Signalling exchange with access, obtains interactive information and saves.
If receive the signaling message that can not resolve, process by general data.If do not receive relevant configuration signal message, in parameter configuration, do not arrange again and by parameter, requirement is set and carries out data transmit-receive, data transmit-receive can not be processed.Connect if be resolved to access the configuration signal message that sends, parameter arranges in module and does not arrange by parameter and construction data bag is set and sends, just by configuration signal message constructing data and transmit and receive; Otherwise normally receive and dispatch by parameter parameters construction data bag.
After all accesses connections are working properly, in conjunction with base station system actual treatment ability and physical carrying capacity, analyze actual flow information and whether reach desired value.If no,, in the situation that keeping current all connections, re-construct the packet of transmission, adjust transmission time interval, and send data by configuration by force.
When connecting after foundation, data processing module constantly carries out heartbeat detection on each connects, detect this socket and whether connect fault, notify immediately logger module to carry out abnormality processing if break down and record, notify real-time display module to stop showing the information that this socket connects, removing this socket simultaneously and connect associated with data processing module.
In a kind of embodiment of method of testing of the present invention, the packet of generation is being sent to the network equipment according to Packet Generation rule, and is receiving according to packet in the step of packet of regular receiving terminal transmission, also comprising:
In the time comprising signaling information in the packet that terminal sends, resolve signaling information, and by the packet create-rule generated data bag being parsed by signaling information, send packet by the Packet Generation rule being parsed by signaling information, receive rule by the packet being parsed by signaling information and receive packet.
In a kind of embodiment of method of testing of the present invention, after the step of the flow information of the packet that sends or receive in statistics, also comprise step:
The log information when operation of record test data server.
Above content is in conjunction with concrete execution mode further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.
Claims (8)
1. a test macro, for the network equipment is tested, the described network equipment in the time testing and terminal form test environment, it is characterized in that, comprise test data server, described test data server comprises:
Parameter arranges module, generates, sends, receives rule for packet is set;
Packet generation module, the packet create-rule arranging for module is set according to described parameter, generated data bag; Also, in the time that the actual flow information of the packet of data statistics module statistics does not reach desired value, re-construct the packet of transmission;
Data processing module, for giving the described network equipment according to Packet Generation rule by the Packet Generation of described generation, and receives according to packet the packet that the described terminal of rule reception sends;
Data statistics module, for adding up the flow information of packet of described transmission or reception;
In the time comprising signaling information in the packet that described terminal sends, described data processing module also obtains packet generation for resolving described signaling information, sends, receives rule, described packet generation module is by the packet create-rule generated data bag being parsed by described signaling information, described data processing module sends packet by the Packet Generation rule being parsed by described signaling information, and receives rule reception packet by the packet being parsed by described signaling information.
2. test macro as claimed in claim 1, is characterized in that, also comprises logger module, the log information while operation for recording described test data server.
3. test macro as claimed in claim 2, is characterized in that, described logger module also for carrying out abnormality processing in the time that described test data server breaks down.
4. test macro as claimed in claim 1, is characterized in that, also comprises display module, for showing the data transmission information of each terminal.
5. the test macro as described in any one in claim 1-4, is characterized in that, also comprises system management module, for controlling the startup of described test data server, and carries out the initialization of described test data server.
6. test macro as claimed in claim 5, is characterized in that, the socket that is connected between described test data server and the described network equipment is connected.
7. a method of testing, comprises be connected to the step that forms test environment between terminal and test data server for the network equipment of bearer data transmission, it is characterized in that, also comprises step:
Packet generation, sending and receiving rule are set;
According to packet create-rule, generated data bag;
The packet of described generation is sent to the described network equipment according to described Packet Generation rule, and receive according to described packet the packet that the described terminal of rule reception sends;
Add up the flow information of the packet of described transmission or reception;
While not reaching desired value according to the actual flow information of the packet of statistics, re-construct the packet of transmission;
The packet of described generation is being sent to the described network equipment according to described Packet Generation rule, and is receiving according to described packet in the step of packet of the described terminal transmission of rule reception, also comprising:
In the time comprising signaling information in the packet that described terminal sends, resolve described signaling information, and by the packet create-rule generated data bag being parsed by described signaling information, send packet by the Packet Generation rule being parsed by described signaling information, receive rule by the packet being parsed by described signaling information and receive packet.
8. method of testing as claimed in claim 7, is characterized in that, after the step of the flow information of the packet of the described transmission of described statistics or reception, also comprises step:
Log information while recording described test data server operation.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010536448.7A CN102006616B (en) | 2010-11-09 | 2010-11-09 | Test system and test method |
PCT/CN2011/075737 WO2012062108A1 (en) | 2010-11-09 | 2011-06-14 | Test system and test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010536448.7A CN102006616B (en) | 2010-11-09 | 2010-11-09 | Test system and test method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102006616A CN102006616A (en) | 2011-04-06 |
CN102006616B true CN102006616B (en) | 2014-06-11 |
Family
ID=43813594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010536448.7A Active CN102006616B (en) | 2010-11-09 | 2010-11-09 | Test system and test method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102006616B (en) |
WO (1) | WO2012062108A1 (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102006616B (en) * | 2010-11-09 | 2014-06-11 | 中兴通讯股份有限公司 | Test system and test method |
CN102209010B (en) * | 2011-06-10 | 2013-09-25 | 北京神州绿盟信息安全科技股份有限公司 | Network test system and method |
CN103166842B (en) * | 2011-12-13 | 2016-08-31 | 百度在线网络技术(北京)有限公司 | Message forming method based on multi-core platform and generating means |
CN104380663A (en) * | 2012-06-29 | 2015-02-25 | 惠普发展公司,有限责任合伙企业 | Rule-based automated test data generation |
WO2015077920A1 (en) * | 2013-11-26 | 2015-06-04 | 华为技术有限公司 | Method, terminal, management device and system for network device performance test |
CN104486146B (en) * | 2014-12-03 | 2017-12-22 | 中国航空工业集团公司第六三一研究所 | A kind of communication means between test console and test equipment |
CN105792261A (en) * | 2014-12-17 | 2016-07-20 | 中兴通讯股份有限公司 | Packet loss position assistant positioning method and device |
CN107480053B (en) * | 2017-07-21 | 2021-08-17 | 销冠网络科技有限公司 | Software test data generation method and device |
CN108199957A (en) * | 2017-12-13 | 2018-06-22 | 深圳市共进电子股份有限公司 | A kind of test system, method and device for router test |
CN109120483B (en) * | 2018-10-30 | 2020-08-04 | 杭州迪普科技股份有限公司 | Firewall equipment performance test method and device |
CN109634789B (en) * | 2018-11-20 | 2022-06-21 | 锐捷网络股份有限公司 | Full Mesh performance testing method and device based on data center |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1652628A (en) * | 2004-02-04 | 2005-08-10 | 华为技术有限公司 | System for testing mobile communication network and method thereof |
CN101656640A (en) * | 2009-09-16 | 2010-02-24 | 中兴通讯股份有限公司 | Method and equipment for determining testing data |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070047448A1 (en) * | 2005-08-24 | 2007-03-01 | Inventec Corporation | Network equipment testing method and system |
JP4600697B2 (en) * | 2008-06-24 | 2010-12-15 | 日本電気株式会社 | Network equipment test system |
CN102006616B (en) * | 2010-11-09 | 2014-06-11 | 中兴通讯股份有限公司 | Test system and test method |
-
2010
- 2010-11-09 CN CN201010536448.7A patent/CN102006616B/en active Active
-
2011
- 2011-06-14 WO PCT/CN2011/075737 patent/WO2012062108A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1652628A (en) * | 2004-02-04 | 2005-08-10 | 华为技术有限公司 | System for testing mobile communication network and method thereof |
CN101656640A (en) * | 2009-09-16 | 2010-02-24 | 中兴通讯股份有限公司 | Method and equipment for determining testing data |
Also Published As
Publication number | Publication date |
---|---|
WO2012062108A1 (en) | 2012-05-18 |
CN102006616A (en) | 2011-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102006616B (en) | Test system and test method | |
CN110417915B (en) | Push message transmission method and device, storage medium and electronic equipment | |
CN102413068A (en) | Cloud computing-based system and method for controlling internet of things terminal device | |
CN101378573B (en) | System and method for testing access gateway performance | |
CN102098702B (en) | Performance testing system, method and equipment | |
CN101247276B (en) | large traffic simulation test tool and method for WiMAX system | |
CN101035346B (en) | Method and device for large traffic simulation test of packet data service | |
CN100394732C (en) | WAP gateway performance test method | |
CN102916833A (en) | Remote debugging method, remote debugging system and debugging target equipment | |
CN102546542A (en) | Electronic system and embedded device and transit device of electronic system | |
CN106936658A (en) | The method of testing and test platform of test case, simulation test equipment | |
CN102315981B (en) | Equipment and method for testing evolved packet core network equipment | |
CN102594615A (en) | Method and system for simulating value-added services | |
CN102387516B (en) | PS operation analog system and test method for NodeB test | |
CN105828387A (en) | Wireless communication system, service processing method and device | |
CN112835775A (en) | Simulation network communication method and device and relay protection device simulation test system | |
CN103152216B (en) | The method of testing of system and device in a kind of the Internet | |
CN105306442B (en) | Proxy server and its instruction transmission method | |
CN101834894A (en) | Method, device and system for remote processing | |
CN100518097C (en) | Simple detection method for GGSN facilities | |
CN102394790A (en) | On-line monitoring device and monitoring method of analog transmission line | |
CN103002031B (en) | A kind of method and system controlling to access wireless routing device | |
CN106685600B (en) | Message delivery method in local area network between work station | |
CN103166938A (en) | Voice over internet protocol (VOIP) streaming media data transmission method, device and system based on cloud computing framework | |
CN102523161A (en) | Flow control method and system of cross-Ethernet switched network cloud |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |