A protective performance testing method and device

Through the protection performance testing methods and devices of security protection equipment, the protection status is identified by flow testing and log analysis, and the problems of low testing efficiency and poor accuracy in the existing technology are solved, and more efficient DDoS attack protection performance evaluation and Alarm mechanism.

CN114401141BActive Publication Date: 2024-11-22CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210054213.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2024-11-22
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

Existing security protection equipment is inefficient in protective performance testing and inaccurate results, making it difficult to effectively identify and protect against DDoS attacks.

Method used

Provide a protective performance testing method and device, by obtaining the IP address to be tested of the target protective equipment, determining the flow parameters, conducting flow tests, and generating test results based on the protection status and service communication status to determine the protection performance of the equipment. The method includes obtaining the protection log, analyzing the protection status, performing ping tests, generating test results, and outputting alarm information if necessary.

Benefits of technology

It improves the efficiency and accuracy of equipment protection performance testing, can quickly identify abnormal situations and output alarm information, ensuring that the system has stronger protection capabilities when facing DDoS attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114401141B_ABST
    Figure CN114401141B_ABST
Patent Text Reader

Abstract

The present invention provides a protection performance test method and device, the method comprising: in response to a test instruction, obtaining each to-be-tested IP address of a target protection device corresponding to the test instruction; the to-be-tested IP address is the IP address of the line protected by the target protection device; for each of the to-be-tested IP addresses, determining the flow parameters of the to-be-tested IP address, performing a flow test on the to-be-tested IP address based on the flow parameters, and generating a test result of the to-be-tested IP address according to the protection state generated by the target protection device during the flow test and the service connectivity state of the to-be-tested IP address; determining the protection performance test result of the target protection device according to the test results of each of the to-be-tested IP addresses. Applying the method provided by the embodiment of the present invention can improve the protection performance test efficiency and test accuracy of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a protection performance testing method and device. Background Art

[0002] With the development of network technology, more and more services are exposed on the Internet, and various attacks against network services are emerging. In order to deal with various network attacks, network firewalls, Web application firewalls dedicated to website protection and other security devices have emerged. Many attacks with obvious characteristics have been effectively protected, but DDoS attacks, which have almost no difference between attack requests and normal requests, are difficult to protect because they are difficult to identify. With the development of IPv6 and the Internet of Things, the number of devices that can be used for DDoS attacks has increased on a large scale, making the system's ability to resist DDoS attacks more difficult and important.

[0003] However, due to the lack of pertinence and performance of security protection equipment, many systems that have taken a large number of network security measures still have many security problems. Therefore, it is necessary to verify the performance of security protection equipment. The current solution is to manually test and verify the lines protected by security protection equipment one by one, which has low test efficiency and inaccurate verification results. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a protection performance testing method, which can improve the testing efficiency and accuracy of equipment safety performance.

[0005] The present invention also provides a protective performance testing device to ensure the implementation and application of the above method in practice.

[0006] A protective performance testing method, comprising:

[0007] In response to the test instruction, obtain each to-be-tested IP address of the target protection device corresponding to the test instruction; the to-be-tested IP address is the IP address of the line protected by the target protection device;

[0008] For each of the IP addresses to be tested, determine the traffic parameters of the IP address to be tested, perform a traffic test on the IP address to be tested based on the traffic parameters, and generate a test result of the IP address to be tested according to the protection state of the target protection device generated during the traffic test and the service connectivity state of the IP address to be tested;

[0009] The protection performance test result of the target protection device is determined according to the test results of each of the IP addresses to be tested.

[0010] The above method may optionally generate a test result of the IP address to be tested according to the protection state of the target protection device generated during the flow test and the service connectivity state of the IP address to be tested, including:

[0011] Obtain the protection log generated by the target protection device during the flow test;

[0012] Parsing the protection log to obtain the protection status of the target protection device; the protection status includes a flow traction status and a flow cleaning status;

[0013] After obtaining the protection status of the target protection device, a ping test is performed on the IP address to be tested to obtain the service connectivity status of the IP address to be tested;

[0014] Based on the protection status code corresponding to the protection status of the target device and the service status code corresponding to the service connectivity status, a test result of the IP address to be tested is generated.

[0015] In the above method, optionally, the step of performing a flow test on the IP address to be tested based on the flow parameter includes:

