Test data generation method and device suitable for lossless drilling

The test data generated and filtered by the neural network model solves the problems of low efficiency and lack of authenticity of the existing non-destructive drill methods, realizes an efficient and safe drill process, and improves operation and maintenance efficiency and fault response capabilities.

CN118656268APending Publication Date: 2024-09-17INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410790892.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing non-destructive drill methods are inefficient and difficult to simulate traffic anomalies in complex and changeable real generation environments, making it difficult to guarantee system stability and security.

Method used

Using at least two neural network test data generation models, by obtaining monitoring indicators and log information of the target system, preliminary test data is generated and screened to form high-authenticity test data to improve drill efficiency and safety.

Benefits of technology

It improves the authenticity and efficiency of non-destructive drills, reduces interference to the production environment, enhances the response ability of the operation and maintenance team after a fault occurs, improves operation and maintenance efficiency and reduces the impact of faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656268A
    Figure CN118656268A
Patent Text Reader

Abstract

The invention discloses a test data generation method and device suitable for lossless drilling, relates to the technical field of artificial intelligence and can also be used in the financial field, and the method comprises the steps: obtaining a monitoring index and log information of a target system; generating the test data according to the monitoring index, the log information and a pre-generated test data generation model; the test data generation model comprises at least two neural networks, and the first neural network is used for generating preliminary test data according to the monitoring index, the log information and pre-generated random noise; the second neural network is used for screening the preliminary test data to generate the test data. According to the method, the traffic abnormal data is automatically synthesized through the large model, and the traffic abnormal data can be used for lossless drilling, so that the authenticity and efficiency of drilling are improved, and the interference to the production environment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of artificial intelligence technology, particularly to the field of testing-related technologies within this field, and specifically relates to a test data generation method and device suitable for non-destructive drills. Background Art

[0002] In the existing technology, lossless drills are of great significance to ensure system stability and security. However, most existing methods rely on manually designed abnormal traffic patterns, which is not only inefficient but also difficult to simulate traffic anomalies in complex and changeable real-world environments. Summary of the invention

[0003] The present invention can be used in the technical field of applying artificial intelligence technology in finance, and can also be used in any field other than the financial field.

[0004] One object of the present invention is to provide a test data generation method suitable for non-destructive drills, which automatically synthesizes traffic anomaly data through a large model. The traffic anomaly data can be used for non-destructive drills to improve the authenticity and efficiency of the drills and reduce interference with the production environment.

[0005] Another object of the present invention is to provide a test data generation device suitable for lossless drills. Another object of the present invention is to provide an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the test data generation method suitable for lossless drills when executing the computer program. Another object of the present invention is to provide a readable medium, on which a computer program is stored, and when the computer program is executed by the processor, the steps of the test data generation method suitable for lossless drills are implemented.

[0006] In order to solve the technical problems in the background technology of this application, the present invention provides the following technical solutions:

[0007] In a first aspect, the present invention provides a test data generation method suitable for non-destructive drills, which is applied to a local end different from a target system, comprising:

[0008] Obtain monitoring indicators and log information of the target system;

[0009] The test data is generated according to the monitoring indicators, the log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data according to the monitoring indicators, the log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate the test data.

[0010] In some embodiments of the present invention, the step of generating the first neural network comprises:

[0011] The following iterative operations are performed until the screening result of the second neural network for the preliminary test data meets the first preset condition or the number of iterations reaches the first preset value:

[0012] Extracting the random noise to preliminary test data of the current iteration round;

[0013] Mapping monitoring indicators and log information containing extracted random noise to a data space through a plurality of first sub-neural networks;

[0014] Penalizing the portion of the screening result of the preliminary test data returned by the second neural network corresponding to the data space according to a pre-generated loss function;

[0015] Generate preliminary test data for the next iteration based on the penalized data space.

[0016] In some embodiments of the present invention, the step of generating the loss function comprises:

[0017] The loss function is generated according to the dimension of the preliminary test data output by the first neural network, the probability that the preliminary test data is the monitoring indicator and the log information, and the label corresponding to the preliminary test data.

[0018] In some embodiments of the present invention, the step of generating the second neural network comprises:

[0019] Perform the following iterative operations until the screening result of the preliminary test result of the second neural network meets the second preset condition or the number of iterations reaches a second preset value:

[0020] Generate a binary classifier through multiple second sub-neural networks;

[0021] Filtering the preliminary test data according to the binary classifier to generate a screening result; wherein the screening result includes: the monitoring indicator, the log information, the monitoring indicator containing the random noise, and the log information containing the random noise;

[0022] The binary classifier is optimized according to the screening result.

[0023] In some embodiments of the present invention, the monitoring indicators include: performance indicators, business indicators and link indicators; the log information is log information of the interface dimension;

[0024] The performance indicators include: CPU usage, memory usage, disk IO / single write rate, performance response time and system throughput;

[0025] The business indicators include: business transaction status, success rate, business throughput and query rate;

