CN103346935B - Method, the equipment and system of fragment message restructuring test - Google Patents

Method, the equipment and system of fragment message restructuring test Download PDF

Info

Publication number
CN103346935B
CN103346935B CN201310319838.2A CN201310319838A CN103346935B CN 103346935 B CN103346935 B CN 103346935B CN 201310319838 A CN201310319838 A CN 201310319838A CN 103346935 B CN103346935 B CN 103346935B
Authority
CN
China
Prior art keywords
equipment
fragment
auxiliary measurement
message
test
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
CN201310319838.2A
Other languages
Chinese (zh)
Other versions
CN103346935A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201310319838.2A priority Critical patent/CN103346935B/en
Publication of CN103346935A publication Critical patent/CN103346935A/en
Application granted granted Critical
Publication of CN103346935B publication Critical patent/CN103346935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses method, the equipment and system of a kind of fragment message restructuring test, relate to communication technical field, can test the success or not of receiving terminal heavy constituent sheet message, obtain a result.Method of the present invention comprises: the test packet that testing equipment sends is split as at least two fragment messages according to the MTU value of setting and sends to tested equipment by auxiliary measurement equipment, and while catches these at least two fragment messages and imports in testing equipment on interface; The test data stream that testing equipment is made up of at least two fragment messages according to the sending order generate rule preset, sends to tested equipment by auxiliary measurement equipment by test data stream; Tested equipment is recombinated at least two fragment messages in test data stream; If testing equipment receives the response message that tested equipment sends, then determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure.The present invention is mainly used in the process of testing icmp packet.

Description

