CN103209103A - Testing method and testing apparatus of network device - Google Patents

Testing method and testing apparatus of network device Download PDF

Info

Publication number
CN103209103A
CN103209103A CN2013100973533A CN201310097353A CN103209103A CN 103209103 A CN103209103 A CN 103209103A CN 2013100973533 A CN2013100973533 A CN 2013100973533A CN 201310097353 A CN201310097353 A CN 201310097353A CN 103209103 A CN103209103 A CN 103209103A
Authority
CN
China
Prior art keywords
packet
test
address
time slots
sending time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013100973533A
Other languages
Chinese (zh)
Other versions
CN103209103B (en
Inventor
王晨
吴黎明
邱国平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310097353.3A priority Critical patent/CN103209103B/en
Publication of CN103209103A publication Critical patent/CN103209103A/en
Application granted granted Critical
Publication of CN103209103B publication Critical patent/CN103209103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a testing method and a testing apparatus of a network device. The testing method includes obtaining a first transmission time slot between a first data packet and a second data packet according to a capture file obtained from the network traffic; obtaining a second first transmission time slot according to the first transmission time slot and a preset magnification of the data stream of the first data packet; configuring N test packets for N IP (Internet Protocol) addresses of a preset IP address pool of the data stream of the first data packet, wherein the numerical value of the N is identical with that of the magnification; sending the N test packets to a device to be tested according to the second transmission time slot; receiving the test data packet forwarded by the device to be tested; and obtaining test results according to the received test data packet. According to the testing method and the testing apparatus of the network device, the increase of network traffic can be simulated realistically.

Description

The method of testing of the network equipment and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method of testing and device of the network equipment.
Background technology
Internet technology, networking products emerge in an endless stream, and how Related product and network of relation are accurately tested, and are main points and the difficult points of network test always.In case the inaccurate networking products of test result are reached the standard grade, just may cause great network accidents such as network flash is disconnected, network paralysis, bring millions of economic losses for operator and the network user.
In the prior art, the networking products before putting into effect being tested, mainly is by the mode to extracting and the playback of live network flow, comes networking products are carried out network test and evaluation.
The present inventor finds in long-term R﹠D process, and existing packet capturing playback technology being based on mode that circulation sends and realizing playback, only is the action of having accelerated the network user, the correctly multiplication of analog network flow.
Summary of the invention
A kind of method of testing and device of the network equipment are provided in the embodiment of the invention, truly the increase of analog network flow.
First aspect, the embodiment of the invention provide a kind of method of testing of the network equipment, comprise according to the packet capturing file that obtains from network traffics obtaining first sending time slots between first packet and second packet; Obtain second sending time slots according to described first sending time slots and for the default multiplication factor of data flow under described first packet; According to described first packet and be N test packet of N IP address architecture in the default IP address pool of data flow under described first packet, wherein, the value of described N is identical with the value of described multiplication factor; Send a described N test packet according to described second sending time slots to equipment under test; Receive the test packet that described equipment under test is transmitted; Obtain test result according to the test packet that receives.
In first kind of first aspect possible implementation, describedly obtain test result according to the test packet that receives and comprise: the packet loss that obtains described equipment under test according to the quantity of the test packet of the test packet that receives and transmission; Perhaps the multiplication factor of next packet of the described data flow of test and the IP address of use are determined in the IP address in the described IP address pool of using according to the test packet that receives.
In conjunction with first kind of first aspect possible implementation, in second kind of first aspect possible implementation, the described N of a described structure test packet also comprises: the cryptographic Hash of the stream sequence number of data flow under the high byte position of the sign of the IP head of N test packet of described structure writes described first packet, and recomputate described test packet the IP head verification and.
In conjunction with first kind of first aspect possible implementation, in the third possible implementation of first aspect, the described N of a described structure test packet also comprises: if the protocol type of described first packet is the multichannel agreement, then when using described N IP address to replace the source IP address of described first packet, replace the IP address of useful load part in described first packet synchronously, and recomputate a described N test packet data division verification with.
In conjunction with first aspect the first to the 3rd in any possible implementation, in the 4th kind of possible implementation of first aspect, described second sending time slots is the merchant of described first sending time slots and described multiplication factor.
Second aspect, the embodiment of the invention provide a kind of testing apparatus of the network equipment, and described device comprises: first obtains module, for first sending time slots that obtains according to the packet capturing file that obtains from network traffics between first packet and second packet; Second obtains module, is used for obtaining second sending time slots according to described first sending time slots and for the default multiplication factor of data flow under described first packet; Constructing module is used for according to described first packet and be N test packet of N IP address architecture of the IP address pool that data flow is preset under described first packet, and wherein, the value of described N is identical with the value of described multiplication factor; Sending module is used for sending a described N test packet according to described second sending time slots to equipment under test; Receiver module is used for receiving the test packet that described equipment under test is transmitted; The 3rd obtains module, is used for obtaining test result according to the test packet that receives.
In first kind of second aspect possible implementation, described the 3rd acquisition module specifically is used for obtaining according to the quantity of the test packet of the test packet that receives and transmission the packet loss of described equipment under test; Perhaps the multiplication factor of next packet of the described data flow of test and the IP address of use are determined in the IP address in the described IP address pool of using according to the test packet that receives.
In conjunction with first kind of second aspect possible implementation, in second kind of second aspect possible implementation, described constructing module also is used for the cryptographic Hash of the stream sequence number of data flow under the high byte position of the sign of the IP head of N test packet of described structure writes described first packet, and recomputate described test packet the IP head verification with.
In conjunction with first kind of second aspect possible implementation, in the third possible implementation of second aspect, described constructing module also is used for when the protocol type of described first packet is the multichannel agreement, when using described N IP address to replace the source IP address of described first packet, replace the IP address of useful load part in described first packet synchronously, and recomputate a described N test packet data division verification with.
In conjunction with second aspect the first to the 3rd in any possible implementation, in the 4th kind of possible implementation of second aspect, described second sending time slots is the merchant of described first sending time slots and described multiplication factor.
The packet capturing file that embodiment of the invention basis is obtained from network traffics obtains first sending time slots between first packet and second packet; According to first sending time slots and be that the default multiplication factor of data flow obtains second sending time slots under first packet; According to first packet and be N test packet of N IP address architecture in the default IP address pool of data flow under first packet, wherein, the value of N is identical with the value of multiplication factor; Send N test packet according to second sending time slots to equipment under test; Receive the test packet that equipment under test is transmitted; Obtain test result according to the test packet that receives.In this way, increase that can the real simulated network traffics, thus realize the network equipment is carried out Performance Evaluation.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the application scenarios schematic diagram of the method for testing of the network equipment that provides of the embodiment of the invention;
Fig. 2 is the flow chart of the method for testing of the network equipment that provides of the embodiment of the invention;
Fig. 3 is another flow chart of the method for testing of the network equipment that provides of the embodiment of the invention;
Fig. 4 is the another flow chart of the method for testing of the network equipment that provides of the embodiment of the invention;
Fig. 5 is the another flow chart of the method for testing of the network equipment that provides of the embodiment of the invention;
Fig. 6 is a structural representation of the testing apparatus of the network equipment that provides of the embodiment of the invention;
Fig. 7 is the another structural representation of the testing apparatus of the network equipment that provides of the embodiment of the invention.
Embodiment
In order to make those skilled in the art person understand the present invention program better, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the embodiment of a part of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills should belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The present invention is described in detail below in conjunction with drawings and Examples.
Consult Fig. 1, Fig. 1 is the application scenarios schematic diagram of the method for testing of the network equipment that provides of the embodiment of the invention.Main application scenarios of the present invention is to include but not limited to switch, router, fire compartment wall etc. for equipment under test 13() test and appraisal under the packet capturing flow, the test and appraisal content comprises the performance performance of equipment under test 13 under the packet capturing flow, stable performance, network delay, packet loss, application layer protocol disposal ability etc.Particularly, as shown in Figure 1, return test macro 14 behind test packet process simulation test network 11, equipment under test 13 and the simulation test network 12 that test macro 14 of the present invention sends, thereby realize the testing evaluation to equipment under test 13.Wherein, simulation test network 11 and simulation test network 12 can be distinguished internal network and the external network in the analog network, and for example, the main frame in the external network 12 can be by equipment under test 13 visit internal networks 11.
Consult Fig. 2, Fig. 2 is the flow chart of the method for testing of the network equipment that provides of the embodiment of the invention, comprising:
Step S101: obtain first sending time slots between first packet and second packet according to the packet capturing file that from network traffics, obtains.
Packet capturing be exactly network transmission is sent with the packet that receives intercept and capture, retransmit, operations such as editor, unloading, use packet catcher that the packet in the network traffics such as is intercepted and captured at operation and can obtain the packet capturing file.
Time slot refer to any can unique identification and periodicity period of definition, be to be exclusively used in the serial of gap information of some single passages from a multiplexing part, be a timeslice in the time division multiplexing (TDM).Can obtain first sending time slots between first packet and second packet according to the packet capturing file.
Wherein, first packet and second packet are two adjacent in network traffics packets, and first packet and second packet can belong to identical data flow, also can belong to different data flow.
Step S102: obtain second sending time slots according to described first sending time slots and for the default multiplication factor of data flow under described first packet.
Wherein, described second sending time slots merchant that is described first sending time slots and described multiplication factor.
For can network environment that is virtually reality like reality, during the follow-up test packet of the packet structure of same data flow, be to construct according to the default multiplication factor of identical data flow.Therefore, according to first sending time slots and be that the default multiplication factor of data flow can obtain second sending time slots under first packet, namely second sending time slots equals first sending time slots divided by the default multiplication factor of data flow under first packet.
Step S103: according to described first packet and be N test packet of N IP address architecture in the default IP address pool of data flow under described first packet, wherein, the value of described N is identical with the value of described multiplication factor.
Utilizing N IP address in the default IP address pool of the affiliated data flow of first packet is N test packet of first packet structure, this N IP address can be used for constructing the source IP address of N test packet, perhaps construct the purpose IP address of N test packet, wherein, the value of the default multiplication factor of data flow is identical under the value of N and first packet.
Step S104: send a described N test packet to equipment under test according to described second sending time slots.
Second sending time slots that obtains according to step S102 sends N test packet to equipment under test.Need to prove, in actual applications, can construct test packet on one side, send the test packet of structure on one side according to second sending time slots, after also N test packet structure can being finished, send according to second sending time slots again, can determine according to specific circumstances in actual applications, be not restricted at this.
Step S105: receive the test packet that described equipment under test is transmitted.
After equipment under test receives test packet, the test packet that receives is transmitted, so the test packet of test macro reception equipment under test forwarding, so that test macro obtains the test performance of equipment under test.
Step S106: obtain test result according to the test packet that receives.
Obtain test result according to the test packet that receives, for example: the packet loss of equipment under test, treatable network traffics, application layer protocol disposal ability etc.
The packet capturing file that embodiment of the invention basis is obtained from network traffics obtains first sending time slots between first packet and second packet; According to first sending time slots and be that the default multiplication factor of data flow obtains second sending time slots under first packet; According to first packet and be N test packet of N IP address architecture in the default IP address pool of data flow under first packet, wherein, the value of N is identical with the value of multiplication factor; Send N test packet according to second sending time slots to equipment under test; Receive the test packet that equipment under test is transmitted; Obtain test result according to the test packet that receives.In this way, increase that can the real simulated network traffics, thus realize the network equipment is carried out Performance Evaluation.
Consult Fig. 3 to Fig. 5, Fig. 3 to Fig. 5 is three flow charts of the method for testing of the network equipment that provides of the embodiment of the invention, comprising:
Step S201: according to the five-tuple of traffic flow information, determine the data flow that first packet is affiliated.
The five-tuple of traffic flow information comprises: source IP address, source port, purpose IP address, destination interface and transport layer protocol.According to the five-tuple information of data flow, can determine the data flow that first packet is affiliated, the five-tuple information of same data flow is identical.Belong to the packet of same data flow according to same multiplication factor structure and the test packet of multiplication factor equal number.
Step S202: obtain first sending time slots between first packet and second packet according to the packet capturing file that from network traffics, obtains.
Time slot refer to any can unique identification and periodicity period of definition, be to be exclusively used in the serial of gap information of some single passages from a multiplexing part, be a timeslice in the time division multiplexing (TDM).Can obtain first sending time slots between first packet and second packet according to the packet capturing file.Wherein, first packet and second packet are two adjacent in network traffics packets, and first packet and second packet can belong to identical data flow, also can belong to different data flow.
Step S203: obtain second sending time slots according to described first sending time slots and for the default multiplication factor of data flow under described first packet.
For can network environment that is virtually reality like reality, when being the packet structure test packet of same data flow, be to construct according to the default multiplication factor of identical data flow.Therefore, according to first sending time slots and be that the default multiplication factor of data flow can obtain second sending time slots under first packet, namely second sending time slots equals first sending time slots divided by the default multiplication factor of data flow under first packet, and namely second sending time slots is the merchant of described first sending time slots and described multiplication factor.
Step S204: according to described first packet and be N test packet of N IP address architecture in the default IP address pool of data flow under described first packet, wherein, the value of described N is identical with the value of described multiplication factor.
Utilizing N IP address in the default IP address pool of the affiliated data flow of first packet is N test packet of first packet structure, this N IP address can be used for constructing test packet by the mode of the source IP address of replacing N test packet in first packet respectively, also can construct N test packet with the next mode of destination address that replace respectively in first packet N IP address, wherein, the value of the default multiplication factor of data flow is identical under the value of N and first packet.Wherein, an IP packet comprises head and data division, and is as shown in table 1, and the data format of IP packet head can be as shown in table 2.
The composition table of table 1IP packet
Head Data division
The composition table of table 2IP packet head
Figure BDA00002961521800081
Step S205: the cryptographic Hash of the stream sequence number of data flow under the high byte position of the sign of the IP head of N test packet of described structure writes described first packet, and recomputate described test packet the IP head verification and.
For convenience receiving terminal carries out the identification of data flow, the cryptographic Hash of the stream sequence number of data flow under first packet is written to the high byte position (for example, the identification division of table 2) of sign of the IP head of N test packet.Because the IP head has write the cryptographic Hash of stream sequence number, therefore need recomputate verification and (for example, the header check of table 2 and) of the IP head of test packet.
In this way, test macro is when receiving the test packet of equipment under test forwarding, can be according to the high byte position of the sign of the IP head of the test packet that receives, very fast definite this test packet is the test packet that belongs to which data flow, with convenient the test packet that receives is carried out data statistics, thereby not needing to identify again the test packet that receives is the test packet that belongs to which data flow again, improves the efficient of data statistics.
Step S206: if the protocol type of described first packet is the multichannel agreement, then when using described N IP address to replace the source IP address of described first packet, replace the IP address of useful load part in described first packet synchronously, and recomputate a described N test packet data division verification with.
If the protocol type of first packet is the multichannel agreement, then the data division at first packet also includes the IP address information, therefore, be first packet of multichannel agreement for protocol type, (for example use the source IP address of this first packet of N IP address replacement, the source IP address of table 2) time, (for example replace the IP address of useful load part in first packet synchronously, the data division of table 1), and recomputate the verification and (for example of the data division of N test packet, the data division of table 1), like this, can construct N test packet.
Because the IP address of useful load part is also replaced synchronously in the test packet, in this way, make equipment under test handle the multichannel associated services of application layer according to the IP address right of useful load part in the test packet, thus the applied environment that can simulate real network more truly.
Wherein, step S205 and step S206 do not have tangible sequencing relation, can select an execution yet.
Step S207: send a described N test packet to equipment under test according to described second sending time slots.
Be understandable that, in the practical application, can construct test packet on one side, send the test packet of structure on one side according to second sending time slots, after also N test packet structure can being finished, send according to second sending time slots again, can determine according to specific circumstances in actual applications, be not restricted at this.
For example, first sending time slots is 1 second, and the default multiplication factor of data flow is 10 times under first packet, and then second sending time slots is 0.1 second, test packet of transmission in namely per 0.1 second.
Step S208: receive the test packet that described equipment under test is transmitted.
After equipment under test receives test packet, the test packet that receives is transmitted, so the test packet of test macro reception equipment under test forwarding, so that test macro obtains the test performance of equipment under test.
Step S209: obtain test result according to the test packet that receives.
Obtain test result according to the test packet that receives, for example: the packet loss of equipment under test, treatable network traffics, application layer protocol disposal ability etc.
Wherein, S209 can comprise: the packet loss that obtains described equipment under test according to the quantity of the test packet of the test packet that receives and transmission; For example, sent 10 test packets, received 8 test packets, the packet loss of this equipment under test is 20% so.
Perhaps the multiplication factor of next packet of the described data flow of test and the IP address of use are determined in the IP address in the described IP address pool that can also use according to the test packet that receives.
For example, the default multiplication factor of a certain data flow is 4 times, the IP address of 4 test packets of corresponding transmission is respectively: 118.12.112.150,118.12.112.151,118.12.112.152 and 118.12.112.153, the IP address of the test packet that receives is 118.12.112.151,118.12.112.152 and 118.12.112.153, can know that accordingly the IP address is the test data packet loss of 118.12.112.150, this IP address will not re-use when constructing test packet for the next packet of this data flow, and the multiplication factor of adjusting the next packet of this data flow is 3 times, thereby can instruct follow-up test process according to test result, in time adjust method of testing, improve the efficient of test.
The method of testing of the network equipment that the embodiment of the invention provides, after obtaining second sending time slots according to the multiplication factor of first sending time slots of first packet and affiliated data flow, the test packet of the value equal number of structure and multiplication factor, send test packet according to second sending time slots to equipment under test, behind the test packet that receives the equipment under test forwarding, obtain test result.In this way, increase that can the real simulated network traffics, thus realize the network equipment is carried out Performance Evaluation, and can instruct follow-up test process according to test result, and in time adjust method of testing, improve testing efficiency.
In addition, because the IP head has write the cryptographic Hash of stream sequence number, convenient test packet to reception carries out data statistics, improves the efficient of data statistics; In addition, when first packet is the packet of multichannel protocol type, because the IP address of useful load part is also replaced synchronously in first packet, make equipment under test handle the multichannel associated services of application layer according to the IP address right of the part of the useful load in the test packet, thus the applied environment that can simulate real network more truly.
Consult Fig. 6, Fig. 6 is a structural representation of the testing apparatus of the network equipment that provides of the embodiment of the invention, and this device comprises: first obtains module 101, second obtains module 102, constructing module 103, sending module 104, receiver module 105 and the 3rd and obtains module 106.
First obtains module 101 for first sending time slots that obtains according to the packet capturing file that obtains from network traffics between first packet and second packet.
Second obtains module 102 is used for obtaining second sending time slots according to described first sending time slots and for the default multiplication factor of data flow under described first packet.
Wherein, described second sending time slots merchant that is described first sending time slots and described multiplication factor.
Constructing module 103 is used for according to described first packet and be N test packet of N IP address architecture of the IP address pool that data flow is preset under described first packet, and wherein, the value of described N is identical with the value of described multiplication factor.
Sending module 104 is used for sending a described N test packet according to described second sending time slots to equipment under test.
Receiver module 105 is used for receiving the test packet that described equipment under test is transmitted.
The 3rd obtains module 106 is used for obtaining test result according to the test packet that receives.
The 3rd acquisition module 106 specifically is used for obtaining according to the quantity of the test packet of the test packet that receives and transmission the packet loss of described equipment under test; Perhaps the multiplication factor of next packet of the described data flow of test and the IP address of use are determined in the IP address in the described IP address pool of using according to the test packet that receives.
In actual applications, under a kind of situation, described constructing module 103 also is used for the cryptographic Hash of the stream sequence number of data flow under the high byte position of the sign of the IP head of N test packet of described structure writes described first packet, and recomputate described test packet the IP head verification with.
Under another kind of situation, constructing module 103 also is used for when the protocol type of described first packet is the multichannel agreement, when using described N IP address to replace the source IP address of described first packet, replace the IP address of useful load part in described first packet synchronously, and recomputate a described N test packet data division verification with.
The packet capturing file that embodiment of the invention basis is obtained from network traffics obtains first sending time slots between first packet and second packet; According to first sending time slots and be that the default multiplication factor of data flow obtains second sending time slots under first packet; According to first packet and be N test packet of N IP address architecture in the default IP address pool of data flow under first packet, wherein, the value of N is identical with the value of multiplication factor; Send N test packet according to second sending time slots to equipment under test; Receive the test packet that equipment under test is transmitted; Obtain test result according to the test packet that receives.In this way, increase that can the real simulated network traffics, thus realize the network equipment is carried out Performance Evaluation, and can instruct follow-up test process according to test result, and in time adjust method of testing, improve testing efficiency.
In addition, because the IP head has write the cryptographic Hash of stream sequence number, convenient test packet to reception carries out data statistics, improves the efficient of data statistics; In addition, when the protocol type of described first packet is the multichannel agreement, because the IP address of useful load part is also replaced synchronously in first packet, make equipment under test handle the multichannel associated services of application layer according to the IP address right of useful load part in the test packet, thus the applied environment that can simulate real network more truly.
The physical structure schematic diagram of the testing apparatus of a kind of network equipment that Fig. 7 provides for the embodiment of the invention, this testing apparatus can be a station server, computer or computing node with computing ability, do not do special restriction at this.As shown in Figure 7, described testing apparatus 70 comprises:
Processor (processor) 710, communication interface (Communications Interface) 720, memory (memory) 730, communication bus 740.
Processor 710, communication interface 720 and memory 730 are finished mutual communication by communication bus 740.
Communication interface 720 is used for communicating by letter with equipment under test.
Processor 710 is used for executive program 732, specifically can carry out the correlation step of above-mentioned Fig. 2 to the method embodiment shown in Figure 5.
Particularly, program 732 can comprise program code, and described program code comprises computer-managed instruction.
Processor 710 may be a central processor CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to implement one or more integrated circuits of the embodiment of the invention.
Memory 730 is used for depositing program 732.Memory 730 may comprise the high-speed RAM memory, also may also comprise nonvolatile memory (non-volatile memory), for example at least one magnetic disc store.
The specific implementation of each functional module can not repeat them here referring to above-mentioned corresponding module in embodiment illustrated in fig. 6 in the program 732.
The packet capturing file that the described testing apparatus basis of the embodiment of the invention is obtained from network traffics obtains first sending time slots between first packet and second packet; According to first sending time slots and be that the default multiplication factor of data flow obtains second sending time slots under first packet; According to first packet and be N test packet of N IP address architecture in the default IP address pool of data flow under first packet, wherein, the value of N is identical with the value of multiplication factor; Send N test packet according to second sending time slots to equipment under test; Receive the test packet that equipment under test is transmitted; Obtain test result according to the test packet that receives.In this way, increase that can the real simulated network traffics, thus realize the network equipment is carried out Performance Evaluation, and can instruct follow-up test process according to test result, and in time adjust method of testing, improve testing efficiency.
In several embodiments provided by the present invention, should be understood that, disclosed system, apparatus and method can realize by other mode.For example, device embodiments described above only is schematic, for example, the division of described module or unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or directly to be coupled or to communicate to connect can be by some interfaces, the indirect coupling of device or unit or communicate to connect can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of unit to realize the purpose of present embodiment scheme according to the actual needs.
In addition, each functional unit in each execution mode of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) or processor (processor) carry out all or part of step of the described method of each execution mode of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above only is embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (10)