[0026] The link indicators include: link ID, HTTP response time and database query delay;

[0027] The log information of the interface dimension includes: interface response time, return code of the return message, and return message information.

[0028] In some embodiments of the present invention, generating preliminary test data according to the monitoring indicator, the log information and the pre-generated random noise includes:

[0029] Adding the random noise to the link ID, the return code of the return message, the performance response time, and the interface response time;

[0030] The preliminary test data is generated according to the CPU utilization rate, the memory utilization rate, the disk IO / single write rate, the system throughput, the business transaction status, the success rate, the business throughput, the query rate, the database query delay, the return message information and the link ID after adding the random noise, the HTTP response time, the return code of the return message, the performance response time, and the interface response time.

[0031] In a second aspect, the present invention provides a test data generation device suitable for non-destructive drills, which is applied to a local end different from a target system, and the device comprises:

[0032] An indicator acquisition module is used to obtain monitoring indicators and log information of the target system;

[0033] A test data generation module is used to generate the test data according to the monitoring indicators, the log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data according to the monitoring indicators, the log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate the test data.

[0034] In some embodiments of the present invention, a test data generating device suitable for non-destructive drills further includes:

[0035] A first network generation module is used to generate the first neural network; the first network generation module includes:

[0036] The first iterative operation unit is used to perform the following iterative operations until the screening result of the second neural network for the preliminary test data meets the first preset condition or the iteration round reaches a first preset value:

[0037] A random noise extraction unit, used to extract the random noise to preliminary test data of the current iteration round;

[0038] An indicator mapping unit, used to map monitoring indicators and log information containing extracted random noise to a data space through a plurality of first sub-neural networks;

[0039] a data space penalty unit, configured to penalize a portion of the screening result of the preliminary test data returned by the second neural network corresponding to the data space according to a pre-generated loss function;

[0040] The next round data generation unit is used to generate preliminary test data for the next iteration round according to the penalized data space.

[0041] In some embodiments of the present invention, the first network generation module further includes:

[0042] A loss function generating unit, used to generate the loss function, the loss function generating unit comprising:

[0043] The loss function generating subunit is used to generate the loss function according to the dimension of the preliminary test data output by the first neural network, the probability that the preliminary test data is the monitoring indicator and the log information, and the label corresponding to the preliminary test data.

[0044] In some embodiments of the present invention, a test data generating device suitable for non-destructive drills further includes:

[0045] A second network generation module is used to generate the second neural network, and the second network generation module includes:

[0046] The second iterative operation unit is used to perform the following iterative operations until the screening result of the preliminary test result of the second neural network meets the second preset condition or the iteration round reaches a second preset value:

[0047] A binary classifier generating unit, used for generating a binary classifier through a plurality of second sub-neural networks;

[0048] A screening result generating unit, used for screening the preliminary test data according to the binary classifier to generate a screening result; wherein the screening result includes: the monitoring indicator, the log information, the monitoring indicator containing the random noise, and the log information containing the random noise;

[0049] The binary classifier optimization unit is used to optimize the binary classifier according to the screening result.

[0050] In some embodiments of the present invention, the monitoring indicators include: performance indicators, business indicators and link indicators; the log information is log information of the interface dimension;

[0051] The performance indicators include: CPU usage, memory usage, disk IO / single write rate, performance response time and system throughput;

[0052] The business indicators include: business transaction status, success rate, business throughput and query rate;

[0053] The link indicators include: link ID, HTTP response time and database query delay;

[0054] The log information of the interface dimension includes: interface response time, return code of the return message, and return message information.

[0055] In some embodiments of the present invention, a test data generating device suitable for non-destructive drills further includes:

[0056] A preliminary test data generation module is used to generate preliminary test data according to the monitoring indicators, the log information and the pre-generated random noise. The preliminary test data generation module includes:

[0057] A random noise adding unit, used for adding the random noise to the link ID, the return code of the return message, the performance response time and the interface response time;

[0058] A preliminary test data generating unit is used to generate the preliminary test data according to the CPU utilization rate, the memory utilization rate, the disk IO / single write rate, the system throughput, the business transaction status, the success rate, the business throughput, the query rate, the database query delay, the return message information and the link ID after adding the random noise, the HTTP response time, the return code of the return message, the performance response time, and the interface response time.

[0059] In a third aspect, the present invention provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of a test data generation method suitable for non-destructive exercises.

[0060] In a fourth aspect, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of a test data generation method suitable for non-destructive drills are implemented.

[0061] In a fifth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a test data generation method suitable for non-destructive drills.

[0062] From the above description, it can be seen that an embodiment of the present invention provides a test data generation method and device suitable for non-destructive drills, and the corresponding method includes: first, obtaining monitoring indicators and log information of the target system; then, generating test data according to the monitoring indicators, log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data according to the monitoring indicators, log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate test data.

