One-stop negative feedback test system for block chain

By introducing a one-stop negative feedback testing system into the blockchain testing system, the problems of inaccurate blockchain test results and low degree of automation are solved, high-accuracy automated testing and fault location are achieved, labor maintenance costs are reduced, and resource usage is optimized through negative feedback mechanisms.

CN119988229APending Publication Date: 2025-05-13SHANGHAI KUNYAO NETWORK SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510095109.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, the blockchain test results are inaccurate, and the bottleneck or failure points cannot be located, and the degree of automation is low, the flexibility is poor, and the performance stress test of a large number of nodes cannot be achieved.

Method used

Provide a one-stop negative feedback testing system based on consensus algorithm, including testing module, negative feedback acquisition module, negative feedback analysis module and visual presentation module. The system realizes comprehensive testing and fault location of the blockchain network through automated testing, edge computing, multi-dimensional feature extraction and visual chart generation.

Benefits of technology

It realizes automation of blockchain testing, improves the accuracy of test results, can locate performance bottlenecks or faulty nodes, reduces labor maintenance costs, and achieves resource optimization through negative feedback mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119988229A_ABST
    Figure CN119988229A_ABST
Patent Text Reader

Abstract

The invention aims to provide a one-stop negative feedback test system for a block chain. The system comprises a test module, a negative feedback acquisition module, a negative feedback analysis module and a visual display module, wherein the test module is used for carrying out an initialization test on a network of a distributed storage block chain, and customizing a corresponding increment test case according to a user demand; the negative feedback acquisition module is used for acquiring performance data and abnormal logs of each node and performing preliminary analysis through edge calculation; the negative feedback analysis module is used for re-analyzing the abnormal data obtained by the preliminary analysis and positioning an abnormal point; and the visual display module is used for automatically generating a visual chart of a test result and generating a visual chart of an analysis result in the negative feedback analysis module. Therefore, automatic testing can be achieved, and the purpose of resource optimization is achieved through self-adaptive adjustment of a negative feedback mechanism.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain, and in particular to a one-stop negative feedback testing system for blockchain. Background Art

[0002] In order to continuously improve the service performance of blockchain, blockchain-related R&D personnel often need to iteratively update the underlying blockchain code; therefore, there is a need to test the blockchain performance corresponding to the revised code. Most of the related technologies require R&D personnel, operation and maintenance personnel, and testers to collaborate and manually transfer workflows in order to smoothly connect each link to realize the entire test process, and the degree of automation is low; at the same time, during the test process, there are mostly changes in the test environment or network, resulting in inaccurate test results.

[0003] Blockchain testing technology has not kept up with the development of blockchain technology. Blockchain testing is very different from traditional software testing. For example, blockchain has tests between nodes and Byzantine faults, which leads to the inability to use traditional software testing tools or methods for blockchain testing. It has poor flexibility and cannot implement performance stress testing of a large number of nodes. In addition, the cost of blockchain development is very high. Summary of the invention

[0004] One purpose of this application is to provide a one-stop negative feedback testing system for blockchain to solve the problem of inaccurate test results and inability to locate bottlenecks or fault points in the prior art.

[0005] According to one aspect of the present application, a system for quickly terminating blocks based on a consensus algorithm is provided, the system comprising: a testing module, a negative feedback collection module, a negative feedback analysis module and a visual display module; wherein:

[0006] The test module is used to perform initialization testing on the distributed storage blockchain network and customize corresponding incremental test cases according to user needs;

[0007] The negative feedback collection module is used to collect performance data and abnormal logs of each node and perform preliminary analysis through edge computing;

[0008] The negative feedback analysis module is used to re-analyze the abnormal data obtained from the preliminary analysis and locate the abnormal points;

[0009] The visualization display module is used to automatically generate visualization charts of test results and generate visualization charts of analysis results in the negative feedback analysis module.

[0010] Optionally, the system includes a configuration module for allowing a user to customize parameter configuration of a distributed storage blockchain, wherein the parameters include node addresses, storage shard allocation strategies, and bandwidth limitations.

