CN105577461A - Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system - Google Patents

Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system Download PDF

Info

Publication number
CN105577461A
CN105577461A CN201410532642.6A CN201410532642A CN105577461A CN 105577461 A CN105577461 A CN 105577461A CN 201410532642 A CN201410532642 A CN 201410532642A CN 105577461 A CN105577461 A CN 105577461A
Authority
CN
China
Prior art keywords
analog machine
measured
agreement
test
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410532642.6A
Other languages
Chinese (zh)
Inventor
高春英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING FENGXING ONLINE TECHNOLOGY Co Ltd
Original Assignee
BEIJING FENGXING ONLINE TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING FENGXING ONLINE TECHNOLOGY Co Ltd filed Critical BEIJING FENGXING ONLINE TECHNOLOGY Co Ltd
Priority to CN201410532642.6A priority Critical patent/CN105577461A/en
Publication of CN105577461A publication Critical patent/CN105577461A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a multi-layer protocol automatic testing method, a multi-layer protocol automatic testing device, and a multi-layer protocol automatic testing system. Compared to the prior art, a simulation device comprising multi-layer protocols can be determined or packaged according to a to-be-tested protocol, and then the configuration and the control of the simulation device can be carried out by using testing cases, and then the to-be-tested data can be acquired according to the interaction between the simulation device and the tested device, and therefore the simulated complicated network environment can be configured and controlled by using the testing cases, the independent multi-layer protocol automatic test can be realized in the complicated network state, and then the testing efficiency can be improved, and the requirements of various tests can be satisfied.

Description