[0063] Based on the high security of non-destructive drills, the present invention creates a normalized drill process. By replaying various typical production failures, it is possible to discover room for further improvement of application systems and operation and maintenance teams after a failure occurs, thereby helping to improve operation and maintenance efficiency and reduce the impact of failures. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 A flow chart of a test data generation method suitable for non-destructive drill in an embodiment of the present invention Figure 1 ;

[0066] Figure 2 A flow chart of a method for generating test data suitable for non-destructive training in an embodiment of the present invention Figure 2 ;

[0067] Figure 3 FIG. 3 is a flow chart of step 300 of a method for generating test data suitable for non-destructive training in an embodiment of the present invention. Figure 1 ;

[0068] Figure 4 FIG. 3 is a flow chart of step 300 of a method for generating test data suitable for non-destructive training in an embodiment of the present invention. Figure 2 ;

[0069] Figure 5306 of a method for generating test data suitable for non-destructive drills in an embodiment of the present invention;

[0070] Figure 6 A flow chart of a method for generating test data suitable for non-destructive training in an embodiment of the present invention Figure 3 ;

[0071] Figure 7 4 is a flow chart of step 400 of a method for generating test data suitable for non-destructive drills in an embodiment of the present invention;

[0072] Figure 8 A flow chart of a method for generating test data suitable for non-destructive training in an embodiment of the present invention Figure 4 ;

[0073] Fig. 9 Schematic diagram of the flow of step 500 of a method for generating test data suitable for non-destructive drills in an embodiment of the present invention;

[0074] Fig.10 It is a working principle diagram of a test data generation system suitable for non-destructive drill in a specific implementation manner of the present invention;

[0075] Fig.11 A block of a test data generating device suitable for non-destructive training in an embodiment of the present invention Figure 1 ;

[0076] Fig.12 A block of a test data generating device suitable for non-destructive training in an embodiment of the present invention Figure 2 ;

[0077] Fig.13 The block of the first network generation module 30 in the embodiment of the present invention is Figure 1 ;

[0078] Fig.14 The block of the first network generation module 30 in the embodiment of the present invention is Figure 2 ;

[0079] Fig.15 is a block diagram of a loss function generating unit 30f in an embodiment of the present invention;

[0080] Fig.16 A block of a test data generating device suitable for non-destructive training in an embodiment of the present invention Figure 3 ;

[0081] Fig.17 is a block diagram of the second network generation module 40 in an embodiment of the present invention;

[0082] Fig.18 A block of a test data generating device suitable for non-destructive training in an embodiment of the present invention Figure 4 ;

[0083] Fig.19 is a block diagram of a preliminary test data generating module 50 in an embodiment of the present invention;

[0084] Fig. 20 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0085] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0086] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0087] It should be noted that the terms "including" and "having" in the specification and claims of the present application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. In the absence of conflict, the embodiments in the present application and the features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the drawings and in combination with the embodiments.

[0088] The acquisition, storage, use, and processing of data in this application's technical solution are in compliance with the relevant provisions of laws and regulations. Specifically:

[0089] 1. The information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0090] 2. Provide users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, they will enter the expert decision-making process.

[0091] The embodiment of the present invention provides a specific implementation of a test data generation method suitable for non-destructive drills. The method is applied to a local end different from the target system. Figure 1 , the method specifically includes the following contents:

[0092] Step 100: Obtain monitoring indicators and log information of the target system;

[0093] Step 200: Generate the test data according to the monitoring indicators, the log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data according to the monitoring indicators, the log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate the test data.

[0094] From the above description, it can be seen that an embodiment of the present invention provides a test data generation method suitable for non-destructive drills, including: first, obtaining monitoring indicators and log information of the target system; then, generating test data based on the monitoring indicators, log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data based on the monitoring indicators, log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate test data.

[0095] Based on the high security of non-destructive drills, the present invention creates a normalized drill process. By replaying various typical production failures, it is possible to discover room for further improvement of application systems and operation and maintenance teams after a failure occurs, thereby helping to improve operation and maintenance efficiency and reduce the impact of failures.

[0096] It is understandable that a lossless drill refers to a simulated drill of a network attack or security incident without causing any damage to the actual system or data (injecting operation and maintenance indicator failures without affecting actual transactions, and testing monitoring and operation-related defects, with high security). Based on this, step 100 obtains monitoring indicators and log information on a local end that is different from the target system, and all subsequent steps are performed on the local end.

[0097] With respect to step 200, the first neural network can be regarded as a generator for learning and generating data similar to the actual monitoring indicators and log information based on the monitoring indicators, log information and random noise.

[0098] The second neural network can be regarded as a discriminator, which is used to distinguish the generated similar data from the real monitoring indicators and log information. The competition between the first neural network and the second neural network promotes the continuous evolution of the test data generation model, making the generated data gradually close to the distribution of the real monitoring indicators and log information.

[0099] In some embodiments of the present invention, see Figure 2 , a test data generation method suitable for non-destructive drills, further comprising:

[0100] Step 300: Generate the first neural network, then refer to Figure 3 , step 300 comprises:

[0101] Step 301: Perform the following iterative operations until the screening result of the second neural network for the preliminary test data meets the first preset condition or the number of iterations reaches the first preset value:

[0102] Step 302: extracting the random noise to preliminary test data of the current iteration round;

[0103] Step 303: Mapping monitoring indicators and log information containing extracted random noise to a data space through a plurality of first sub-neural networks;

[0104] Specifically, for numerical monitoring indicators, fully connected neural networks can be used. For log information, convolutional neural networks (CNN) or recurrent neural networks (RNN), such as LSTM or GRU, can be used.

[0105] First, each sub-network is trained using historical data, with the goal of mapping the input to a high-dimensional data space (usually an embedding space). Next, the output of each sub-neural network is used as a high-dimensional feature vector. These high-dimensional feature vectors can be further concatenated or otherwise fused to form a comprehensive feature vector (representing the position of the input data in the data space). Finally, dimensionality reduction techniques are used to map the high-dimensional data to a 2D or 3D space for easy visualization and analysis.

[0106] It should be noted that the random noise obeys exponential distribution, Weibull distribution or lognormal distribution. Preferably, the random noise in step 303 conforms to Weibull distribution:

[0107] The probability density function (PDF) and cumulative distribution function (CDF) of the log-Weibull distribution are defined as follows:

[0108] Probability density function (PDF):

[0109]

[0110] Cumulative Distribution Function (CDF):

[0111]

[0112] Where: k is the shape parameter, also known as the shape factor. λ is the scale parameter, also known as the scale factor.

[0113] The meaning of the parameters:

[0114] Shape parameter k: When k < 1: indicates that the failure rate decreases over time. When k = 1: indicates that the failure rate is constant, and the Weibull distribution degenerates into an exponential distribution. When k > 1: indicates that the failure rate increases over time.

[0115] Scale parameter λ: This parameter scales the time axis, affecting how spread out the distribution is. A larger λ means that the data values ​​are more spread out or have a longer lifespan.

[0116] Step 304: Penalizing the portion of the screening result of the preliminary test data returned by the second neural network corresponding to the data space according to a pre-generated loss function;

[0117] Step 305: Generate preliminary test data for the next iteration round according to the penalized data space.

[0118] In some embodiments of the present invention, see Figure 4 , step 300 further includes:

[0119] Step 306: Generate the loss function, then refer to Figure 5, step 306 includes:

[0120] Step 3061: Generate the loss function according to the dimension of the preliminary test data output by the first neural network, the probability that the preliminary test data is the monitoring indicator and the log information, and the label corresponding to the preliminary test data.

[0121] Specifically:

[0122]

[0123] Among them, y is the loss function and n is x i is the dimension of the preliminary test data output by the first neural network, the label corresponding to the preliminary test data (when it is a real monitoring indicator and log information, it is 1, otherwise it is 0), The probability that the preliminary test data is real monitoring indicators and log information.

[0124] In some embodiments of the present invention, see Figure 6 , a test data generation method suitable for non-destructive drills, further comprising:

[0125] Step 400: Generate the second neural network, see Figure 7 , step 400 comprises:

[0126] Step 401: Perform the following iterative operations until the screening result of the preliminary test result of the second neural network meets the second preset condition or the number of iterations reaches a second preset value:

[0127] Step 402: Generate a binary classifier through multiple second sub-neural networks;

[0128] It can be understood that the binary classifier in step 402 is used to distinguish the generated monitoring indicators and log information (preliminary test data) from the real monitoring indicators and log information.

[0129] Step 403: Filtering the preliminary test data according to the binary classifier to generate a filtering result; wherein the filtering result includes: the monitoring indicator, the log information, the monitoring indicator containing the random noise, and the log information containing the random noise;

[0130] Step 404: Optimize the binary classifier according to the screening result.

[0131] Specifically, the binary classifier consists of three parts: an input layer, multiple hidden layers, and an output layer. The input layer is used for preliminary test data inputted with scores, as well as real monitoring indicators and log information. The number of its nodes is equal to the number of categories of monitoring indicators and log information. In the optimization process of the binary classifier (forward propagation), the calculation method from the input layer to the hidden layer is:

[0132]

[0133] Among them, H is the value of the hidden layer node, W i is the weight of the connection between the i-th node in the input layer and the node in the hidden layer, Z i is the input data of the i-th node in the input layer, and b is the bias.

[0134] Furthermore, the present application also provides a method for updating the above weights:

[0135]

[0136] Among them, W i is the weight before update, W i+1 is the updated weight, S t is the deviation correction value of the first-order gradient matrix corresponding to the current iteration round (t) and the original value, V t It is the deviation correction value between the second-order gradient matrix corresponding to the current iteration round (t) and the original value. For 10 -6 , k is learned and is set to 0.02.