[0016] Obtain the source IP address, source port, port of the IP address to be tested, attack type, duration of the attack, and size of the attack included in the attack parameters;

[0017] A traffic breaking test is performed on the IP address to be tested based on the traffic breaking parameters.

[0018] The above method, optionally, determining the security protection performance test result of the target protection device according to the test results of each of the IP addresses to be tested includes:

[0019] If the test results of each of the IP addresses to be tested indicate that the test is normal, then it is determined that the security protection performance test result of the target protection device is normal;

[0020] If the test result of at least one of the IP addresses to be tested indicates a test abnormality, it is determined that the test result of the security protection performance of the target protection device is abnormal.

[0021] The above method may optionally further include:

[0022] When the safety protection performance test result of the target protection equipment is abnormal, an alarm message is output.

[0023] A protective performance testing device, comprising:

[0024] An acquisition unit, configured to acquire, in response to a test instruction, each to-be-tested IP address of a target protection device corresponding to the test instruction; the to-be-tested IP address is an IP address of a line protected by the target protection device;

[0025] An execution unit is used to determine, for each of the IP addresses to be tested, a flow breaking parameter of the IP address to be tested, perform a flow breaking test on the IP address to be tested based on the flow breaking parameter, and generate a test result of the IP address to be tested according to the protection state of the target protection device generated during the flow breaking test and the service connectivity state of the IP address to be tested;

[0026] A determination unit is used to determine the protection performance test result of the target protection device according to the test results of each of the IP addresses to be tested.

[0027] In the above device, optionally, the execution unit includes:

[0028] A first acquisition subunit is used to acquire the protection log generated by the target protection device during the flow test;

[0029] The parsing subunit is used to parse the protection log to obtain the protection status of the target protection device; the protection status includes the flow traction status and the flow cleaning status;

[0030] A first test subunit is used to perform a ping test on the IP address to be tested after obtaining the protection status of the target protection device, so as to obtain the service connectivity status of the IP address to be tested;

[0031] A generating subunit is used to generate a test result of the IP address to be tested based on a protection status code corresponding to the protection status of the target device and a service status code corresponding to the service connectivity status.

[0032] In the above device, optionally, the execution unit includes:

[0033] Second, obtaining the source IP address, source port, port of the IP address to be tested, attack type, flow duration and flow size contained in the flow parameters;

[0034] The second testing subunit is used to perform a traffic breaking test on the IP address to be tested based on the traffic breaking parameters.

[0035] In the above device, optionally, the determining unit includes:

[0036] A first determining subunit is used to determine that the security protection performance test result of the target protection device is normal if the test results of each of the IP addresses to be tested indicate that the test is normal;

[0037] The second determining subunit is used to determine that the security protection performance test result of the target protection device is abnormal if the test result of at least one of the IP addresses to be tested indicates a test abnormality.

[0038] The above device may optionally further include:

[0039] The alarm unit is used to output an alarm message when the safety protection performance test result of the target protection equipment is abnormal.

[0040] Based on the above-mentioned implementation of the present invention, a protection performance testing method and device are provided, the method comprising: in response to a test instruction, obtaining each IP address to be tested of the target protection device corresponding to the test instruction; the IP address to be tested is the IP address of the line protected by the target protection device; for each IP address to be tested, determining the flow parameters of the IP address to be tested, performing a flow test on the IP address to be tested based on the flow parameters, and generating a test result of the IP address to be tested according to the protection state generated by the target protection device during the flow test and the service connectivity state of the IP address to be tested; determining the protection performance test result of the target protection device according to the test results of each IP address to be tested. Applying the method provided by the embodiment of the present invention can improve the efficiency of the protection performance test of the equipment and improve the accuracy of the test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0042] Figure 1 A method flow chart of a protective performance testing method provided by the present invention;

[0043] Figure 2 A flowchart of a process for generating a test result of an IP address to be tested provided by the present invention;

[0044] Figure 3 A method flow chart of another protective performance testing method provided by the present invention;

[0045] Figure 4 A schematic diagram of the structure of a protective performance testing device provided by the present invention;

[0046] Figure 5The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0049] The embodiment of the present invention provides a protection performance testing method, which can be applied to electronic equipment. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:

[0050] S101: In response to a test instruction, obtain each to-be-tested IP address of a target protection device corresponding to the test instruction; the to-be-tested IP address is the IP address of the line protected by the target protection device.