A kind of method of the automatic test for multi-layer protocol, equipment and system
Technical field
The present invention relates to internet arena, particularly relate to a kind of technology of the automatic test for multi-layer protocol.
Background technology
In the prior art, two kinds are generally comprised to the method for testing of procotol: simulation test (as ns-2 emulation testing), the test (using the hardware device tests such as network harm instrument) under true environment.
The object of simulation test is single-protocol, such as certain concrete host-host protocol, tests the indices of this agreement.For the P2P product comprising two layer protocols (host-host protocol of lower floor and the peer agreement on upper strata), the peer protocol integrated test system on upper strata and impact many host-host protocols.Because this two layer protocol integrally exists, therefore simulation test is difficult to realize.
And under true environment, test P2P product, need to dispose multiple (as 200) peer, and the state of these peer need be controlled respectively, operate quite complicated.
Summary of the invention
The object of this invention is to provide a kind of method of the automatic test for multi-layer protocol, equipment and system.
According to an aspect of the present invention, provide a kind of in the method for testing service equipment end for the automatic test of multi-layer protocol, the method comprises:
X, according to agreement to be measured, determines one or more analog machine, and wherein, described agreement to be measured is multi-layer protocol, is packaged with the one or more host-host protocol module corresponding with described agreement to be measured and control module in described analog machine;
Wherein, the method also comprises:
A arranges one or more test case;
B, according to described test case, configures one or more analog machine;
C, according to described test case, starts the equipment under test of described analog machine and correspondence, makes performing data transmission between described equipment under test and analog machine;
D, according to described test case, obtains one or more test datas to be measured.
In accordance with a further aspect of the present invention, additionally provide a kind of in the method for analog machine end for the automatic test of multi-layer protocol, wherein, the method comprises:
X, according to agreement to be measured, encapsulates the one or more host-host protocol module corresponding with agreement to be measured and control module, and wherein, described agreement to be measured is multi-layer protocol;
Wherein, the method comprises:
A, according to the test case of testing service equipment end, performs the configuration of described test case to described analog machine;
B is according to described test case, and the equipment under test corresponding with described analog machine carries out alternately, making performing data transmission between described equipment under test and analog machine;
The test data corresponding with described test case is sent to described equipment under test and/or described testing service equipment end by C.
According to another aspect of the invention, additionally provide a kind of testing service equipment of the automatic test for multi-layer protocol, this equipment comprises:
Determining device, for according to agreement to be measured, determines one or more analog machine, and wherein, described agreement to be measured is multi-layer protocol, is packaged with the one or more host-host protocol module corresponding with described agreement to be measured and control module in described analog machine;
Wherein, this equipment also comprises:
Setting device, for arranging one or more test case;
Inking device, for according to described test case, configures one or more analog machine;
Starting drive, for according to described test case, starts the equipment under test of described analog machine and correspondence, makes performing data transmission between described equipment under test and analog machine;
Acquisition device, for according to described test case, obtains one or more test datas to be measured.
According to a further aspect in the invention, additionally provide a kind of analog machine of the automatic test for multi-layer protocol, wherein, this equipment comprises:
Packaging system, for according to agreement to be measured, encapsulate the one or more host-host protocol module corresponding with agreement to be measured and control module, wherein, described agreement to be measured is multi-layer protocol;
Wherein, this equipment comprises:
Final controlling element, for the test case according to testing service equipment end, performs the configuration of described test case to described analog machine;
Interactive device, for according to described test case, the equipment under test corresponding with described analog machine carries out alternately, making performing data transmission between described equipment under test and analog machine;
Dispensing device, for being sent to described equipment under test and/or described testing service equipment end by the test data corresponding with described test case.
According to a further aspect in the invention, additionally provide a kind of system of automatic test of multi-layer protocol, comprise testing service equipment as described above and analog machine as described above.
Compared with prior art, the present invention by according to agreement to be measured, determines or encapsulates the analog machine comprising multi-layer protocol, then utilizing test case to be configured and control analog machine, and according to the mutual acquisition testing data of analog machine and equipment under test; Thus achieve and to control by test case and the Simulation of Complex network environment of configuration, and then achieve the automatic test of independently multi-layer protocol under complex network state, improve testing efficiency, meet various testing requirement.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
Fig. 1 illustrates testing service equipment according to a kind of automatic test for multi-layer protocol of one aspect of the invention and analog machine schematic diagram;
Fig. 2 illustrates the modular structure schematic diagram of the analog machine of a kind of automatic test for P2P procotol according to a preferred embodiment of the present invention;
Fig. 3 illustrates the control information point of addition schematic diagram of a kind of automatic test for P2P procotol according to a further advantageous embodiment of the invention;
Fig. 4 illustrates multiple analog machine of a kind of automatic test for P2P procotol according to a further advantageous embodiment of the invention and the configuration diagram of equipment under test;
Fig. 5 illustrates that one is according to a further aspect of the present invention matched by testing service equipment, analog machine and equipment under test, for the method flow diagram of the automatic test of multi-layer protocol;
Fig. 6 illustrates the method flow diagram of a kind of automatic test for P2P procotol in accordance with a preferred embodiment of the present invention.
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 illustrates testing service equipment according to a kind of automatic test for multi-layer protocol of one aspect of the invention and analog machine schematic diagram; Wherein, described testing service equipment 1 comprises determining device 11, setting device 12, inking device 13, starting drive 14, acquisition device 15, and described analog machine 2 comprises packaging system 21, final controlling element 22, interactive device 23, dispensing device 24; Described testing service equipment 1, analog machine 2 interact with equipment under test 3, to perform the automatic test of multi-layer protocol.
Particularly, the packaging system 21 of described analog machine 2, according to agreement to be measured, encapsulates the one or more host-host protocol module corresponding with agreement to be measured and control module, and wherein, described agreement to be measured is multi-layer protocol; The determining device 1 of described testing service equipment 1 is according to agreement to be measured, determine one or more analog machine, wherein, described agreement to be measured is multi-layer protocol, is packaged with the one or more host-host protocol module corresponding with described agreement to be measured and control module in described analog machine; Described setting device 12 arranges one or more test case; Described inking device 13, according to described test case, configures one or more analog machine; Correspondingly, the final controlling element 22 of described analog machine 2, according to the test case of testing service equipment end, performs the configuration of described test case to described analog machine; Described starting drive 14, according to described test case, starts the equipment under test of described analog machine and correspondence, makes performing data transmission between described equipment under test and analog machine; Correspondingly, described interactive device 23 is according to described test case, and the equipment under test corresponding with described analog machine carries out alternately, making performing data transmission between described equipment under test and analog machine; The test data corresponding with described test case is sent to described equipment under test and/or described testing service equipment end by described dispensing device 24, and correspondingly, described acquisition device 15, according to described test case, obtains one or more test datas to be measured.
At this, described testing service equipment, analog machine or equipment under test include but not limited to that the network equipment, subscriber equipment or the network equipment and subscriber equipment are by the mutually integrated equipment formed of network.Wherein, the described network equipment comprise a kind of can according in advance setting or the instruction stored, automatically carry out the electronic equipment of numerical computations and information processing, its hardware includes but not limited to microprocessor, application-specific integrated circuit (ASIC) (ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc.The described network equipment its include but not limited to computer, network host, single network server, cloud that multiple webserver collection or multiple server are formed; At this, cloud is formed by based on a large amount of computer of cloud computing (CloudComputing) or the webserver, and wherein, cloud computing is the one of Distributed Calculation, the virtual supercomputer be made up of the loosely-coupled computer collection of a group.Described subscriber equipment its include but not limited to that any one can to carry out the mobile electronic product of man-machine interaction with user by keyboard, touch pad or voice-operated device, such as smart mobile phone, PDA etc., described mobile electronic product can adopt any operating system, as android operating system, iOS operating system etc.Described network includes but not limited to the Internet, wide area network, metropolitan area network, local area network (LAN), VPN, wireless self-organization network (AdHoc network) etc.
Those skilled in the art will be understood that described analog machine or equipment under test include but not limited to entity device or virtual unit.Such as, analog machine can be actual autonomous device, also can be analog node, when described analog machine is analog node, an entity device can exist one or more analog node; Equipment under test can be the server of networking products, the subscriber equipment of networking products or other equipment etc., or be virtual networking products or network service, described equipment under test can adopt any operating system or operating platform, as windows, Android, iOS etc.
Other testing service equipment, analog machine or equipment under test are equally applicable to the present invention, within also should being included in scope, and are contained in this at this with way of reference.
Constant work between above-mentioned each device, at this, it will be understood by those skilled in the art that " continuing " refer to above-mentioned each device respectively in real time or according to setting or the mode of operation requirement of adjustment in real time, carry out the encapsulation of analog machine, the determination of analog machine, the setting of test case, the configuration of analog machine, analog machine and the startup of equipment under test, the transmission of test data and reception etc., until described testing service equipment 1 stops the test carrying out agreement to be measured.
At this, multi-layer protocol of the present invention includes but not limited to the procotol of more than 2 layers or 2 layers, such as P2P procotol etc., and in this kind of procotol, upper-layer protocol (as peer agreement) is what to be separated with the agreement of actual transmissions data.Thus, instant invention overcomes the problem cannot carrying out automatic test in prior art to two layer protocols existed as a whole.
The packaging system 21 of described analog machine 2, according to agreement to be measured, encapsulates the one or more host-host protocol module corresponding with agreement to be measured and control module, and wherein, described agreement to be measured is multi-layer protocol.
Particularly, described analog machine 2 according to the predefined agreement to be measured of testing requirement, or can determine described agreement to be measured based on the agreement corresponding to equipment under test.Such as, if described equipment under test adopts P2P procotol, then from testing service equipment or equipment under test, described analog machine 2 can know that described agreement to be measured is P2P procotol.At this, those skilled in the art will be understood that, in one group of analog machine for testing same agreement to be measured and equipment under test, described analog machine and equipment under test be packaged/agreement to be measured that adopts is identical, but the concrete transferring content of agreement to be measured performed by analog machine (as the information such as content, network delay packet loss that sends) can be controlled by test case.
The multi-layer protocol corresponding with agreement to be measured, according to the agreement to be measured determined, encapsulates by described packaging system 21, comprises the host-host protocol module corresponding with every layer protocol and control module in packaged multi-layer protocol respectively.
As described in agreement to be measured (i.e. multi-layer protocol) be P2P procotol, preferably, described packaging system 21 can according to agreement to be measured, encapsulate the one or more host-host protocol module corresponding with agreement to be measured and control module, wherein, described agreement to be measured is multi-layer protocol, and described host-host protocol module comprises peer layer protocol module and Data Transport Protocol module.
Particularly, if described multi-layer protocol is P2P procotol, analog machine then packaged by described packaging system 21 can comprise as lower module: host-host protocol module, peer layer for control P2P procotol transmits (i.e. peer layer protocol module) and controls actual data transfer (i.e. Data Transport Protocol module, is generally udp protocol module); Control module, for controlling peer layer, actual data transfer and/or time delay or packet loss etc.At this, described control module can be an independently module, namely all to be controlled information (as Message recover signature, transmission and reception control or time delay packet loss control etc.) of this module to analog machine controls, described control module also can be multiple sub-control module, every sub-control module corresponds respectively to each host-host protocol module, and controls this host-host protocol module.Such as, for P2P procotol, described control module comprises peer layer control module and data transmission control module.
As shown in Figure 2, Fig. 2 illustrates the modular structure schematic diagram of the analog machine of a kind of automatic test for P2P procotol according to a preferred embodiment of the present invention.
Wherein, described P2P procotol comprises three parts: peer layer protocol, and the peer comprising connection selects, request of data and the data allocations etc. uploaded of download; Transmission control protocol, for network congestion Detection & Controling; Actual host-host protocol, is generally udp agreement.When encapsulating, perform following steps successively: the following protocol code of encapsulation P2P product peer layer, namely in order to realize the proper communication with P2P node, encapsulates the connection below peer layer, monitoring, transmission control routine; Simplify peer layer identification code, make simplified peer layer identification code can ensure to download normally and upload, as being single task single connection due to analog machine, therefore without the need to realizing the code of peer screening part; Add control information for testing and control.
In fig. 2, UDP channel is the channel of actual transmissions data; " unlatching is uploaded " in Peer layer protocol module, " open and download ", " various Message recover signature ", " Peer transmitter ", " Peer receiver ", " transmitter ", " receiver " in bottom host-host protocol, and " monitor " is the module of P2P procotol indispensability; " Message recover signature " in Peer layer protocol module, and " delays time to control, the packet loss control " of network transmission protocol part is the control logic module be added in a package in existing P2P procotol; Dotted line represents in this flow direction the processing logic that may also have other; API controls the total interface of this analog machine for being supplied to outside (being write test case).
At this, the control interface of the control information of concrete agreement of described " Message recover signature " module for adding at peer layer, such as, when receiving bitfield that P2P product sends (indicate current peer gather around the situation of data) request bag, control interface arranges control information, controls the ratio whether sending the bitfield set of response message or transmission.
Described " delays time to control, packet loss control " module, for packet loss and the network delay of analog network.
At this, described API includes but not limited to control the unlatching of uploading download, to the control of concrete message (as replied error messages, some message do not reply), send data time delays time to control or send data time packet loss control etc.Described API can utilize as lua adapter controls, directly by lua script edit test case after adapter.That is, by lua script edit test case, and arrange the control information to analog machine, the API that this test case can use analog machine to provide controls the behavior of this peer; Open analog machine when implementation of test cases, and corresponding lua control script is imported into, realize network test.
At this; those skilled in the art will be understood that above-mentioned packaged agreement and method for packing are citing, not limitation of the present invention; other can be packed multi-layer protocol and method for packing if be applicable to the present invention, be included in equally in protection scope of the present invention.
Fig. 3 illustrates the control information point of addition schematic diagram of a kind of automatic test for P2P procotol according to a further advantageous embodiment of the invention.
Arrow 1 place in figure 3, adds the control information that the test of peer layer is relevant.Such as, when analog machine be equipment under test upload time, equipment under test to analog machine send bitfield request, analog machine send respond packet time, according to the control information that control interface is arranged, control the ratio whether sending the bitfield set of response message or transmission.
Arrow 2 place in figure 3, adds the control information that transmission control protocol test is relevant.Such as, in random loss model by the bag sent out with control interface establish into packet loss random drop.
The determining device 1 of described testing service equipment 1 is according to agreement to be measured, determine one or more analog machine, wherein, described agreement to be measured is multi-layer protocol, is packaged with the one or more host-host protocol module corresponding with described agreement to be measured and control module in described analog machine.
Particularly, described determining device 1 according to described agreement to be measured, can select the analog machine consistent with the agreement to be measured of described testing service equipment 1 from packaged one or more analog machines; As described in the agreement to be measured of service equipment to be measured be P2P procotol, include the analog machine of corresponding P2P procotol, the analog machine corresponding to other multi-layer protocols in packaged analog machine, then described determining device 1 using the analog machine of corresponding P2P procotol as the analog machine corresponding with this agreement to be measured.
Or described determining device 1 according to described agreement to be measured, can encapsulate the analog machine that one or more and described agreement to be measured is corresponding; Wherein, described encapsulation can by described determining device 1 on described testing service equipment 1 directly perform (namely described analog machine is virtual unit, and described testing service equipment and described analog machine are on same entity device), also encapsulation instruction can be sent by described determining device 1 to other equipment, undertaken encapsulating (namely described analog machine is virtual unit or entity device, and described testing service equipment and described analog machine are on different entities equipment) by other equipment.
Wherein, because described agreement to be measured is multi-layer protocol, therefore one or more host-host protocol module corresponding with described agreement to be measured and control module is packaged with in described analog machine, described host-host protocol module is used for the transmission being responsible for multi-layer protocol data on the middle and senior level and bottom data, and control module is used for controlling host-host protocol module or other information.Preferably, comprise P2P procotol for described multi-layer protocol, described host-host protocol module comprises peer layer protocol module (i.e. high level data transport module) and Data Transport Protocol module (i.e. bottom data transport module).At this, described control module can be an independently module, namely all to be controlled information (as Message recover signature, transmission and reception control or time delay packet loss control etc.) of this module to analog machine controls, described control module also can be multiple sub-control module, every sub-control module corresponds respectively to each host-host protocol module, and controls this host-host protocol module.Such as, for P2P procotol, described control module comprises peer layer control module and data transmission control module.
At this, those skilled in the art will be understood that once agreement to be measured is determined, then described testing service equipment is consistent with the agreement to be measured corresponding to one or more analog machine, module packaged by each analog machine is also identical, all corresponding to described agreement to be measured.
Wherein, the defining method of the agreement to be measured of the defining method of described agreement to be measured and the packaging system 21 of described analog machine 2 is same or similar, therefore does not repeat them here, and is contained in this by way of reference.
Preferably, described determining device 1 can procotol corresponding to equipment under test, and determine agreement to be measured, wherein, described agreement to be measured is multi-layer protocol; According to described agreement to be measured, determine one or more analog machine, wherein, described analog machine comprises the one or more host-host protocol module corresponding with described agreement to be measured and control module.
Particularly, described determining device 1 can according to the procotol that equipment under test adopted or specified, and using this procotol as agreement to be measured, wherein, the procotol of described equipment under test is multi-layer protocol; Then based on described agreement to be measured, select or encapsulate one or more analog machine.At this, described determine analog machine method and Fig. 1 described in the defining method of determining device 1 same or similar, therefore not repeat them here, and be contained in this by way of reference.
Described setting device 12 arranges one or more test case.
Particularly, described setting device 12 by providing the equipment of test case to interact with other, to obtain one or more test case; Or pass through modes such as directly writing, write one or more test case.Wherein, described test case is corresponding with agreement to be measured, described test case comprises following at least any one: to open operation or the relevant opening information (as opening time, unlocking condition etc.) of equipment under test to be tested or test product, to the configuration information (as delayed data, link performance, stability etc.) of each analog machine, judgement information that whether content measurement is passed through (as work as the test data that obtains meet which kind of condition time, assert that test is passed through) etc.Writing or arranging of described test case can utilize multiple programming language, such as, takes over control API by lua, directly by lua script edit test case after adapter.
Described inking device 13, according to described test case, configures one or more analog machine.
Particularly, described inking device 13 is according to described test case, utilize the configuration information in described test case, described one or more analog machine is configured, as configured the delayed data, link performance, stability etc. of each analog machine, and configure the connection of each analog machine or equipment under test/be connected information etc.
Preferably, the configuration information corresponding to one or more analog machines that each test case configures can be the same or different.As shown in Figure 4, configuration information corresponding to analog machine 1 is " link is good ", configuration information corresponding to analog machine 2 is " link packet drop rate 1% ", configuration information corresponding to analog machine 3 is " link delay 500ms ", described analog machine 1 to analog machine 3 is the analog machine corresponding to equipment under test 1, thus, multiple analog machine can coexist, and each analog machine can configure separately when tested use-case configuration and control, this method can be simulated multiple analog machine and upload and each link network condition of having different packet loss time delay etc. complicated.
Correspondingly, the final controlling element 22 of described analog machine 2, according to the test case of testing service equipment end, performs the configuration of described test case to described analog machine.
Particularly, described final controlling element 22, according to the test case of described testing server, according to the configuration information of described test case to this analog machine, performs the configuration of described test case to described analog machine; As the link delay of this analog machine 2 is set to 500ms etc.At this, those skilled in the art will be understood that, preferably, in described analog machine, equipment under test and described testing server at least any two can in same computer or same local area network (LAN), thus some web influence can got rid of in different computers or LAN situation, perform some fc-specific test FC when getting rid of external network and affecting.
Described starting drive 14, according to described test case, starts the equipment under test of described analog machine and correspondence, makes performing data transmission between described equipment under test and analog machine; Correspondingly, described interactive device 23 is according to described test case, and the equipment under test corresponding with described analog machine carries out alternately, making performing data transmission between described equipment under test and analog machine
Particularly, described starting drive 14 is according to described test case, start corresponding operating set in described test case or test, because described operation or test are for described equipment under test and/or analog machine, therefore open mutual between described equipment under test and analog machine, making can performing data transmission between described analog machine and corresponding equipment under test.Such as, described test case opens analog machine 1 as resource seed, and opens the downloading task of equipment under test to this resource, then, starts to perform P2P transfer of data between described analog machine and described equipment under test.
At this, for the test of P2P procotol, equipment under test is crossed configuration file and is read in Intranet ip for its analog machine uploaded (i.e. peer) and port numbers, and described analog machine 2 also reads in the port numbers needing to monitor binding by configuration file; At this, can there is one or more analog machine 2, described multiple analog machine 2 can be arranged in same computer or same local area network (LAN).Pass through test case, multiple analog machine 2 can be started, multiple controllable analog machine is made to be that equipment under test is uploaded, the test of uploading is carried out to perform multiple peer for equipment under test, otherwise, one or more analog machine 2 also can read in ip address and the port numbers of the equipment under test that will connect by putting file, connect it and download, thus the test that execution equipment under test can be uploaded for multiple peer.
The test data corresponding with described test case is sent to described equipment under test and/or described testing service equipment end by described dispensing device 24, and correspondingly, described acquisition device 15, according to described test case, obtains one or more test datas to be measured.
Particularly, the corresponding data that the dispensing device 24 of described analog machine 2 produces according to described transfer of data, obtain the test data corresponding with described test case, such as, if described test case requires to obtain download/upload speed, then corresponding with this analog machine download/upload speed is described test data; Then, the request of data that described dispensing device 24 is arranged according to system default, user sets or obtains, is sent to described equipment under test and/or described testing service equipment end by described test data.At this, those skilled in the art will be understood that, described testing server end directly can obtain described test data from described dispensing device 24, also by described dispensing device 24, described test data can be sent to equipment under test, then by equipment under test, described test data be sent to described testing server; In addition, described test data according to the request of data of other equipment, can also be sent to other equipment by described dispensing device 24.
Correspondingly, the acquisition device 15 of described testing server end according to described test case, can obtain one or more test datas to be measured from described dispensing device 24 or equipment under test end.
Preferably, described testing service equipment also comprises result determining device (not shown), and wherein, described result determining device, according to described test data, in conjunction with the relevant information of described equipment under test, determines the execution result of described test case.
Particularly, described result determining device is according to obtained test data, in conjunction with one or more relevant informations of described equipment under test, judge whether described test data meets the predetermined result when the relevant information of equipment under test, if meet, then described test case performs and passes through, otherwise, then do not pass through; Thus, can judge as the interoperability etc. between protocol conformance, multi-layer protocol according to described execution result.
Wherein, described relevant information includes but not limited to following at least any one:
The network information of-described equipment under test, as described in the bandwidth of equipment under test, network condition, with the network site relation of analog machine etc. (as whether being in same local area network (LAN));
The data message of-described equipment under test, as described in the performance data, setting data etc. of equipment under test;
The content correlated information of-described agreement to be measured, as described in agreement to be measured different content under, corresponding to different presumptive test data result information etc.
Fig. 5 illustrates that one is according to a further aspect of the present invention matched by testing service equipment, analog machine and equipment under test, for the method flow diagram of the automatic test of multi-layer protocol.
Particularly, in step sl, described analog machine 2, according to agreement to be measured, encapsulates the one or more host-host protocol module corresponding with agreement to be measured and control module, and wherein, described agreement to be measured is multi-layer protocol; In step s 2, described testing service equipment 1, according to agreement to be measured, determines one or more analog machine, wherein, described agreement to be measured is multi-layer protocol, is packaged with the one or more host-host protocol module corresponding with described agreement to be measured and control module in described analog machine; In step s3, described testing service equipment 1 arranges one or more test case; In step s 4 which, described testing service equipment 1, according to described test case, configures one or more analog machine; Correspondingly, in step s 4 which, described analog machine 2, according to the test case of testing service equipment end, performs the configuration of described test case to described analog machine; In step s 5, described testing service equipment 1, according to described test case, starts the equipment under test of described analog machine and correspondence, makes performing data transmission between described equipment under test and analog machine; Correspondingly, in step s 5, described analog machine 2 is according to described test case, and the equipment under test corresponding with described analog machine carries out alternately, making performing data transmission between described equipment under test and analog machine; In step s 6, the test data corresponding with described test case is sent to described equipment under test and/or described testing service equipment end by described analog machine 2, correspondingly, in the step s 7, described testing service equipment 1, according to described test case, obtains one or more test datas to be measured.
Constant work between above steps, at this, it will be understood by those skilled in the art that " continuing " refer to above steps respectively in real time or according to setting or the mode of operation requirement of adjustment in real time, carry out the encapsulation of analog machine, the determination of analog machine, the setting of test case, the configuration of analog machine, analog machine and the startup of equipment under test, the transmission of test data and reception etc., until described testing service equipment 1 stops the test carrying out agreement to be measured.
At this, multi-layer protocol of the present invention includes but not limited to the procotol of more than 2 layers or 2 layers, such as P2P procotol etc., and in this kind of procotol, upper-layer protocol (as peer agreement) is what to be separated with the agreement of actual transmissions data.Thus, instant invention overcomes the problem cannot carrying out automatic test in prior art to two layer protocols existed as a whole.
In step sl, described analog machine 2, according to agreement to be measured, encapsulates the one or more host-host protocol module corresponding with agreement to be measured and control module, and wherein, described agreement to be measured is multi-layer protocol.
Particularly, described analog machine 2 according to the predefined agreement to be measured of testing requirement, or can determine described agreement to be measured based on the agreement corresponding to equipment under test.Such as, if described equipment under test adopts P2P procotol, then from testing service equipment or equipment under test, described analog machine 2 can know that described agreement to be measured is P2P procotol.At this, those skilled in the art will be understood that, in one group of analog machine for testing same agreement to be measured and equipment under test, described analog machine and equipment under test be packaged/agreement to be measured that adopts is identical, but the concrete transferring content of agreement to be measured performed by analog machine (as the information such as content, network delay packet loss that sends) can be controlled by test case.
In step sl, the multi-layer protocol corresponding with agreement to be measured, according to the agreement to be measured determined, encapsulates by described analog machine 2, comprises the host-host protocol module corresponding with every layer protocol and control module in packaged multi-layer protocol respectively.
As described in agreement to be measured (i.e. multi-layer protocol) be P2P procotol, preferably, in step sl, described analog machine 2 can according to agreement to be measured, encapsulate the one or more host-host protocol module corresponding with agreement to be measured and control module, wherein, described agreement to be measured is multi-layer protocol, and described host-host protocol module comprises peer layer protocol module and Data Transport Protocol module.
Particularly, if described multi-layer protocol is P2P procotol, then in step sl, analog machine packaged by described analog machine 2 can comprise as lower module: host-host protocol module, peer layer for control P2P procotol transmits (i.e. peer layer protocol module) and controls actual data transfer (i.e. Data Transport Protocol module, is generally udp protocol module); Control module, for controlling peer layer, actual data transfer and/or time delay or packet loss etc.At this, described control module can be an independently module, namely all to be controlled information (as Message recover signature, transmission and reception control or time delay packet loss control etc.) of this module to analog machine controls, described control module also can be multiple sub-control module, every sub-control module corresponds respectively to each host-host protocol module, and controls this host-host protocol module.Such as, for P2P procotol, described control module comprises peer layer control module and data transmission control module.
As shown in Figure 2, Fig. 2 illustrates the modular structure schematic diagram of the analog machine of a kind of automatic test for P2P procotol according to a preferred embodiment of the present invention.
Wherein, described P2P procotol comprises three parts: peer layer protocol, and the peer comprising connection selects, request of data and the data allocations etc. uploaded of download; Transmission control protocol, for network congestion Detection & Controling; Actual host-host protocol, is generally udp agreement.When encapsulating, perform following steps successively: the following protocol code of encapsulation P2P product peer layer, namely in order to realize the proper communication with P2P node, encapsulates the connection below peer layer, monitoring, transmission control routine; Simplify peer layer identification code, make simplified peer layer identification code can ensure to download normally and upload, as being single task single connection due to analog machine, therefore without the need to realizing the code of peer screening part; Add control information for testing and control.
In fig. 2, UDP channel is the channel of actual transmissions data; " unlatching is uploaded " in Peer layer protocol module, " open and download ", " various Message recover signature ", " Peer transmitter ", " Peer receiver ", " transmitter ", " receiver " in bottom host-host protocol, and " monitor " is the module of P2P procotol indispensability; " Message recover signature " in Peer layer protocol module, and " delays time to control, the packet loss control " of network transmission protocol part is the control logic module be added in a package in existing P2P procotol; Dotted line represents in this flow direction the processing logic that may also have other; API controls the total interface of this analog machine for being supplied to outside (being write test case).
At this, the control interface of the control information of concrete agreement of described " Message recover signature " module for adding at peer layer, such as, when receiving bitfield that P2P product sends (indicate current peer gather around the situation of data) request bag, control interface arranges control information, controls the ratio whether sending the bitfield set of response message or transmission.
Described " delays time to control, packet loss control " module, for packet loss and the network delay of analog network.
At this, described API includes but not limited to control the unlatching of uploading download, to the control of concrete message (as replied error messages, some message do not reply), send data time delays time to control or send data time packet loss control etc.Described API can utilize as lua adapter controls, directly by lua script edit test case after adapter.That is, by lua script edit test case, and arrange the control information to analog machine, the API that this test case can use analog machine to provide controls the behavior of this peer; Open analog machine when implementation of test cases, and corresponding lua control script is imported into, realize network test.
At this; those skilled in the art will be understood that above-mentioned packaged agreement and method for packing are citing, not limitation of the present invention; other can be packed multi-layer protocol and method for packing if be applicable to the present invention, be included in equally in protection scope of the present invention.
Fig. 3 illustrates the control information point of addition schematic diagram of a kind of automatic test for P2P procotol according to a further advantageous embodiment of the invention.
Arrow 1 place in figure 3, adds the control information that the test of peer layer is relevant.Such as, when analog machine be equipment under test upload time, equipment under test to analog machine send bitfield request, analog machine send respond packet time, according to the control information that control interface is arranged, control the ratio whether sending the bitfield set of response message or transmission.
Arrow 2 place in figure 3, adds the control information that transmission control protocol test is relevant.Such as, in random loss model by the bag sent out with control interface establish into packet loss random drop.
In step s 2, described testing service equipment 1, according to agreement to be measured, determines one or more analog machine, wherein, described agreement to be measured is multi-layer protocol, is packaged with the one or more host-host protocol module corresponding with described agreement to be measured and control module in described analog machine.
Particularly, in step s 2, described testing service equipment 1 according to described agreement to be measured, can select the analog machine consistent with the agreement to be measured of described testing service equipment 1 from packaged one or more analog machines; As described in the agreement to be measured of service equipment to be measured be P2P procotol, the analog machine of corresponding P2P procotol, the analog machine corresponding to other multi-layer protocols is included in packaged analog machine, then in step s 2, described testing service equipment 1 using the analog machine of corresponding P2P procotol as the analog machine corresponding with this agreement to be measured.
Or in step s 2, described testing service equipment 1 according to described agreement to be measured, can encapsulate the analog machine that one or more and described agreement to be measured is corresponding; Wherein, described encapsulation directly can be performed by described testing service equipment 1 that (namely described analog machine is virtual unit, and described testing service equipment and described analog machine are on same entity device), also encapsulation instruction can be sent by described testing server 1 to other equipment, undertaken encapsulating (namely described analog machine is virtual unit or entity device, and described testing service equipment and described analog machine are on different entities equipment) by other equipment.
Wherein, because described agreement to be measured is multi-layer protocol, therefore one or more host-host protocol module corresponding with described agreement to be measured and control module is packaged with in described analog machine, described host-host protocol module is used for the transmission being responsible for multi-layer protocol data on the middle and senior level and bottom data, and control module is used for controlling host-host protocol module or other information.Preferably, comprise P2P procotol for described multi-layer protocol, described host-host protocol module comprises peer layer protocol module (i.e. high level data transport module) and Data Transport Protocol module (i.e. bottom data transport module).At this, described control module can be an independently module, namely all to be controlled information (as Message recover signature, transmission and reception control or time delay packet loss control etc.) of this module to analog machine controls, described control module also can be multiple sub-control module, every sub-control module corresponds respectively to each host-host protocol module, and controls this host-host protocol module.Such as, for P2P procotol, described control module comprises peer layer control module and data transmission control module.
At this, those skilled in the art will be understood that once agreement to be measured is determined, then described testing service equipment is consistent with the agreement to be measured corresponding to one or more analog machine, module packaged by each analog machine is also identical, all corresponding to described agreement to be measured.
Wherein, the defining method of described agreement to be measured with in step sl, the defining method of the agreement to be measured of described analog machine 2 is same or similar, therefore does not repeat them here, and is contained in this by way of reference.
Preferably, in step s 2, described testing service equipment 1 can procotol corresponding to equipment under test, and determine agreement to be measured, wherein, described agreement to be measured is multi-layer protocol; According to described agreement to be measured, determine one or more analog machine, wherein, described analog machine comprises the one or more host-host protocol module corresponding with described agreement to be measured and control module.
Particularly, in step s 2, described testing service equipment 1 can according to the procotol that equipment under test adopted or specified, and using this procotol as agreement to be measured, wherein, the procotol of described equipment under test is multi-layer protocol; Then based on described agreement to be measured, select or encapsulate one or more analog machine.At this, described determine analog machine method and Fig. 5 described in the defining method of step S2 same or similar, therefore not repeat them here, and be contained in this by way of reference.
In step s3, described testing service equipment 1 arranges one or more test case.
Particularly, in step s3, described testing service equipment 1 by providing the equipment of test case to interact with other, to obtain one or more test case; Or pass through modes such as directly writing, write one or more test case.Wherein, described test case is corresponding with agreement to be measured, described test case comprises following at least any one: to open operation or the relevant opening information (as opening time, unlocking condition etc.) of equipment under test to be tested or test product, to the configuration information (as delayed data, link performance, stability etc.) of each analog machine, judgement information that whether content measurement is passed through (as work as the test data that obtains meet which kind of condition time, assert that test is passed through) etc.Writing or arranging of described test case can utilize multiple programming language, such as, takes over control API by lua, directly by lua script edit test case after adapter.
In step s 4 which, described testing service equipment 1, according to described test case, configures one or more analog machine.
Particularly, in step s 4 which, described testing service equipment 1 is according to described test case, utilize the configuration information in described test case, described one or more analog machine is configured, as configured the delayed data, link performance, stability etc. of each analog machine, and configure the connection of each analog machine or equipment under test/be connected information etc.
Preferably, the configuration information corresponding to one or more analog machines that each test case configures can be the same or different.As shown in Figure 4, configuration information corresponding to analog machine 1 is " link is good ", configuration information corresponding to analog machine 2 is " link packet drop rate 1% ", configuration information corresponding to analog machine 3 is " link delay 500ms ", described analog machine 1 to analog machine 3 is the analog machine corresponding to equipment under test 1, thus, multiple analog machine can coexist, and each analog machine can configure separately when tested use-case configuration and control, this method can be simulated multiple analog machine and upload and each link network condition of having different packet loss time delay etc. complicated.
Correspondingly, in step s 4 which, described analog machine 2, according to the test case of testing service equipment end, performs the configuration of described test case to described analog machine.
Particularly, in step s 4 which, described analog machine 2, according to the test case of described testing server, according to the configuration information of described test case to this analog machine, performs the configuration of described test case to described analog machine; As the link delay of this analog machine 2 is set to 500ms etc.At this, those skilled in the art will be understood that, preferably, in described analog machine, equipment under test and described testing server at least any two can in same computer or same local area network (LAN), thus some web influence can got rid of in different computers or LAN situation, perform some fc-specific test FC when getting rid of external network and affecting.
In step s 5, described testing service equipment 1, according to described test case, starts the equipment under test of described analog machine and correspondence, makes performing data transmission between described equipment under test and analog machine; Correspondingly, in step s 5, described analog machine 2 is according to described test case, and the equipment under test corresponding with described analog machine carries out alternately, making performing data transmission between described equipment under test and analog machine
Particularly, in step s 5, described testing service equipment 1 is according to described test case, start corresponding operating set in described test case or test, because described operation or test are for described equipment under test and/or analog machine, therefore open mutual between described equipment under test and analog machine, making can performing data transmission between described analog machine and corresponding equipment under test.Such as, described test case opens analog machine 1 as resource seed, and opens the downloading task of equipment under test to this resource, then, starts to perform P2P transfer of data between described analog machine and described equipment under test.
At this, for the test of P2P procotol, equipment under test is crossed configuration file and is read in Intranet ip for its analog machine uploaded (i.e. peer) and port numbers, and described analog machine 2 also reads in the port numbers needing to monitor binding by configuration file; At this, can there is one or more analog machine 2, described multiple analog machine 2 can be arranged in same computer or same local area network (LAN).Pass through test case, multiple analog machine 2 can be started, multiple controllable analog machine is made to be that equipment under test is uploaded, the test of uploading is carried out to perform multiple peer for equipment under test, otherwise, one or more analog machine 2 also can read in ip address and the port numbers of the equipment under test that will connect by putting file, connect it and download, thus the test that execution equipment under test can be uploaded for multiple peer.
In step s 6, the test data corresponding with described test case is sent to described equipment under test and/or described testing service equipment end by described analog machine 2, correspondingly, in the step s 7, described testing service equipment 1, according to described test case, obtains one or more test datas to be measured.
Particularly, in step s 6, the corresponding data that described analog machine 2 produces according to described transfer of data, obtain the test data corresponding with described test case, such as, if described test case requires to obtain download/upload speed, then corresponding with this analog machine download/upload speed is described test data; Then, in step s 6, the request of data that described analog machine 2 is arranged according to system default, user sets or obtains, is sent to described equipment under test and/or described testing service equipment end by described test data.At this, those skilled in the art will be understood that, described testing server end directly can obtain described test data from described analog machine 2, also by described analog machine 2, described test data can be sent to equipment under test, then by equipment under test, described test data be sent to described testing server; In addition, described test data according to the request of data of other equipment, can also be sent to other equipment by described analog machine 2.
Correspondingly, in the step s 7, described testing service equipment 1 according to described test case, can obtain one or more test datas to be measured from described analog machine 2 or equipment under test end.
At this, those skilled in the art will be understood that, if described test data is directly sent to described testing service equipment 1 by described analog machine 2, and described testing service equipment 1 directly obtains described test data from described analog machine 2, then step S6 and step S7 is same step.
Preferably, described testing service equipment also comprises step S8 (not shown), and wherein, in step s 8, described testing service equipment 1, according to described test data, in conjunction with the relevant information of described equipment under test, determines the execution result of described test case.
Particularly, in step s 8, described testing service equipment 1 is according to obtained test data, in conjunction with one or more relevant informations of described equipment under test, judge whether described test data meets the predetermined result when the relevant information of equipment under test, if meet, then described test case performs and passes through, otherwise, then do not pass through; Thus, can judge as the interoperability etc. between protocol conformance, multi-layer protocol according to described execution result.
Wherein, described relevant information includes but not limited to following at least any one:
The network information of-described equipment under test, as described in the bandwidth of equipment under test, network condition, with the network site relation of analog machine etc. (as whether being in same local area network (LAN));
The data message of-described equipment under test, as described in the performance data, setting data etc. of equipment under test;
The content correlated information of-described agreement to be measured, as described in agreement to be measured different content under, corresponding to different presumptive test data result information etc.
Fig. 6 illustrates the method flow diagram of a kind of automatic test for P2P procotol in accordance with a preferred embodiment of the present invention.
Wherein, equipment under test is the tested P2P product in P2P network protocol testing, and analog machine 1 and analog machine 2 are can the normal peer of upload and download.Illustrate in Fig. 6 and done the situation of planting by two analog machines (i.e. peer).Analog machine provide a series of can the control interface of control peer, the interface that when writing test case, analog machine provides can directly use (can with reference to use lua script).
In step S61, first test case opens analog machine 1 and analog machine 2, and namely calling interface arranges analog machine 1 (i.e. peer1) and analog machine 2 (i.e. peer2) and opens and plant; And in step S62, analog machine 2 is set and does not reply data when to do kind.
In step S63, test case opens equipment under test, makes equipment under test open downloading task.
In step S64, equipment under test is simultaneously to two peer request msgs, and according to the setting of step S62, one of them peer can not downloading data.Therefore, in step S65, analog machine 1 (i.e. peer1) is only had to equipment under test return data.
In step S66, test case inquires about the speed of download of each peer to equipment under test, and finally in step S67, the situation according to presetting terminates this test case.
When this test case achieves and downloads from multiple peer, certain peer does not provide the situation of data.
Those skilled in the art will be understood that above-mentioned test case (namely arrange the situation that certain peer does not provide data, and obtain speed of download) is only citing, and test case can realize similar various scenes by the control interface that analog machine provides.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and when not deviating from spirit of the present invention or essential characteristic, the present invention can be realized in other specific forms.Therefore, no matter from which point, all should embodiment be regarded as exemplary, and be nonrestrictive, scope of the present invention is limited by claims instead of above-mentioned explanation, and all changes be therefore intended in the implication of the equivalency by dropping on claim and scope are included in the present invention.Any Reference numeral in claim should be considered as the claim involved by limiting.In addition, obviously " comprising " one word do not get rid of other unit or step, odd number does not get rid of plural number.Multiple unit of stating in device claim or device also can be realized by software or hardware by a unit or device.First, second word such as grade is used for representing title, and does not represent any specific order.

Claims (17)

1. be used for a method for the automatic test of multi-layer protocol in testing service equipment end, the method comprises:
X, according to agreement to be measured, determines one or more analog machine, and wherein, described agreement to be measured is multi-layer protocol, is packaged with the one or more host-host protocol module corresponding with described agreement to be measured and control module in described analog machine;
Wherein, the method also comprises:
A arranges one or more test case;
B, according to described test case, configures one or more analog machine;
C, according to described test case, starts the equipment under test of described analog machine and correspondence, makes performing data transmission between described equipment under test and analog machine;
D, according to described test case, obtains one or more test datas to be measured.
2. method according to claim 1, wherein, described step x comprises:
-procotol corresponding to equipment under test, determine agreement to be measured, wherein, described agreement to be measured is multi-layer protocol;
-according to described agreement to be measured, determine one or more analog machine, wherein, described analog machine comprises the one or more host-host protocol module corresponding with described agreement to be measured and control module.
3. method according to claim 1 and 2, wherein, described step b comprises:
-according to described test case, configure one or more analog machine, wherein, the configuration information corresponding to each analog machine is identical or different.
4. according to the method in any one of claims 1 to 3, wherein, the method also comprises:
-according to described test data, in conjunction with the relevant information of described equipment under test, determine the execution result of described test case;
Wherein, described relevant information includes but not limited to following at least any one:
The network information of-described equipment under test;
The data message of-described equipment under test;
The content correlated information of-described agreement to be measured.
5. method according to any one of claim 1 to 4, wherein, described multi-layer protocol comprises P2P procotol, and described step x comprises:
-according to agreement to be measured, determine one or more analog machine, wherein, described agreement to be measured is multi-layer protocol, described analog machine comprises the one or more host-host protocol module corresponding with described agreement to be measured and control module, and described host-host protocol module comprises peer layer protocol module and Data Transport Protocol module.
6. be used for a method for the automatic test of multi-layer protocol at analog machine end, wherein, the method comprises:
X, according to agreement to be measured, encapsulates the one or more host-host protocol module corresponding with agreement to be measured and control module, and wherein, described agreement to be measured is multi-layer protocol;
Wherein, the method comprises:
A, according to the test case of testing service equipment end, performs the configuration of described test case to described analog machine;
B is according to described test case, and the equipment under test corresponding with described analog machine carries out alternately, making performing data transmission between described equipment under test and analog machine;
The test data corresponding with described test case is sent to described equipment under test and/or described testing service equipment end by C.
7. method according to claim 6, wherein, described multi-layer protocol comprises P2P procotol, and described step X comprises:
-according to agreement to be measured, encapsulate the one or more host-host protocol module corresponding with agreement to be measured and control module, wherein, described agreement to be measured is multi-layer protocol, and described host-host protocol module comprises peer layer protocol module and Data Transport Protocol module.
8. method according to claim 7, wherein, described control module comprises peer layer control module and data transmission control module.
9., for a testing service equipment for the automatic test of multi-layer protocol, this equipment comprises:
Determining device, for according to agreement to be measured, determines one or more analog machine, and wherein, described agreement to be measured is multi-layer protocol, is packaged with the one or more host-host protocol module corresponding with described agreement to be measured and control module in described analog machine;
Wherein, this equipment also comprises:
Setting device, for arranging one or more test case;
Inking device, for according to described test case, configures one or more analog machine;
Starting drive, for according to described test case, starts the equipment under test of described analog machine and correspondence, makes performing data transmission between described equipment under test and analog machine;
Acquisition device, for according to described test case, obtains one or more test datas to be measured.
10. testing service equipment according to claim 9, wherein, described determining device is used for:
-procotol corresponding to equipment under test, determine agreement to be measured, wherein, described agreement to be measured is multi-layer protocol;
-according to described agreement to be measured, determine one or more analog machine, wherein, described analog machine comprises the one or more host-host protocol module corresponding with described agreement to be measured and control module.
11. testing service equipment according to claim 9 or 10, wherein, described inking device is used for:
-according to described test case, configure one or more analog machine, wherein, the configuration information corresponding to each analog machine is identical or different.
12. testing service equipment according to any one of claim 9 to 11, wherein, this equipment also comprises:
Result determining device, for according to described test data, in conjunction with the relevant information of described equipment under test, determines the execution result of described test case;
Wherein, described relevant information includes but not limited to following at least any one:
The network information of-described equipment under test;
The data message of-described equipment under test;
The content correlated information of-described agreement to be measured.
13. testing service equipment according to any one of claim 9 to 12, wherein, described multi-layer protocol comprises P2P procotol, and described determining device is used for:
-according to agreement to be measured, determine one or more analog machine, wherein, described agreement to be measured is multi-layer protocol, described analog machine comprises the one or more host-host protocol module corresponding with described agreement to be measured and control module, and described host-host protocol module comprises peer layer protocol module and Data Transport Protocol module.
14. 1 kinds of analog machines for the automatic test of multi-layer protocol, wherein, this equipment comprises:
Packaging system, for according to agreement to be measured, encapsulate the one or more host-host protocol module corresponding with agreement to be measured and control module, wherein, described agreement to be measured is multi-layer protocol;
Wherein, this equipment comprises:
Final controlling element, for the test case according to testing service equipment end, performs the configuration of described test case to described analog machine;
Interactive device, for according to described test case, the equipment under test corresponding with described analog machine carries out alternately, making performing data transmission between described equipment under test and analog machine;
Dispensing device, for being sent to described equipment under test and/or described testing service equipment end by the test data corresponding with described test case.
15. analog machines according to claim 14, wherein, described multi-layer protocol comprises P2P procotol, and described packaging system is used for:
-according to agreement to be measured, encapsulate the one or more host-host protocol module corresponding with agreement to be measured and control module, wherein, described agreement to be measured is multi-layer protocol, and described host-host protocol module comprises peer layer protocol module and Data Transport Protocol module.
16. analog machines according to claim 15, wherein, described control module comprises peer layer control module and data transmission control module.
17. 1 kinds of systems with the automatic test of multi-layer protocol, comprise the testing service equipment according to any one of claim 9 to 13 and the analog machine according to any one of claim 14 to 16.
CN201410532642.6A 2014-10-10 2014-10-10 Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system Pending CN105577461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410532642.6A CN105577461A (en) 2014-10-10 2014-10-10 Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410532642.6A CN105577461A (en) 2014-10-10 2014-10-10 Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system

Publications (1)

Publication Number Publication Date
CN105577461A true CN105577461A (en) 2016-05-11

Family

ID=55887157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410532642.6A Pending CN105577461A (en) 2014-10-10 2014-10-10 Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system

Country Status (1)

Country Link
CN (1) CN105577461A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411600A (en) * 2016-10-31 2017-02-15 努比亚技术有限公司 Test equipment and method
CN109495870A (en) * 2018-07-24 2019-03-19 华为机器有限公司 The method and apparatus of bluetooth test
CN111130927A (en) * 2019-12-04 2020-05-08 中国电子科技集团公司第三十研究所 Method for automatically realizing service test of network layer communication terminal equipment
CN111800624A (en) * 2020-07-01 2020-10-20 浪潮云信息技术股份公司 Integrated testing method for multi-video-protocol communication of intelligent video monitoring platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043384A (en) * 2006-05-25 2007-09-26 华为技术有限公司 System and method for network test
CN101478449A (en) * 2009-01-22 2009-07-08 凌阳科技股份有限公司 Protocol automatic test method and system thereof
CN101667890A (en) * 2009-09-24 2010-03-10 深圳市普联技术有限公司 Network bandwidth detecting method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043384A (en) * 2006-05-25 2007-09-26 华为技术有限公司 System and method for network test
CN101478449A (en) * 2009-01-22 2009-07-08 凌阳科技股份有限公司 Protocol automatic test method and system thereof
CN101667890A (en) * 2009-09-24 2010-03-10 深圳市普联技术有限公司 Network bandwidth detecting method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411600A (en) * 2016-10-31 2017-02-15 努比亚技术有限公司 Test equipment and method
CN109495870A (en) * 2018-07-24 2019-03-19 华为机器有限公司 The method and apparatus of bluetooth test
CN109495870B (en) * 2018-07-24 2022-02-01 华为机器有限公司 Bluetooth test method and device
CN111130927A (en) * 2019-12-04 2020-05-08 中国电子科技集团公司第三十研究所 Method for automatically realizing service test of network layer communication terminal equipment
CN111130927B (en) * 2019-12-04 2021-12-17 中国电子科技集团公司第三十研究所 Method for automatically realizing service test of network layer communication terminal equipment
CN111800624A (en) * 2020-07-01 2020-10-20 浪潮云信息技术股份公司 Integrated testing method for multi-video-protocol communication of intelligent video monitoring platform

Similar Documents

Publication Publication Date Title
CN103905447B (en) Service link selects control method and equipment
JP5783774B2 (en) Method and apparatus for coupling a portable device to communicate with a process control device in a process control system
EP1482712B1 (en) Virtual network addresses
CN101447898B (en) Test system used for network safety product and test method thereof
CN102244594B (en) At the networks simulation technology manually and in automatic testing instrument
CN106375142B (en) The test method and device of application program
CN106612211A (en) A rout detecting method, a controller and a network device in a VxLAN
CN105577461A (en) Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system
CN108234187B (en) High-fidelity link simulation method for data message forwarding
CN105794152B (en) The system and method and device of the interaction based on web are carried out with building automatic
CN102420713A (en) Test data packet packaging method and equipment
CN103748852A (en) Method and apparatus for incorporating a wireless HART-enabled device into a wired HART network
CN104767655B (en) A kind of analog result detection method and device
CN103188719B (en) Medium-high speed sensor network test macro
CN102780779A (en) Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic
CN102804689B (en) Testing network communication link
CN103763156A (en) Network speed measurement method and system
CN106292518B (en) Remote PLC monitoring and debugging system and method
CN107172648A (en) A kind of network test method and equipment
CN105323115A (en) Data packet simulation method and data packet simulation device of network management test event
CN110224897A (en) Vulnerable network test method, device, mobile device and the storage medium of application program
CN102984025B (en) The method of testing of gateway device virtual tunnel performance, Apparatus and system
CN106233667A (en) For the method and system at low network media layer test rf data bag signal transceiver
CN106506281B (en) Vehicle toll communication test method, the network equipment and system
CN104767812A (en) Data transmitting method, device and system based on cloud service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160511

WD01 Invention patent application deemed withdrawn after publication