[0011] Optionally, the system includes an optimization suggestion module and an iterative testing module, wherein the optimization suggestion module is used to automatically generate optimization suggestions based on the analysis results in the negative feedback analysis module and push them to the administrator interface; the iterative testing module is used to apply the optimization suggestions to the test environment.

[0012] Optionally, the system includes a monitoring alarm module, which is used to send real-time alarm notifications for abnormalities found in the test module, the negative feedback collection module and the negative feedback analysis module.

[0013] Optionally, the negative feedback analysis module is used to obtain performance indicators and abnormal log data of each node through the negative feedback collection module, preprocess the performance indicators and abnormal log data, generate a multidimensional feature vector, and perform feature extraction and analysis on the multidimensional feature vector to locate the performance bottleneck point or fault node.

[0014] Optionally, the negative feedback analysis module is used to compare and analyze the data obtained after feature extraction with historical normal status data and real-time monitoring data to determine the operating status of each node. When an abnormal node is detected, the data flow information of the upstream and downstream nodes of the abnormal node is tracked according to the topological relationship of the abnormal node to locate the performance bottleneck or faulty node.

[0015] Optionally, the negative feedback analysis module is used to generate a diagnostic report, wherein the diagnostic report includes the abnormal object, the abnormal type, the time when the problem occurred and the duration, historical data comparison and impact assessment.

[0016] Optionally, the negative feedback analysis module includes a negative feedback adjustment unit, which is used to generate an adjustment strategy based on the positioning result after the performance bottleneck point or fault node is located in the negative feedback analysis module, wherein the adjustment strategy includes load adjustment, storage strategy optimization and network configuration optimization.

[0017] Optionally, the negative feedback regulation unit is used to monitor the operation status of the node in real time, record the effect of regulation and compare and analyze it with historical data.

[0018] Compared with the prior art, the present application provides a system for quickly terminating blocks based on a consensus algorithm, the system comprising: a test module, a negative feedback collection module, a negative feedback analysis module and a visual display module; wherein the test module is used to perform an initialization test on the network of a distributed storage blockchain, and customize the corresponding incremental test cases according to user needs; the negative feedback collection module is used to collect the performance data and abnormal logs of each node, and perform a preliminary analysis through edge computing; the negative feedback analysis module is used to re-analyze the abnormal data obtained from the preliminary analysis and locate the abnormal point; the visual display module is used to automatically generate a visual chart of the test results and generate a visual chart of the analysis results in the negative feedback analysis module. Thus, automated testing can be achieved, and the negative feedback mechanism can be used to adaptively adjust to achieve the purpose of resource optimization, and new automated use cases can be iteratively generated, greatly reducing the cost of human maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0020] Figure 1 A schematic diagram showing the structure of a system for quickly finalizing blocks based on a consensus algorithm according to one aspect of the present application is shown;

[0021] Figure 2 A schematic diagram showing a process of a one-stop negative feedback test for a distributed storage blockchain in a specific embodiment of the present application is shown;

[0022] Figure 3 A schematic diagram of the framework architecture of a system for one-stop negative feedback testing of a distributed storage blockchain in one embodiment of the present application is shown.

[0023] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0024] The present application is described in further detail below in conjunction with the accompanying drawings.

[0025] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (eg, a central processing unit (CPU)), an input / output interface, a network interface and a memory.

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