[0137] In some embodiments of the present invention, the monitoring indicators include: performance indicators, business indicators and link indicators; the log information is log information of the interface dimension;

[0138] The performance indicators include: CPU usage, memory usage, disk IO / single write rate, performance response time and system throughput;

[0139] CPU Utilization: Indicates the percentage of the CPU being used. It describes how busy the CPU is. High CPU utilization may indicate that the system is processing a lot of tasks and may need to optimize the code or upgrade the hardware. Low utilization may indicate that resources are not fully utilized.

[0140] Memory Utilization: Indicates the usage of system RAM, usually expressed as a percentage. High memory utilization may cause system performance degradation and out-of-memory errors. Low memory utilization may indicate excess memory resources.

[0141] Disk I / O Read / Write Rate: refers to the rate at which the disk performs read and write operations per second, usually expressed in MB / s or IOPS (input and output operations per second). A high I / O rate may indicate that the disk is busy and that you may need to optimize storage access or use a faster storage device.

[0142] Performance Response Time: refers to the time required for a system or application to respond to a request, usually expressed in milliseconds (ms). High response time may result in a poor user experience and may require optimization of code, database queries, or distributed system architecture.

[0143] System throughput: Indicates the number of requests processed by the system per unit time, usually expressed in requests per second (RPS) or transactions per second (TPS). High throughput indicates strong system processing capabilities. Low throughput may indicate system bottlenecks or resource limitations.

[0144] The business indicators include: business transaction status, success rate, business throughput and query rate;

[0145] Transaction Status: refers to the current status of a single transaction, usually including "success", "failure", "processing", etc. Monitoring transaction status helps to understand the real-time situation of business operations, quickly identify and solve problems, and ensure smooth business processes.

[0146] Success Rate: refers to the proportion of all initiated business transactions that are successfully completed, usually expressed as a percentage. A high success rate indicates high system reliability and good user experience. A low success rate may indicate system problems or user operation errors that need to be handled in a timely manner.

[0147] Business Throughput: refers to the number of business transactions processed by the system in a unit of time, usually expressed in transactions per second (TPS) or transactions per minute (TPM). High business throughput indicates that the system has strong processing capabilities and can support more users and higher transaction volumes.

[0148] Query Rate: refers to the number of query requests processed by the system per unit time, usually expressed in queries per second (QPS). A high query rate indicates that the system has strong query capabilities and can respond to user requests quickly. A low query rate may indicate a system performance bottleneck or insufficient query optimization.

[0149] The link indicators include: link ID, HTTP response time and database query delay;

[0150] Trace ID: It is a unique identifier used to track all services and components that a single request passes through in a distributed system. Through the trace ID, you can trace the entire path of the request, analyze the performance of each service, and quickly locate bottlenecks and failure points.

[0151] HTTP Response Time: refers to the time from when the client initiates an HTTP request to when the server responds. It usually includes network latency, server processing time, etc. HTTP response time directly affects user experience. Lower response time means better performance and user satisfaction. High response time may indicate server performance issues or network latency.

[0152] Database Query Latency: refers to the time from initiating a database query to receiving the query results. It usually includes database connection time, query execution time, etc. Database query latency affects the overall performance of the application. High latency may indicate database indexing problems, insufficient query optimization, or excessive database load.

[0153] The log information of the interface dimension includes: interface response time, return code of the return message, and return message information.

[0154] API Response Time: refers to the time from when the client initiates an API request to when the response is received from the server. It usually includes network latency, server processing time, etc. Lower response time means better performance and user experience. High response time may indicate server performance issues or network latency.

[0155] HTTP Status Code: The status code returned by the server in response to an HTTP request, which indicates the result of the request. For example, 200 indicates a successful request, 404 indicates that the resource was not found, and 500 indicates an internal server error. The return code helps the client understand the result of the request and take appropriate measures. Status codes other than 200 usually require error handling or retrying.

[0156] Response Body: It is the specific data content returned by the server in response to the request, usually returned in JSON, XML or plain text format. The response body contains the result data of the request, and the client needs to parse this data to complete the subsequent processing.

[0157] In some embodiments of the present invention, see Figure 8 , a test data generation method suitable for non-destructive drills, further comprising:

[0158] Step 500: Generate preliminary test data based on the monitoring indicators, the log information and the pre-generated random noise; then, see Fig. 9 , step 500 comprises:

[0159] Step 501: Add the random noise to the link ID, the return code of the return message, the performance response time, and the interface response time;

[0160] Step 502: Generate the preliminary test data according to the CPU utilization rate, the memory utilization rate, the disk IO / single write rate, the throughput, the business transaction status, the success rate, the system throughput, the query rate, the database query delay, the return message information and the link ID after adding the random noise, the HTTP response time, the return code of the return message, the performance response time, and the interface response time.

[0161] In step 501 and step 502, information such as class name, method name, link ID, return code, and time consumption are in a fixed format. In supervised learning, the class name and method name are the targets and are not modified. Instead, the link ID, return code, and time consumption are tampered with to forge abnormal traffic data.