Method, the equipment and system of fragment message restructuring test
Technical field
The present invention relates to communication technical field, particularly relate to method, the equipment and system of a kind of fragment message restructuring test.
Background technology
Along with the develop rapidly of the Internet and the continuous lifting of network communication equipment performance, data message type is abundanter, and client also constantly increases for the demand of different business, result in the explosive growth of customer traffic.The mode of a kind of message transmissions of the prior art is that message to be sent is cut into slices by transmitting terminal, obtains multiple fragment message, then multiple fragment message is sent to receiving terminal, is recombinated by the fragment message received by receiving terminal, obtains complete message.
Existing fragment message recombination form is, the multiple fragment messages after section are sent to receiving terminal by many different bandwidth links by transmitting terminal respectively, and wherein every bar bandwidth link sends a fragment message.Receiving terminal is recombinated to the multiple fragment messages received according to the reception order of fragment message, obtains a complete message.Such as, certain message A is split as 4 fragment messages by transmitting terminal: fragment message a, fragment message b, fragment message c and fragment message d, and then it is sent to receiving terminal by bandwidth link 1, bandwidth link 2, bandwidth link 3 and bandwidth link 4 by transmitting terminal respectively.The sequencing that receiving terminal receives fragment message is followed successively by fragment message c, fragment message b, fragment message a and fragment message d, and receiving terminal is recombinated to message A according to the order of fragment message c, fragment message b, fragment message a and fragment message d.
In the process that above-mentioned fragment message is recombinated, inventor finds that in prior art, at least there are the following problems: transmitting terminal sends fragment message according to certain sending order, during the receiving terminal restructuring sequence consensus of the order of fragment message with the transmission fragment message of transmitting terminal, fragment message of could successfully recombinating.Usually, by the impact that different bandwidth link transmission condition is different, the order of the fragment message that the sequencing of the fragment message that receiving terminal receives may send with transmitting terminal is inconsistent.The order that need receive fragment message according to it due to receiving terminal is recombinated, therefore receiving terminal carry out the sending order of order and the transmitting terminal of recombinating may be inconsistent, then cause Packet reassembling failure.Such as, for above-mentioned message A, transmitting terminal sends fragment message a, fragment message b, fragment message c and fragment message d to receiving terminal successively, if receiving terminal receives the order of fragment message be followed successively by fragment message a, fragment message b, fragment message c and fragment message d, then can successful reconstructed file A; If the order that receiving terminal receives fragment message is followed successively by fragment message b, fragment message a, fragment message c and fragment message d, then message A reconstructing failure.
Summary of the invention
Method, equipment and system that the present embodiment provides a kind of fragment message to recombinate test, can test the success or not of receiving terminal heavy constituent sheet message, obtain a result.
First aspect, embodiments provides the method for a kind of fragment message restructuring test, comprising:
Testing equipment is the test packet of tested equipment to auxiliary measurement equipment sending destination location;
Auxiliary measurement equipment receives the test packet that testing equipment sends, according to the MTU MTU value of setting test packet be split as at least two fragment messages and send to tested equipment, on the transmission interface of auxiliary measurement equipment, catching at least two fragment messages sending to tested equipment simultaneously;
At least two fragment messages that transmission interface is caught by auxiliary measurement equipment import in testing equipment;
The test data stream that testing equipment is made up of at least two fragment messages according to the sending order generate rule preset, sends to tested equipment by auxiliary measurement equipment by test data stream;
Tested equipment receives the test data stream of testing equipment transmission by auxiliary measurement equipment, and recombinates at least two fragment messages in test data stream, obtains test packet back testing equipment and sends response message;
If testing equipment receives the response message that tested equipment sends, then determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure.
Second aspect, embodiments provides the system of a kind of fragment message restructuring test, comprises testing equipment, auxiliary measurement equipment and tested equipment, wherein,
Testing equipment, for to auxiliary measurement equipment sending destination location being the test packet of tested equipment, receive at least two fragment messages that auxiliary measurement equipment imports, according to the test data stream that the sending order generate rule preset is made up of at least two fragment messages, by auxiliary measurement equipment, test data stream is sent to tested equipment, if receive the response message that tested equipment sends, then determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure;
Auxiliary measurement equipment, for receiving the test packet that testing equipment sends, according to the MTU MTU value of setting test packet be split as at least two fragment messages and send to tested equipment, on the transmission interface of auxiliary measurement equipment, catch at least two fragment messages sending to tested equipment simultaneously, at least two fragment messages of being caught by transmission interface import in testing equipment, receive testing equipment send test data stream and by test data flow forwarding to tested equipment;
Tested equipment, for receiving the test data stream that testing equipment is sent by auxiliary measurement equipment, and recombinates at least two fragment messages in test data stream, obtains test packet back testing equipment and sends response message.
Method, the equipment and system of the fragment message restructuring test that the embodiment of the present invention provides, can send test packet by auxiliary measurement equipment to tested equipment by testing equipment, the test packet received is split as at least two fragment messages and sends to tested equipment by auxiliary measurement equipment.Simultaneously auxiliary measurement equipment is opened the interface be connected with tested equipment and is caught and split at least two fragment messages obtained and import in testing equipment.The test data that auxiliary measurement equipment is made up of at least two fragment messages according to the sending order generate rule preset by testing equipment, sends to tested equipment by auxiliary measurement equipment by this test data stream.Tested equipment receives the test data stream of testing equipment transmission by auxiliary measurement equipment, and at least two fragment messages in this test data stream are recombinated, obtain test packet back testing equipment and send response message, if testing equipment receives the response message that tested equipment sends, then determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure, the clooating sequence of various fragment message can be provided thus flexibly, more abundant test sample book is provided, and the mode whether receiving response message can be passed through, obtain the test result of restructuring correctness.
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 schematic diagram of test macro in the embodiment of the present invention;
Fig. 2 is the method flow diagram of first fragment message restructuring test in the embodiment of the present invention;
Fig. 3 is the method flow diagram of second fragment message restructuring test in the embodiment of the present invention;
Fig. 4 is the schematic diagram of icmp packet in the embodiment of the present invention;
Fig. 5 is the schematic diagram of 4 ICMP fragment messages in the embodiment of the present invention;
Fig. 6 is the schematic diagram of the system of fragment message restructuring test in the embodiment of the present invention;
Fig. 7 is the structural representation of first testing equipment in the embodiment of the present invention;
Fig. 8 is the structural representation of second testing equipment in the embodiment of the present invention;
Fig. 9 is the structural representation of first auxiliary measurement equipment in the embodiment of the present invention;
Figure 10 is the structural representation of second auxiliary measurement equipment in the embodiment of the present invention;
Figure 11 is the structural representation of tested equipment in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the present embodiment, be clearly and completely described the technical scheme in the present embodiment, obviously, described embodiment is only the present invention's part embodiment, 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, belong to the scope of protection of the invention.
For ease of understanding the present embodiment, first to the present embodiment based on test macro carry out brief description.As shown in Figure 1, described test macro comprises: testing equipment 11, auxiliary measurement equipment 12 and tested equipment 13.Wherein, described auxiliary measurement equipment 12 is connected with the Port interface of described testing equipment 11 right-hand member by the ether interface G0 of left end, be connected with the interface G2 of described tested equipment 13 left end by the ether interface G1 of right-hand member, between described testing equipment 11 and described auxiliary measurement equipment 12, there is data communications context, between described auxiliary measurement equipment 12 and described tested equipment 13, there is data communications context.The test packet that testing equipment 11 sends arrives tested equipment 13 via auxiliary measurement equipment 12, when through auxiliary measurement equipment 12, by auxiliary measurement equipment 12, this test packet is split as multiple fragment message, then multiple fragment message is sent to tested equipment 13.Below based on the test macro shown in Fig. 1, the present embodiment is described.
Embodiment one
Present embodiments provide the method for a kind of fragment message restructuring test, described method relates to testing equipment, auxiliary measurement equipment and tested equipment, in order to realize detecting the correctness of tested equipment restructuring fragment message.As shown in Figure 2, the method comprises:
201, testing equipment is the test packet of tested equipment to auxiliary measurement equipment sending destination location.
Testing equipment structure destination address in the present embodiment is the test packet of tested equipment, and the test packet be configured to is sent to auxiliary measurement equipment.
202, auxiliary measurement equipment receives the test packet that testing equipment sends.
Auxiliary measurement equipment, as the forwarding unit of test packet, first receives this test packet that testing equipment sends.The test packet that auxiliary measurement equipment is sent by Port interface by interface G0 reception testing equipment in the test macro shown in Fig. 1.
203, test packet is split as at least two fragment messages according to MTU (MaximumTransmissionUnit the is called for short MTU) value of setting and sends to tested equipment by auxiliary measurement equipment.
In the present embodiment, tester arranges MTU value in advance on the interface G1 of auxiliary measurement equipment, auxiliary measurement equipment splits test packet according to the size of the MTU value arranged and test packet, then by interface G1, the multiple fragment messages obtained after fractionation is sent to tested equipment.
204, auxiliary measurement equipment is caught and is sent at least two fragment messages described in tested equipment on transmission interface.
Send fragment message in execution step 203 to tested equipment, auxiliary measurement equipment is caught the fragment message sent on interface G1.The object of catching fragment message is fragment message to import in testing equipment, so that transmission equipment generates the test data stream being used for testing Packet reassembling according to this fragment message.
205, at least two fragment messages that transmission interface is caught by auxiliary measurement equipment import in testing equipment.
206, testing equipment is according to the test data stream that is made up of described at least two fragment messages of sending order generate rule preset.
Testing equipment receives multiple data flow that auxiliary measurement equipment imports, and the corresponding fragment message of each data flow, obtains test data stream.Wherein, in this test data stream, the sending order of every bar data flow can be generated by computer random, and also can be arranged to computer script by tester and import in testing equipment, the sending order create-rule of the present embodiment fragment message does not limit.
When fragment message sends to tested equipment with fractionation order, such as, send to tested equipment according to the order of fragment message 1, fragment message 2, fragment message 3 and fragment message 4, tested equipment can be recombinated successfully usually.And when Internet Transmission factor causes fractionation to occur in sequence the out of order fragment message of change generation, the restructuring then easily failure of tested equipment.In the present embodiment, for testing the correctness of tested equipment according to out of order order reconstructed file, testing equipment can generate various sending order flexibly, send transmitting data stream according to different sending orders to tested equipment, and then the accuracy of tested equipment reconstructed file is in all cases tested.
207, test data stream is sent to tested equipment by auxiliary measurement equipment by testing equipment.
Auxiliary measurement equipment receives test data stream by interface G0, then by interface G1, this test data stream is sent to tested equipment.In the repeating process of auxiliary measurement equipment, in test data stream, the sending order of fragment message is constant.
208, tested equipment receives by auxiliary measurement equipment the test data stream that testing equipment sends, and recombinates at least two fragment messages described in test data stream.
The test data stream that tested equipment is sent by the auxiliary measurement equipment of G2 interface, then recombinates to multiple fragment message according to the order receiving fragment message, obtains test packet.If recombinate successfully, send response message to testing equipment, this response message, for notifying that testing equipment test packet is recombinated successfully, if reconstructing failure, does not send response message to testing equipment.
209, testing equipment is according to whether receiving the result that response message obtains Packet reassembling success or not.
Concrete, if testing equipment receives the response message that tested equipment sends, then determine the success of tested equipment reconstructed file, otherwise determine the failure of tested equipment reconstructed file.
The method of the fragment message restructuring test that the embodiment of the present invention provides, can send test packet by auxiliary measurement equipment to tested equipment by testing equipment, the test packet received is split as at least two fragment messages and sends to tested equipment by auxiliary measurement equipment.Simultaneously auxiliary measurement equipment is opened the interface be connected with tested equipment and is caught fractionation and obtain all fragment messages and import in testing equipment.The test data that auxiliary measurement equipment is made up of all fragment messages according to the sending order generate rule preset by testing equipment, sends to tested equipment by auxiliary measurement equipment by this test data stream.Tested equipment receives the test data stream of testing equipment transmission by auxiliary measurement equipment, and all fragment messages of the correspondence test packet in this test data stream are recombinated, obtain test packet back testing equipment and send response message, if testing equipment receives the response message that tested equipment sends, then determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure, the clooating sequence of various fragment message can be provided thus flexibly, more abundant test sample book is provided, and the mode whether receiving response message can be passed through, obtain the test result of restructuring correctness.
Embodiment two
As to the detailed description of method described in embodiment one and further expand, the present embodiment additionally provides the method for a kind of fragment message restructuring test, in the method, with net Internet Control Message Protocol (InternetControlMessageProtocol, being called for short ICMP) message is that example is described as test packet, usual icmp packet, has answering, and the ICMP response message that testing equipment can send according to tested equipment judges whether tested equipment recombinates successfully.Concrete, as shown in Figure 3, described method comprises:
301, testing equipment is the icmp packet of tested equipment to auxiliary measurement equipment sending destination location.
First the field of IP(Internet Protocol) (InternetProtocol the is called for short IP) head of icmp packet is set to the IP address of tested equipment, then send this icmp packet to auxiliary measurement equipment by testing equipment.
302, auxiliary measurement equipment receives the icmp packet that testing equipment sends.
The implementation of this step is identical with the implementation of step 202 in Fig. 2, repeats no more herein.
303, icmp packet is split as at least two ICMP fragment messages according to the MTU value of setting and sends to tested equipment by auxiliary measurement equipment.
Concrete:
303a, the MTU value arranging auxiliary measurement equipment are less than the size of icmp packet.
Before splitting icmp packet, first need to arrange the MTU value of interface G1 on auxiliary measurement equipment, arranging of this MTU value can be arranged according to test needs by tester, and the present embodiment does not do too much restriction to this.
Usually, the MTU value of setting is less than the size of icmp packet.Such as, when icmp packet size is 1500 byte, MTU value can be arranged to 500 bytes.The present embodiment follow-up for icmp packet size be 1500 bytes, MTU value is that 500 bytes are described.
303b, auxiliary measurement equipment calculate the quantity of ICMP fragment message according to the size of icmp packet and MTU value, and according to the ICMP fragment message quantity calculated, icmp packet are split as at least two ICMP fragment messages, and send to tested equipment.
As shown in Figure 4, icmp packet comprises ether header fields, the IP header fields of 20 bytes and the data field (wherein the byte number of ether header fields does not count in 1500 bytes) of 1480 bytes.The IP header fields comprising 20 bytes is needed in each ICMP fragment message that auxiliary measurement equipment splits, therefore the ICMP fragment message quantity that splits out of auxiliary measurement equipment and content are as shown in Figure 5, namely auxiliary measurement equipment splits out 4 ICMP fragment messages, data field wherein in ICMP fragment message 1 to ICMP fragment message 3 is 480 bytes (IP header fields 20 bytes+data field 480 byte=500 bytes), and the data field in ICMP fragment message 4 is 60 bytes.
4 the ICMP fragment messages split are sent to tested equipment by 303c, auxiliary measurement equipment.
Auxiliary measurement equipment sends 4 ICMP fragment messages successively according to the order splitting ICMP fragment message to tested equipment, and namely auxiliary measurement equipment sends 4 ICMP fragment messages according to the sending order of ICMP fragment message 1, ICMP fragment message 2, ICMP fragment message 3 and ICMP fragment message 4 to tested equipment.
304, auxiliary measurement equipment catches 4 the ICMP fragment messages sending to tested equipment on transmission interface.
The implementation of this step is identical with the implementation in step 204, repeats no more herein.
305,4 ICMP fragment messages that transmission interface is caught by auxiliary measurement equipment import in testing equipment.
The object of the present embodiment is to analyze the recombinate correctness of out of order fragment message of tested equipment, therefore, auxiliary measurement equipment needs 4 the ICMP fragment messages split to import in testing equipment, is generated the out of order sending order of 4 ICMP fragment messages by testing equipment.When the present embodiment imports ICMP fragment message to auxiliary measurement equipment to testing equipment, the sequencing of each ICMP fragment message does not limit.
306, testing equipment is according to the test data stream that is made up of 4 ICMP fragment messages of sending order generate rule preset.
Concrete, testing equipment determines the sending order of 4 ICMP fragment messages at random according to random algorithm, and generates test data stream according to the sending order determined.
Or testing equipment can also determine the sending order of 4 ICMP fragment messages in out of order mode, and generate test data stream according to the sending order determined.Such as testing equipment provides human-computer interaction interface to tester, receives the sending order of tester's input, or selects a kind of sending order in the permutation and combination of the various sending orders prestored in a test device by tester.
Such as, testing equipment is ICMP fragment message 3, ICMP fragment message 4, ICMP fragment message 1 and ICMP fragment message 2 according to the out of order sending order that the implementation that above-mentioned tester is arranged is determined.
307, test data stream is sent to tested equipment by auxiliary measurement equipment by testing equipment.
Testing equipment generates 4 test data streams according to the out of order order of ICMP fragment message 3, ICMP fragment message 4, ICMP fragment message 1 and ICMP fragment message 2,4 fragment messages by icmp packet send the interface G0 then being sent to auxiliary measurement equipment by Port interface according to out of order mode, be transmitted to tested equipment by auxiliary measurement equipment by interface G1.In the process of plan forwarding data flow, the sending order of ICMP fragment message is constant, namely keeps the out of order order of 3,4,1,2.
308, tested equipment receives by auxiliary measurement equipment the test data stream that testing equipment sends, and recombinates to test packet each in test data stream and 4 ICMP fragment messages corresponding to icmp packet.
Tested equipment carries out icmp packet restructuring according to the order receiving ICMP fragment message, and the fragment message 3,4,1,2 corresponding by each icmp packet is recombinated according to correct order 1,2,3,4.If recombinate successfully, send ICMP response message to testing equipment.Tested equipment often recombinates an icmp packet successfully, then send ICMP response message by auxiliary measurement equipment to testing equipment.
309, testing equipment is according to whether receiving the result that ICMP response message obtains Packet reassembling success or not.
Concrete, if testing equipment receives the ICMP response message that tested equipment sends, then determine the success of tested equipment restructuring icmp packet, otherwise determine the failure of tested equipment restructuring icmp packet.
Usually, tested equipment is all receive and icmp packet of recombinating according to the order (i.e. the order of ICMP fragment message 1 to ICMP fragment message 4) split, and icmp packet successful probability of recombinating is very high in this case.If but because of the impact of the factor such as Internet Transmission conditional instability, what tested equipment received ICMP fragment message occurs in sequence change (namely becoming out of order) the then easy reconstructing failure of tested equipment.For the accuracy of out of order ICMP fragment message of recombinating to tested equipment is tested, in the present embodiment, testing equipment can carry out out of order sequence flexibly by the mode arranging computer script or default random algorithm to the ICMP fragment message that auxiliary measurement equipment imports, simulate the various out of order situation that may occur, then according to out of order order, ICMP fragment message is recombinated by tested equipment.Thus under realizing out of order situation icmp packet restructuring correctness test.
With reference to the method shown in figure 2 or Fig. 3, the present embodiment additionally provides the system of a kind of fragment message restructuring test, in order to realize the method shown in Fig. 2 or Fig. 3.As shown in Figure 6, described system comprises: testing equipment 61, auxiliary measurement equipment 62 and tested equipment 63, wherein,
Described testing equipment 61, for to auxiliary measurement equipment 62 sending destination location being the test packet of tested equipment 63, receive at least two fragment messages that described auxiliary measurement equipment 62 imports, according to the test data stream that the sending order generate rule preset is made up of described at least two fragment messages, by described auxiliary measurement equipment 62, described test data stream is sent to described tested equipment 63, if receive the described response message that described tested equipment 63 sends, then determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure;
Described auxiliary measurement equipment 62, for receiving the described test packet that described testing equipment 61 sends, according to the MTU MTU value of setting described test packet be split as at least two fragment messages and send to described tested equipment 63, catch on the transmission interface of described auxiliary measurement equipment 62 simultaneously and send at least two fragment messages described in described tested equipment 63, described in being caught by described transmission interface, at least two fragment messages import in described testing equipment 61, receive described testing equipment 61 send described test data stream and by described test data flow forwarding to described tested equipment 63,
Described tested equipment 63, for receiving the described test data stream that described testing equipment 61 is sent by described auxiliary measurement equipment 62, and at least two fragment messages in described test data stream are recombinated, send response message to described testing equipment 61 after obtaining described test packet.
Further, as shown in Figure 7, described testing equipment 61 comprises:
Transmitting element 71, for described auxiliary measurement equipment 62 sending destination location being the test packet of tested equipment;
Receiving element 72, for receiving at least two fragment messages that described auxiliary measurement equipment 62 imports;
Generation unit 73, the test data stream that at least two fragment messages for being received by described receiving element 72 according to the sending order generate rule preset form;
Described transmitting element 71 also for, by described auxiliary measurement equipment 62, the test data stream that described generation unit 73 generates is sent to described tested equipment 63;
Described receiving element is also for receiving the response message that described tested equipment 63 sends;
Judging unit 74, for receive when described receiving element 72 described tested equipment 63 send described response message time, determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure.
Further, as shown in Figure 8, described testing equipment 61 also comprises:
Determining unit 81, for determining the sending order of at least two fragment messages that described receiving element 72 receives at random;
Described determining unit 81 is also for determining the sending order of at least two fragment messages that described receiving element 72 receives in out of order mode;
The sending order of described generation unit 73 also for determining according to described determining unit 81 generates described test data stream.
Further, as shown in Figure 9, described auxiliary measurement equipment 62 comprises:
Receiving element 91, for receiving the described test packet that described testing equipment 61 sends;
Split cells 92, for being split as at least two fragment messages according to the MTU value of setting by the described test packet that described receiving element 91 receives;
Transmitting element 93, sends to described tested equipment 63 at least two fragment messages described in being split by described split cells 92;
Capturing unit 94, catches described transmitting element 93 and sends at least two fragment messages described in described tested equipment 63 on the transmission interface at described auxiliary measurement equipment 62;
Import unit 95, import in described testing equipment 61 at least two fragment messages described in described capturing unit 94 is captured;
Described receiving element 91 is also for receiving the described test data stream that described testing equipment sends;
Described transmitting element 93 also gives described tested equipment 63 for the described test data flow forwarding that received by described receiving element 91.
Further, as shown in Figure 10, described split cells 92 also comprises:
Arrange subelement 101, the MTU value for arranging described auxiliary measurement equipment 62 is less than the size of described test packet;
Computation subunit 102, for according to the size of described test packet and describedly arrange the quantity that described MTU value that subelement 101 arranges calculates fragment message;
Split subelement 103, for the fragment message quantity calculated according to described computation subunit 102, described test packet is split as at least two fragment messages.
Further, as shown in figure 11, it is characterized in that, described tested equipment 63 comprises:
Receiving element 111, for receiving the described test data stream that described testing equipment 61 is sent by described auxiliary measurement equipment 62;
Recomposition unit 112, recombinates at least two fragment messages in the described test data stream to described receiving element 111 reception, obtains described test packet;
Transmitting element 113, for sending response message to described testing equipment 61 after described recomposition unit 112 restructuring obtains described test packet.
The system of the fragment message restructuring test that the embodiment of the present invention provides, can send test packet by auxiliary measurement equipment to tested equipment by testing equipment, the test packet received is split as at least two fragment messages and sends to tested equipment by auxiliary measurement equipment.Simultaneously auxiliary measurement equipment is opened the interface be connected with tested equipment and is caught and split at least two fragment messages obtained and import in testing equipment.The test data that auxiliary measurement equipment is made up of at least two fragment messages according to the sending order generate rule preset by testing equipment, sends to tested equipment by auxiliary measurement equipment by this test data stream.Tested equipment receives the test data stream of testing equipment transmission by auxiliary measurement equipment, and at least two fragment messages in this test data stream are recombinated, obtain test packet back testing equipment and send response message, if testing equipment receives the response message that tested equipment sends, then determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure, the clooating sequence of various fragment message can be provided thus flexibly, more abundant test sample book is provided, and the mode whether receiving response message can be passed through, obtain the test result of restructuring correctness.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computer, hard disk or CD etc., comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (10)

