Computing power network processing method, device, equipment and storage medium
The method improves computing power network service quality and stability by implementing detection-based supervision and double protection mechanisms to prevent cheating among nodes, enhancing the reliability of computing power transactions.
Patent Information
- Application Number
- CN202111210942.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-18
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-10-18
AI Technical Summary
Existing computing power network processing methods fail to effectively supervise the quality of computing power services, leading to poor service quality and stability in the network.
A method involving computing power nodes that broadcast requests and responses, perform detection of task images by multiple nodes, and make decisions based on detection results to ensure service quality and stability, including double protection mechanisms to prevent cheating.
Enhances service quality and stability by accurately supervising computing power service nodes, preventing cheating, and ensuring reliable computing power transactions.
Smart Images

Figure CN113900837B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a computing power network processing method, device, equipment and storage medium. Background Art
[0002] With the continuous development and maturity of new network services and applications, cloud computing, edge computing, and intelligent terminal devices have developed rapidly, and computing resources have shown a trend of ubiquitous deployment. How to efficiently and collaboratively utilize these ubiquitous computing resources has become an important new research topic in the current network field. In this context, the concept of Computing First Network (CFN) was proposed and attracted widespread attention. Its basic idea is to deeply integrate computing power and network, coordinate distributed computing resources, improve the utilization of computing resources, and improve users' network service experience.
[0003] As a new type of service, the computing power network aims to establish a supply and demand relationship between computing power requesters and computing power providers. The computing power requesters do not need to purchase a large amount of hardware facilities to complete computing tasks, thereby saving certain costs. The computing power providers can use the surplus computing power in a time-division multiplexing manner and obtain corresponding benefits. At present, in distributed scenarios, computing power providers directly provide resources to computing power requesters, or build a computing power network architecture based on blockchain. On the basis of the original computing power network platform, a centralized scheduling organization, the public chain structure of the blockchain is modified to a consortium chain structure.
[0004] However, the existing computing power network processing methods cannot effectively supervise the quality of computing power services, and the service quality and stability of the computing power network are poor. Summary of the invention
[0005] The present application provides a computing power network processing method, device, equipment and storage medium, so as to solve the technical problems that the computing power network processing method in the prior art cannot effectively supervise the computing power service quality and the service quality and stability of the computing power network are poor.
[0006] In a first aspect, the present application provides a computing power network processing method, comprising:
[0007] Obtaining a computing power request broadcasted by a computing power delegation node, wherein the computing power request includes a computing power task and a task image;
[0008] If it is determined that the computing power request meets the undertaking conditions, a reply message to the computing power request is broadcast, wherein the reply message includes a service quotation;
[0009] Receiving the selection confirmation information broadcasted by the computing power entrusting node, and if it is determined that the computing power entrusting node is selected as the computing power service node, obtaining the address of the task image according to the selection confirmation information;
[0010] Pull the task image and run it, and obtain the detection results of the task image broadcasted by multiple detection nodes;
[0011] Determine whether to execute the computing task based on the detection result.
[0012] Here, the present application provides a computing power network processing method for a computing power service node, i.e., a computing power provider side. After receiving the computing power request broadcasted by the computing power entrusting node, it decides whether to undertake the computing power task carried in the computing power request based on its own processing capacity. If it can undertake the task, it broadcasts a reply to the entrusting node, including its own service quotation, and receives the selection confirmation information broadcasted by the computing power entrusting node. If it is determined that it is selected as the computing power service node based on the selection confirmation information, it pulls the task image and deploys it for operation. At the same time, it accepts the detection of the task runner and the computing power test code in the image by multiple detection nodes, and determines whether to execute the computing power task based on the detection results, thereby effectively ensuring the service quality between the computing power entrusting node and the computing power service node, preventing the computing power service node from cheating in the process of providing computing power, realizing effective supervision of the service quality of the computing power provider, improving the computing power service quality, and ensuring the stability of the computing power network.
[0013] Optionally, determining whether to execute the computing task according to the detection result includes:
[0014] If the detection result is a ratio of the number of detections passed to the total number of detection results, which is greater than a first preset ratio, the computing task is executed.
[0015] Among them, when determining whether a computing power service node is capable of executing a computing power task, the present application can only begin to execute the computing power task when more than half of the nodes participating in the test have passed the test. By making judgments based on multiple test results, the final judgment result can be more accurate, and the service quality of the computing power service node can be judged and supervised more accurately, further improving the service quality of the computing power network.
[0016] Optionally, after executing the computing task, the method further includes:
[0017] The computing task execution result is sent to the computing task entrusting node, and the task completion information is broadcast.
[0018] Here, after completing the computing task, the computing service node in this application sends the computing task execution result to the computing entrusting node, and broadcasts the task completion information at the same time to inform each node to perform subsequent operations, thereby further improving the computing service quality.
[0019] Optionally, after broadcasting the task completion information, the method further includes:
[0020] If the abnormal information broadcast by the detection node is received, it is determined that the computing power entrusting node is abnormal.
[0021] Here, after the execution of the computing power task is completed, the present application can also receive the abnormal information broadcast by the detection node to determine whether there is an abnormality in the computing power delegation node. The detection node can verify the task runner and computing power test code in the computing power delegation node image after the task is completed to ensure that the computing power delegation node will not create malicious images to create false information that the computing power service node is cheating. The double protection improves the stability and service quality of the computing power network.
[0022] In a second aspect, the present application provides a computing power network processing method, including:
[0023] Broadcasting a computing power request, wherein the computing power request includes a computing power task and a task image;
[0024] Receiving reply information to the computing power request broadcasted by multiple nodes, wherein the reply information includes a service quotation;
[0025] According to the reply information, the multiple nodes are screened to determine the computing service node to which the computing task is delegated;
[0026] Generate selection confirmation information according to the computing power service node, and broadcast the selection confirmation information;
[0027] A detection result of the task image broadcast by a detection node is received, and the detection result is used by the computing power service node to determine whether to execute the computing power task.
[0028] Here, the present application provides a computing power network processing method for a computing power delegation node, i.e., the computing power demander side. The computing power delegation node broadcasts its own computing power request so that the service node in the network can determine whether it can undertake the computing power task based on the computing power request. The computing power request includes a task image, which can be detected and a suitable computing power service node can be selected. The selection confirmation information generated by the computing power service node is broadcast so that the computing power service node and other nodes can make a determination, and at the same time receive the detection results of the computing power service node task image broadcast by the detection node to ensure that the computing power service node performs the computing power task stably, effectively, and reliably, thereby effectively ensuring the service quality between the computing power delegation node and the computing power service node, preventing the computing power service node from cheating in the process of providing computing power, realizing effective supervision of the service quality of the computing power provider, improving the computing power service quality, and ensuring the stability of the computing power network.
[0029] Optionally, after the receiving detection result of the task image broadcasted by the detection node, the method further includes:
[0030] If the detection result is passed, after receiving the computing task execution result sent by the computing power service node, a request for pulling the executed task image is sent, and the request for pulling the executed task image is used to request the computing power service node to pull the executed task image.
[0031] Here, the computing power delegation node in this application can send a request to pull the task image after the task is completed, thereby realizing the entire computing power transaction process.
[0032] In a third aspect, the present application provides a computing power network processing method, including:
[0033] Obtaining a computing power request broadcasted by a computing power delegation node, wherein the computing power request includes a computing power task and a task image;
[0034] After receiving the selection confirmation information broadcast by the computing power entrusting node, determining the computing power service node according to the selection confirmation information, and pulling the task image in the computing power service node;
[0035] Perform detection based on the task image in the computing power request and the task image in the computing power service node to determine whether the task runner and computing power test code of the task image in the computing power service node are abnormal;
[0036] The detection result is broadcasted, and the detection result is used by the computing power service node to determine whether to execute the computing power task.
[0037] Here, the detection node of the present application can detect and supervise the image in the computing power entrusting node, thereby realizing the supervision of the computing power service process and ensuring that the computing power service node will not cheat in the process of providing computing power.
[0038] Optionally, after broadcasting the detection result, the method further includes:
[0039] After receiving the task completion information broadcasted by the computing power service node, pull the task image in the computing power entrusting node and perform detection;
[0040] If an abnormality is detected, the abnormal information is broadcast.
[0041] Among them, this application can verify the task runner and computing power test code in the computing power delegation node image after the computing power service node completes the computing power task, to ensure that the computing power delegation node will not create malicious images to create false information that the service node is cheating, and further ensure the stability and service quality of the computing power network.
[0042] In a fourth aspect, the present application provides a computing power network processing device, including:
[0043] A first acquisition module is used to acquire a computing power request broadcasted by a computing power delegation node, wherein the computing power request includes a computing power task and a task image;
[0044] A first processing module, configured to broadcast a response message to the computing power request if it is determined that the computing power request satisfies the undertaking condition, wherein the response message includes a service quotation;
[0045] A second processing module is used to receive the selection confirmation information broadcasted by the computing power entrusting node, and if it is determined that the computing power entrusting node is selected as the computing power service node, obtain the address of the task image according to the selection confirmation information;
[0046] A third processing module is used to pull the task image and run it, and obtain the detection results of the task image broadcasted by multiple detection nodes;
[0047] The first determination module is used to determine whether to execute the computing task according to the detection result.
[0048] Optionally, the first determining module is specifically configured to:
[0049] If the detection result is a ratio of the number of detections passed to the total number of detection results, which is greater than a first preset ratio, the computing task is executed.
[0050] Optionally, after the first determining module executes the computing task, the apparatus further includes:
[0051] The sending module is used to send the computing task execution result to the computing task entrusting node and broadcast the task completion information.
[0052] Optionally, after the sending module broadcasts the task completion information, the device further includes:
[0053] The third determination module is used to determine that the computing power entrusting node is abnormal if the abnormal information broadcast by the detection node is received.
[0054] In a fifth aspect, the present application provides a computing power network processing device, including:
[0055] A first broadcast module, configured to broadcast a computing power request, wherein the computing power request includes a computing power task and a task image;
[0056] A first receiving module, configured to receive reply information to the computing power request broadcasted by multiple nodes, wherein the reply information includes a service quotation;
[0057] A fourth processing module, configured to screen the multiple nodes according to the reply information, and determine a computing service node to entrust the computing task;
[0058] A fifth processing module, configured to generate selection confirmation information according to the computing power service node, and broadcast the selection confirmation information;
[0059] The second receiving module is used to receive the detection result of the task image broadcast by the detection node, and the detection result is used by the computing power service node to determine whether to execute the computing power task.
[0060] Optionally, after the second receiving module receives the detection result of the task image broadcasted by the detection node, the apparatus further includes:
[0061] The second sending module is used to send a request for pulling the task image after execution if the detection result is passed, after receiving the computing task execution result sent by the computing power service node, wherein the request for pulling the task image after execution is used to request the computing power service node to pull the task image after execution.
[0062] In a sixth aspect, the present application provides a computing power network processing device, including:
[0063] A second acquisition module is used to acquire a computing power request broadcasted by a computing power entrusting node, wherein the computing power request includes a computing power task and a task image;
[0064] A sixth processing module is used to determine the computing power service node according to the selection confirmation information after receiving the selection confirmation information broadcast by the computing power entrusting node, and pull the task image in the computing power service node;
[0065] A second determination module is used to detect according to the task image in the computing power request and the task image in the computing power service node, and determine whether the task runner and the computing power test code of the task image in the computing power service node are abnormal;
[0066] The second broadcast module is used to broadcast the detection result, and the detection result is used by the computing power service node to determine whether to execute the computing power task.
[0067] Optionally, after the second broadcasting module broadcasts the detection result, the apparatus further includes:
[0068] The seventh processing module is used to pull the task image in the computing power entrusting node and perform detection after receiving the task completion information broadcast by the computing power service node; if the detection is abnormal, the abnormal information is broadcast.
[0069] In a seventh aspect, the present application provides a computing power network processing device, including: at least one processor and a memory;
[0070] The memory stores computer-executable instructions;
[0071] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the computing power network processing method described in the first aspect and various possible designs of the first aspect.
[0072] In an eighth aspect, the present application provides a computing power network processing device, including: at least one processor and a memory;
[0073] The memory stores computer-executable instructions;
[0074] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the computing power network processing method described in the second aspect and various possible designs of the second aspect.
[0075] In a ninth aspect, the present application provides a computing power network processing device, including: at least one processor and a memory;
[0076] The memory stores computer-executable instructions;
[0077] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the computing power network processing method described in the third aspect and various possible designs of the third aspect.
[0078] In a tenth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the computing power network processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0079] In the eleventh aspect, the present application provides a computer-readable storage medium, which stores computer execution instructions. When the processor executes the computer execution instructions, the computing power network processing method described in the second aspect and various possible designs of the second aspect is implemented.
[0080] In the twelfth aspect, the present application provides a computer-readable storage medium, which stores computer execution instructions. When the processor executes the computer execution instructions, the computing power network processing method described in the third aspect and various possible designs of the third aspect is implemented.
[0081] In a thirteenth aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the computing power network processing method described in the first aspect and various possible designs of the first aspect.
[0082] On the fourteenth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the computing power network processing method described in the second aspect and various possible designs of the second aspect.
[0083] In a fifteenth aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the computing power network processing method described in the third aspect and various possible designs of the third aspect.
[0084] In a sixteenth aspect, the present application provides a network processing system, including a computing power service node, a computing power delegation node, and at least one detection node;
[0085] The computing power service node is used to obtain the computing power request broadcasted by the computing power entrusting node, wherein the computing power request includes a computing power task and a task image; if it is determined that the computing power request meets the undertaking conditions, then the reply information to the computing power request is broadcasted, wherein the reply information includes a service quotation; receiving the selection confirmation information broadcasted by the computing power entrusting node, if it is determined that it is selected as the computing power service node by the computing power entrusting node, then obtaining the address of the task image according to the selection confirmation information; pulling the task image and running it, and obtaining the detection results of the task image broadcasted by multiple detection nodes; according to the detection results, determining whether to execute the computing power task;
[0086] The computing power entrusting node is used to broadcast computing power requests; receive reply information to the computing power requests broadcasted by multiple nodes; screen the multiple nodes according to the reply information to determine the computing power service node to entrust the computing power task; generate selection confirmation information according to the computing power service node, and broadcast the selection confirmation information; receive the detection result of the task image broadcasted by the detection node, and the detection result is used by the computing power service node to determine whether to execute the computing power task;
[0087] The detection node is used to obtain the computing power request broadcast by the computing power delegation node; after receiving the selection confirmation information broadcast by the computing power delegation node, determine the computing power service node according to the selection confirmation information, and pull the task image in the computing power service node; perform detection based on the task image in the computing power request and the task image in the computing power service node to determine whether the task runner and computing power test code of the task image in the computing power service node are abnormal; broadcast the detection result, and the detection result is used by the computing power service node to determine whether to execute the computing power task.
[0088] The present application provides a computing power network processing method, device, equipment and storage medium, wherein the computing power service node in the method, after receiving the computing power request broadcast by the computing power entrusting node, decides whether to undertake the computing power task carried in the computing power request based on its own processing capacity, and if it can undertake the task, broadcasts a reply to the entrusting node, the reply includes its own service quotation, and receives the selection confirmation information broadcast by the computing power entrusting node. If it is determined that it is selected as the computing power service node based on the selection confirmation information, then pull the task image and deploy it for operation, and at the same time accept the detection of the task runner and computing power test code in the image by multiple detection nodes, and determine whether to execute the computing power task based on the detection results, thereby effectively ensuring the service quality between the computing power entrusting node and the computing power service node, preventing the computing power service node from cheating in the process of providing computing power, realizing effective supervision of the service quality of the computing power provider, improving the computing power service quality, and ensuring the stability of the computing power network. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0090] Figure 1 A schematic diagram of a computing power network processing system architecture provided in an embodiment of the present application;
[0091] Figure 2A flowchart of a computing power network processing method provided in an embodiment of the present application;
[0092] Figure 3 A schematic diagram of the structure of a task image provided in an embodiment of the present application;
[0093] Figure 4 A flowchart of another computing power network processing method provided in an embodiment of the present application;
[0094] Figure 5 A flowchart of another computing power network processing method provided in an embodiment of the present application;
[0095] Figure 6 A schematic diagram of an interactive process of a computing power transaction process provided in an embodiment of the present application;
[0096] Figure 7 A schematic diagram of the structure of a computing power network processing device provided in an embodiment of the present application;
[0097] Figure 8 A schematic diagram of the structure of a computing power network processing device provided in an embodiment of the present application;
[0098] Fig. 9 A schematic diagram of the structure of another computing power network processing device provided in an embodiment of the present application;
[0099] Fig.10 A schematic diagram of the structure of another computing power network processing device provided in an embodiment of the present application.
[0100] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0101] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0102] The terms "first", "second", "third", and "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0103] Blockchain technology proposes a decentralized network structure, which uses consensus algorithms to ensure the consistency of each node in the network and publicly and reliably records the behavior of nodes in the network. Through cryptography technology, blockchain can realize anonymous interaction between nodes in the network, and through public key cryptography and signature technology, as well as traceable and unmodifiable ledgers, it can realize the reliable record of anonymous node behavior. Blockchain is divided into public chain, consortium chain and private chain, and the degree of openness is gradually reduced. As a new type of service, the public chain computing power network aims to establish a supply and demand relationship between computing power demanders and computing power providers. The computing power demanders do not need to purchase a large amount of hardware facilities to complete computing tasks, thereby saving certain costs. The computing power providers can use the surplus computing power in a time-division multiplexing manner and obtain corresponding benefits.
[0104] In the existing computing power network architecture using blockchain, all alliance chain technology is used to control the security and credibility of nodes through user registration and joining. The quality of computing power nodes is proved through a certain credit accumulation mechanism. The resource scheduling and work audit between demand nodes and computing power nodes are completed through the super node "computing power network platform" in the alliance chain. Container technology can package the computing power tasks that need to be run into standardized units for development, delivery and deployment. Container images are lightweight, independently run software packages that contain code and operating environment, which can get rid of external environment differences. Containers can be saved as images for storage and transmission. Containers can be deployed on container cloud platforms and uniformly scheduled and managed by container cloud platforms. In distributed scenarios, the service quality of computing power providers lacks supervision, and there is no way to monitor the counterfeiting and substitution of computing power nodes in the computing power service provision; the existing computing power network architecture based on blockchain has not fully utilized the characteristics of blockchain. It is just based on the original computing power network platform, a centralized scheduling organization, and it is modified into a alliance chain structure, which does not show the decentralized characteristics of blockchain. The credit information used in many schemes has no practical significance in the architecture with central nodes. The existing computing power network processing method cannot effectively supervise the quality of computing power services, and the service quality and stability of the computing power network are poor.
[0105] In order to solve the above problems, the embodiments of the present application provide a computing power network processing method, device, equipment and storage medium, wherein in the computing power network of the method, users entrust or undertake computing tasks in a certain way, the user's computing power tasks are encapsulated in the form of container images, the computing power provider deploys the container cloud platform to deploy the container, and provides computing power resources. The consensus process between nodes is completed through the blockchain. During the computing power service process, the computing power service process is supervised by detecting nodes.
[0106] Optional, Figure 1 A schematic diagram of a computing network processing system architecture provided in an embodiment of the present application, wherein the system architecture is a blockchain structure. Figure 1 The above architecture includes: a node management module 101, a node protection module 102, an image repository 103, a database 104 and a container cloud platform 105.
[0107] Optionally, the system is divided into two types of nodes: light nodes and full nodes. Light nodes only save the block information in the system operation to complete the consensus process. Full nodes need to deploy a unified container cloud platform to deploy computing task containers. Only full nodes can provide computing services. Light nodes can only delegate computing tasks to others. The node management module is responsible for the mutual communication between nodes and completes the consensus process between blocks. The image warehouse stores the images generated or pulled by the nodes. The database saves the data and blocks in the operation process. The container cloud platform does not need to be deployed on every node. Only service nodes need to provide a container cloud platform to deploy model training images to complete training.
[0108] The node protection module verifies the node module file before the node runs to ensure that the program is not tampered with, and checks whether there are any processes running in the host machine that may affect the operation of the node module during the program running.
[0109] When a new node joins the network, the node management module will broadcast the new node joining information, including the new node identity information. Other nodes that receive the information will send their own information to the new node and establish a point-to-point connection with the new node. The new node synchronizes all block data, begins to receive broadcast information in the network, and begins to participate in the consensus process.
[0110] In the implementation process of the embodiments of the present application, computing power nodes can be divided into computing power delegation nodes, computing power service nodes and detection nodes. The computing power delegation nodes provide computing power tasks and task images, and broadcast computing power requests in the network; the computing power service nodes are deployed with complete nodes, receive computing power requests and provide service detection; the detection nodes receive the interaction information between the delegation nodes and the service nodes, and jointly complete the consensus process.
[0111] There are two identities in the computing power network, computing power demanders and computing power providers. The computing power demanders, i.e., computing power entrusting nodes in the system, can provide computing power task images, and put computing power task codes into the basic image to form task images. The basic image includes a unified task runner and computing power test code. The computing power task code needs to be compiled and obfuscated to prevent information leakage in the code.
[0112] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the computing power network processing system architecture. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0113] It should be understood that the above method can be implemented by a processor reading instructions in a memory and executing the instructions, or it can be implemented by a chip circuit.
[0114] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0115] The technical solution of the present application is described in detail below in conjunction with specific embodiments:
[0116] Optionally, Figure 2 A flowchart of a computing network processing method provided in an embodiment of the present application. The execution subject of the embodiment of the present application may be a computing service node. Figure 2 As shown, the method comprises the following steps:
[0117] S201: Obtain the computing power request broadcast by the computing power delegation node.
[0118] The computing power request includes computing power tasks and task images.
[0119] Optionally, Figure 3 A schematic diagram of the structure of a task image provided in an embodiment of the present application, such as Figure 3 As shown in the figure, the task image includes task code, computing power test code and task runner. The computing power test code is a complex problem that is used uniformly and open source throughout the platform, such as hash collision. By running the computing power test code, the time to solve the problem is obtained. The computing power resources allocated to the container are inversely proportional to the solution time. The running time can be used to determine whether the resources meet certain standards. The task runner is started after the image is deployed, calling the computing power task program to complete tasks such as machine learning training, and randomly calling the computing power test code to verify whether the provider has allocated enough resources for the container operation. The container provides data exchange and status query interfaces to the outside through the runner, and broadcasts the test results to the outside after the test is completed.
[0120] Optionally, the computing power request includes computing power requirements, which include task image, data size, and the amount of computing power resources required, so that the service node can determine whether it can undertake the computing power task.
[0121] S202: If it is determined that the computing power request meets the undertaking conditions, a response message to the computing power request is broadcast.
[0122] Among them, the reply information includes service quotation.
[0123] Optionally, the service quotation here can be pre-set or can be a quotation determined based on the computing task. For example, the service quotation is determined based on the data size in the computing task and the amount of computing resources required.
[0124] Optionally, the conditions for undertaking the request are: comparing the data size and the number of computing resources that the system can undertake with the data size and the number of computing resources required in the computing task respectively; if both are greater than the data size and the number of computing resources required, it is determined that the computing request can be undertaken.
[0125] S203: Receive the selection confirmation information broadcast by the computing power entrusting node. If it is determined that the computing power entrusting node is selected as the computing power service node, obtain the address of the task image according to the selection confirmation information.
[0126] Among them, the selection confirmation information may include the identification information of the computing power service node.
[0127] Optionally, select to include the address of the task image in the confirmation information.
[0128] Optionally, the address of the task image is a public key address, and the user identity in the system is replaced by the public key address, which can effectively protect user privacy.
[0129] S204: Pull the task image and run it, and obtain the detection results of the task image broadcasted by multiple detection nodes.
[0130] Optionally, the detection result is obtained by the detection node through comparison detection of the task image in the current computing power service node and the task image in the computing power delegation node.
[0131] S205: Determine whether to execute the computing task based on the detection result.
[0132] Optionally, determining whether to execute the computing task is based on the detection result, including: if the detection result is a ratio of the number of detection passes to the total number of detection results, which is greater than a first preset ratio, then executing the computing task.
[0133] Among them, when determining whether a computing power service node is capable of executing a computing power task, the embodiment of the present application requires that more than half of the nodes participating in the test pass the test before the computing power task can be started. By making judgments based on multiple test results, the final judgment result can be more accurate, and the service quality of the computing power service node can be judged and supervised more accurately, further improving the service quality of the computing power network.
[0134] Optionally, after executing the computing task, it also includes: sending the computing task execution result to the computing task delegation node and broadcasting the task completion information.
[0135] Optionally, sending the computing task execution result to the computing power delegation node includes: establishing a separate communication method with the computing power delegation node, and sending the computing task execution result to the computing power delegation node through the separate communication method.
[0136] Among them, the nodes in the system are connected point-to-point, and the consensus information is transmitted by broadcasting between nodes. When transmitting images, the computing power entrusting node and the computing power service node will establish a separate channel for direct connection. When the system is running, adjacent nodes have direct contact, and the communication between nodes is realized through the forwarding of adjacent nodes. When the computing power entrusting node and the computing power service node generate transactions, they can establish a connection autonomously and transmit the task image, but whether the subsequent consensus process communication maintains this connection depends on the delay between the two nodes.
[0137] Optionally, the broadcast task completion information includes: broadcasting the signature of the task image request after the computing power delegation node pulls and executes it.
[0138] Here, after completing the computing task, the computing service node in the embodiment of the present application sends the computing task execution result to the computing delegation node, and broadcasts the task completion information at the same time to inform each node to perform subsequent operations, thereby further improving the computing service quality.
[0139] Optionally, after broadcasting the task completion information, it also includes: if abnormal information broadcast by the detection node is received, it is determined that the computing power delegation node is abnormal.
[0140] Here, after the execution of the computing power task is completed, the embodiment of the present application can also receive the abnormal information broadcast by the detection node to determine whether there is an abnormality in the computing power delegation node. The detection node can verify the task runner and computing power test code in the computing power delegation node image after the task is completed to ensure that the computing power delegation node will not create a malicious image to create false information that the computing power service node is cheating. The double protection improves the stability and service quality of the computing power network.
[0141] The integrity of the node will be checked before the node is run to ensure that the service node will not cheat in the process of providing computing power; after the computing power delegation node publishes the task image, the nodes willing to participate in the verification process will verify the task runner and computing power test code in the image to ensure that the delegation node will not create malicious images to create false information about the service node cheating. The above two points prevent the computing power service node from withholding resources and the computing power delegation node from disrupting the network operation. When the node protection module detects that the node is running abnormally, it broadcasts the abnormal information and stops the node from running. When the task image fails to pass the test, the image will not be deployed, and the previous computing power delegation process will be invalidated.
[0142] The embodiment of the present application provides a computing power network processing method for a computing power service node, i.e., a computing power provider side. After receiving a computing power request broadcasted by a computing power entrusting node, the computing power service node decides whether to undertake the computing power task carried in the computing power request based on its own processing capacity. If it can undertake the task, the computing power service node broadcasts a reply to the entrusting node, including its own service quotation, and receives selection confirmation information broadcasted by the computing power entrusting node. If it is determined that it is selected as a computing power service node based on the selection confirmation information, the task image is pulled and deployed for operation. At the same time, the node accepts detection of the task runner and computing power test code in the image by multiple detection nodes, and determines whether to execute the computing power task based on the detection results, thereby effectively ensuring the service quality between the computing power entrusting node and the computing power service node, preventing the computing power service node from cheating in the process of providing computing power, realizing effective supervision of the service quality of the computing power provider, improving the computing power service quality, and ensuring the stability of the computing power network.
[0143] Optionally, the embodiment of the present application provides a computing power network processing method of a computing power delegation node. Accordingly, Figure 4 A flowchart of another computing power network processing method provided in an embodiment of the present application, wherein the execution subject of the method is a computing power delegation node, such as Figure 4 As shown, the method includes:
[0144] S401: Broadcast computing power request.
[0145] The computing power request includes computing power tasks and task images.
[0146] S402: Receive response information to computing power requests broadcast by multiple nodes.
[0147] Among them, the reply information includes service quotation.
[0148] S403: Screen multiple nodes according to the reply information to determine the computing service node to which the computing task is delegated.
[0149] Optionally, a plurality of nodes may be screened based on their service quotations, and nodes with low service quotations may be selected as computing power service nodes.
[0150] S404: Generate selection confirmation information according to the computing power service node, and broadcast the selection confirmation information.
[0151] Optionally, the confirmation information is selected to include an identifier of the computing power service node.
[0152] S405: Receive the detection result of the task image broadcast by the detection node, and the detection result is used by the computing power service node to determine whether to execute the computing power task.
[0153] The detection nodes here are nodes other than the computing power service nodes.
[0154] Optionally, after receiving the detection result of the task image broadcast by the detection node, it also includes: if the detection result is that the detection passes, then after receiving the computing task execution result sent by the computing power service node, a request for pulling the executed task image is sent, and the request for pulling the executed task image is used to request the computing power service node to pull the executed task image.
[0155] Here, the computing power delegation node in the embodiment of the present application can send a request to pull the task image after the task is completed, thereby realizing the entire computing power transaction process.
[0156] The embodiment of the present application provides a computing power network processing method for a computing power delegation node, i.e., a computing power demander side. The computing power delegation node broadcasts its own computing power request so that the service node in the network can determine whether it can undertake the computing power task according to the computing power request. The computing power request includes a task image, which can be detected and a suitable computing power service node can be selected. The selection confirmation information generated by the computing power service node is broadcast so that the computing power service node and other nodes can make a determination, and at the same time, the detection result of the computing power service node task image broadcast by the detection node is received to ensure that the computing power service node performs the computing power task stably, effectively and reliably, thereby effectively ensuring the service quality between the computing power delegation node and the computing power service node, preventing the computing power service node from cheating in the process of providing computing power, realizing effective supervision of the service quality of the computing power provider, improving the computing power service quality, and ensuring the stability of the computing power network.
[0157] Optionally, the embodiment of the present application provides a method for processing computing power network of a detection node. Accordingly, Figure 5 A flowchart of another computing power network processing method provided in an embodiment of the present application is provided. The execution subject of the method is a detection node, such as Figure 5 As shown, the method includes:
[0158] S501: Obtain the computing power request broadcast by the computing power delegation node.
[0159] The computing power request includes computing power tasks and task images.
[0160] S502: After receiving the selection confirmation information broadcast by the computing power entrusting node, determine the computing power service node according to the selection confirmation information, and pull the task image in the computing power service node.
[0161] S503: Detect the task image in the computing power request and the task image in the computing power service node to determine whether the task runner and computing power test code of the task image in the computing power service node are abnormal.
[0162] Here, if the comparison result of the task image in the computing power request and the task image in the computing power service node is within the preset comparison threshold range, then the detection result is a pass. Among them, the preset comparison threshold here can be determined according to actual conditions, and the embodiment of the present application does not make specific restrictions on this.
[0163] S504: Broadcast the detection result.
[0164] The detection results are used by the computing service node to determine whether to execute the computing task.
[0165] Optionally, after broadcasting the detection results, it also includes: after receiving the task completion information broadcast by the computing power service node, pulling the task image in the computing power delegation node and performing detection; if the detection is abnormal, broadcasting the abnormal information.
[0166] Here, the task runner and computing power test code in the image will be verified to ensure that the delegated node will not create a malicious image to create false information that the service node is cheating.
[0167] Among them, the embodiment of the present application can verify the task runner and computing power test code in the computing power delegation node image after the computing power service node completes the computing power task, to ensure that the computing power delegation node will not create a malicious image to create false information that the service node is cheating, and further ensure the stability and service quality of the computing power network.
[0168] The detection node of the embodiment of the present application can detect and supervise the mirror in the computing power entrusting node, thereby realizing the supervision of the computing power service process and ensuring that the computing power service node does not cheat in the process of providing computing power.
[0169] The present application also provides a network processing system. Figure 6 A schematic diagram of an interactive process of a computing power transaction process provided in an embodiment of the present application, Figure 6 It includes computing power service nodes, computing power delegation nodes and detection nodes.
[0170] During the specific implementation process, the system includes multiple detection nodes.
[0171] The computing power service node is used to obtain the computing power request broadcasted by the computing power entrusting node, wherein the computing power request includes the computing power task and the task image; if it is determined that the computing power request meets the undertaking conditions, the reply information to the computing power request is broadcasted, wherein the reply information includes the service quotation; the selection confirmation information broadcasted by the computing power entrusting node is received, and if it is determined that the computing power entrusting node is selected as the computing power service node, the address of the task image is obtained according to the selection confirmation information; the task image is pulled and run, and the detection results of the task image broadcasted by multiple detection nodes are obtained; according to the detection results, it is determined whether to execute the computing power task;
[0172] The computing power entrusting node is used to broadcast computing power requests; receive reply information to computing power requests broadcast by multiple nodes; screen multiple nodes according to the reply information to determine the computing power service node to entrust the computing power task; generate selection confirmation information according to the computing power service node, and broadcast the selection confirmation information; receive the detection result of the task image broadcast by the detection node, and the detection result is used by the computing power service node to determine whether to execute the computing power task;
[0173] The detection node is used to obtain the computing power request broadcast by the computing power delegation node; after receiving the selection confirmation information broadcast by the computing power delegation node, the computing power service node is determined according to the selection confirmation information, and the task image in the computing power service node is pulled; according to the task image in the computing power request and the task image in the computing power service node, a detection is performed to determine whether the task runner and computing power test code of the task image in the computing power service node are abnormal; the detection result is broadcast, and the detection result is used by the computing power service node to determine whether to execute the computing power task.
[0174] Among them, the computing network system adopts the public chain blockchain model. Due to the free joining mechanism of the public chain, a stricter consensus mechanism is required to allow participants to bind their interests with the blockchain system in order to maintain the healthy operation of the distributed system. The mirror verification mechanism adopted by this system can be regarded as a proof-of-work method that consumes storage resources. At the same time, the system also sets up a credit mechanism. Newly joined nodes can only participate in the consensus process. After completing the consensus many times, they can increase their authority and become delegated nodes. As there is no abnormal behavior in the system, you can increase your authority in the system.
[0175] Figure 7 A schematic diagram of the structure of a computing power network processing device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the device of the embodiment of the present application includes: a first acquisition module 701, a first processing module 702, a second processing module 703, a third processing module 704 and a first determination module 705. The computing network processing device here can be a server or a chip or integrated circuit that implements the function of the server. It should be noted here that the division of the first acquisition module 701, the first processing module 702, the second processing module 703, the third processing module 704 and the first determination module 705 is only a division of logical functions. Physically, the two can be integrated or independent.
[0176] The first acquisition module is used to acquire the computing power request broadcasted by the computing power entrusting node, wherein the computing power request includes a computing power task and a task image;
[0177] A first processing module is configured to broadcast a response message to the computing power request if it is determined that the computing power request satisfies the undertaking condition, wherein the response message includes a service quotation;
[0178] The second processing module is used to receive the selection confirmation information broadcast by the computing power entrusting node, and if it is determined that the computing power entrusting node is selected as the computing power service node, the address of the task image is obtained according to the selection confirmation information;
[0179] The third processing module is used to pull the task image and run it, and obtain the detection results of the task image broadcast by multiple detection nodes;
[0180] The first determination module is used to determine whether to execute the computing task according to the detection result.
[0181] Optionally, the first determining module is specifically configured to:
[0182] If the test result is a ratio of the number of passed tests to the total number of test results, which is greater than a first preset ratio, the computing task is executed.
[0183] Optionally, after the first determination module executes the computing task, the apparatus further includes:
[0184] The sending module is used to send the computing task execution results to the computing power delegation node and broadcast the task completion information.
[0185] Optionally, after the sending module broadcasts the task completion information, the apparatus further includes:
[0186] The third determination module is used to determine that the computing power entrusting node is abnormal if the abnormal information broadcast by the detection node is received.
[0187] Figure 8 A schematic diagram of a computing network processing device provided in an embodiment of the present application, which computing network processing device may be a server. The components, their connections and relationships, and their functions shown herein are merely examples and do not limit the implementation of the present application described and / or required herein.
[0188] like Figure 8 As shown, the computing power network processing device includes: a processor 801 and a memory 802, each of which is connected to each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor 801 can process instructions executed in the computing power network processing device, including instructions for graphic information stored in or on the memory for display on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories. Figure 8 A processor 801 is taken as an example.
[0189] The memory 802 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method of the computing power network processing device in the embodiment of the present application (for example, the attached Figure 7 As shown, the first acquisition module 701, the first processing module 702, the second processing module 703, the third processing module 704 and the first determination module 705). The processor 801 executes various functional applications and data processing of the authentication platform by running the non-transient software programs, instructions and modules stored in the memory 802, that is, the method of implementing the computing power network processing device in the above method embodiment.
[0190] The computing network processing device may further include: an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803 and the output device 804 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.
[0191] The input device 803 can receive input digital or character information, and generate key signal input related to user settings and function control of the computing power network processing device, such as a touch screen, a keypad, a mouse, or multiple mouse buttons, a trackball, a joystick and other input devices. The output device 804 can be an output device such as a display device of the computing power network processing device. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device can be a touch screen.
[0192] The computing power network processing device of the embodiment of the present application can be used to execute the technical solutions in the above-mentioned method embodiments of the present application. Its implementation principles and technical effects are similar and will not be repeated here.
[0193] An embodiment of the present application also provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement any of the above-mentioned computing power network processing methods.
[0194] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement any of the above-mentioned computing power network processing methods.
[0195] Fig. 9 A schematic diagram of the structure of another computing power network processing device provided in an embodiment of the present application is shown in FIG. Fig. 9As shown, the device of the embodiment of the present application includes: a first broadcast module 901, a first receiving module 902, a fourth processing module 903, a fifth processing module 904 and a second receiving module 905. The computing network processing device here can be a server or a chip or integrated circuit that implements the function of the server. It should be noted here that the division of the first broadcast module 901, the first receiving module 902, the fourth processing module 903, the fifth processing module 904 and the second receiving module 905 is only a division of logical functions. Physically, the two can be integrated or independent.
[0196] The first broadcast module is used to broadcast a computing power request, wherein the computing power request includes a computing power task and a task image;
[0197] A first receiving module is used to receive reply information to a computing power request broadcast by multiple nodes, wherein the reply information includes a service quotation;
[0198] The fourth processing module is used to screen multiple nodes according to the reply information and determine the computing service node to entrust the computing task;
[0199] A fifth processing module, used to generate selection confirmation information according to the computing power service node, and broadcast the selection confirmation information;
[0200] The second receiving module is used to receive the detection result of the task image broadcast by the detection node, and the detection result is used by the computing power service node to determine whether to execute the computing power task.
[0201] Optionally, after the second receiving module receives the detection result of the task image broadcasted by the detection node, the apparatus further includes:
[0202] The second sending module is used to send a request for pulling the executed task image after receiving the computing task execution result sent by the computing power service node if the detection result is passed. The request for pulling the executed task image is used to request the computing power service node to pull the executed task image.
[0203] The present application embodiment also provides another computing power network processing device, which can be a server. The components shown herein, their connections and relationships, and their functions are only examples and do not limit the implementation of the present application described and / or required herein.
[0204] The computing power network processing device includes: a processor and a memory, and the various components are interconnected by different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computing power network processing device, including instructions for graphic information stored in or on the memory for display on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories. The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the method of the computing power network processing device in the embodiment of the present application (for example, the attached Fig. 9 As shown, a first broadcast module 901, a first receiving module 902, a fourth processing module 903, a fifth processing module 904 and a second receiving module 905). The processor executes various functional applications and data processing of the authentication platform by running non-transient software programs, instructions and modules stored in the memory, that is, the method of implementing the computing power network processing device in the above method embodiment.
[0205] The computing network processing device may also include: an input device and an output device. The processor, memory, input device and output device may be connected via a bus or other means.
[0206] The input device can receive input digital or character information, and generate key signal input related to user settings and function control of the computing power network processing device, such as a touch screen, a keypad, a mouse, or multiple mouse buttons, a trackball, a joystick and other input devices. The output device can be an output device such as a display device of the computing power network processing device. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device can be a touch screen.
[0207] The computing power network processing device of the embodiment of the present application can be used to execute the technical solutions in the above-mentioned method embodiments of the present application. Its implementation principles and technical effects are similar and will not be repeated here.
[0208] An embodiment of the present application also provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement any of the above-mentioned computing power network processing methods.
[0209] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement any of the above-mentioned computing power network processing methods.
[0210] Fig.10 A schematic diagram of the structure of another computing power network processing device provided in an embodiment of the present application is as follows: Fig.10 As shown, the device of the embodiment of the present application includes: a second acquisition module 1001, a sixth processing module 1002, a second determination module 1003 and a second broadcast module 1004. The computing network processing device here can be a server or a chip or integrated circuit that implements the function of the server. It should be noted here that the division of the second acquisition module 1001, the sixth processing module 1002, the second determination module 1003 and the second broadcast module 1004 is only a division of logical functions. Physically, the two can be integrated or independent.
[0211] The second acquisition module is used to acquire the computing power request broadcasted by the computing power entrusting node, wherein the computing power request includes a computing power task and a task image;
[0212] The sixth processing module is used to determine the computing power service node according to the selection confirmation information after receiving the selection confirmation information broadcast by the computing power entrusting node, and pull the task image in the computing power service node;
[0213] The second determination module is used to detect according to the task image in the computing power request and the task image in the computing power service node, and determine whether the task runner and the computing power test code of the task image in the computing power service node are abnormal;
[0214] The second broadcast module is used to broadcast the detection results, and the detection results are used by the computing service node to determine whether to execute the computing task.
[0215] Optionally, after the second broadcasting module broadcasts the detection result, the apparatus further includes:
[0216] The seventh processing module is used to pull the task image in the computing power entrusting node and perform detection after receiving the task completion information broadcast by the computing power service node; if the detection is abnormal, the abnormal information is broadcast.
[0217] The present application embodiment also provides another computing power network processing device, which can be a server. The components shown herein, their connections and relationships, and their functions are only examples and do not limit the implementation of the present application described and / or required herein.
[0218] The computing power network processing device includes: a processor and a memory, and the various components are interconnected by different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computing power network processing device, including instructions for graphic information stored in or on the memory for display on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories. The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the method of the computing power network processing device in the embodiment of the present application (for example, the attached Fig.10 As shown, the second acquisition module 1001, the sixth processing module 1002, the second determination module 1003 and the second broadcast module 1004). The processor executes various functional applications and data processing of the authentication platform by running non-transient software programs, instructions and modules stored in the memory, that is, the method of implementing the computing power network processing device in the above method embodiment.
[0219] The computing network processing device may also include: an input device and an output device. The processor, memory, input device and output device may be connected via a bus or other means.
[0220] The input device can receive input digital or character information, and generate key signal input related to user settings and function control of the computing power network processing device, such as a touch screen, a keypad, a mouse, or multiple mouse buttons, a trackball, a joystick and other input devices. The output device can be an output device such as a display device of the computing power network processing device. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device can be a touch screen.
[0221] The computing power network processing device of the embodiment of the present application can be used to execute the technical solutions in the above-mentioned method embodiments of the present application. Its implementation principles and technical effects are similar and will not be repeated here.
[0222] An embodiment of the present application also provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement any of the above-mentioned computing power network processing methods.
[0223] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement any of the above-mentioned computing power network processing methods.
[0224] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0225] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0226] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the application disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0227] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A computing power network processing method, applied to a computing power service node, characterized in that: include: Obtaining a computing power request broadcasted by a computing power delegation node, wherein the computing power request includes a computing power task and a task image; If it is determined that the computing power request meets the undertaking conditions, the reply information to the computing power request is broadcast, wherein the reply information includes a service quotation; the undertaking conditions include: the data size and the number of computing power resources that can be undertaken by the computing power task are greater than the data size and the number of computing power resources required in the computing power task; Receive the selection confirmation information broadcasted by the computing power entrusting node, and if it is determined that the computing power entrusting node is selected as the computing power service node, obtain the address of the task image according to the selection confirmation information; the selection confirmation information includes the identification information of the computing power service node and the address of the task image; Pull the task image and run it, and obtain the detection results of the task image broadcast by multiple detection nodes; the detection results are obtained by comparing the task image in the current computing power service node with the task image in the computing power entrusting node; Determine whether to execute the computing task based on the detection result.
2. The method according to claim 1, characterized in that: The determining, according to the detection result, whether to execute the computing task comprises: If the detection result is that the ratio of the number of computing power service nodes that pass the detection to the total number of computing power service nodes participating in the detection is greater than the first preset ratio, the computing power task is executed.
3. The method according to claim 2, characterized in that After executing the computing task, the method further includes: The computing task execution result is sent to the computing task entrusting node, and the task completion information is broadcast.
4. The method according to claim 3, characterized in that: After the broadcast task completion information, the method further includes: If the abnormal information broadcast by the detection node is received, it is determined that the computing power delegation node is abnormal, wherein the abnormal information is determined by the detection node after the execution of the computing power task is completed, by verifying the task runner and computing power test code in the computing power delegation node image after the task execution is completed.
5. A computing power network processing method, applied to computing power delegation nodes, characterized in that: include: Broadcasting a computing power request, wherein the computing power request includes a computing power task and a task image; Receiving reply information to the computing power request broadcasted by multiple nodes, wherein the reply information includes a service quotation; According to the reply information, the multiple nodes are screened to determine the computing service node to which the computing task is delegated; Generate selection confirmation information according to the computing power service node, and broadcast the selection confirmation information; the selection confirmation information includes identification information of the computing power service node and the address of the task image; The detection result of the task image broadcast by the receiving detection node is used by the computing power service node to determine whether to execute the computing power task; the detection result is obtained by comparing the task image in the current computing power service node with the task image in the computing power delegation node.
6. The method according to claim 5, characterized in that After the receiving detection node broadcasts the detection result of the task image, the method further includes: If the detection result is passed, after receiving the computing task execution result sent by the computing power service node, a request for pulling the executed task image is sent, and the request for pulling the executed task image is used to request the computing power service node to pull the executed task image.
7. A computing power network processing method, applied to a detection node, characterized in that: include: Obtaining a computing power request broadcasted by a computing power delegation node, wherein the computing power request includes a computing power task and a task image; After receiving the selection confirmation information broadcast by the computing power entrusting node, determining the computing power service node according to the selection confirmation information, and pulling the task image in the computing power service node; the selection confirmation information includes the identification information of the computing power service node and the address of the task image; Perform detection based on the task image in the computing power request and the task image in the computing power service node to determine whether the task runner and computing power test code of the task image in the computing power service node are abnormal; The detection result is broadcasted, and the detection result is used by the computing power service node to determine whether to execute the computing power task; the detection result is obtained by comparing the task image in the current computing power service node with the task image in the computing power entrusting node.
8. The method according to claim 7, characterized in that After broadcasting the detection result, the method further includes: After receiving the task completion information broadcasted by the computing power service node, pull the task image in the computing power entrusting node and perform detection; If an abnormality is detected, the abnormal information is broadcast.
9. A computing power network processing device, characterized in that: include: A first acquisition module is used to acquire a computing power request broadcasted by a computing power delegation node, wherein the computing power request includes a computing power task and a task image; The first processing module is configured to broadcast a reply message to the computing power request if it is determined that the computing power request satisfies the undertaking condition, wherein the reply message includes a service quotation; the undertaking condition includes: the data size and the number of computing power resources that can be undertaken by the computing power task are greater than the data size and the number of computing power resources required in the computing power task; A second processing module is used to receive the selection confirmation information broadcast by the computing power entrusting node, and if it is determined that the computing power entrusting node is selected as the computing power service node, the address of the task image is obtained according to the selection confirmation information; the selection confirmation information includes the identification information of the computing power service node and the address of the task image; The third processing module is used to pull the task image and run it, and obtain the detection results of the task image broadcast by multiple detection nodes; the detection results are obtained by comparing the task image in the current computing power service node with the task image in the computing power entrusting node; The first determination module is used to determine whether to execute the computing task according to the detection result.
10. A computing power network processing device, characterized in that: include: A first broadcast module, configured to broadcast a computing power request, wherein the computing power request includes a computing power task and a task image; A first receiving module, configured to receive reply information to the computing power request broadcasted by multiple nodes, wherein the reply information includes a service quotation; A fourth processing module, configured to screen the multiple nodes according to the reply information, and determine a computing service node to entrust the computing task; A fifth processing module, configured to generate selection confirmation information according to the computing power service node, and broadcast the selection confirmation information; the selection confirmation information includes identification information of the computing power service node and the address of the task image; The second receiving module is used to receive the detection result of the task image broadcast by the detection node, and the detection result is used by the computing power service node to determine whether to execute the computing power task; the detection result is obtained by comparing the task image in the current computing power service node with the task image in the computing power delegation node.
11. A computing power network processing device, characterized in that: include: A second acquisition module is used to acquire a computing power request broadcasted by a computing power entrusting node, wherein the computing power request includes a computing power task and a task image; A sixth processing module is used to determine the computing power service node according to the selection confirmation information broadcast by the computing power entrusting node after receiving the selection confirmation information, and pull the task image in the computing power service node; the selection confirmation information includes the identification information of the computing power service node and the address of the task image; A second determination module is used to detect according to the task image in the computing power request and the task image in the computing power service node, and determine whether the task runner and the computing power test code of the task image in the computing power service node are abnormal; The second broadcast module is used to broadcast the detection result, and the detection result is used by the computing power service node to determine whether to execute the computing power task; the detection result is obtained by comparing the task image in the current computing power service node with the task image in the computing power delegation node.
12. A computing power network processing device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the computing power network processing method as described in any one of claims 1 to 4, any one of claims 5 or 6, or any one of claims 7 or 8.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement a computing power network processing method as claimed in any one of claims 1 to 4, any one of claims 5 or 6, or any one of claims 7 or 8.
14. A computing power network processing system, characterized in that: It includes a computing power service node, a computing power delegation node and at least one detection node; The computing power service node is used to obtain the computing power request broadcasted by the computing power delegation node, wherein the computing power request includes a computing power task and a task image; if it is determined that the computing power request meets the undertaking conditions, then the reply information to the computing power request is broadcasted, wherein the reply information includes a service quotation; the undertaking conditions include: the data size and the number of computing power resources that can be undertaken by itself are greater than the data size and the number of computing power resources required in the computing power task; receiving the selection confirmation information broadcasted by the computing power delegation node, if it is determined that it is selected as the computing power service node by the computing power delegation node, then obtaining the address of the task image according to the selection confirmation information; the selection confirmation information includes the identification information of the computing power service node and the address of the task image; pulling the task image and running it, and obtaining the detection results of the task image broadcasted by multiple detection nodes; the detection results are obtained by comparing the task image in the current computing power service node with the task image in the computing power delegation node; according to the detection results, determining whether to execute the computing power task; The computing power entrusting node is used to broadcast computing power requests; receive reply information to the computing power requests broadcasted by multiple nodes; screen the multiple nodes according to the reply information to determine the computing power service node to entrust the computing power task; generate selection confirmation information according to the computing power service node, and broadcast the selection confirmation information; receive the detection result of the task image broadcasted by the detection node, and the detection result is used by the computing power service node to determine whether to execute the computing power task; The detection node is used to obtain the computing power request broadcast by the computing power delegation node; after receiving the selection confirmation information broadcast by the computing power delegation node, determine the computing power service node according to the selection confirmation information, and pull the task image in the computing power service node; perform detection based on the task image in the computing power request and the task image in the computing power service node to determine whether the task runner and computing power test code of the task image in the computing power service node are abnormal; broadcast the detection result, and the detection result is used by the computing power service node to determine whether to execute the computing power task.
Citation Information
Patent Citations
Mobile user terminal task unloading method under distributed edge computing service system
CN111262906A
Network system, mirror image management method and device and storage medium
CN111800442A
Task scheduling method and device and cluster management system
CN112114950A
Model training method and device and storage medium
CN112181599A
Block chain transaction method and system based on channels under multi-person chain
CN112907252A