1. the method for testing of a network equipment is characterized in that, comprising:
Obtain first sending time slots between first packet and second packet according to the packet capturing file that from network traffics, obtains;
Obtain second sending time slots according to described first sending time slots and for the default multiplication factor of data flow under described first packet;
According to described first packet and be N test packet of N IP address architecture in the default IP address pool of data flow under described first packet, wherein, the value of described N is identical with the value of described multiplication factor;
Send a described N test packet according to described second sending time slots to equipment under test;
Receive the test packet that described equipment under test is transmitted;
Obtain test result according to the test packet that receives.
2. method according to claim 1 is characterized in that, described test packet according to reception obtains test result and comprises:
Obtain the packet loss of described equipment under test according to the quantity of the test packet of the test packet that receives and transmission; Perhaps
The multiplication factor of next packet of the described data flow of test and the IP address of use are determined in IP address in the described IP address pool of using according to the test packet that receives.
3. method according to claim 2 is characterized in that, the described N of a described structure test packet also comprises:
The cryptographic Hash of the stream sequence number of data flow under the high byte position of the sign of the IP head of N test packet of described structure writes described first packet, and recomputate described test packet the IP head verification and.
4. method according to claim 2 is characterized in that, the described N of a described structure test packet also comprises:
If the protocol type of described first packet is the multichannel agreement, then when using described N IP address to replace the source IP address of described first packet, replace the IP address of useful load part in described first packet synchronously, and recomputate a described N test packet data division verification with.
5. according to any described method of claim 1-4, it is characterized in that described second sending time slots is the merchant of described first sending time slots and described multiplication factor.
6. the testing apparatus of a network equipment is characterized in that, described device comprises:
First obtains module, for first sending time slots that obtains according to the packet capturing file that obtains from network traffics between first packet and second packet;
Second obtains module, is used for obtaining second sending time slots according to described first sending time slots and for the default multiplication factor of data flow under described first packet;
Constructing module is used for according to described first packet and be N test packet of N IP address architecture of the IP address pool that data flow is preset under described first packet, and wherein, the value of described N is identical with the value of described multiplication factor;
Sending module is used for sending a described N test packet according to described second sending time slots to equipment under test;
Receiver module is used for receiving the test packet that described equipment under test is transmitted;
The 3rd obtains module, is used for obtaining test result according to the test packet that receives.
7. device according to claim 6 is characterized in that, described the 3rd acquisition module specifically is used for obtaining according to the quantity of the test packet of the test packet that receives and transmission the packet loss of described equipment under test; Perhaps the multiplication factor of next packet of the described data flow of test and the IP address of use are determined in the IP address in the described IP address pool of using according to the test packet that receives.
8. device according to claim 7, it is characterized in that, described constructing module also is used for the cryptographic Hash of the stream sequence number of data flow under the high byte position of the sign of the IP head of N test packet of described structure writes described first packet, and recomputate described test packet the IP head verification with.
9. device according to claim 7, it is characterized in that, described constructing module also is used for when the protocol type of described first packet is the multichannel agreement, when using described N IP address to replace the source IP address of described first packet, replace the IP address of useful load part in described first packet synchronously, and recomputate a described N test packet data division verification with.
10. according to any described device of claim 6-9, it is characterized in that described second sending time slots is the merchant of described first sending time slots and described multiplication factor.
CN201310097353.3A 2013-03-25 2013-03-25 The method of testing of the network equipment and device Active CN103209103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310097353.3A CN103209103B (en) 2013-03-25 2013-03-25 The method of testing of the network equipment and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310097353.3A CN103209103B (en) 2013-03-25 2013-03-25 The method of testing of the network equipment and device