[0162] In order to further illustrate the solution, the present invention also provides a specific implementation of a test data generation method suitable for non-destructive drills, which specifically includes the following contents.

[0163] First, see Fig.10 The present invention provides a test data generation system suitable for lossless drills, the system comprising: a lossless drill client and a lossless drill large model.

[0164] Specifically, for the lossless drill client, first cooperate with various operation and maintenance SDKs in accordance with unified standards to implement fault injection into operation and maintenance, such as: falsifying monitoring / alarm indicators, generating false logs, etc., and then destroy the fault after completion, that is, restore the falsified data to normal.

[0165] Monitoring / alarm indicators include: performance indicators: CPU utilization, memory utilization, disk IO / single write rate, response time, throughput; business indicators: business transaction status, success rate, TPS, QPS; link indicators include: HTTP response time, database query delay, etc.

[0166] Log information includes: interface dimension log information, such as response time, return code of return message, and return message information.

[0167] The following processing is required for non-destructive drill large models:

[0168] (1) Data collection and preprocessing

[0169] Collect original cases: First, you need to collect a large amount of real log, monitoring, alarm and other template data as training data. These data should cover different applications, indicator data, etc.

[0170] Preprocessing and labeling: Clean the collected cases, remove irrelevant information, and make necessary labels, such as event type, abnormal traffic, etc., so that the model can learn the structure and logic of the template.

[0171] (2) Model selection and fine-tuning

[0172] Select the base model: Use a large open source model as the base model.

[0173] Fine-tuning and customization: Fine-tune the basic model based on the characteristics of the lossless drill template. This step includes using the labeled template dataset for supervised learning, allowing the model to learn the logic and rules of template tampering while maintaining the internal consistency and logic of the template. The details are as follows:

[0174] Ⅰ. Data preparation: First, a lossless case library specifically for lossless drill templates is constructed. This dataset contains a large number of annotated instances, each of which reflects the specific tampering logic, format specifications, and internal consistency principles of the template. These annotations include not only conventional text labels, but also structural information and logical relationship labels, so that the model can deeply learn the structural features of the template.

[0175] Ⅱ. Supervised learning: Using this specific dataset, the basic model is trained through supervised learning. The goal of this stage is to guide the model to capture subtle changes in the template and understand the logical rules of template tampering, such as which parts are fixed and which can be flexibly adjusted, and how to make reasonable modifications while maintaining overall consistency.

[0176] Example: The following is a forged log data template (the interface response time is tampered to 337ms). The template has a fixed format, including class name, method name, link ID, return code, time consumption and other information. In supervised learning, the class name and method name are the target and are generally not modified. Generally, the link ID, return code, and time consumption are tampered to forge abnormal traffic data.

[0177] (3) Tampering Generation Strategy

[0178] Conditional generation: Utilize the conditional generation capability of the big model to set specific tampering conditions, change the indicators of the template, and generate new logical cases.

[0179] Retrieval-augmented generation (RAG): When generating tampering cases, the model can retrieve relevant background knowledge or historical cases in real time to enhance the authenticity and detail richness of the generated content.

[0180] (4) Evaluation and iteration

[0181] Quality assessment: The generated tampering cases are subject to expert review or automated evaluation (such as rule-based inspection, comparative analysis, etc.) to ensure the rationality and practicality of the cases.

[0182] Feedback loop: Continuously adjust model parameters based on evaluation results and perform iterative optimization until a satisfactory tampering effect is achieved.

[0183] From the above description, it can be seen that the specific implementation of the present invention provides a test data generation method suitable for non-destructive drills, including: first, obtaining the monitoring indicators and log information of the target system; then, generating test data based on the monitoring indicators, log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data based on the monitoring indicators, log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate test data. The present invention has the following beneficial effects:

[0184] (1) Improve efficiency: Automatically generate abnormal traffic data, greatly improving the efficiency of preparation for lossless drills.

[0185] (2) Enhanced authenticity: The data generated by the large model is closer to the complex traffic anomalies in the real world, which improves the effectiveness of the drill.

[0186] (3) Continuous optimization: The feedback loop mechanism ensures that the model continues to learn and adapt to the ever-changing network environment.

[0187] Based on the same inventive concept, the embodiments of the present application also provide a test data generation device suitable for lossless drills, which can be used to implement the methods described in the above embodiments, such as the following embodiments. Since the principle of solving the problem by the test data generation device suitable for lossless drills is similar to that of the test data generation method suitable for lossless drills, the implementation of the test data generation device suitable for lossless drills can refer to the implementation of the test data generation method suitable for lossless drills, and the repeated parts will not be repeated. As used below, the terms "unit" or "module" can be a combination of software and / or hardware that implements predetermined functions. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0188] The embodiment of the present invention provides a specific implementation of a test data generation device suitable for non-destructive drills that can implement a test data generation method suitable for non-destructive drills, see Fig.11 , a test data generation device suitable for non-destructive drills, applied to a local end different from a target system, the device specifically includes the following contents:

[0189] The indicator acquisition module 10 is used to obtain the monitoring indicators and log information of the target system;

[0190] The test data generation module 20 is used to generate the test data according to the monitoring indicators, the log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data according to the monitoring indicators, the log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate the test data.

[0191] In some embodiments of the present invention, see Fig.12 , a test data generating device suitable for non-destructive drill, further comprising:

[0192] The first network generation module 30 is used to generate the first neural network; see Fig.13 , the first network generation module 30 includes:

[0193] The first iterative operation unit 30a is used to perform the following iterative operations until the screening result of the second neural network for the preliminary test data meets the first preset condition or the number of iterations reaches a first preset value:

[0194] A random noise extraction unit 30b, used to extract the random noise to preliminary test data of the current iteration round;

[0195] An indicator mapping unit 30c, used to map the monitoring indicators and log information containing the extracted random noise to the data space through a plurality of first sub-neural networks;

[0196] A data space penalty unit 30d, configured to penalize a portion of the screening result of the preliminary test data returned by the second neural network corresponding to the data space according to a pre-generated loss function;

[0197] The next round data generating unit 30e is used to generate preliminary test data for the next iteration round according to the penalized data space.

[0198] In some embodiments of the present invention, see Fig.14 , the first network generation module 30 further includes:

[0199] The loss function generating unit 30f is used to generate the loss function, see Fig.15 , the loss function generating unit 30f includes:

[0200] The loss function generating subunit 30f1 is used to generate the loss function according to the dimension of the preliminary test data output by the first neural network, the probability that the preliminary test data is the monitoring indicator and the log information, and the label corresponding to the preliminary test data.

[0201] In some embodiments of the present invention, see Fig.16 , a test data generating device suitable for non-destructive drill, further comprising:

[0202] The second network generation module 40 is used to generate the second neural network. Fig.17 , the second network generation module 40 includes:

[0203] The second iterative operation unit 40a is used to perform the following iterative operation until the screening result of the preliminary test result of the second neural network meets the second preset condition or the iteration round reaches a second preset value:

[0204] A binary classifier generating unit 40b, configured to generate a binary classifier through a plurality of second sub-neural networks;

[0205] A screening result generating unit 40c is used to screen the preliminary test data according to the binary classifier to generate a screening result; wherein the screening result includes: the monitoring indicator, the log information, the monitoring indicator containing the random noise, and the log information containing the random noise;

[0206] The binary classifier optimization unit 40d is used to optimize the binary classifier according to the screening result.

[0207] In some embodiments of the present invention, the monitoring indicators include: performance indicators, business indicators and link indicators; the log information is log information of the interface dimension;

[0208] The performance indicators include: CPU usage, memory usage, disk IO / single write rate, performance response time and system throughput;

[0209] The business indicators include: business transaction status, success rate, business throughput and query rate;

[0210] The link indicators include: link ID, HTTP response time and database query delay;

[0211] The log information of the interface dimension includes: interface response time, return code of the return message, and return message information.

[0212] In some embodiments of the present invention, see Fig.18 , a test data generating device suitable for non-destructive drill, further comprising:

[0213] The preliminary test data generating module 50 is used to generate preliminary test data according to the monitoring indicators, the log information and the pre-generated random noise, see Fig.19 , the preliminary test data generating module 50 comprises:

[0214] A random noise adding unit 50a, configured to add the random noise to the link ID, the return code of the return message, the performance response time, and the interface response time;

[0215] The preliminary test data generating unit 50b is used to generate the preliminary test data according to the CPU utilization rate, the memory utilization rate, the disk IO / single write rate, the system throughput, the business transaction status, the success rate, the business throughput, the query rate, the database query delay, the return message information and the link ID after adding the random noise, the HTTP response time, the return code of the return message, the performance response time, and the interface response time.

[0216] From the above description, it can be seen that an embodiment of the present invention provides a test data generation device suitable for non-destructive drills, including: an indicator acquisition module, used to obtain monitoring indicators and log information of a target system; a test data generation module, used to generate test data based on monitoring indicators, log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data based on monitoring indicators, log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate test data.

[0217] Based on the high security of non-destructive drills, the present invention creates a normalized drill process. By replaying various typical production failures, it is possible to discover room for further improvement of application systems and operation and maintenance teams after a failure occurs, thereby helping to improve operation and maintenance efficiency and reduce the impact of failures.

[0218] It should be noted that the test data generation method and device suitable for non-destructive drills provided in the embodiments of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiments of the present invention do not limit the application field of the test data generation method and device suitable for non-destructive drills.

[0219] The embodiment of the present application also provides a specific implementation of an electronic device capable of implementing all steps in the test data generation method suitable for non-destructive training in the above embodiment, see Fig. 20 , electronic equipment specifically includes the following:

[0220] Processor processor) 1201, memory memory) 1202, communication interface Communications Interface) 1203 and bus 1204;

