CN103209103B - The method of testing of the network equipment and device - Google Patents

The method of testing of the network equipment and device Download PDF

Info

Publication number
CN103209103B
CN103209103B CN201310097353.3A CN201310097353A CN103209103B CN 103209103 B CN103209103 B CN 103209103B CN 201310097353 A CN201310097353 A CN 201310097353A CN 103209103 B CN103209103 B CN 103209103B
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.)
Active
Application number
CN201310097353.3A
Other languages
Chinese (zh)
Other versions
CN103209103A (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method of testing and device of the network equipment, the method comprises and obtains the first sending time slots between the first packet and the second packet according to the packet capturing file that obtains from network traffics; According to described first sending time slots and belonging to described first packet data flow preset multiplication factor obtain the second sending time slots; According to the N number of test packet of N number of IP address architecture in described first packet and data flow is preset belonging to described first packet IP address pool, wherein, the value of described N is identical with the value of described multiplication factor; Described N number of test packet is sent to equipment under test according to described second sending time slots; Receive the test packet that described equipment under test forwards; Test result is obtained according to the test packet received.By the way, the present invention can the increase of analog network flow truly.

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 accurately to test Related product and network of relation, are main points and the difficult points of network test always.Once the inaccurate networking products of test result are reached the standard grade, just may cause the great network contingency such as network flash, network paralysis, bring millions of economic losses to operator and the network user.
In the prior art, the networking products before putting into effect are tested, mainly by the crawl of live network flow and the mode of playback, network test and evaluation are carried out to networking products.
Present inventor finds in long-term R&D process, existing packet capturing playback technology, and being that the mode sent based on circulation realizes playback, is only the action accelerating the network user, cannot the multiplication of correct analog network flow.
Summary of the invention
A kind of method of testing and device of the network equipment is provided in the embodiment of the present invention, can the increase of analog network flow truly.
First aspect, embodiments provides a kind of method of testing of the network equipment, comprises and obtains the first sending time slots between the first packet and the second packet according to the packet capturing file that obtains from network traffics; According to described first sending time slots and belonging to described first packet data flow preset multiplication factor obtain the second sending time slots; According to the N number of test packet of N number of IP address architecture in described first packet and data flow is preset belonging to described first packet IP address pool, wherein, the value of described N is identical with the value of described multiplication factor; Described N number of test packet is sent to equipment under test according to described second sending time slots; Receive the test packet that described equipment under test forwards; Test result is obtained according to the test packet received.
In the first possible implementation of first aspect, the described test packet according to receiving obtains test result and comprises: the packet loss obtaining described equipment under test according to the quantity of test packet of the test packet received and transmission; Or determine the multiplication factor of the next packet testing described data flow and the IP address of use according to the IP address in the described IP address pool that the test packet received uses.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, the described N number of test packet of described structure also comprises: the cryptographic Hash of the stream sequence number of data flow belonging to described first packet of the high byte position of the mark of the IP head of N number of test packet of described structure write, and recalculates the School Affairs of the IP head of described test packet.
In conjunction with the first possible implementation of first aspect, in the third possible implementation of first aspect, the described N number of test packet of described structure also comprises: if the protocol type of described first packet is multichannel agreement, while using described N number of IP address to replace the source IP address of described first packet, then synchronously replace the IP address of useful load part in described first packet, and recalculate the School Affairs of the data division of described N number of test packet.
In conjunction with any one possible implementation in the first to the 3rd of first aspect the, in the 4th kind of possible implementation of first aspect, described second sending time slots is the business of described first sending time slots and described multiplication factor.
Second aspect, embodiments provides a kind of testing apparatus of the network equipment, and described device comprises: first obtains module, for obtaining the first sending time slots between the first packet and the second packet according to the packet capturing file obtained from network traffics; Second obtains module, for obtaining the second sending time slots according to described first sending time slots and data flow is default for described first packet belonging to multiplication factor; Constructing module, for according to the N number of test packet of N number of IP address architecture in described first packet and data flow is preset belonging to described first packet IP address pool, wherein, the value of described N is identical with the value of described multiplication factor; Sending module, for sending described N number of test packet according to described second sending time slots to equipment under test; Receiver module, for receiving the test packet that described equipment under test forwards; 3rd obtains module, for obtaining test result according to the test packet received.
In the first possible implementation of second aspect, the described 3rd obtains module specifically for obtaining the packet loss of described equipment under test according to the quantity of the test packet of reception and the test packet of transmission; Or determine the multiplication factor of the next packet testing described data flow and the IP address of use according to the IP address in the described IP address pool that the test packet received uses.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, described constructing module also for the mark of the IP head of the N number of test packet at described structure described first packet of high byte position write belonging to the cryptographic Hash of stream sequence number of data flow, and recalculate the School Affairs of the IP head of described test packet.
In conjunction with the first possible implementation of second aspect, in the third possible implementation of second aspect, described constructing module is also for when the protocol type of described first packet is multichannel agreement, while using described N number of IP address to replace the source IP address of described first packet, synchronously replace the IP address of useful load part in described first packet, and recalculate the School Affairs of the data division of described N number of test packet.
In conjunction with any one possible implementation in the first to the 3rd of second aspect the, in the 4th kind of possible implementation of second aspect, described second sending time slots is the business of described first sending time slots and described multiplication factor.
The embodiment of the present invention obtains the first sending time slots between the first packet and the second packet according to the packet capturing file obtained from network traffics; According to the first sending time slots and belonging to the first packet data flow preset multiplication factor obtain the second sending time slots; According to the N number of test packet of N number of IP address architecture in the first packet and data flow is preset belonging to the first packet IP address pool, wherein, the value of N is identical with the value of multiplication factor; N number of test packet is sent to equipment under test according to the second sending time slots; Receive the test packet that equipment under test forwards; Test result is obtained according to the test packet received.In this way, can the increase of analog network flow really, thus realize carrying out Performance Evaluation to the network equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the application scenarios schematic diagram of the method for testing of the network equipment that the embodiment of the present invention provides;
Fig. 2 is the flow chart of the method for testing of the network equipment that the embodiment of the present invention provides;
Fig. 3 is another flow chart of the method for testing of the network equipment that the embodiment of the present invention provides;
Fig. 4 is the another flow chart of the method for testing of the network equipment that the embodiment of the present invention provides;
Fig. 5 is the another flow chart of the method for testing of the network equipment that the embodiment of the present invention provides;
Fig. 6 is a structural representation of the testing apparatus of the network equipment that the embodiment of the present invention provides;
Fig. 7 is the another structural representation of the testing apparatus of the network equipment that the embodiment of the present invention provides.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
Below in conjunction with drawings and Examples, the present invention is described in detail.
Consult Fig. 1, Fig. 1 is the application scenarios schematic diagram of the method for testing of the network equipment that the embodiment of the present invention provides.Main application scenarios of the present invention includes but not limited to switch, router, fire compartment wall etc. for equipment under test 13() test and appraisal under packet capturing flow, test and appraisal content comprises the performance of equipment under test 13 under packet capturing flow, stability performance, network delay, packet loss, application layer protocol disposal ability etc.Particularly, as shown in Figure 1, the test packet that test macro 14 of the present invention sends returns test macro 14 after simulation test network 11, equipment under test 13 and simulation test network 12, thus realizes the testing evaluation to equipment under test 13.Wherein, simulation test network 11 and simulation test network 12 can distinguish internal network in analog network and external network, and such as, the main frame in external network 12 can access internal network 11 by equipment under test 13.
Consult Fig. 2, Fig. 2 is the flow chart of the method for testing of the network equipment that the embodiment of the present invention provides, and comprising:
Step S101: obtain the first sending time slots between the first packet and the second packet according to the packet capturing file obtained from network traffics.
Packet capturing be exactly Internet Transmission is sent carry out intercepting and capturing with the packet received, retransmit, edit, the operation such as unloading, use packet catcher the packet in network traffics to be carried out the operations such as intercepting and capturing and can obtain packet capturing file.
Time slot refers to any periodicity period that can uniquely identify and define, and the serial being the gap information being exclusively used in some single passages, from multiplexing part, is a timeslice in time division multiplexing (TDM).The first sending time slots between the first packet and the second packet can be obtained according to packet capturing file.
Wherein, the first packet and the second packet are two packets adjacent in network traffics, and the first packet can belong to identical data flow with the second packet, also can belong to different data flow.
Step S102: according to described first sending time slots and belonging to described first packet data flow preset multiplication factor obtain the second sending time slots.
Wherein, described second sending time slots is the business of described first sending time slots and described multiplication factor.
In order to can network environment that is virtually reality like reality, when the packet of same data flow constructs follow-up test packet, be that the multiplication factor preset according to identical data flow carries out constructing.Therefore, can obtain the second sending time slots according to the first sending time slots and data flow is preset belonging to the first packet multiplication factor, namely the second sending time slots equals the multiplication factor that the first sending time slots is preset divided by data flow belonging to the first packet.
Step S103: according to the N number of test packet of N number of IP address architecture in described first packet and data flow is preset belonging to described first packet IP address pool, wherein, the value of described N is identical with the value of described multiplication factor.
N number of IP address in the IP address pool utilizing data flow belonging to the first packet to preset is that the first packet constructs N number of test packet, this N number of IP address can be used for the source IP address constructing N number of test packet, or construct the object IP address of N number of test packet, wherein, the value of N is identical with the value of the multiplication factor that data flow belonging to the first packet is preset.
Step S104: send described N number of test packet to equipment under test according to described second sending time slots.
The second sending time slots obtained according to step S102 sends N number of test packet to equipment under test.It should be noted that, in actual applications, can while construct test packet, while send the test packet of structure according to the second sending time slots, also can by after N number of test packet structure, send according to the second sending time slots, can determine according to specific circumstances in actual applications, this is not restricted again.
Step S105: receive the test packet that described equipment under test forwards.
After equipment under test receives test packet, forwarded by the test packet of reception, therefore test macro receives the test packet that equipment under test forwards, so that test macro obtains the test performance of equipment under test.
Step S106: obtain test result according to the test packet received.
Test result is obtained, such as: the packet loss of equipment under test, treatable network traffics, application layer protocol disposal ability etc. according to the test packet received.
The embodiment of the present invention obtains the first sending time slots between the first packet and the second packet according to the packet capturing file obtained from network traffics; According to the first sending time slots and belonging to the first packet data flow preset multiplication factor obtain the second sending time slots; According to the N number of test packet of N number of IP address architecture in the first packet and data flow is preset belonging to the first packet IP address pool, wherein, the value of N is identical with the value of multiplication factor; N number of test packet is sent to equipment under test according to the second sending time slots; Receive the test packet that equipment under test forwards; Test result is obtained according to the test packet received.In this way, can the increase of analog network flow really, thus realize carrying out Performance Evaluation to the network equipment.
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 the embodiment of the present invention provides, and comprising:
Step S201: according to the five-tuple of traffic flow information, determines the data flow belonging to the first packet.
The five-tuple of traffic flow information comprises: source IP address, source port, object IP address, destination interface and transport layer protocol.According to the five-tuple information of data flow, can determine the data flow belonging to the first packet, the five-tuple information of same data flow is identical.Belong to the packet of same data flow according to the test packet of same multiplication factor structure with multiplication factor equal number.
Step S202: obtain the first sending time slots between the first packet and the second packet according to the packet capturing file obtained from network traffics.
Time slot refers to any periodicity period that can uniquely identify and define, and the serial being the gap information being exclusively used in some single passages, from multiplexing part, is a timeslice in time division multiplexing (TDM).The first sending time slots between the first packet and the second packet can be obtained according to packet capturing file.Wherein, the first packet and the second packet are two packets adjacent in network traffics, and the first packet can belong to identical data flow with the second packet, also can belong to different data flow.
Step S203: according to described first sending time slots and belonging to described first packet data flow preset multiplication factor obtain the second sending time slots.
In order to can network environment that is virtually reality like reality, when the packet structure test packet for same data flow, be that the multiplication factor preset according to identical data flow carries out constructing.Therefore, according to the first sending time slots and belonging to the first packet data flow preset multiplication factor can obtain the second sending time slots, namely the second sending time slots equals the multiplication factor that the first sending time slots is preset divided by data flow belonging to the first packet, and namely the second sending time slots is the business of described first sending time slots and described multiplication factor.
Step S204: according to the N number of test packet of N number of IP address architecture in described first packet and data flow is preset belonging to described first packet IP address pool, wherein, the value of described N is identical with the value of described multiplication factor.
N number of IP address in the IP address pool utilizing data flow belonging to the first packet to preset is that the first packet constructs N number of test packet, the mode of the source IP address that this N number of IP address can be used for by replacing the N number of test packet in the first packet respectively constructs test packet, also the mode can come with the destination address that N number of IP address is replaced in the first packet respectively constructs N number of test packet, wherein, the value of N is identical with the value of the multiplication factor that data flow belonging to the first packet is preset.Wherein, an IP packet comprises head and data division, as shown in table 1, and the data format of IP data packet header can be as shown in table 2.
The composition table of table 1IP packet
Head Data division
The composition table of table 2IP data packet header
Step S205: the cryptographic Hash of the stream sequence number of data flow belonging to described first packet of the high byte position of the mark of the IP head of N number of test packet of described structure write, and recalculate the School Affairs of the IP head of described test packet.
Conveniently receiving terminal carries out the identification of data flow, the cryptographic Hash of the stream sequence number of data flow belonging to the first packet is written to the high byte position (such as, the identification division of table 2) of the mark of the IP head of N number of test packet.Because IP head is written with the cryptographic Hash of stream sequence number, therefore need the School Affairs (such as, the header checksum of table 2) of the IP head recalculating test packet.
In this way, test macro is when receiving the test packet that equipment under test forwards, can according to the high byte position of the mark of the IP head of the test packet received, determine that this test packet is the test packet belonging to which data flow very soon, data statistics is carried out to facilitate the test packet to receiving, thus do not need again to identify that received test packet is the test packet belonging to which data flow again, improve the efficiency of data statistics.
Step S206: if the protocol type of described first packet is multichannel agreement, while using described N number of IP address to replace the source IP address of described first packet, then synchronously replace the IP address of useful load part in described first packet, and recalculate the School Affairs of the data division of described N number of test packet.
If the protocol type of the first packet is multichannel agreement, then also include IP address information at the data division of the first packet, therefore, for the first packet that protocol type is multichannel agreement, N number of IP address is used to replace the source IP address of this first packet (such as, the source IP address of table 2) time, in synchronous replacement first packet, the IP address of useful load part (such as, the data division of table 1), and the School Affairs recalculating the data division of N number of test packet (such as, the data division of table 1), like this, N number of test packet can be constructed.
Because in test packet, the IP address of useful load part is also synchronously replaced, in this way, make equipment under test can correctly process the multichannel associated services of application layer according to the IP address of useful load part in test packet, thus the applied environment of real network can be simulated more truly.
Wherein, step S205 and step S206 does not have obvious sequencing relation, can select an execution yet.
Step S207: send described N number of test packet to equipment under test according to described second sending time slots.
Be understandable that, in practical application, can while construct test packet, while send the test packet of structure according to the second sending time slots, also can by after N number of test packet structure, send according to the second sending time slots, can determine according to specific circumstances in actual applications, this is not restricted again.
Such as, the first sending time slots is 1 second, and the multiplication factor that data flow belonging to the first packet is preset is 10 times, then the second sending time slots is 0.1 second, namely within every 0.1 second, sends a test packet.
Step S208: receive the test packet that described equipment under test forwards.
After equipment under test receives test packet, forwarded by the test packet of reception, therefore test macro receives the test packet that equipment under test forwards, so that test macro obtains the test performance of equipment under test.
Step S209: obtain test result according to the test packet received.
Test result is obtained, such as: the packet loss of equipment under test, treatable network traffics, application layer protocol disposal ability etc. according to the test packet received.
Wherein, S209 can comprise: the packet loss obtaining described equipment under test according to the quantity of test packet of the test packet received and transmission; Such as, have sent 10 test packets, have received 8 test packets, so the packet loss of this equipment under test is 20%.
Or the multiplication factor of the next packet testing described data flow 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 received.
Such as, the multiplication factor that a certain data flow is preset is 4 times, the IP address of 4 test packets of corresponding transmission is respectively: 118.12.112.150, 118.12.112.151, and 118.12.112.153 118.12.112.152, the IP address of the test packet received is 118.12.112.151, and 118.12.112.153 118.12.112.152, can know that IP address is the test data packet loss of 118.12.112.150 accordingly, this IP address will not re-use when the next packet structure test packet for this data flow, and the multiplication factor adjusting the next packet of this data flow is 3 times, thus follow-up test process can be instructed according to test result, timely adjustment method of testing, improve the efficiency of test.
The method of testing of the network equipment that the embodiment of the present invention provides, after obtaining the second sending time slots according to the first sending time slots of the first packet and the multiplication factor of affiliated data flow, the test packet of the value equal number of structure and multiplication factor, test packet is sent to equipment under test according to the second sending time slots, after the test packet receiving equipment under test forwarding, obtain test result.In this way, can the increase of analog network flow really, thus realize carrying out Performance Evaluation to the network equipment, and follow-up test process can be instructed according to test result, adjust method of testing in time, improve testing efficiency.
In addition, because IP head is written with the cryptographic Hash of stream sequence number, the convenient test packet to receiving carries out data statistics, improves the efficiency of data statistics; In addition, when the first packet is the packet of multichannel protocol type, because in the first packet, the IP address of useful load part is also synchronously replaced, make equipment under test can correctly process the multichannel associated services of application layer according to the IP address of the useful load part in test packet, thus the applied environment of real network can be simulated more truly.
Consult Fig. 6, Fig. 6 is a structural representation of the testing apparatus of the network equipment that the embodiment of the present invention provides, and this device comprises: first obtains module 101, second obtains module 102, constructing module 103, sending module 104, receiver module 105 and the 3rd acquisition module 106.
First obtains module 101 for obtaining the first sending time slots between the first packet and the second packet according to the packet capturing file obtained from network traffics.
Second obtains module 102 for obtaining the second sending time slots according to described first sending time slots and data flow is default for described first packet belonging to multiplication factor.
Wherein, described second sending time slots is the business of described first sending time slots and described multiplication factor.
Constructing module 103 is for according to the N number of test packet of N number of IP address architecture in described first packet and data flow is preset belonging to described first packet IP address pool, and wherein, the value of described N is identical with the value of described multiplication factor.
Sending module 104 is for sending described N number of test packet according to described second sending time slots to equipment under test.
The test packet that receiver module 105 forwards for receiving described equipment under test.
3rd obtains module 106 for obtaining test result according to the test packet received.
3rd obtains module 106 specifically for obtaining the packet loss of described equipment under test according to the quantity of the test packet of reception and the test packet of transmission; Or determine the multiplication factor of the next packet testing described data flow and the IP address of use according to the IP address in the described IP address pool that the test packet received uses.
In actual applications, in one case, described constructing module 103 also for the mark of the IP head of the N number of test packet at described structure described first packet of high byte position write belonging to the cryptographic Hash of stream sequence number of data flow, and recalculate the School Affairs of the IP head of described test packet.
In another scenario, constructing module 103 is also for when the protocol type of described first packet is multichannel agreement, while using described N number of IP address to replace the source IP address of described first packet, synchronously replace the IP address of useful load part in described first packet, and recalculate the School Affairs of the data division of described N number of test packet.
The embodiment of the present invention obtains the first sending time slots between the first packet and the second packet according to the packet capturing file obtained from network traffics; According to the first sending time slots and belonging to the first packet data flow preset multiplication factor obtain the second sending time slots; According to the N number of test packet of N number of IP address architecture in the first packet and data flow is preset belonging to the first packet IP address pool, wherein, the value of N is identical with the value of multiplication factor; N number of test packet is sent to equipment under test according to the second sending time slots; Receive the test packet that equipment under test forwards; Test result is obtained according to the test packet received.In this way, can the increase of analog network flow really, thus realize carrying out Performance Evaluation to the network equipment, and follow-up test process can be instructed according to test result, adjust method of testing in time, improve testing efficiency.
In addition, because IP head is written with the cryptographic Hash of stream sequence number, the convenient test packet to receiving carries out data statistics, improves the efficiency of data statistics; In addition, when the protocol type of described first packet is multichannel agreement, because in the first packet, the IP address of useful load part is also synchronously replaced, make equipment under test can correctly process the multichannel associated services of application layer according to the IP address of useful load part in test packet, thus the applied environment of real network can be simulated 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 present invention, this testing apparatus can be a station server, computer or the computing node with computing ability, is not particularly limited at this.As shown in Figure 7, described testing apparatus 70 comprises:
Processor (processor) 710, communication interface (CommunicationsInterface) 720, memory (memory) 730, communication bus 740.
Processor 710, communication interface 720 and memory 730 complete mutual communication by communication bus 740.
Communication interface 720, for communicating with equipment under test.
Processor 710, for executive program 732, specifically can perform the correlation step in the embodiment of the method shown in above-mentioned Fig. 2 to Fig. 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(ApplicationSpecificIntegratedCircuit), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Memory 730, for depositing program 732.Memory 730 may comprise high-speed RAM memory, still may comprise nonvolatile memory (non-volatilememory), such as at least one magnetic disc store.
In program 732 each functional module specific implementation can see above-mentioned embodiment illustrated in fig. 6 in corresponding module, do not repeat them here.
Testing apparatus described in the embodiment of the present invention obtains the first sending time slots between the first packet and the second packet according to the packet capturing file obtained from network traffics; According to the first sending time slots and belonging to the first packet data flow preset multiplication factor obtain the second sending time slots; According to the N number of test packet of N number of IP address architecture in the first packet and data flow is preset belonging to the first packet IP address pool, wherein, the value of N is identical with the value of multiplication factor; N number of test packet is sent to equipment under test according to the second sending time slots; Receive the test packet that equipment under test forwards; Test result is obtained according to the test packet received.In this way, can the increase of analog network flow really, thus realize carrying out Performance Evaluation to the network equipment, and follow-up test process can be instructed according to test result, adjust method of testing in time, improve testing efficiency.
In several execution mode provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiments described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of present embodiment scheme.
In addition, each functional unit in each execution mode of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each execution mode of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (8)

1. a method of testing for the network equipment, is characterized in that, comprising:
The first sending time slots between the first packet and the second packet is obtained according to the packet capturing file obtained from network traffics;
According to described first sending time slots and belonging to described first packet data flow preset multiplication factor obtain the second sending time slots;
According to the N number of test packet of N number of IP address architecture in described first packet and data flow is preset belonging to described first packet IP address pool, wherein, the value of described N is identical with the value of described multiplication factor;
Described N number of test packet is sent to equipment under test according to described second sending time slots;
Receive the test packet that described equipment under test forwards;
Test result is obtained according to the test packet received;
Wherein, described second sending time slots is the business of described first sending time slots and described multiplication factor.
2. method according to claim 1, is characterized in that, the described test packet according to receiving obtains test result and comprises:
The packet loss of described equipment under test is obtained according to the quantity of test packet of the test packet received and transmission; Or
The multiplication factor of the next packet testing described data flow and the IP address of use is determined according to the IP address in the described IP address pool that the test packet received uses.
3. method according to claim 2, is characterized in that, the described N number of test packet of described structure also comprises:
The cryptographic Hash of the stream sequence number of data flow belonging to described first packet of the high byte position of the mark of the IP head of N number of test packet of described structure write, and recalculate the School Affairs of the IP head of described test packet.
4. method according to claim 2, is characterized in that, the described N number of test packet of described structure also comprises:
If the protocol type of described first packet is multichannel agreement, while using described N number of IP address to replace the source IP address of described first packet, then synchronously replace the IP address of useful load part in described first packet, and recalculate the School Affairs of the data division of described N number of test packet.
5. a testing apparatus for the network equipment, is characterized in that, described device comprises:
First obtains module, for obtaining the first sending time slots between the first packet and the second packet according to the packet capturing file obtained from network traffics;
Second obtains module, for obtaining the second sending time slots according to described first sending time slots and data flow is default for described first packet belonging to multiplication factor;
Constructing module, for according to the N number of test packet of N number of IP address architecture in described first packet and data flow is preset belonging to described first packet IP address pool, wherein, the value of described N is identical with the value of described multiplication factor;
Sending module, for sending described N number of test packet according to described second sending time slots to equipment under test;
Receiver module, for receiving the test packet that described equipment under test forwards;
3rd obtains module, for obtaining test result according to the test packet received;
Wherein, described second sending time slots is the business of described first sending time slots and described multiplication factor.
6. device according to claim 5, is characterized in that, the described 3rd obtains module specifically for obtaining the packet loss of described equipment under test according to the quantity of the test packet of reception and the test packet of transmission; Or determine the multiplication factor of the next packet testing described data flow and the IP address of use according to the IP address in the described IP address pool that the test packet received uses.
7. device according to claim 6, it is characterized in that, described constructing module also for the mark of the IP head of the N number of test packet at described structure described first packet of high byte position write belonging to the cryptographic Hash of stream sequence number of data flow, and recalculate the School Affairs of the IP head of described test packet.
8. device according to claim 6, it is characterized in that, described constructing module is also for when the protocol type of described first packet is multichannel agreement, while using described N number of IP address to replace the source IP address of described first packet, synchronously replace the IP address of useful load part in described first packet, and recalculate the School Affairs of the data division of described N number of test packet.
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 CN103209103A (en) 2013-07-17
CN103209103B true 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 (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

Families Citing this family (8)

* 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
EP3072261A4 (en) 2013-11-19 2016-09-28 Ericsson Telefon Ab L M Testing the performance of a layer 3 proxy device using traffic amplification
CN104539470B (en) * 2014-11-28 2017-11-21 北京锐安科技有限公司 Test shunting device whether method, test client and the system of packet loss
CN111211933B (en) * 2018-11-22 2021-12-14 华为技术有限公司 Method and device for determining quality of transmission link
CN113438125B (en) * 2021-06-08 2023-02-28 迈普通信技术股份有限公司 Test method and system
CN113556350B (en) * 2021-07-26 2023-03-24 浙江木链物联网科技有限公司 Network security equipment robustness testing method and system and readable storage medium
CN114039880B (en) * 2021-11-08 2023-09-05 上海天融信网络安全技术有限公司 Performance test method, device and system for connectionless service
CN114465924B (en) * 2021-12-24 2023-12-22 阿里巴巴(中国)有限公司 Network equipment testing method, data packet generating method and switching chip

Citations (5)

* 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
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
CN102510346A (en) * 2011-11-18 2012-06-20 百度在线网络技术(北京)有限公司 Method, system and device for testing network equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841441B (en) * 2010-05-05 2011-12-28 北京星网锐捷网络技术有限公司 Test method and system for flow control device and data stream playback device
CN102377618B (en) * 2011-10-14 2017-12-19 中兴通讯股份有限公司 Method, apparatus, webmaster and the system of test equipment management interface managerial ability

Patent Citations (5)

* 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
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
CN102510346A (en) * 2011-11-18 2012-06-20 百度在线网络技术(北京)有限公司 Method, system and device for testing network equipment

Cited By (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

Also Published As

Publication number Publication date
CN103209103A (en) 2013-07-17

Similar Documents

Publication Publication Date Title
CN103209103B (en) The method of testing of the network equipment and device
US9729433B2 (en) Enhanced route tracing
US20180309641A1 (en) Method and system for simulating a network topology using a physical machine
CN104243302B (en) Business route message processing method, device and network system
CN108259347B (en) Message transmission method and device
CN103581021B (en) The method and apparatus of business detection under software defined network
CN103200190B (en) A kind of cut-in method in kind towards QualNet network hardware-in-the-loop simulation
US9001668B2 (en) Endpoint selection in a network test system
EP3496346A1 (en) Data message forwarding method and apparatus
EP3331205A1 (en) Data packet transmission method utilized in ipv6 network and device utilizing same
CN106464564A (en) Network packet encapsulation and routing
CN106878181A (en) A kind of message transmitting method and device
CN112583745A (en) Method, equipment and system for forwarding message in SR network
CN109962850A (en) The method and controller and computer readable storage medium of realization Segment routing
EP2456128A1 (en) Testing packet fragmentation
CN105306368A (en) Data message transmission method and device
CN114830711A (en) Apparatus for testing base station
CN102307250A (en) Method and device for searching IP (Internet Protocol) address
US20120287946A1 (en) Hash-Based Load Balancing with Flow Identifier Remapping
CN108667732A (en) A kind of message forwarding method and device
CN105530159A (en) Cross-IPv6 and IPv4 VPN inter-access method and system
US10374899B2 (en) Method and device for reporting OpenFLow switch capability
CN104780090A (en) VPN multicast transmission method and device PE equipment
CN103118144B (en) A kind of Radio Access Controller and long-distance port agent method thereof
CN105337860A (en) Method and system for determining transmission path of data packet, and apparatuses

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