1. a method for fragment message restructuring test, is characterized in that, comprising:
Testing equipment is the test packet of tested equipment to auxiliary measurement equipment sending destination location;
Described auxiliary measurement equipment receives the described test packet that described testing equipment sends, according to the MTU MTU value of setting described test packet be split as at least two fragment messages and send to described tested equipment, catching on the transmission interface of described auxiliary measurement equipment simultaneously and send at least two fragment messages described in described tested equipment;
Described auxiliary measurement equipment described transmission interface is caught described at least two fragment messages import in described testing equipment;
The test data stream that described testing equipment is made up of described at least two fragment messages according to the sending order generate rule preset, sends to described tested equipment by auxiliary measurement equipment by described test data stream;
Described tested equipment receives the described test data stream of described testing equipment transmission by auxiliary measurement equipment, and recombinates at least two fragment messages in described test data stream, sends response message after obtaining described test packet to described testing equipment;
If described testing equipment receives the described response message that described tested equipment sends, then determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure.
2. the method for fragment message restructuring test according to claim 1, is characterized in that the test data stream that described testing equipment is made up of described at least two fragment messages according to the sending order generate rule preset comprises:
Described testing equipment determine at random described in the sending order of at least two fragment messages, and generate described test data stream according to the sending order determined; Or,
Described testing equipment determine in out of order mode described in the sending order of at least two fragment messages, and generate described test data stream according to the sending order determined.
3. the method for fragment message restructuring test according to claim 1 and 2, it is characterized in that, described test packet is split as at least two fragment messages by the described MTU value according to setting, comprising:
The MTU value arranging auxiliary measurement equipment is less than the size of described test packet;
Described auxiliary measurement equipment calculates the quantity of fragment message according to the size of described test packet and described MTU value, and according to the fragment message quantity calculated, described test packet is split as at least two fragment messages.
4., according to the method for the fragment message restructuring test described in claim 3, it is characterized in that, described test packet is ICMP icmp packet, and described response message is ICMP response message.
5. a system for fragment message restructuring test, is characterized in that, comprise testing equipment, auxiliary measurement equipment and tested equipment, wherein,
Described testing equipment, for to auxiliary measurement equipment sending destination location being the test packet of tested equipment, receive at least two fragment messages that described auxiliary measurement equipment imports, according to the test data stream that the sending order generate rule preset is made up of described at least two fragment messages, by described auxiliary measurement equipment, described test data stream is sent to described tested equipment, if receive the response message that described tested equipment sends, then determine that fragment message is recombinated successfully, otherwise determine fragment message reconstructing failure;
Described auxiliary measurement equipment, for receiving the described test packet that described testing equipment sends, according to the MTU MTU value of setting described test packet be split as at least two fragment messages and send to described tested equipment, catch on the transmission interface of described auxiliary measurement equipment simultaneously and send at least two fragment messages described in described tested equipment, described in being caught by described transmission interface, at least two fragment messages import in described testing equipment, receive described testing equipment send described test data stream and by described test data flow forwarding to described tested equipment,
Described tested equipment, for receiving the described test data stream that described testing equipment is sent by described auxiliary measurement equipment, and at least two fragment messages in described test data stream are recombinated, send response message to described testing equipment after obtaining described test packet.
6. the system of fragment message restructuring test according to claim 5, it is characterized in that, described testing equipment comprises:
Transmitting element, for described auxiliary measurement equipment sending destination location being the test packet of tested equipment;
Receiving element, for receiving at least two fragment messages that described auxiliary measurement equipment imports;
Generation unit, the test data stream that at least two fragment messages for being received by described receiving element according to the sending order generate rule preset form;
Described transmitting element also for, the test data stream generated by described generation unit by described auxiliary measurement equipment sends to described tested equipment;
Described receiving element is also for receiving the response message that described tested equipment sends;
Judging unit, during for receiving described response message that described tested equipment sends when described receiving element, determines that fragment message is recombinated successfully, otherwise determines fragment message reconstructing failure.
7. the system of fragment message restructuring test according to claim 6, it is characterized in that, described testing equipment also comprises: determining unit;
Described determining unit, for determining the sending order of at least two fragment messages that described receiving element receives at random;
Described determining unit is also for determining the sending order of at least two fragment messages that described receiving element receives in out of order mode;
The sending order of described generation unit also for determining according to described determining unit generates described test data stream.
8. the system of fragment message restructuring test according to claim 6, it is characterized in that, described auxiliary measurement equipment comprises:
Receiving element, for receiving the described test packet that described testing equipment sends;
Split cells, is split as at least two fragment messages for the described test packet received by described receiving element according to the MTU value of setting;
Transmitting element, sends to described tested equipment at least two fragment messages described in being split by described split cells;
Capturing unit, catches described transmitting element and sends at least two fragment messages described in described tested equipment on the transmission interface at described auxiliary measurement equipment;
Import unit, import in described testing equipment at least two fragment messages described in described capturing unit is captured;
Described receiving element is also for receiving the described test data stream that described testing equipment sends;
Described transmitting element also gives described tested equipment for the described test data flow forwarding that received by described receiving element.
9. the system of fragment message restructuring test according to claim 8, it is characterized in that, described split cells also comprises:
Arrange subelement, the MTU value for arranging described auxiliary measurement equipment is less than the size of described test packet;
Computation subunit, for according to the size of described test packet and describedly arrange the quantity that described MTU value that subelement arranges calculates fragment message;
Split subelement, for the fragment message quantity calculated according to described computation subunit, described test packet is split as at least two fragment messages.
10. the system of the fragment message restructuring test according to any one of claim 6 to 8, it is characterized in that, described tested equipment comprises:
Receiving element, for receiving the described test data stream that described testing equipment is sent by described auxiliary measurement equipment;
Recomposition unit, recombinates at least two fragment messages in the described test data stream that receives described receiving element, obtains described test packet;
Transmitting element, for sending response message to described testing equipment after described recomposition unit restructuring obtains described test packet.
CN201310319838.2A 2013-07-26 2013-07-26 Method, the equipment and system of fragment message restructuring test Active CN103346935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310319838.2A CN103346935B (en) 2013-07-26 2013-07-26 Method, the equipment and system of fragment message restructuring test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310319838.2A CN103346935B (en) 2013-07-26 2013-07-26 Method, the equipment and system of fragment message restructuring test