[0051] In this embodiment, the target protection device corresponding to the test instruction can be determined from among the candidate protection devices, and the IP address of the line connected to the target protection device is determined as the IP address to be tested, that is, the IP address of the line protected by the target protection device.

[0052] Optionally, the test instruction may include a protection device identifier, and a target protection device is determined according to the protection device identifier. The target protection device may be an anti-DDos attack device.

[0053] In some embodiments, the target protection device may be pre-set with a check packet rate threshold and a check flow rate threshold. The check packet rate threshold may be set to 300 pps, and the check flow rate threshold may be set to 10 Mbps.

[0054] S102: For each IP address to be tested, determine the flow parameters of the IP address to be tested, perform a flow test on the IP address to be tested based on the flow parameters, and generate a test result of the IP address to be tested according to the protection status of the target protection device during the flow test and the service connectivity status of the IP address to be tested.

[0055] In this embodiment, the traffic attack parameters may include a source IP address, a source port, a port of the IP address to be tested, an attack type, a traffic attack duration, and a traffic attack size.

[0056] The flow parameters can be input into a preset flow testing tool to perform a flow test on the IP address to be tested through the flow testing tool; when the flow test is performed on the IP address to be tested, the target protection device protects the traffic packets transmitted to the line corresponding to the source IP address during the flow test, and records the protection status; the protection status of the target protection device can be obtained, and the protection status of the target protection device can include a traffic traction status and a traffic cleaning status.

[0057] S103: Determine the protection performance test result of the target protection device according to the test results of each of the IP addresses to be tested.

[0058] In this embodiment, the protection performance test result of the target protection device can be determined according to the test results of each IP address to be tested, and the protection performance test result of the target protection device can be normal or abnormal.

[0059] By applying the method provided by the embodiment of the present invention, the efficiency of the protection performance test of the equipment can be improved, and the accuracy of the test results can be improved.

[0060] In an embodiment provided by the present invention, based on the above implementation process, specifically, the process of generating the test result of the IP address to be tested according to the protection state generated by the target protection device during the flow test and the service connectivity state of the IP address to be tested, such as Figure 2 As shown, this may include:

[0061] S201: Obtain the protection log generated by the target protection device during the flow test.

[0062] In this embodiment, a collection time point may be determined, and the collection time point may be a time point after the start time point of the flow test. After the collection time point is reached, the protection log of the target protection device is obtained.

[0063] S202: Parse the protection log to obtain the protection status of the target protection device; the protection status includes a flow traction status and a flow cleaning status.

[0064] In this embodiment, after obtaining the protection status of the target protection device, a status code can be generated according to the protection status of the target protection device, that is, a traffic traction status code can be generated according to the traffic traction status, and a traffic cleaning status code can be generated according to the traffic cleaning status. The traffic traction status code can be used to represent the traffic traction status, and the traffic cleaning status code can be used to represent the traffic cleaning status.

[0065] For example, when the traffic traction state is abnormal, the traffic traction state code may be "0", and when the traffic traction state is normal, the traffic traction state code may be "1".

[0066] When the traffic cleaning state is abnormal, the traffic cleaning state code may be "0", and when the traffic cleaning state is normal, the traffic cleaning state code may be "1".

[0067] S203: After obtaining the protection status of the target protection device, a ping test is performed on the IP address to be tested to obtain the service connectivity status of the IP address to be tested.

[0068] In this embodiment, a preset ping test script may be used to perform a ping test on the IP address to be tested.

[0069] Optionally, after obtaining the service connectivity status of the IP address to be tested, a service status code may be generated according to the service connectivity status of the IP address to be tested, so as to use the service status code to represent the service connectivity status.

[0070] For example, when the service connectivity status is abnormal, the service status code may be "0", and when the service connectivity status is normal, the traffic cleaning status code may be "1".

[0071] S204: Generate a test result of the IP address to be tested based on the protection status code corresponding to the protection status of the target device and the service status code corresponding to the service connectivity status.

[0072] In this embodiment, the protection status code and the service status code may be combined to obtain the test result of the IP address to be tested, wherein the protection status code includes a traffic traction status code and a traffic cleaning status code.

[0073] In an embodiment provided by the present invention, based on the above implementation process, specifically, performing a flow test on the IP address to be tested based on the flow parameter includes:

[0074] Obtain the source IP address, source port, port of the IP address to be tested, attack type, duration of the attack, and size of the attack included in the attack parameters;