[0027] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, Phase-Change RAM (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of random access memory (RAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0028] Figure 1 A structural schematic diagram of a system for quickly terminating blocks based on a consensus algorithm provided according to one aspect of the present application is shown, the system comprising: a test module 100, a negative feedback collection module 200, a negative feedback analysis module 300 and a visualization module 400; wherein the test module 100 is used to perform an initialization test on the network of a distributed storage blockchain, and customize the corresponding incremental test cases according to user needs; the negative feedback collection module 200 is used to collect performance data and abnormal logs of each node, and perform preliminary analysis through edge computing; the negative feedback analysis module 300 is used to re-analyze the abnormal data obtained from the preliminary analysis and locate the abnormal point; the visualization module 400 is used to automatically generate a visualization chart of the test results and generate a visualization chart of the analysis results in the negative feedback analysis module.

[0029] The system provided in this application is a system for full-process negative feedback testing of distributed storage blockchains, providing a one-stop solution from deployment to data collection, analysis and feedback optimization. Among them, the test module 100 is an automated test module, which performs initial testing on the distributed storage network through a deeply customized automated tool chain, including testing of key indicators such as storage performance, latency, and availability, and can customize corresponding incremental test cases according to user needs. Among them, the deeply customized automated tool chain can complete the framework of blockchains compatible with most distributed storage on the market. The automated tool chain is a secondary developed CI or CD tool, including GoConvey and ChaosBlade chaos framework. When conducting preliminary automated testing, GoConvey is used to complete the testing of conventional functional use cases, the ChaosBlade chaos framework is used to test chaos scenarios, and the corresponding performance engine is used to test common performance scenarios. The system provides addable test case scenarios in three dimensions: function, chaos, and performance. Users can define the use cases to be customized on the page using pseudocode. During the test process, the system will convert the pseudocode into corresponding scenario use cases for operation. For example, if the user's storage chain is a privacy chain with zero-knowledge proof, then corresponding test cases for verifying zero-knowledge proof can be added.

[0030] The negative feedback collection module collects performance data and abnormal logs of each node during network operation, such as storage speed, failure rate, data loss rate, etc., and performs preliminary analysis through edge computing. Among them, edge computing refers to completing use cases that can be calculated and analyzed locally locally, minimizing the transmission of data to other modules to improve the network efficiency of the entire system. The negative feedback analysis module is based on analyzing the collected abnormal data to locate abnormal points, which include performance bottlenecks or potential failure points. The visualization display module is used to automatically generate visual charts of test results and negative feedback analysis, supporting data display in different dimensions, such as regional distribution, performance trends, etc., and can be exported as reports.

[0031] In some embodiments of the present application, the system includes a configuration module for allowing users to customize the parameter configuration of the distributed storage blockchain, wherein the parameters include node addresses, storage shard allocation strategies, and bandwidth limits. Here, the system includes a configuration module (not shown), which allows users to customize the parameter configuration of the distributed storage blockchain, wherein the parameters include node addresses, storage shard allocation strategies, bandwidth limits, etc., and supports common blockchain storage protocols, such as IPFS, Filecoin, etc.

[0032] In some embodiments of the present application, the system includes an optimization suggestion module and an iterative test module, wherein the optimization suggestion module is used to automatically generate optimization suggestions based on the analysis results in the negative feedback analysis module and push them to the administrator interface; the iterative test module is used to apply the optimization suggestions to the test environment. Here, the system also includes an optimization suggestion module (not shown) and an iterative test module (not shown), the optimization suggestion module automatically generates optimization suggestions based on the negative feedback analysis results, and the optimization suggestions include adjusting the sharding strategy, replacing node hardware, etc.; and pushes them to the administrator interface. The iterative test module applies the optimization suggestions to the test environment, and some of them can automatically generate new test cases to add to the next round of test cycles and verify the improvement effects, update the storage network configuration, etc.; for example, for test scenarios with specific preconditions, running steps, and fixed results that can be judged during the test process, the automated generation part will extract them to generate new test cases.

[0033] In some embodiments of the present application, the system includes a monitoring and alarm module, which is used to send real-time alarm notifications for abnormalities found in the test module, negative feedback collection module, and negative feedback analysis module. Here, the system includes a monitoring and alarm module (not shown), which is a module for alarm and notification, and sends real-time alarms for major problems found in the test process and negative feedback analysis, such as node failures, data loss, etc.; it supports multiple notification methods, such as email, SMS, etc.

[0034] Figure 2 A flow chart of a one-stop negative feedback test for a distributed storage blockchain in a specific embodiment of the present application is shown, wherein the system configuration module first performs parameter configuration, the automation function module is a test module, which is used for initialization testing, and is compatible with most distributed storage blockchains through automated testing tools and solves the problems of complex initialization deployment and related basic testing; the data acquisition module is a negative feedback acquisition module, which is used to collect performance data and abnormal logs of each node, and the negative feedback analysis module analyzes the data collected by the data acquisition module, and through real-time acquisition and analysis, the multi-node collaborative control mechanism is used to complete the negative feedback adjustment, and the adaptive adjustment is completed to achieve the purpose of resource optimization. Through the optimization suggestion module, optimization suggestions are made, and new test cases are generated through the iterative test module to enter the automated test module for testing; based on negative feedback, automated optimization suggestions are provided, and new problems are automatically iterated and the test content is updated, and new automated cases are generated to greatly reduce the cost of human maintenance. The visual monitoring module displays the analysis results in the negative feedback analysis module and the optimization suggestions in the optimization suggestion module in a visual chart, and the monitoring and alarm module monitors the entire test process. When an abnormal problem occurs and reaches the corresponding threshold, it is judged that a major problem has occurred, and an alarm notification is sent.

[0035] In some embodiments of the present application, the negative feedback analysis module is used to obtain the performance indicators and abnormal log data of each node through the negative feedback acquisition module, pre-process the performance indicators and abnormal log data, generate a multi-dimensional feature vector, and perform feature extraction and analysis on the multi-dimensional feature vector to locate the performance bottleneck point or the faulty node. Specifically, the negative feedback analysis module is used to compare and analyze the data obtained after feature extraction with the historical normal state data and the real-time monitoring data to determine the operating status of each node. When an abnormal node is detected, the data flow information of the upstream and downstream nodes of the abnormal node is tracked according to the topological relationship of the abnormal node to locate the performance bottleneck point or the faulty node.

[0036] The negative feedback analysis module locates performance bottlenecks or potential fault points based on the analysis of the collected abnormal data. The positioning method is to obtain the performance indicators and abnormal log data of each node in real time through the front-end collection module. Among them, performance indicators include storage read and write speed, network delay, CPU and memory utilization, etc.; abnormal log data includes node response timeout, connection disconnection, data loss, etc. After preprocessing the acquired collected data, a multi-dimensional feature vector is automatically generated, and each data is uniquely labeled (such as node ID, timestamp and abnormal type); feature extraction and abnormality detection are performed through the anomaly detection model, and the operating status of each node is analyzed by combining historical normal status data and real-time monitoring data. When an anomaly is detected, the data flow of its upstream and downstream nodes is further tracked according to the topological relationship of the node, and finally the specific bottleneck point or fault node is located.

[0037] Continuing with the above embodiment, the negative feedback analysis module is used to generate a diagnostic report, wherein the diagnostic report includes the abnormal object, the abnormal type, the time and duration of the problem, the historical data comparison and the impact assessment. Here, when a specific bottleneck point or fault node is located, a diagnostic report is generated, which includes the abnormal object (node ​​or storage shard), the abnormal type (such as "too high delay" or "data loss"), the time and duration of the problem, the historical data comparison and the impact assessment.

[0038] In some embodiments of the present application, the negative feedback analysis module includes a negative feedback adjustment unit, which is used to generate an adjustment strategy through the positioning results after the performance bottleneck point or faulty node is located in the negative feedback analysis module, wherein the adjustment strategy includes load adjustment, storage strategy optimization and network configuration optimization. Here, the negative feedback process is triggered by abnormal response: when the performance bottleneck is located, the system will trigger the negative feedback adjustment process through an event-driven mechanism. The event contains the specific information of the faulty node (such as node ID and abnormality type); according to the positioning results, the adjustment strategy is generated through the following steps: Step 1, load adjustment: dynamically reduce the load of the abnormal node and temporarily transfer some tasks to the healthy node; Step 2, storage strategy optimization: reallocate data shards, increase redundant storage or adjust the shard position; Step 3, network configuration optimization: adjust the communication strategy between the abnormal node and its upstream / downstream nodes in response to network delay problems.

[0039] Continuing with the above embodiment, the negative feedback adjustment unit is used to monitor the operating status of the node in real time, record the effect of the adjustment and compare and analyze it with historical data. Here, the distributed task scheduling system is used to adjust the task allocation between nodes, and the storage shard management module is called to reallocate data; adjust the priority and bandwidth allocation of network communications. Dynamic monitoring and backtracking: After the adjustment is completed, the system will monitor the node status in real time, record the effect of the adjustment and compare and analyze it with historical data; if the problem is not completely alleviated, it will further optimize the adjustment strategy or trigger administrator intervention. Through the above process, the negative feedback analysis module realizes intelligent diagnosis and automatic optimization of abnormalities, and provides efficient adaptive adjustment capabilities for distributed storage networks.

[0040] Figure 3 A schematic diagram of the framework architecture of a system for one-stop negative feedback testing of distributed storage blockchains in one embodiment of the present application is shown, wherein the system adopts a layered architecture, including an operating environment layer, a data layer, a service layer, and a presentation layer. One-stop testing is achieved through the cooperation between modules in each layer; wherein the operating environment layer provides basic support, including tools such as Linux and Golang; the data layer uses MySQL and Redis for data storage and caching; the service layer includes functional modules such as monitoring alarms, data analysis, and automated testing; and the presentation layer provides user interaction functions such as emails, text messages, and front-end displays. The overall design is modularized to facilitate system expansion and maintainability.

[0041] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0042] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0043] In addition, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. The program instruction for calling the method of the present application may be stored in a fixed or removable recording medium, and / or transmitted through a data stream in a broadcast or other signal-bearing medium, and / or stored in a working memory of a computer device that runs according to the program instruction. Here, according to an embodiment of the present application, a device is included, the device including a memory for storing computer program instructions and a processor for executing program instructions, wherein, when the computer program instruction is executed by the processor, the device is triggered to run the method and / or technical solution based on the aforementioned multiple embodiments according to the present application.