Publications (2)

Publication Number Publication Date
CN103346935A CN103346935A (en) 2013-10-09
CN103346935B true CN103346935B (en) 2016-03-16

Family

ID=49281711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310319838.2A Active CN103346935B (en) 2013-07-26 2013-07-26 Method, the equipment and system of fragment message restructuring test

Country Status (1)

Country Link
CN (1) CN103346935B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847139A (en) * 2016-03-25 2016-08-10 乐视控股(北京)有限公司 Data transmission method, apparatus and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286945A (en) * 2008-05-22 2008-10-15 北京星网锐捷网络技术有限公司 Method and apparatus for processing of data fragmentation
CN101795236A (en) * 2010-03-31 2010-08-04 成都市华为赛门铁克科技有限公司 Report sequence preservation method and device
CN102088410A (en) * 2011-01-25 2011-06-08 中国人民解放军国防科学技术大学 Method and system for message fragmentation
CN102510385A (en) * 2011-12-12 2012-06-20 汉柏科技有限公司 Method for preventing fragment attack of IP (Internet Protocol) datagram

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8320372B2 (en) * 2008-06-23 2012-11-27 Alcatel Lucent Processing of packet fragments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286945A (en) * 2008-05-22 2008-10-15 北京星网锐捷网络技术有限公司 Method and apparatus for processing of data fragmentation
CN101795236A (en) * 2010-03-31 2010-08-04 成都市华为赛门铁克科技有限公司 Report sequence preservation method and device
CN102088410A (en) * 2011-01-25 2011-06-08 中国人民解放军国防科学技术大学 Method and system for message fragmentation
CN102510385A (en) * 2011-12-12 2012-06-20 汉柏科技有限公司 Method for preventing fragment attack of IP (Internet Protocol) datagram