Publications (2)

Publication Number Publication Date
CN103209103A true CN103209103A (en) 2013-07-17
CN103209103B CN103209103B (en) 2015-12-23

Family

ID=48756195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310097353.3A Active CN103209103B (en) 2013-03-25 2013-03-25 The method of testing of the network equipment and device

Country Status (1)

Country Link
CN (1) CN103209103B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518892A (en) * 2013-09-26 2015-04-15 中国移动通信集团公司 An OTT service testing method and device
CN104539470A (en) * 2014-11-28 2015-04-22 北京锐安科技有限公司 Method for testing whether packet loss occurs in shunting equipment or not, test client and system
WO2015074171A1 (en) * 2013-11-19 2015-05-28 Telefonaktiebolaget L M Ericsson (Publ) Testing the performance of a layer 3 proxy device using traffic amplification
CN111211933A (en) * 2018-11-22 2020-05-29 华为技术有限公司 Method and device for determining quality of transmission link
CN113438125A (en) * 2021-06-08 2021-09-24 迈普通信技术股份有限公司 Test method and system
CN113556350A (en) * 2021-07-26 2021-10-26 浙江木链物联网科技有限公司 Network security equipment robustness testing method and system and readable storage medium
CN114039880A (en) * 2021-11-08 2022-02-11 北京天融信网络安全技术有限公司 Performance test method, device and system for connectionless service
CN114465924A (en) * 2021-12-24 2022-05-10 阿里巴巴(中国)有限公司 Network equipment testing method, data packet generating method and switching chip

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150665A (en) * 2018-09-27 2019-01-04 视联动力信息技术股份有限公司 A kind of bandwidth test method and apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525693A (en) * 2003-02-26 2004-09-01 华为技术有限公司 Statistic method for packet dropping number of communication device
CN101360015A (en) * 2008-09-02 2009-02-04 北京星网锐捷网络技术有限公司 Method, system and apparatus for test network appliance
CN101841441A (en) * 2010-05-05 2010-09-22 北京星网锐捷网络技术有限公司 Test method and system for flow control device and data stream playback device
CN102201949A (en) * 2011-05-27 2011-09-28 迈普通信技术股份有限公司 System and method for testing network equipment forwarding performance
CN202094915U (en) * 2010-09-29 2011-12-28 康佳集团股份有限公司 Tester aiming at network transmission rate in network television
CN102377618A (en) * 2011-10-14 2012-03-14 中兴通讯股份有限公司 Method, device, network manager and system for testing management ability of management interfaces of devices
CN102510346A (en) * 2011-11-18 2012-06-20 百度在线网络技术(北京)有限公司 Method, system and device for testing network equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525693A (en) * 2003-02-26 2004-09-01 华为技术有限公司 Statistic method for packet dropping number of communication device
CN101360015A (en) * 2008-09-02 2009-02-04 北京星网锐捷网络技术有限公司 Method, system and apparatus for test network appliance
CN101841441A (en) * 2010-05-05 2010-09-22 北京星网锐捷网络技术有限公司 Test method and system for flow control device and data stream playback device
CN202094915U (en) * 2010-09-29 2011-12-28 康佳集团股份有限公司 Tester aiming at network transmission rate in network television
CN102201949A (en) * 2011-05-27 2011-09-28 迈普通信技术股份有限公司 System and method for testing network equipment forwarding performance
CN102377618A (en) * 2011-10-14 2012-03-14 中兴通讯股份有限公司 Method, device, network manager and system for testing management ability of management interfaces of devices
CN102510346A (en) * 2011-11-18 2012-06-20 百度在线网络技术(北京)有限公司 Method, system and device for testing network equipment

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518892B (en) * 2013-09-26 2018-06-05 中国移动通信集团公司 A kind of OTT service test methods and device
CN104518892A (en) * 2013-09-26 2015-04-15 中国移动通信集团公司 An OTT service testing method and device
WO2015074171A1 (en) * 2013-11-19 2015-05-28 Telefonaktiebolaget L M Ericsson (Publ) Testing the performance of a layer 3 proxy device using traffic amplification
US10187283B2 (en) 2013-11-19 2019-01-22 Telefonaktiebolaget Lm Ericsson (Publ) Testing the performance of a layer 3 proxy device using traffic amplification
CN104539470A (en) * 2014-11-28 2015-04-22 北京锐安科技有限公司 Method for testing whether packet loss occurs in shunting equipment or not, test client and system
CN111211933B (en) * 2018-11-22 2021-12-14 华为技术有限公司 Method and device for determining quality of transmission link
CN111211933A (en) * 2018-11-22 2020-05-29 华为技术有限公司 Method and device for determining quality of transmission link
CN113438125A (en) * 2021-06-08 2021-09-24 迈普通信技术股份有限公司 Test method and system
CN113438125B (en) * 2021-06-08 2023-02-28 迈普通信技术股份有限公司 Test method and system
CN113556350A (en) * 2021-07-26 2021-10-26 浙江木链物联网科技有限公司 Network security equipment robustness testing method and system and readable storage medium
CN113556350B (en) * 2021-07-26 2023-03-24 浙江木链物联网科技有限公司 Network security equipment robustness testing method and system and readable storage medium
CN114039880A (en) * 2021-11-08 2022-02-11 北京天融信网络安全技术有限公司 Performance test method, device and system for connectionless service
CN114039880B (en) * 2021-11-08 2023-09-05 上海天融信网络安全技术有限公司 Performance test method, device and system for connectionless service
CN114465924A (en) * 2021-12-24 2022-05-10 阿里巴巴(中国)有限公司 Network equipment testing method, data packet generating method and switching chip
CN114465924B (en) * 2021-12-24 2023-12-22 阿里巴巴(中国)有限公司 Network equipment testing method, data packet generating method and switching chip