[0075] A traffic breaking test is performed on the IP address to be tested based on the traffic breaking parameters.

[0076] In this embodiment, the IP address to be tested can be input as the destination IP address into a preset traffic tool, and the source IP address, source port, port of the IP address to be tested, attack type, traffic duration and traffic size in the traffic parameters can be input into the traffic tool, so as to perform a traffic test on the IP address to be tested through the traffic tool.

[0077] Optionally, the attack type may include at least one of a UDP type, a SYN type, an ACK type, and a FIN / RST type.

[0078] In some embodiments, the streaming duration can be set to any size, for example, it can be set to 5 minutes; the streaming size can be set to no more than 15M.

[0079] In an embodiment provided by the present invention, based on the above implementation process, specifically, determining the security protection performance test result of the target protection device according to the test results of each of the IP addresses to be tested includes:

[0080] If the test results of each of the IP addresses to be tested indicate that the test is normal, then it is determined that the security protection performance test result of the target protection device is normal;

[0081] If the test result of at least one of the IP addresses to be tested indicates a test abnormality, it is determined that the test result of the security protection performance of the target protection device is abnormal.

[0082] In this embodiment, if the traffic traction status code, traffic cleaning status code and service status code in the test results all indicate that the status is normal, then it is determined that the test result indicates that the test is normal; when all test results indicate that the test is normal, it is determined that the security protection performance test result of the target protection device is normal.

[0083] If one or more of the traffic traction status code, traffic cleaning status code and business status code in the test result are abnormal, the test result is determined to represent a test abnormality; if there is at least one test result representing a test abnormality, the security protection performance result of the target protection device is determined to be abnormal.

[0084] In some embodiments, the test results of each IP address to be tested and the security protection performance test results of the target protection device can be displayed on a preset display interface.

[0085] In an embodiment provided by the present invention, based on the above implementation process, specifically, it also includes:

[0086] When the safety protection performance test result of the target protection equipment is abnormal, an alarm message is output.

[0087] In this embodiment, the alarm information may be sent to a preset equipment maintenance object so that the equipment maintenance object performs maintenance on the target protection equipment.

[0088] In an embodiment provided by the present invention, based on the above implementation process, optionally, it further includes:

[0089] When receiving an update instruction for the IP address to be tested of the target protection device, determining update information of the update instruction; the update information includes an update type and an IP address to be updated; the update type may be at least one of a new type and a deletion type;

[0090] When the update type is a new type, the IP address to be updated is used as the IP address to be tested;

[0091] When the update type is a deletion type, the IP address to be tested that is consistent with the IP address to be updated is deleted.

[0092] In some embodiments, for each set of anti-DDoS equipment, a test group protection object Test is established, which contains the test IP addresses of all lines connected to this set of equipment. The various types of protection thresholds of Test should be set low, the threshold for checking packet rate should be set to 300pps, and the threshold for checking flow rate should be set to 10Mbps. After setting the protection thresholds, you can enter the test process, such as Figure 3 FIG. 1 is a flowchart of another method for testing protection performance provided by an embodiment of the present invention, which specifically includes the following process:

[0093] Step 1: Read the test IP address list.

[0094] In this embodiment, the test IP addresses of all lines are entered into a text, and an automatic execution script task is started and executed every day at 1 a.m. The script reads the IP address information from the text one by one into the flow-breaking tool as the input of the destination IP address.

[0095] Step 2: Open the flow.

[0096] In this embodiment, the source IP address is the Internet IP address of the device where the traffic tool is located, the source port, destination port and attack type are randomly generated by the script, the attack type is selected from udp, syn, ack, fin / rst types, the traffic duration is 5 minutes, and the traffic size does not exceed 15M.

[0097] Step 3: Return the traction and cleaning status code.

[0098] In this embodiment, one minute after the start of the streaming, the script parses the attack log returned by the anti-DDoS device and returns the traction and cleaning status. If both are successful, the string "11" is returned, corresponding to the status codes of traction and cleaning respectively. A status code of 0 indicates failure.

[0099] Step 4: Ping the destination IP address.

[0100] In this embodiment, after the traction and cleaning status codes are returned, the script automatically pings the destination IP address. If the connection is successful, a string "1" is returned, indicating that normal business access is not affected during the cleaning process.

[0101] Step 5: Return the test results and save them.

