Protocol test system and test method based on time delay
By designing a protocol test system based on delay and using delay mutation test cases to test the delay-sensitive server, the problem that the existing technology cannot effectively test the delay-sensitive server, and improve the test effect and comprehensiveness.
Patent Information
- Application Number
- CN202411659921.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-07
AI Technical Summary
Existing protocol testing tools cannot effectively test the delay-sensitive server, resulting in poor test results or inability to conduct testing.
A delay-based protocol testing system is designed to record and edit the delay information in the package sequence through components such as client, proxy server, package sequence recorder, proxy client, server and mutator, and generate delay mutation test cases for testing the delay-sensitive server.
It improves the testing capabilities of servers with strong latency sensitivity and expands the protocol testing boundaries, so that even servers with insensitive latency can induce into an uncertain state through delay mutations, enhancing the comprehensiveness and accuracy of the test.
Smart Images

Figure CN119583410A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of protocol testing, and in particular to a protocol testing system and a testing method based on time delay. Background Art
[0002] Fuzz testing technology, also known as Fuzz technology, is an effective method for security testing of binary software. It is widely used in security testing of various application software such as document processing software, browsers, and network services.
[0003] Existing protocol testing tools mainly focus on checking the support level of protocol scenarios and the consistency of protocol packet fields. As a result, the focus and limitations of current testing tools often make the testing tools interact with the test target in a fixed periodic or immediate response mode during the test process. This periodic or immediate response mode will lead to two problems. First, this test mode ignores the defects that the test target may have in real scenarios due to objective factors such as network status and latency. Second, some servers are sensitive to latency and usually have special latency requirements. The existing solutions cannot establish the expected test process for protocol targets with special latency requirements, resulting in poor test results or even the inability to perform tests. Summary of the invention
[0004] In view of this, in order to address the above shortcomings, it is necessary to propose a delay-based protocol testing system and testing method to realize the testing of delay-sensitive servers and improve the testing effect.
[0005] In a first aspect, the present invention provides a delay-based protocol testing system, comprising: a client, a proxy server, a packet sequence recorder, a proxy client, a server, and a mutator; The client is used to initiate a session to connect to the proxy server; and generate an access packet sequence for the session process and send the access packet sequence to the proxy server; The proxy server is used to respond to the session initiated by the client, receive the access packet sequence, and forward the access packet sequence to the packet sequence recorder; The packet sequence recorder is used to record the access packet sequence and forward the access packet sequence to the proxy client; The proxy client is used to receive the access packet sequence and forward the access packet sequence to the server; The server is used to receive the access packet sequence and send a response packet sequence to the proxy client; The proxy client is further used to receive the response packet sequence and forward the response packet sequence to the packet sequence recorder; The packet sequence recorder is further used to record the response packet sequence and the delay information between the access packet sequence and the response packet sequence to obtain a delay packet sequence carrying the delay information; and forward the delay packet sequence to the mutator; The mutator is used to receive the delay packet sequence, perform delay information mutation processing on the delay packet sequence, and obtain a delay mutation test case; and send a test packet sequence to the target to be tested according to the delay information in the delay mutation test case to test the target to be tested.
[0006] Preferably, the packet sequence recorder is further used to send the response packet sequence to the proxy server; the proxy server is further used to receive the response packet sequence and forward the response packet sequence to the client; the client is further used to receive the response packet sequence.
[0007] Preferably, the target to be tested is the server.
[0008] Preferably, the test system further comprises: a time delay editor; The delay editor is used for the user to edit the delay information in the delay packet sequence to obtain the delay packet sequence after the delay information is edited.
[0009] Preferably, the mutator includes: a delay mutator and a delay packetizer; The delay mutator is used to mutate the delay information in the delay packet sequence after the delay information is edited, so as to obtain a plurality of delay mutation test cases; The delay packet sender is used to send a test packet sequence of the delay mutation test case structure to the server according to the delay information in the delay mutation test case, so as to implement the test on the server.
[0010] Preferably, the mutator further comprises: a packet field mutator; the packet field mutator is used to mutate the message fields and structures in the delay packet sequence after the delay information is edited before the delay information is mutated.
[0011] Preferably, the mutator further comprises: a packet sequence mutator; the packet sequence mutator is used to mutate the entire message sequence in the delay packet sequence after the delay information is edited before the delay information is mutated.
[0012] Preferably, the client satisfies: the protocol supported by the client can also be supported by the target to be tested; and when the target to be tested supports multiple protocols at the same time, the client includes multiple clients supporting different protocols, so that the mutator can generate delay mutation test cases for each protocol supported by the target to be tested, and use the delay mutation test cases corresponding to each protocol to test the target to be tested in turn.
[0013] In a second aspect, the present invention provides a delay-based protocol testing method, the implementation subject of the method is the delay-based protocol testing system as described in the first aspect, and the method includes: Use the client to initiate a session with the proxy server to connect to the proxy server; Using the client to generate an access packet sequence of the session process, and sending the access packet sequence to the proxy server; Responding to the session initiated by the client using the proxy server, receiving the access packet sequence, and forwarding the access packet sequence to the packet sequence recorder; Recording the access packet sequence using a packet sequence recorder, and forwarding the access packet sequence to a proxy client; Utilize a proxy client to receive the access packet sequence, and forward the access packet sequence to a server; Utilizing a server to receive the access packet sequence and send a response packet sequence to the proxy client; receiving the response packet sequence using the proxy client, and forwarding the response packet sequence to the packet sequence recorder; Using the packet sequence recorder to record the response packet sequence and the delay information between the access packet sequence and the response packet sequence, obtaining a delay packet sequence carrying the delay information, and forwarding the delay packet sequence to the delay editor; Using the delay editor to edit the delay information in the delay packet sequence, obtaining a delay packet sequence after the delay information is edited, and forwarding the obtained delay packet sequence to the delay mutator; The delay information in the delay packet sequence after the delay information is edited is mutated by using the delay mutator to obtain several delay mutation test cases; The delay packet sender is used to send a test access packet sequence of the delay mutation test case structure to the server according to the delay information in the delay mutation test case, so as to implement the test on the server.
[0014] Preferably, before using a delay mutator to mutate the delay information in the delay packet sequence after the delay information is edited, it further includes: using a packet field mutator to mutate the message field and structure in the delay packet sequence after the delay information is edited; and / or, using a packet sequence mutator to mutate the entire message sequence in the delay packet sequence after the delay information is edited.
[0015] It can be seen from the above technical scheme that in the delay-based protocol testing system and method provided by the embodiment of the present invention, the client can initiate a session to connect to the proxy server, and generate an access packet sequence of the session process and send it to the proxy server; the proxy server can receive the access packet sequence and forward it to the packet sequence recorder; the packet sequence recorder can record the access packet sequence and forward the access packet sequence to the proxy client, so that the proxy client further forwards it to the server; after receiving the access packet sequence, the server sends a response packet sequence to the proxy client, which is forwarded to the packet sequence recorder by the proxy client; the packet sequence recorder further records the response packet sequence, and records the delay information between the access packet sequence and the response packet sequence, thereby obtaining a delay packet sequence carrying delay information and forwarding it to the mutator; the mutator can perform mutation processing on the delay information in the received delay packet sequence to obtain a delay mutation test case, and further send a test packet sequence to the target to be tested according to the delay information in the delay mutation test case, so as to test the target to be tested. It can be seen that this solution solves the problem that current protocol testing tools cannot initiate complete tests on delay-sensitive servers through delay variation, thereby improving the testing capabilities for servers with strong delay sensitivity. At the same time, it expands the boundaries of protocol testing, and even for servers that are not sensitive to delay, delay mutations can be used to induce the test target to enter an uncertain state, making the test more accurate and comprehensive. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a delay-based protocol testing system provided by an embodiment of the present invention.
[0017] Figure 2 A schematic diagram of a mutator provided in an embodiment of the present invention.
[0018] In the figure: client 10, proxy server 20, packet sequence recorder 30, proxy client 40, server 50, mutator 60, delay mutator 61, delay packetizer 62, packet field mutator 63, packet sequence mutator 64, delay editor 70. DETAILED DESCRIPTION
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] like Figure 1-2 As shown, the present invention provides a delay-based protocol testing system, comprising: a client 10, a proxy server 20, a packet sequence recorder 30, a proxy client 40, a server 50 and a mutator 60; The client 10 is used to initiate a session to connect to the proxy server 20; and to generate an access packet sequence for the session process and send the access packet sequence to the proxy server 20; The proxy server 20 is used to respond to the session initiated by the client 10, receive the access packet sequence, and forward the access packet sequence to the packet sequence recorder 30; A packet sequence recorder 30, for recording access packet sequences and forwarding the access packet sequences to a proxy client 40; The proxy client 40 is used to receive the access packet sequence and forward the access packet sequence to the server 50; The server 50 is used to receive the access packet sequence and send the response packet sequence to the proxy client 40; The proxy client 40 is further used to receive the response packet sequence and forward the response packet sequence to the packet sequence recorder 30; The packet sequence recorder 30 is further used to record the response packet sequence and the delay information between the access packet sequence and the response packet sequence, to obtain a delay packet sequence carrying the delay information; and to forward the delay packet sequence to the mutator 60; The mutator 60 is used to receive a delay packet sequence, perform delay information mutation processing on the delay packet sequence, and obtain a delay mutation test case; and send a test packet sequence to a target to be tested according to the delay information in the delay mutation test case to test the target to be tested.
[0021] In this embodiment, delay variation is used to solve the problem that the current protocol testing tool cannot initiate a complete test on the delay-sensitive server 50, thereby improving the testing capability of the server 50 with strong delay sensitivity; at the same time, the protocol testing boundary is expanded, and even for the delay-insensitive server 50, the delay mutation can be used to induce the test target to enter an uncertain state, making the test more accurate and comprehensive.
[0022] For the client 10, it should be able to satisfy that the protocol supported by the client 10 can also be supported by the target to be tested, that is, it can be supported by the server 50. In this way, the client 10 can generate an access packet sequence under the corresponding protocol, and then test the device to be tested under the protocol. The client 10, as the initiator of this solution, can choose an existing client 10 or customize it. The development process is simple and the integration method is flexible.
[0023] In addition, when the target to be tested supports multiple protocols at the same time, the client 10 may include multiple clients 10 supporting different protocols, so that the mutator 60 generates a delay mutation test case for each protocol supported by the target to be tested, and uses the delay mutation test case corresponding to each protocol to test the target to be tested in turn, that is, to test the target to be tested under various protocols to ensure the comprehensiveness and accuracy of the test.
[0024] For example, if the device to be tested supports protocol A, protocol B, and protocol C at the same time, then client a supporting protocol A, client b supporting protocol B, and client c supporting protocol C can be selected at the same time, and client a, client b, and client c can be used to execute the process of generating test cases respectively. For example, taking client a as an example, client a initiates a session connection to the proxy server 20, and generates an access packet sequence and then sends it to the server 50 via the proxy client 40; the server 50 returns a response to the packet sequence recorder 30, the packet sequence recorder 30 records the delay information and generates a delay packet sequence, and the mutator 60 performs a delay information mutation process on the delay packet sequence to obtain a delay mutation test case, and then tests the test target. The same is true for client b and client c. In this way, delay mutation test cases corresponding to different protocols can be obtained respectively, and then the delay mutation test cases corresponding to different protocols can be used to test different protocols of the target to be tested.
[0025] Of course, in practice, although the target to be tested may support multiple protocols at the same time, it is not necessary to test all the supported protocols. Therefore, the corresponding client 10 can be selected for testing according to the protocol to be tested.
[0026] The proxy server 20 is mainly used to respond to the session of the client 10 and to forward access packet sequences and response packet sequences.
[0027] The packet sequence recorder 30 is mainly used to record the access packet sequence and the response packet sequence, and record the delay information of the access packet sequence and the response packet sequence, and then generate a delay packet sequence carrying the delay information. In addition, when the packet sequence recorder 30 receives the response packet sequence sent by the server 50, the packet sequence recorder 30 is also used to send the response packet sequence to the proxy server 20. After receiving the response packet sequence, the proxy server 20 forwards it to the client 10, so that the client 10 can know the current status in time.
[0028] In one embodiment, the test system may further include a delay editor 70, which is used for the user to edit the delay information in the delay packet sequence to obtain the delay packet sequence after the delay information is edited. In this way, the user can flexibly adjust the delay information between packet sequences.
[0029] As for the mutator 60, it may include a delay mutator 61 and a delay packetizer 62; The delay mutator 61 is used to mutate the delay information in the delay packet sequence after the delay information is edited, so as to obtain a plurality of delay mutation test cases; The delay packet sender 62 is used to send a test packet sequence of the delay mutation test case structure to the server 50 according to the delay information in the delay mutation test case, so as to implement the test on the server 50.
[0030] In this embodiment, the main function of the delay mutator 61 is to generate a large number of test cases with variant delay information based on a complete packet sequence with delay information, such as doubling, decrementing, clearing, and other mutation processing of the packet sequence interval, period, etc. in the delay information. In this way, the delay packet sender 62 can accurately send or respond to the packet sequence on time according to the delay information in the packet sequence, thereby realizing the test of the server 50.
[0031] For example, the traditional periodic protocol test is: Test Tool Test Target | —— Connect ——》 | |——Datagram 1——》 | | ...fixed period.... | |——Datagram 2——》 | | ...fixed period.... | | ——Data report 3——》 | | ...fixed period.... | | ——Data Report 4——》 | | ...fixed period.... | | ——Data Report 5——》 | | ——Disconnect——》 | Traditional immediate response protocol testing is: Test Tool Test Target | —— Connect ——》 | |——Datagram 1——》 | |《——Response Packet 1——| |——Datagram 2——》 | | 《——Response Packet 2—— | | ——Disconnect——》 | The delay-based periodic protocol test of this solution is: Test Tool Test Target | —— Connect ——》 | |——Datagram 1——》 | | ...Mutation Cycle 1..... | |——Datagram 2——》 | | ...Mutation Cycle 2..... | | ——Data report 3——》 | | ...Mutation Cycle 3..... | | ——Data Report 4——》 | | ...Mutation Cycle 4..... | | ——Data Report 5——》 | | ——Disconnect——》 | The delay-based instant response protocol test of this solution is: Test Tool Test Target | —— Connect ——》 | | ...mutation delay 1..... | |——Datagram 1——》 | |《——Response Packet 1——| | ...mutation delay 2..... | |——Datagram 2——》 | | 《——Response Packet 2—— | | ...mutation delay 3..... | | ——Disconnect——》 | In addition, the mutator 60 may further include a packet field mutator 63, which is used to mutate the message fields and structures in the delay packet sequence after the delay information is edited before the delay information is mutated.
[0032] The packet mutator 60 is mainly used to mutate the message field or structure in the protocol packet sequence. For example, when mutating the version field of the IP message, the following process can be performed: The original hexadecimal message is: 0000 45 00 00 28 99 95 40 00 80 06 e7 f3 c0 a8 04 7e 0010 72 fa 41 26 The original message structure is: Internet Protocol Version 4, Src: 192.168.4.126, Dst: 114.250.65.38 0100 .... = Version: 4 .... 0101 = Header Length: 20 bytes (5) Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT) Total Length: 40 Identification: 0x9995 (39317) 010. .... = Flags: 0x2, Don't fragment ...0 0000 0000 0000 = Fragment Offset: 0 Time to Live: 128 Protocol: TCP (6) Header Checksum: 0xe7f3 [validation disabled] [Header checksum status: Unverified] Source Address: 192.168.4.126 Destination Address: 114.250.65.38 The mutated hexadecimal message is: 0000 55 00 00 28 99 95 40 00 80 06 e7 f3 c0 a8 04 7e 0010 72 fa 41 26 The structure of the mutated message is: Internet Protocol Version 5, Src: 192.168.4.126, Dst: 114.250.65.38 0101.... = Version: 5 .... 0101 = Header Length: 20 bytes (5) Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT) Total Length: 40 Identification: 0x9995 (39317) 010. .... = Flags: 0x2, Don't fragment ...0 0000 0000 0000 = Fragment Offset: 0 Time to Live: 128 Protocol: TCP (6) Header Checksum: 0xe7f3 [validation disabled] [Header checksum status: Unverified] Source Address: 192.168.4.126 Destination Address: 114.250.65.38 Similarly, the mutator 60 may also include a packet sequence mutator 64, which is used to mutate the entire message sequence in the delay packet sequence after the delay information is edited before the delay information is mutated.
[0033] In this embodiment, the message sequence may be increased, the message sequence may be deleted, the message sequence may be disordered, etc. For example, the IP packet message sequence may be mutated as follows: The original message sequence is: Fragment 0, Fragment 1, Fragment end 1) Mutate message sequence 1 (delete message sequence) Fragment 0, Frament end 2) Mutation message sequence 2 (disordered message sequence) Fragment end, Fragment 0, Fragment 1 3) Mutation message sequence 3 (add message sequence) Fragment 0, Fragment 1, Fragment 1, Fragment end.
[0034] Of course, after the server 50 completes the test, the test result should be returned to the client 10 so that the client 10 can determine the test status of the server 50.
[0035] In addition, the present invention also provides a delay-based protocol testing method, the implementation subject of the method is a delay-based protocol testing system as described in the above embodiments, and the method includes: Using the client 10 to initiate a session to the proxy server 20 to connect to the proxy server 20; Generate an access packet sequence of a session process using the client 10, and send the access packet sequence to the proxy server 20; Using the proxy server 20 to respond to the session initiated by the client 10, receiving the access packet sequence, and forwarding the access packet sequence to the packet sequence recorder 30; Recording the access packet sequence using the packet sequence recorder 30 and forwarding the access packet sequence to the proxy client 40; Utilize the proxy client 40 to receive the access packet sequence and forward the access packet sequence to the server 50; Utilize the server 50 to receive the access packet sequence and send the response packet sequence to the proxy client 40; Utilize the proxy client 40 to receive the response packet sequence, and forward the response packet sequence to the packet sequence recorder 30; Using the packet sequence recorder 30 to record the response packet sequence and the delay information between the access packet sequence and the response packet sequence, obtaining a delay packet sequence carrying the delay information, and forwarding the delay packet sequence to the delay editor 70; Using the delay editor 70 to edit the delay information in the delay packet sequence, obtaining the delay packet sequence after the delay information is edited, and forwarding the obtained delay packet sequence to the delay mutator 61; The delay information in the delay packet sequence after the delay information is edited is mutated by the delay mutator 61 to obtain a plurality of delay mutation test cases; The delay packet sender 62 is used to send a test access packet sequence of the delay mutation test case structure to the server 50 according to the delay information in the delay mutation test case, so as to implement the test on the server 50.
[0036] Specifically, before using the delay mutator 61 to mutate the delay information in the delay packet sequence after the delay information is edited, it can further include: using the packet field mutator 63 to mutate the message field and structure in the delay packet sequence after the delay information is edited; and / or, using the packet sequence mutator 64 to mutate the entire message sequence in the delay packet sequence after the delay information is edited.
[0037] Since the method embodiment provided by the present invention is based on the same inventive concept as the system embodiment of this specification, the specific content can be found in the description of the system embodiment of this specification and will not be repeated here.
[0038] In summary, the present invention has at least the following beneficial effects: The delay-based protocol testing system and method proposed in this scheme extract the packet sequence delay information during the session. On the one hand, it solves the problem that the current protocol testing tools are unable to complete the test of delay-sensitive servers, and improves the testing capability for delay-sensitive servers. On the other hand, it expands the testing boundary and not only focuses on the consistency of protocol messages. Even for delay-insensitive servers, it can still induce the test target to enter an uncertain state through delay mutations, thereby enhancing the coverage of the protocol test on the delay variable, thereby improving the comprehensiveness and accuracy of the protocol test and improving the test effect.
[0039] The present specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute a method in any one of the embodiments in the specification.
[0040] The present specification also provides a computing device, including a memory and a processor, wherein executable codes are stored in the memory, and when the processor executes the executable codes, a method in any embodiment of the present specification is implemented.
[0041] The modules or units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. The above disclosure is only the preferred embodiment of the present invention, and of course it cannot be used to limit the scope of the rights of the present invention. Those skilled in the art can understand that all or part of the processes of the above embodiment are implemented, and the equivalent changes made according to the claims of the present invention still fall within the scope of the invention.
Claims
1. A delay-based protocol testing system, characterized in that: include: Client, Proxy Server, Packet Sequence Recorder, Proxy Client, Server, and Mutator; The client is used to initiate a session to connect to the proxy server; and, generating an access packet sequence of the session process, and sending the access packet sequence to the proxy server; The proxy server is used to respond to the session initiated by the client, receive the access packet sequence, and forward the access packet sequence to the packet sequence recorder; The packet sequence recorder is used to record the access packet sequence and forward the access packet sequence to the proxy client; The proxy client is used to receive the access packet sequence and forward the access packet sequence to the server; The server is used to receive the access packet sequence and send a response packet sequence to the proxy client; The proxy client is further used to receive the response packet sequence and forward the response packet sequence to the packet sequence recorder; The packet sequence recorder is further used to record the response packet sequence and the delay information between the access packet sequence and the response packet sequence to obtain a delay packet sequence carrying the delay information; and forward the delay packet sequence to the mutator; The mutator is used to receive the delay packet sequence, perform delay information mutation processing on the delay packet sequence, and obtain a delay mutation test case; and send a test packet sequence to the target to be tested according to the delay information in the delay mutation test case to test the target to be tested.
2. The delay-based protocol testing system according to claim 1, characterized in that: The packet sequence recorder is further used to send the response packet sequence to the proxy server; the proxy server is further used to receive the response packet sequence and forward the response packet sequence to the client; the client is further used to receive the response packet sequence.
3. The delay-based protocol testing system according to claim 1, characterized in that: The target to be tested is the server.
4. The delay-based protocol testing system according to claim 1, characterized in that: The test system also includes: a time delay editor; The delay editor is used for the user to edit the delay information in the delay packet sequence to obtain the delay packet sequence after the delay information is edited.
5. The delay-based protocol testing system according to claim 4, characterized in that: The mutator includes: a delay mutator and a delay packetizer; The delay mutator is used to mutate the delay information in the delay packet sequence after the delay information is edited, so as to obtain a plurality of delay mutation test cases; The delay packet sender is used to send a test packet sequence of the delay mutation test case structure to the server according to the delay information in the delay mutation test case, so as to implement the test on the server.
6. The delay-based protocol testing system according to claim 5, characterized in that: The mutator also includes: a packet field mutator; the packet field mutator is used to mutate the message field and structure in the delay packet sequence after the delay information is edited before the delay information is mutated.
7. The delay-based protocol testing system according to claim 5, characterized in that: The mutator also includes: a packet sequence mutator; the packet sequence mutator is used to mutate the entire message sequence in the delay packet sequence after the delay information is edited before the delay information is mutated.
8. The delay-based protocol testing system according to claim 1, characterized in that: The client satisfies: the protocol supported by the client can also be supported by the target to be tested; and when the target to be tested supports multiple protocols at the same time, the client includes multiple clients supporting different protocols, so that the mutator generates a delay mutation test case for each protocol supported by the target to be tested, and uses the delay mutation test case corresponding to each protocol to test the target to be tested in turn.
9. A delay-based protocol testing method, characterized in that: The implementation subject of the method is the delay-based protocol test system as described in claims 1-8, and the method includes: Use the client to initiate a session with the proxy server to connect to the proxy server; Using the client to generate an access packet sequence of the session process, and sending the access packet sequence to the proxy server; Responding to the session initiated by the client using the proxy server, receiving the access packet sequence, and forwarding the access packet sequence to the packet sequence recorder; Recording the access packet sequence using a packet sequence recorder, and forwarding the access packet sequence to a proxy client; Utilize a proxy client to receive the access packet sequence, and forward the access packet sequence to a server; Utilizing a server to receive the access packet sequence and send a response packet sequence to the proxy client; receiving the response packet sequence using the proxy client, and forwarding the response packet sequence to the packet sequence recorder; Using the packet sequence recorder to record the response packet sequence and the delay information between the access packet sequence and the response packet sequence, obtaining a delay packet sequence carrying the delay information, and forwarding the delay packet sequence to the delay editor; Using the delay editor to edit the delay information in the delay packet sequence, obtaining a delay packet sequence after the delay information is edited, and forwarding the obtained delay packet sequence to the delay mutator; The delay information in the delay packet sequence after the delay information is edited is mutated by using the delay mutator to obtain several delay mutation test cases; The delay packet sender is used to send a test access packet sequence of the delay mutation test case structure to the server according to the delay information in the delay mutation test case, so as to implement the test on the server.
10. The delay-based protocol testing method according to claim 9, characterized in that: Before using a delay mutator to mutate the delay information in the delay packet sequence after the delay information is edited, it further includes: using a packet field mutator to mutate the message field and structure in the delay packet sequence after the delay information is edited; and / or, using a packet sequence mutator to mutate the entire message sequence in the delay packet sequence after the delay information is edited.