Also Published As

Publication number Publication date
CN103209103B (en) 2015-12-23

Similar Documents

Publication Publication Date Title
CN103209103B (en) The method of testing of the network equipment and device
US20180309641A1 (en) Method and system for simulating a network topology using a physical machine
CN101272291B (en) Network appliance testing method and system
EP2299633B1 (en) Misdirected packet detection method
US9992101B2 (en) Parallel multipath routing architecture
CN103200190B (en) A kind of cut-in method in kind towards QualNet network hardware-in-the-loop simulation
CN108259347B (en) Message transmission method and device
US9001668B2 (en) Endpoint selection in a network test system
CN101841436B (en) Method for testing performance of IPFIX (Internet Protocol Flow Information Export) server, device and system thereof
CN102098702B (en) Performance testing system, method and equipment
CN106878181A (en) A kind of message transmitting method and device
CN105306368A (en) Data message transmission method and device
CN102307250A (en) Method and device for searching IP (Internet Protocol) address
CN104283891A (en) Method and device for access of service function node to service link network
CN108667732A (en) A kind of message forwarding method and device
CN108092856A (en) Network quality optimization method, system and electronic equipment based on SDN
CN104965676A (en) Random access memory access method and apparatus and control chip
CN104639390A (en) Method and device for testing system
EP3534577A1 (en) Method of forwarding multicast data packet
EP2552054A2 (en) Wide field indexing for packet tracking
CN103118144B (en) A kind of Radio Access Controller and long-distance port agent method thereof
CN105812221A (en) Data transmission device and method in virtual extensible local area network
CN103701626B (en) The preparation method of bandwidth information and the equipment for obtaining bandwidth information
CN107005433A (en) A kind of Timing Processing method and device of flow table item
CN104967696A (en) Log sending method and device

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