[0102] In this embodiment, after each traffic-making task of the test IP address is completed, the test result is returned, and the value is "test IP address + traction status code + cleaning status code + whether the service is normal status code".

[0103] Step 6: Return the inspection results.

[0104] In this embodiment, if the three status codes of all the test IP addresses are 1, the final return is "protection normal", otherwise it returns the inspection result of "protection abnormal". Click the inspection result to view the detailed execution result, which contains the test result of each test IP address (test IP address + traction status code + cleaning status code + business normal status code).

[0105] By using the embodiments of the present invention, a time-consuming, repetitive and easy-to-omit work can be automated, the operation and maintenance efficiency can be improved, manpower can be effectively liberated, and the accuracy and efficiency of business verification can be improved. In the later operation and maintenance work, when a new line is online or an old line is removed, it is only necessary to maintain the list of test IPs and add and delete related IPs.

[0106] and Figure 1 Corresponding to the method described above, the embodiment of the present invention also provides a protection performance testing device for testing Figure 1 In order to implement the method in the embodiment of the present invention, the protection performance testing device provided in the embodiment of the present invention can be applied to electronic equipment, and its structural diagram is shown in FIG. Figure 4 As shown, specifically including:

[0107] The acquisition unit 401 is used to obtain, in response to the test instruction, each to-be-tested IP address of the target protection device corresponding to the test instruction; the to-be-tested IP address is the IP address of the line protected by the target protection device;

[0108] The execution unit 402 is used to determine the flow breaking parameters of each of the IP addresses to be tested, perform a flow breaking test on the IP addresses to be tested based on the flow breaking parameters, and generate a test result of the IP addresses to be tested according to the protection state of the target protection device generated during the flow breaking test and the service connectivity state of the IP addresses to be tested;

[0109] The determination unit 403 is used to determine the protection performance test result of the target protection device according to the test results of each of the IP addresses to be tested.

[0110] In an embodiment provided by the present invention, based on the above solution, optionally, the execution unit includes:

[0111] A first acquisition subunit is used to acquire the protection log generated by the target protection device during the flow test;

[0112] The parsing subunit is used to parse the protection log to obtain the protection status of the target protection device; the protection status includes the flow traction status and the flow cleaning status;

[0113] A first test subunit is used to perform a ping test on the IP address to be tested after obtaining the protection status of the target protection device, so as to obtain the service connectivity status of the IP address to be tested;

[0114] A generating subunit is used to generate a test result of the IP address to be tested based on a protection status code corresponding to the protection status of the target device and a service status code corresponding to the service connectivity status.

[0115] In an embodiment provided by the present invention, based on the above solution, optionally, the execution unit includes:

[0116] Second, obtaining the source IP address, source port, port of the IP address to be tested, attack type, flow duration and flow size contained in the flow parameters;

[0117] The second testing subunit is used to perform a traffic breaking test on the IP address to be tested based on the traffic breaking parameters.

[0118] In an embodiment provided by the present invention, based on the above solution, optionally, the determining unit includes:

[0119] A first determining subunit is used to determine that the security protection performance test result of the target protection device is normal if the test results of each of the IP addresses to be tested indicate that the test is normal;

[0120] The second determining subunit is used to determine that the security protection performance test result of the target protection device is abnormal if the test result of at least one of the IP addresses to be tested indicates a test abnormality.

[0121] In an embodiment provided by the present invention, based on the above solution, optionally, the protection performance testing device further includes:

[0122] The alarm unit is used to output an alarm message when the safety protection performance test result of the target protection equipment is abnormal.

[0123] The specific principles and execution processes of each unit and module in the protection performance testing device disclosed in the above embodiment of the present invention are the same as the protection performance testing method disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the protection performance testing method provided in the above embodiment of the present invention, and will not be repeated here.

[0124] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned protection performance testing method.

[0125] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 5 As shown, it specifically includes a memory 501 and one or more instructions 502, wherein the one or more instructions 502 are stored in the memory 501 and are configured to be executed by one or more processors 503 to perform the following operations:

[0126] In response to the test instruction, obtain each to-be-tested IP address of the target protection device corresponding to the test instruction; the to-be-tested IP address is the IP address of the line protected by the target protection device;

[0127] For each of the IP addresses to be tested, determine the traffic parameters of the IP address to be tested, perform a traffic test on the IP address to be tested based on the traffic parameters, and generate a test result of the IP address to be tested according to the protection state of the target protection device generated during the traffic test and the service connectivity state of the IP address to be tested;