[0044] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A one-stop negative feedback testing system for blockchain, characterized in that: The system includes: a test module, a negative feedback collection module, a negative feedback analysis module and a visual display module; wherein, The test module is used to perform initialization testing on the distributed storage blockchain network and customize corresponding incremental test cases according to user needs; The negative feedback collection module is used to collect performance data and abnormal logs of each node and perform preliminary analysis through edge computing; The negative feedback analysis module is used to re-analyze the abnormal data obtained from the preliminary analysis and locate the abnormal points; The visualization display module is used to automatically generate visualization charts of test results and generate visualization charts of analysis results in the negative feedback analysis module.

2. The system according to claim 1, characterized in that The system includes a configuration module for allowing users to customize parameter configurations of a distributed storage blockchain, wherein the parameters include node addresses, storage shard allocation strategies, and bandwidth limits.

3. The system according to claim 1, characterized in that The system includes an optimization suggestion module and an iterative testing module, wherein the optimization suggestion module is used to automatically generate optimization suggestions according to the analysis results in the negative feedback analysis module and push them to the administrator interface; the iterative testing module is used to apply the optimization suggestions to the test environment.

4. The system according to claim 1, characterized in that The system includes a monitoring alarm module, which is used to send real-time alarm notifications for abnormalities found in the test module, the negative feedback collection module and the negative feedback analysis module.