[0221] The processor 1201, the memory 1202, and the communication interface 1203 communicate with each other through the bus 1204; the communication interface 1203 is used to realize information transmission between the server-side device and the user-side device and other related devices;

[0222] The processor 1201 is used to call the computer program in the memory 1202. When the processor executes the computer program, all steps in the test data generation method applicable to non-destructive drills in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0223] Step 100: Obtain monitoring indicators and log information of the target system;

[0224] Step 200: Generate the test data according to the monitoring indicators, the log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data according to the monitoring indicators, the log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate the test data.

[0225] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the test data generation method applicable to non-destructive exercises in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the test data generation method applicable to non-destructive exercises in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0226] Step 100: Obtain monitoring indicators and log information of the target system;

[0227] Step 200: Generate the test data according to the monitoring indicators, the log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data according to the monitoring indicators, the log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate the test data.

[0228] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program 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.

[0229] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0230] Although the present application provides method operation steps such as embodiments or flow charts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the device or user-end product in practice is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).

[0231] For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing the embodiments of this specification, the functions of each module can be implemented in the same or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0232] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.

[0233] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0234] The memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (RAM). The memory is an example of a computer-readable medium.

[0235] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system 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. In the description of this specification, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of this specification. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, in the absence of contradiction, a person skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0236] The above is only an example of the embodiment of the present specification and is not intended to limit the embodiment of the present specification. For those skilled in the art, the embodiment of the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiment of the present specification shall be included in the scope of the claims of the embodiment of the present specification.

Claims

1. A test data generation method suitable for non-destructive drills, characterized in that: Applied to the local side which is different from the target system, including: Obtain monitoring indicators and log information of the target system; The test data is generated according to the monitoring indicators, the log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data according to the monitoring indicators, the log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate the test data.

2. The test data generation method according to claim 1, characterized in that: The step of generating the first neural network comprises: The following iterative operations are performed until the screening result of the second neural network for the preliminary test data meets the first preset condition or the number of iterations reaches the first preset value: Extracting the random noise to preliminary test data of the current iteration round; Mapping monitoring indicators and log information containing extracted random noise to a data space through a plurality of first sub-neural networks; Penalizing the portion of the screening result of the preliminary test data returned by the second neural network corresponding to the data space according to a pre-generated loss function; Generate preliminary test data for the next iteration based on the penalized data space.

3. The test data generating method according to claim 2, characterized in that: The steps of generating the loss function include: The loss function is generated according to the dimension of the preliminary test data output by the first neural network, the probability that the preliminary test data is the monitoring indicator and the log information, and the label corresponding to the preliminary test data.

4. The test data generating method according to claim 1, characterized in that: The step of generating the second neural network comprises: Perform the following iterative operations until the screening result of the preliminary test result of the second neural network meets the second preset condition or the number of iterations reaches a second preset value: Generate a binary classifier through multiple second sub-neural networks; Filtering the preliminary test data according to the binary classifier to generate a screening result; wherein the screening result includes: the monitoring indicator, the log information, the monitoring indicator containing the random noise, and the log information containing the random noise; The binary classifier is optimized according to the screening result.

5. The test data generating method according to any one of claims 1 to 4, characterized in that: The monitoring indicators include: performance indicators, business indicators and link indicators; the log information is the log information of the interface dimension; The performance indicators include: CPU usage, memory usage, disk IO / single write rate, performance response time and system throughput; The business indicators include: business transaction status, success rate, business throughput and query rate; The link indicators include: link ID, HTTP response time and database query delay; The log information of the interface dimension includes: interface response time, return code of the return message, and return message information.

6. The test data generating method according to claim 5, characterized in that: Generating preliminary test data according to the monitoring indicator, the log information and the pre-generated random noise includes: Adding the random noise to the link ID, the return code of the return message, the performance response time, and the interface response time; The preliminary test data is generated according to the CPU utilization rate, the memory utilization rate, the disk IO / single write rate, the system throughput, the business transaction status, the success rate, the business throughput, the query rate, the database query delay, the return message information and the link ID after adding the random noise, the HTTP response time, the return code of the return message, the performance response time, and the interface response time.

7. A test data generation device suitable for non-destructive drills, characterized in that: Applied to the local side which is different from the target system, including: An indicator acquisition module is used to obtain monitoring indicators and log information of the target system; A test data generation module is used to generate the test data according to the monitoring indicators, the log information and a pre-generated test data generation model; the test data generation model includes at least two neural networks, wherein the first neural network is used to generate preliminary test data according to the monitoring indicators, the log information and pre-generated random noise; the second neural network is used to screen the preliminary test data to generate the test data.

8. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the test data generation method suitable for non-destructive drills described in any one of claims 1 to 6 are implemented.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the test data generation method suitable for non-destructive drills described in any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the test data generation method suitable for non-destructive drills described in any one of claims 1 to 6 are implemented.