Also Published As

Publication number Publication date
CN103346935A (en) 2013-10-09

Similar Documents

Publication Publication Date Title
US10621075B2 (en) Performance testing of a network segment between test appliances
US9306816B2 (en) System and method for replaying network captures
US8614955B2 (en) Misdirected packet detection apparatus and method
US9001688B2 (en) Dynamic balancing of a traffic mix for data center device testing
US20130305091A1 (en) Drag and drop network topology editor for generating network test configurations
CN106375139B (en) Method, device and system for copying request
EP2456128B1 (en) Testing packet fragmentation
US11425006B2 (en) Systems, methods and computer program products for scalable, low-latency processing of streaming data
CN107819649B (en) Private protocol testing method of satellite communication network based on mass terminals
CN104503801B (en) Software upgrade instruction distribution method, the communication server and terminal device
CN103078791B (en) OAM message processing method, equipment and system
CN102510346A (en) Method, system and device for testing network equipment
CN114553752B (en) Network performance test method and device based on simulation software and computer equipment
US8654654B2 (en) Traffic distribution control
US20100142377A1 (en) SIP Information Extraction
Cardaci et al. Performance evaluation of SPDY over high latency satellite channels
CN105743687B (en) Method and device for judging node fault
US8730826B2 (en) Testing fragment reassembly
CN114679407A (en) Link aggregation method, device, equipment and storage medium
CN103346935B (en) Method, the equipment and system of fragment message restructuring test
KR102423039B1 (en) Real-time packet data storing method and apparatus for mass network monitoring
US8966321B2 (en) Logical port and layer protocol test configuration resource manager
CN110445658B (en) Message processing method and system
CN111130917B (en) Line testing method, device and system
CN115277649A (en) Method and device for collaboratively editing document in multimedia conference scene

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