5. The system according to claim 1, characterized in that The negative feedback analysis module is used to obtain the performance indicators and abnormal log data of each node through the negative feedback collection module, pre-process the performance indicators and abnormal log data, generate a multi-dimensional feature vector, and perform feature extraction and analysis on the multi-dimensional feature vector to locate the performance bottleneck point or fault node.

6. The system according to claim 5, characterized in that The negative feedback analysis module is used to compare and analyze the data obtained after feature extraction with the historical normal state data and real-time monitoring data to determine the operating status of each node. When an abnormal node is detected, the data flow information of the upstream and downstream nodes of the abnormal node is tracked according to the topological relationship of the abnormal node to locate the performance bottleneck point or faulty node.

7. The system according to claim 5, characterized in that The negative feedback analysis module is used to generate a diagnostic report, wherein the diagnostic report includes the abnormal object, the abnormal type, the time when the problem occurred and the duration, historical data comparison and impact assessment.

8. The system according to claim 5 or 6, characterized in that: The negative feedback analysis module includes a negative feedback adjustment unit, which is used to generate an adjustment strategy based on the positioning result after the performance bottleneck point or fault node is located in the negative feedback analysis module, wherein the adjustment strategy includes load adjustment, storage strategy optimization and network configuration optimization.

9. The system according to claim 8, characterized in that The negative feedback regulation unit is used to monitor the operation status of the node in real time, record the effect of regulation and compare and analyze it with historical data.