[0128] The protection performance test result of the target protection device is determined according to the test results of each of the IP addresses to be tested.

[0129] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0130] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0131] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0132] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0133] The protective performance testing method provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A protective performance testing method, characterized in that: include: In response to the test instruction, obtain each to-be-tested IP address of the target protection device corresponding to the test instruction; The IP address to be tested is the IP address of the line protected by the target protection device; For each of the IP addresses to be tested, determine the traffic parameters of the IP address to be tested, perform a traffic test on the IP address to be tested based on the traffic parameters, and generate a test result of the IP address to be tested according to the protection state of the target protection device generated during the traffic test and the service connectivity state of the IP address to be tested; Determine the protection performance test result of the target protection device according to the test results of each of the IP addresses to be tested; The step of generating a test result of the IP address to be tested according to the protection state of the target protection device generated during the flow test and the service connectivity state of the IP address to be tested includes: Obtain the protection log generated by the target protection device during the flow test; Parsing the protection log to obtain the protection status of the target protection device; the protection status includes a flow traction status and a flow cleaning status; After obtaining the protection status of the target protection device, a ping test is performed on the IP address to be tested to obtain the service connectivity status of the IP address to be tested; Based on the protection status code corresponding to the protection status of the target device and the service status code corresponding to the service connectivity status, a test result of the IP address to be tested is generated.

2. The method according to claim 1, characterized in that The performing a flow test on the IP address to be tested based on the flow parameter includes: Obtain the source IP address, source port, port of the IP address to be tested, attack type, duration of the attack, and size of the attack included in the attack parameters; A traffic breaking test is performed on the IP address to be tested based on the traffic breaking parameters.

3. The method according to claim 1, characterized in that Determining the security protection performance test result of the target protection device according to the test results of each of the IP addresses to be tested includes: If the test results of each of the IP addresses to be tested indicate that the test is normal, then it is determined that the security protection performance test result of the target protection device is normal; If the test result of at least one of the IP addresses to be tested indicates a test abnormality, it is determined that the test result of the security protection performance of the target protection device is abnormal.

4. The method according to claim 3, characterized in that Also includes: When the safety protection performance test result of the target protection equipment is abnormal, an alarm message is output.

5. A protective performance testing device, characterized in that: include: An acquisition unit, configured to acquire, in response to a test instruction, each to-be-tested IP address of a target protection device corresponding to the test instruction; The IP address to be tested is the IP address of the line protected by the target protection device; An execution unit is used to determine, for each of the IP addresses to be tested, a flow breaking parameter of the IP address to be tested, perform a flow breaking test on the IP address to be tested based on the flow breaking parameter, and generate a test result of the IP address to be tested according to the protection state of the target protection device generated during the flow breaking test and the service connectivity state of the IP address to be tested; A determination unit, used to determine the protection performance test result of the target protection device according to the test results of each of the IP addresses to be tested; Wherein, the execution unit includes: A first acquisition subunit is used to acquire the protection log generated by the target protection device during the flow test; The parsing subunit is used to parse the protection log to obtain the protection status of the target protection device; the protection status includes the flow traction status and the flow cleaning status; A first test subunit is used to perform a ping test on the IP address to be tested after obtaining the protection status of the target protection device, so as to obtain the service connectivity status of the IP address to be tested; A generating subunit is used to generate a test result of the IP address to be tested based on a protection status code corresponding to the protection status of the target device and a service status code corresponding to the service connectivity status.

6. The device according to claim 5, characterized in that The execution unit comprises: Second, obtaining the source IP address, source port, port of the IP address to be tested, attack type, flow duration and flow size contained in the flow parameters; The second testing subunit is used to perform a traffic breaking test on the IP address to be tested based on the traffic breaking parameters.

7. The device according to claim 5, characterized in that The determining unit comprises: A first determining subunit is used to determine that the security protection performance test result of the target protection device is normal if the test results of each of the IP addresses to be tested indicate that the test is normal; The second determining subunit is used to determine that the security protection performance test result of the target protection device is abnormal if the test result of at least one of the IP addresses to be tested indicates a test abnormality.

8. The device according to claim 7, characterized in that Also includes: The alarm unit is used to output an alarm message when the safety protection performance test result of the target protection equipment is abnormal.