Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for processing an account power network, which solve the technical problems that the account power network processing method in the prior art cannot effectively monitor the account power service quality and the stability of the account power network are poor.
In a first aspect, the present application provides a method for processing a computing power network, including:
Acquiring a calculation force request broadcasted by a calculation force entrusting node, wherein the calculation force request comprises a calculation force task and a task mirror image;
if the computing power request is judged to meet the bearing condition, broadcasting reply information to the computing power request, wherein the reply information comprises a service quotation;
Receiving selection confirmation information broadcast by the power calculation entrusting node, and if the power calculation entrusting node is determined to be selected as a power calculation service node, acquiring the address of the task mirror image according to the selection confirmation information;
Pulling and running the task mirror image, and acquiring detection results of the task mirror image, which are broadcasted by a plurality of detection nodes;
And determining whether to execute the power calculation task according to the detection result.
The application provides a method for processing a computing power network on a computing power service node, namely a computing power provider side, which is characterized in that after receiving a computing power request broadcast by a computing power entrusting node, whether to bear a computing power task carried in the computing power request is determined according to the processing capacity of the computing power entrusting node, if the computing power request can bear the task, a reply to the entrusting node is broadcast, the reply comprises a service quotation of the computing power entrusting node, selection confirmation information broadcast by the computing power entrusting node is received, if the computing power entrusting node is determined to be selected as the computing power service node according to the selection confirmation information, the task mirror image is pulled and deployed for operation, and meanwhile, the detection of a task operator and computing power test codes in the mirror image by a plurality of detection nodes is accepted, and whether to execute the computing power task is determined according to the detection result, so that the service quality between the computing power entrusting node and the computing power service node can be effectively ensured, the computing power service node is prevented from cheating in the process of providing computing power, the service quality of the computing power provider is effectively monitored, the computing power service quality is improved, and the stability of the computing power network is ensured.
Optionally, the determining whether to execute the computing task according to the detection result includes:
And if the detection result is that the ratio of the number passing detection to the total number of the detection results is larger than the first preset ratio, executing the calculation task.
When determining whether the power computing service node can execute the power computing task, the power computing task can be started to be executed only after more than half of the nodes participating in detection are detected, and the final judgment result can be more accurate by judging through a plurality of detection results, so that the service quality of the power computing service node can be judged and monitored more accurately, and the service quality of a power computing network is further improved.
Optionally, after the performing the computing task, further comprising:
and sending the execution result of the calculation task to the calculation entrusting node, and broadcasting the task completion information.
After the power calculation task is completed, the power calculation service node sends the power calculation task execution result to the power calculation entrusting node, and simultaneously broadcasts the task completion information to inform each node of carrying out subsequent operation, so that the power calculation service quality is further improved.
Optionally, after broadcasting the task completion information, the method further includes:
and if abnormal information broadcast by the detection node is received, determining that the calculation power entrusting node is abnormal.
After the execution of the calculation force task is finished, the application can also receive the abnormal information broadcast by the detection node to determine whether the calculation force entrusting node is abnormal or not, and the detection node can verify the task operator and the calculation force test code in the mirror image of the calculation force entrusting node after the execution of the task is finished, so that the calculation force entrusting node can not produce false information of malicious mirror image manufacturing calculation force service node cheating, double guarantee is realized, and the stability and service quality of the calculation force network are improved.
In a second aspect, the present application provides a method for processing a computing power network, including:
broadcasting a computing force request, wherein the computing force request comprises a computing force task and a task mirror image;
Receiving reply information to the power calculation request, wherein the reply information comprises service quotations, and the reply information is broadcasted by a plurality of nodes;
screening the nodes according to the reply information to determine a power computing service node for delegation of a power computing task;
generating selection confirmation information according to the power computing service node, and broadcasting the selection confirmation information;
and receiving a detection result of the task image, which is broadcasted by a detection node, wherein the detection result is used for the computing power service node to determine whether to execute the computing power task.
The application provides a method for processing a power network on a power demand side, namely a power commission node, wherein the power commission node broadcasts a power demand request of the power commission node, so that a service node in the network determines whether the power demand can bear a power task according to the power demand, the power demand comprises a task mirror image, detection can be carried out, a proper power service node is selected, selection confirmation information generated according to the power service node is broadcasted, the power service node and other nodes are enabled to be determined, and meanwhile, a detection result of the power service node task mirror image broadcast by the detection node is received, so that the power demand node and the power service node can be effectively ensured to execute the power demand task, cheating of the power service node in the power supply process is prevented, effective supervision on the power service quality of the power provider is realized, the power service quality is improved, and the stability of the power network is ensured.
Optionally, after receiving the detection result of the task image broadcast by the detection node, the method further includes:
And if the detection result is that the detection is passed, after receiving the execution result of the power calculation task sent by the power calculation service node, sending a task mirror image request after pulling and executing, wherein the task mirror image request after pulling and executing is used for requesting the power calculation service node to pull and execute the task mirror image.
The power calculation entrusting node can send a request to pull the task mirror image after the task is completed, so that the whole power calculation transaction process is realized.
In a third aspect, the present application provides a method for processing a computing power network, including:
Acquiring a calculation force request broadcasted by a calculation force entrusting node, wherein the calculation force request comprises a calculation force task and a task mirror image;
After receiving the selection confirmation information broadcast by the computing power entrusting node, determining a computing power service node according to the selection confirmation information, and pulling a task mirror image in the computing power service node;
Detecting according to the task mirror image in the computing power request and the task mirror image in the computing power service node, and determining whether a task operator and a computing power test code of the task mirror image in the computing power service node are abnormal or not;
and broadcasting the detection result, wherein the detection result is used for the power calculation service node to determine whether to execute the power calculation task.
The detection node can detect and monitor the mirror image in the calculation power entrusting node, thereby realizing the supervision of the calculation power service process and ensuring that the calculation power service node cannot cheat in the process of providing calculation power.
Optionally, after said broadcasting the detection result, further comprising:
pulling a task mirror image in the computing power entrusting node and detecting the task mirror image after receiving task completion information broadcast by the computing power service node;
If an anomaly is detected, the anomaly information is broadcast.
After the power service node executes the power calculation task, the power calculation test code and the task operator in the power calculation entrusting node mirror image can be checked, so that the power calculation entrusting node can not make fake information of malicious mirror image manufacturing service node cheating, and the stability and the service quality of the power calculation network are further ensured.
In a fourth aspect, the present application provides a computing power network processing apparatus, comprising:
the first acquisition module is used for acquiring a calculation force request broadcast by a calculation force consignment node, wherein the calculation force request comprises a calculation force task and a task mirror image;
The first processing module is used for broadcasting reply information of the computing power request if judging that the computing power request meets the bearing condition, wherein the reply information comprises service quotation;
The second processing module is used for receiving the selection confirmation information broadcast by the power delegation node, and if the power delegation node is determined to be selected as a power service node, the address of the task mirror image is obtained according to the selection confirmation information;
The third processing module is used for pulling the task mirror image and running the task mirror image, and acquiring detection results of the task mirror image, which are broadcasted by a plurality of detection nodes;
And the first determining module is used for determining whether to execute the calculation task according to the detection result.
Optionally, the first determining module is specifically configured to:
And if the detection result is that the ratio of the number passing detection to the total number of the detection results is larger than the first preset ratio, executing the calculation task.
Optionally, after the first determining module performs the computing task, the apparatus further includes:
and the sending module is used for sending the execution result of the calculation task to the calculation entrusting node and broadcasting the task completion information.
Optionally, after the sending module broadcasts the task completion information, the apparatus further includes:
And the third determining module is used for determining that the power calculation entrusting node is abnormal if abnormal information broadcast by the detecting node is received.
In a fifth aspect, the present application provides a computing power network processing apparatus, comprising:
The first broadcasting module is used for broadcasting a computing force request, wherein the computing force request comprises a computing force task and a task mirror image;
A first receiving module, configured to receive reply information broadcast by a plurality of nodes to the computing power request, where the reply information includes a service offer;
the fourth processing module is used for screening the nodes according to the reply information and determining an algorithm service node for performing algorithm task delegation;
a fifth processing module, configured to generate selection confirmation information according to the power service node, and broadcast the selection confirmation information;
and the second receiving module is used for receiving a detection result of the task image, which is broadcasted by the detection node, and the detection result is used for the computing power service node to determine whether to execute the computing power task.
Optionally, after the second receiving module receives the detection result of the task image broadcasted by the detection node, the apparatus further includes:
And the second sending module is used for sending a pulling and executing task mirror image request after receiving the detection result of the detection passing, which is sent by the computing power service node, wherein the pulling and executing task mirror image request is used for requesting the computing power service node to pull and execute the task mirror image.
In a sixth aspect, the present application provides a computing network processing apparatus, comprising:
the second acquisition module is used for acquiring a calculation force request broadcasted by the calculation force consignment node, wherein the calculation force request comprises a calculation force task and a task mirror image;
the sixth processing module is used for determining a computing power service node according to the selection confirmation information after receiving the selection confirmation information broadcast by the computing power entrusting node, and pulling a task mirror image in the computing power service node;
The second determining module is used for detecting the task mirror image in the computing power request and the task mirror image in the computing power service node and determining whether a task runner and computing power test codes of the task mirror image in the computing power service node are abnormal or not;
and the second broadcasting module is used for broadcasting the detection result, and the detection result is used for the power calculation service node to determine whether to execute the power calculation task.
Optionally, after the second broadcasting module broadcasts the detection result, the apparatus further includes:
and the seventh processing module is used for pulling the task mirror image in the power calculation entrusting node and detecting after receiving the task completion information broadcast by the power calculation service node, and broadcasting abnormal information if the abnormality is detected.
In a seventh aspect, the present application provides a computing power network processing device comprising at least one processor and memory;
the memory stores computer-executable instructions;
The at least one processor executes the computer-executable instructions stored by the memory, causing the at least one processor to perform the method of processing a power network as described above in the first aspect and the various possible designs of the first aspect.
In an eighth aspect, the present application provides a computing power network processing device comprising at least one processor and memory;
the memory stores computer-executable instructions;
The at least one processor executes the computer-executable instructions stored by the memory, causing the at least one processor to perform the method of computing a power network as described above in the second aspect and the various possible designs of the second aspect.
In a ninth aspect, the present application provides a computing power network processing device comprising at least one processor and memory;
the memory stores computer-executable instructions;
The at least one processor executes computer-executable instructions stored by the memory, causing the at least one processor to perform the method of processing a power network as described above in the third aspect and the various possible designs of the third aspect.
In a tenth aspect, the present application provides a computer readable storage medium having stored therein computer executable instructions which, when executed by a processor, implement the method of processing a power network according to the first aspect and the various possible designs of the first aspect.
In an eleventh aspect, the present application provides a computer readable storage medium, in which computer executable instructions are stored, which when executed by a processor, implement the method for processing a power network according to the above second aspect and the various possible designs of the second aspect.
In a twelfth aspect, the present application provides a computer readable storage medium, in which computer executable instructions are stored, which when executed by a processor, implement the method for processing a power network according to the third aspect and the various possible designs of the third aspect.
In a thirteenth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of processing a power network according to the first aspect and the various possible designs of the first aspect.
Fourth, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of processing a power network as described above in the second aspect and the various possible designs of the second aspect.
In a fifteenth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of processing a power network as described above in the third aspect and the various possible designs of the third aspect.
In a sixteenth aspect, the present application provides a network processing system comprising a computing force service node, a computing force delegation node, and at least one detection node;
the power computing service node is used for acquiring a power computing request broadcast by a power computing commission node, wherein the power computing request comprises a power computing task and a task mirror image, broadcasting reply information to the power computing request if the power computing request is judged to meet a bearing condition, wherein the reply information comprises a service quotation, receiving selection confirmation information broadcast by the power computing commission node, acquiring an address of the task mirror image according to the selection confirmation information if the power computing commission node is determined to be selected as the power computing service node, pulling the task mirror image and operating, acquiring detection results of the task mirror image broadcast by a plurality of detection nodes, and determining whether to execute the power computing task according to the detection results;
The power calculation entrusting node is used for broadcasting a power calculation request, receiving reply information of the power calculation request, which is broadcast by a plurality of nodes, screening the plurality of nodes according to the reply information, determining a power calculation service node for entrusting a power calculation task, generating selection confirmation information according to the power calculation service node, broadcasting the selection confirmation information, receiving a detection result of the task mirror image, which is broadcast by a detection node, wherein the detection result is used for the power calculation service node to determine whether to execute the power calculation task;
the detection node is used for acquiring a calculation force request broadcasted by the calculation force entrusting node, determining a calculation force service node according to the selection confirmation information after receiving the selection confirmation information broadcasted by the calculation force entrusting node, pulling a task mirror image in the calculation force service node, detecting according to the task mirror image in the calculation force request and the task mirror image in the calculation force service node, determining whether a task runner and a calculation force test code of the task mirror image in the calculation force service node are abnormal, and broadcasting the detection result, wherein the detection result is used for the calculation force service node to determine whether to execute the calculation force task.
The method, the device, the equipment and the storage medium for processing the computing power network, wherein after receiving the computing power request broadcast by the computing power entrusting node, the computing power service node in the method decides whether to bear the computing power task carried in the computing power request according to the processing capacity of the computing power entrusting node, if the computing power request can bear the task, the answer to the entrusting node is broadcast, the answer comprises the service quotation of the computing power entrusting node, the selection confirmation information broadcast by the computing power entrusting node is received, if the computing power entrusting node is determined to be selected as the computing power service node according to the selection confirmation information, the mirror image of the task is pulled and deployed for operation, and meanwhile, the detection of a task operator and computing power test codes in the mirror image by a plurality of detection nodes is accepted, and whether to execute the computing power task is determined according to the detection result, 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 the effective service quality for a computing power provider, improving the computing power service quality and ensuring the stability of the computing power network.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The block chain technology provides a decentralised network structure, a consensus algorithm is used for guaranteeing the consistency of all nodes in a network, and the behavior of the nodes in the network is recorded in a public and reliable way. The blockchain can realize anonymous interaction of nodes in the network through a cryptography technology, and realize trusted recording of anonymous node behaviors through public key cryptography and a signature technology and traceable and unmodified account books. Blockchains are divided into public chains, alliance chains and private chains, and the degree of openness is gradually reduced. The public chain computing power network is used as a novel service, aims to establish a supply and demand relation for computing power demand parties and computing power providers, does not need to purchase a large amount of hardware facilities for completing computing tasks, saves a certain cost, can utilize surplus computing power in a time division multiplexing mode, and accordingly obtains corresponding benefits.
In the existing computational power network architecture using blockchains, the alliance chain technology is used, and the security and the credibility of the nodes are controlled by a user registration joining mode. The quality of the computing nodes is demonstrated by a certain credit accumulation mechanism. Resource scheduling and work auditing between the demand node and the power computing node are completed through a super node 'power computing network platform' in the alliance chain. The container technology can package the calculation tasks to be operated into a standardized unit for development, delivery and deployment, the container mirror image is a lightweight independently-operable software package, contains codes and operating environments, can get rid of external environmental differences, and can be stored as a mirror image for storage and transmission. The containers can be deployed on a container cloud platform, and the containers are uniformly scheduled and managed by the container cloud platform. Under the distributed scene, the service quality of the power provider lacks supervision, the power node fake-making and stealing resources in the power service provision does not have method monitoring, the existing power network architecture based on the block chain does not fully utilize the characteristic of the block chain, and the power network architecture is modified into a alliance chain structure on the basis of the centralized dispatching mechanism of the original power network platform, so that the decentralization characteristic of the block chain is not shown. The credit information used by many schemes is not of practical significance in an architecture with a central node. The power calculation network processing method in the prior art cannot effectively monitor the power calculation service quality, and the service quality and stability of the power calculation network are poor.
In order to solve the problems, the embodiments of the present application provide a method, an apparatus, a device, and a storage medium for processing a computing power network, where in the method, a user delegates or accepts an operation task to the outside according to a certain manner in the computing power network, the computing power task of the user is packaged in a container mirroring manner, a computing power provider deploys a container cloud platform to deploy a container, providing computing power resources, a consensus process between nodes is completed through a block chain, and in a computing power service process, supervision of the computing power service process is implemented through a detection node.
Optionally, fig. 1 is a schematic diagram of a power network processing system according to an embodiment of the present application, where the system architecture is a block chain structure. In fig. 1, the architecture includes a node management module 101, a node protection module 102, a mirror repository 103, a database 104, and a container cloud platform 105.
Optionally, the system is divided into two kinds of node light nodes and a complete node. The method comprises the steps that light nodes only store block information in system operation to complete a consensus process, a unified container cloud platform is required to be deployed for deploying a calculation task container, only the complete nodes can provide calculation service, the light nodes only can entrust calculation tasks to the outside, a node management module is responsible for mutual communication among the nodes to complete the consensus process among the blocks, a mirror image warehouse stores mirror images generated or pulled by the nodes, a database stores data and blocks in the operation process, the container cloud platform is not required to be deployed for each node, only the service nodes are required to provide the container cloud platform, and training of a deployment model training mirror image is completed.
The node protection module checks the node module file before the node operation, ensures that the program is not tampered, and checks whether the process which can be operated in the host computer affects the operation of the node module in the program operation process.
After the new node joins the network, the node management module broadcasts new node joining information, including new node identity information. The other nodes receiving the information can send own information to the new node and establish point-to-point connection with the new node. The new node synchronizes all block data, starts to receive broadcast information in the network, and starts to participate in the consensus process.
In the implementation process of the embodiment of the application, the power calculation nodes can be divided into power calculation entrusting nodes, power calculation service nodes and detection nodes, wherein the power calculation entrusting nodes provide power calculation tasks and task mirror images, power calculation requests are broadcast in a network, the power calculation service nodes are provided with complete nodes, receive the power calculation requests and provide service detection, and the detection nodes receive interaction information of the entrusting nodes and the service nodes and jointly complete nodes of a consensus process.
The power computing system comprises a power computing network, a power computing demand party and a power computing provider, wherein two identities exist in the power computing network, the power computing demand party, namely a power computing entrusting node in the system, can provide a power computing task mirror image, a power computing task code is put into a basic mirror image to form a task mirror image, and the basic mirror image comprises a unified task operator and a power computing test code. The calculation task code needs to be compiled and confusion and crust, so that information leakage in the code is prevented.
It will be appreciated that the architecture illustrated by embodiments of the present application is not intended to constitute a particular limitation on the architecture of a computing network processing system. In other possible embodiments of the present application, the architecture may include more or less components than those illustrated, or some components may be combined, some components may be split, or different component arrangements may be specifically determined according to the actual application scenario, and the present application is not limited herein. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
It should be understood that the above method may be implemented by a processor reading instructions in a memory and executing the instructions, or may be implemented by a chip circuit.
In addition, the network architecture and the service scenario described in the embodiments of the present application are for more clearly describing the technical solution of the embodiments of the present application, and do not constitute a limitation on the technical solution provided by the embodiments of the present application, and as a person of ordinary skill in the art can know, with evolution of the network architecture and occurrence of a new service scenario, the technical solution provided by the embodiments of the present application is also applicable to similar technical problems.
The following describes the technical scheme of the present application in detail with reference to specific examples:
Optionally, fig. 2 is a flow chart of a method for processing a power network according to an embodiment of the present application. The execution subject of the embodiment of the application can be a computing power service node. As shown in fig. 2, the method comprises the steps of:
S201, acquiring an calculation force request broadcast by a calculation force consignment node.
Wherein the computing force request includes a computing force task and a task mirror image.
Optionally, fig. 3 is a schematic structural diagram of a task image provided by an embodiment of the present application, where, as shown in fig. 3, the task image includes task codes, computing power test codes and a task runner. The computational effort test code is a complex problem that the whole platform is used uniformly and is open-sourced, such as hash collision. By running the computational power test code, the time for solving the problem is obtained, the computational power resources are allocated to the container and the solving time is inversely proportional, and whether the resources meet a certain standard can be judged according to the running time. The task operator is started after mirror image deployment, invokes the computing task program to complete tasks such as machine learning training and the like, randomly invokes the computing test code, and verifies whether the provider distributes enough resources for container operation. The container provides data exchange and state inquiry interfaces for the outside through the operator, and broadcasts the test result after the test is completed.
Optionally, the computational power request includes a computational power demand, the computational power demand including a task image, a data size, and an amount of computational power resources required, such that the service node determines whether the computational power task can be undertaken.
And S202, if the computing power request is judged to meet the bearing condition, broadcasting reply information to the computing power request.
Wherein the reply information includes a service offer.
Alternatively, the service offer may be preset or determined based on the computing task, for example, based on the size of the data in the computing task and the amount of computing resources required.
Optionally, the bearing condition is that the self-bearing data size and the number of the calculation resources are respectively compared with the data size in the calculation task and the number of the required calculation resources, and if the data size and the number of the calculation resources are larger than the required calculation resources, the calculation request can be born.
And S203, receiving selection confirmation information broadcast by the calculation power entrusting node, and acquiring the address of the task mirror image according to the selection confirmation information if the calculation power entrusting node is determined to be selected as the calculation power service node.
The selection confirmation information may include identification information of the computing power service node.
Optionally, the address of the task image is included in the selection confirmation information.
Optionally, the task mirror image address is a public key address, and the user identity in the system is replaced by the public key address, so that the user privacy can be effectively protected.
And S204, pulling and running the task mirror image, and acquiring detection results of the task mirror image, which are broadcasted by a plurality of detection nodes.
Optionally, the detection result is obtained by comparing and detecting the task image in the current computing power service node and the task image in the computing power entrusting node by the detection node.
And S205, determining whether to execute the power calculation task according to the detection result.
Optionally, determining whether to execute the power calculation task according to the detection result includes executing the power calculation task if the detection result is that the ratio of the number of passing detection to the total number of detection results is greater than a first preset ratio.
When determining whether the power computing service node can execute the power computing task, the embodiment of the application can start executing the power computing task after more than half of the nodes participating in detection pass detection, and judge through a plurality of detection results, so that the final judging result is more accurate, the service quality of the power computing service node is judged and monitored more accurately, and the service quality of the power computing network is further improved.
Optionally, after executing the computing power task, the method further comprises the steps of sending the executing result of the computing power task to the computing power entrusting node and broadcasting task completion information.
Optionally, sending the result of the execution of the computational effort task to the computational effort delegation node includes establishing an individual communication manner with the computational effort delegation node and sending the result of the execution of the computational effort task to the computational effort delegation node via the individual communication manner.
The nodes in the system are connected in a point-to-point mode, and the common information is transmitted by broadcasting among the nodes. When the mirror is transferred, the power delegation node and the power service node establish separate channel direct connections. When the system operates, the adjacent nodes are directly connected, the communication between the nodes is realized through the forwarding of the adjacent nodes, when the power calculation entrusting node and the power calculation service node generate transactions, the connection can be established autonomously, the task mirror image is transferred, but whether the communication in the follow-up consensus process maintains the connection is determined according to the delay between the two nodes.
Optionally, broadcasting task completion information includes broadcasting a signature of the task image request after execution by the power delegation node.
After the power calculation task is executed, the power calculation service node in the embodiment of the application sends the execution result of the power calculation task to the power calculation entrusting node, and simultaneously broadcasts the task completion information to inform each node to carry out subsequent operation, thereby further improving the power calculation service quality.
Optionally, after broadcasting the task completion information, determining that the computing power entrusted node is abnormal if abnormal information broadcast by the detection node is received.
After the execution of the calculation power task is finished, the embodiment of the application can also receive the abnormal information broadcast by the detection node to determine whether the calculation power entrusting node is abnormal or not, and the detection node can verify the task operator and the calculation power test code in the calculation power entrusting node mirror image after the execution of the task is finished, so that the calculation power entrusting node can not produce false messages of malicious mirror image manufacturing calculation power service node cheating, double guarantee is provided, and the stability and service quality of the calculation power network are improved.
After the computing power entrusting node publishes the task mirror image, the node willing to participate in the verification process can check the task runner and the computing power test code in the mirror image, thereby ensuring that the entrusting node cannot make fake messages of malicious mirror image manufacturing service node cheating. The two problems that the resource of the power service node embezzle part of what should be issued and the power consignment node disturb the network operation are respectively prevented through the two points. And when the node protection module detects that the node is abnormal in operation, broadcasting abnormal information and stopping the node operation. When the task image fails to pass the detection, how the image cannot be deployed is performed, and the previous calculation power entrusting flow is completely invalidated.
The embodiment of the application provides a computing power network processing method of a computing power service node, namely a computing power provider side, after receiving a computing power request broadcast by a computing power entrusting node, determining whether to bear a computing power task carried in the computing power request according to own processing capacity, broadcasting a reply to the entrusting node if the task can be born, wherein the reply comprises own service quotation, receiving selection confirmation information broadcast by the computing power entrusting node, pulling a task mirror image and deploying operation if the selected confirmation information is determined to be taken as the computing power service node according to the selection confirmation information, simultaneously receiving detection of task operators and computing power test codes in the mirror image by a plurality of detection nodes, and determining whether to execute the computing power task according to 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.
Optionally, an embodiment of the present application provides a method for processing a power network of a power delegation node, and correspondingly, fig. 4 is a schematic flow chart of another method for processing a power network provided by the embodiment of the present application, where an execution subject of the method is the power delegation node, as shown in fig. 4, and the method includes:
S401, broadcasting a calculation force request.
Wherein the computing force request includes a computing force task and a task mirror image.
And S402, receiving reply information of the calculation power request, which is broadcast by a plurality of nodes.
Wherein the reply information includes a service offer.
S403, screening the plurality of nodes according to the reply information, and determining the power service node for delegation of the power task.
Alternatively, the filtering may be performed according to service offers of a plurality of nodes, and a node with a low service offer is selected and determined as the power-calculating service node.
S404, generating selection confirmation information according to the power service node, and broadcasting the selection confirmation information.
Optionally, the selection confirmation information includes an identification of the computing power service node.
And S405, receiving a detection result of the task image, which is broadcast by the detection node, wherein the detection result is used for determining whether to execute the computing power task by the computing power service node.
The detection node here is a node other than the power service node.
Optionally, after receiving the detection result of the task mirror image broadcasted by the detection node, if the detection result is that the detection is passed, sending a pulling-out task mirror image request after the execution result of the computing power task sent by the computing power service node is received, where the pulling-out task mirror image request after the execution is used for requesting the computing power service node to pull out the task mirror image after the execution.
Here, the computing force entrusting node in the embodiment of the application can send a request to pull the task mirror image after the task is completed, so that the whole process of computing force transaction is realized.
The embodiment of the application provides a calculation power network processing method of a calculation power entrusting node, namely a calculation power demand side, wherein the calculation power entrusting node broadcasts a calculation power request of the calculation power entrusting node, so that a service node in a network determines whether a calculation power task can be born according to the calculation power request, the calculation power request comprises a task mirror image, detection can be carried out, a proper calculation power service node is selected, selection confirmation information generated according to the calculation power service node is broadcasted, the calculation power service node and other nodes are enabled to carry out determination, and meanwhile, a detection result of the calculation power service node task mirror image broadcasted by the detection node is received, so that the stable, effective and reliable calculation power service node can carry out the calculation power task, the service quality between the calculation power entrusting node and the calculation power service node can be effectively ensured, cheating of the calculation power service node in the process of providing calculation power is prevented, the effective supervision of the service quality of the calculation power provider is realized, the calculation power service quality is improved, and the stability of the calculation power network is ensured.
Optionally, an embodiment of the present application provides a method for processing a computing power network of a detection node, and correspondingly, fig. 5 is a schematic flow chart of another method for processing a computing power network provided by the embodiment of the present application, where an execution body of the method is the detection node, as shown in fig. 5, and the method includes:
S501, acquiring an calculation force request broadcast by a calculation force consignment node.
Wherein the computing force request includes a computing force task and a task mirror image.
S502, after receiving the selection confirmation information broadcast by the computing power entrusting node, determining a computing power service node according to the selection confirmation information, and pulling a task mirror image in the computing power service node.
And S503, detecting according to the task mirror image in the computing power request and the task mirror image in the computing power service node, and determining whether a task runner and computing power test codes of the task mirror image in the computing power service node are abnormal.
Here, if the task image in the computing power request and the task image comparison result in the computing power service node are within the preset comparison threshold range, the detection result is that the detection is passed. The preset comparison threshold value may be determined according to practical situations, which is not particularly limited in the embodiment of the present application.
And S504, broadcasting a detection result.
The detection result is used by the computing power service node to determine whether to execute the computing power task.
Optionally, after broadcasting the detection result, the method further comprises the steps of pulling a task mirror image in the computing power entrusting node and detecting after receiving task completion information broadcast by the computing power service node, and broadcasting abnormal information if abnormality is detected.
The task runner and the calculation test code in the mirror image are checked, so that the entrusting node is ensured not to make fake messages of malicious mirror image manufacturing service node cheating.
After the power service node executes the power calculation task, the power calculation service node can verify the task operator and the power calculation test code in the power calculation entrusting node mirror image, so that the power calculation entrusting node can not make fake messages of malicious mirror image manufacturing service node cheating, and the stability and the service quality of the power calculation network are further ensured.
The detection node of the embodiment of the application can detect and monitor the mirror image in the calculation power entrusting node, thereby realizing the supervision of the calculation power service process and ensuring that the calculation power service node cannot cheat in the process of providing calculation power.
The embodiment of the application also provides a network processing system, and fig. 6 is a schematic diagram of an interaction flow of the computing power transaction process provided by the embodiment of the application, and fig. 6 includes a computing power service node, a computing power entrusting node and a detecting node.
In a specific implementation process, the system comprises a plurality of detection nodes.
The power computing service node is used for acquiring a power computing request broadcast by the power computing commission node, wherein the power computing request comprises a power computing task and a task mirror image, broadcasting reply information to the power computing request if the power computing request is judged to meet a bearing condition, wherein the reply information comprises a service quotation;
The power calculation entrusting node is used for broadcasting a power calculation request, receiving reply information of the power calculation request, which is broadcast by a plurality of nodes, screening the plurality of nodes according to the reply information, determining a power calculation service node for entrusting the power calculation task, generating selection confirmation information according to the power calculation service node, broadcasting the selection confirmation information, receiving a detection result of the task mirror image, which is broadcast by the detection node, and determining whether to execute the power calculation task by the power calculation service node;
The method comprises the steps of acquiring a power request broadcast by a power commission node by a detection node, determining a power service node according to selection confirmation information after receiving the selection confirmation information broadcast by the power commission node, pulling a task mirror image in the power service node, detecting according to the task mirror image in the power request and the task mirror image in the power service node, determining whether a task operator and a power test code of the task mirror image in the power service node are abnormal, broadcasting a detection result, and determining whether to execute a power task by the power service node.
The system adopts a public chain blockchain mode, and the public chain can maintain benign operation of the distributed system by binding benefits with the blockchain system by participants due to a stricter consensus mechanism required by a free joining mechanism. Meanwhile, the system is also provided with a credit mechanism, and the newly added node can only participate in the consensus process, so that the authority can be improved after the consensus is completed for a plurality of times, and the newly added node can become a entrusted node. With no abnormal behavior in the system, the authority of the user in the system can be improved.
Fig. 7 is a schematic structural diagram of a computing power network processing device according to an embodiment of the present application, and as shown in fig. 7, the device according to an embodiment of the present application includes a first obtaining module 701, a first processing module 702, a second processing module 703, a third processing module 704, and a first determining module 705. The computing network processing means may be a server or a chip or integrated circuit implementing the functions of a server. Here, 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 just a division of a logic function, and both may be integrated or independent physically.
The first acquisition module is used for acquiring a calculation force request broadcasted by the calculation force consignment node, wherein the calculation force request comprises a calculation force task and a task mirror image;
The first processing module is used for broadcasting reply information to the computing power request if the computing power request is judged to meet the bearing condition, wherein the reply information comprises service quotation;
The second processing module is used for receiving the selection confirmation information broadcast by the calculation power entrusting node, and if the calculation power entrusting node is determined to be selected as the calculation power service node, the address of the task mirror image is obtained according to the selection confirmation information;
the third processing module is used for pulling and running the task mirror image and acquiring detection results of the task mirror image, which are broadcasted by a plurality of detection nodes;
And the first determining module is used for determining whether to execute the calculation task according to the detection result.
Optionally, the first determining module is specifically configured to:
And if the detection result is that the ratio of the number passing detection to the total number of the detection results is larger than the first preset ratio, executing the calculation task.
Optionally, after the first determining module performs the computing task, the apparatus further includes:
and the sending module is used for sending the execution result of the calculation task to the calculation entrusting node and broadcasting the task completion information.
Optionally, after the sending module broadcasts the task completion information, the apparatus further includes:
And the third determining module is used for determining that the calculation power entrusting node is abnormal if the abnormal information broadcast by the detecting node is received.
Fig. 8 is a schematic structural diagram of a computing power network processing device according to an embodiment of the present application, where the computing power network processing device may be a server. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not limiting of the implementations of the application described and/or claimed in this document.
As shown in fig. 8, the computing network processing device includes a processor 801 and a memory 802, which are interconnected using different buses, and may be mounted on a common motherboard or in other manners as desired. The processor 801 may process instructions executing within a computing power network processing device, including instructions for graphical information stored in or on memory for display on an external input/output device, such as a display device coupled to an interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. One processor 801 is illustrated in fig. 8.
The memory 802 is used as a non-transitory computer readable storage medium, and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., 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 shown in fig. 7) corresponding to a method of a computing power network processing device in an embodiment of the present application. The processor 801 executes various functional applications of the authentication platform and data processing, i.e., a method of implementing the computing network processing device in the above-described method embodiment, by running non-transitory software programs, instructions, and modules stored in the memory 802.
The computing power network processing device may also include an input 803 and an output 804. The processor 801, memory 802, input devices 803, and output devices 804 may be connected by a bus or other means, for example in fig. 8.
The input device 803 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the computing power network processing device, such as a touch screen, a keypad, a mouse, or a plurality of mouse buttons, a trackball, a joystick, or the like. The output means 804 may be an output device such as a display device of a computing network processing device. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
The power calculation network processing device of the embodiment of the application can be used for executing the technical scheme of the method embodiments of the application, and the implementation principle and the technical effect are similar, and are not repeated here.
The embodiment of the application also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and the computer execution instructions are used for realizing the power calculation network processing method of any one of the above when being executed by a processor.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is used for realizing the power calculation network processing method of any one of the above steps when being executed by a processor.
Fig. 9 is a schematic structural diagram of another power network processing device according to an embodiment of the present application, and as shown in fig. 9, the device according to an embodiment of the present application includes a first broadcasting 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 means may be a server or a chip or integrated circuit implementing the functions of a server. Here, the division of the first broadcasting 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 a logic function, and both may be integrated or independent physically.
The first broadcasting module is used for broadcasting a calculation force request, wherein the calculation force request comprises a calculation force task and a task mirror image;
The first receiving module is used for receiving reply information of the computing power requests, which is broadcast by a plurality of nodes, wherein the reply information comprises service quotations;
The fourth processing module is used for screening the plurality of nodes according to the reply information and determining a power calculation service node for carrying out power calculation task delegation;
the fifth processing module is used for generating selection confirmation information according to the computing power service node and broadcasting the selection confirmation information;
The second receiving module is used for receiving a detection result of the task mirror image, which is broadcast by the detection node, and the detection result is used for determining whether to execute the computing power task by the computing power service node.
Optionally, after the second receiving module receives the detection result of the task image broadcast by the detection node, the apparatus further includes:
And the second sending module is used for sending a pulling and executing task mirror image request after receiving the power calculation task execution result sent by the power calculation service node if the detection result is that the detection result passes, wherein the pulling and executing task mirror image request is used for requesting the power calculation service node to pull and execute the task mirror image.
The embodiment of the application 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 meant to be exemplary only, and are not limiting of the implementations of the application described and/or claimed in this document.
The computing network processing device includes a processor and a memory, the various components being interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computing power network processing device, including instructions stored in or on memory for graphical information displayed on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. The memory is used as a non-transitory computer readable storage medium, and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first broadcast module 901, the first receive module 902, the fourth process module 903, the fifth process module 904, and the second receive module 905 of fig. 9) corresponding to a method of a computing power network processing device in an embodiment of the present application. The processor executes various functional applications of the authentication platform and data processing, i.e. the method of implementing the computing power network processing device in the above-described method embodiments, by running non-transitory software programs, instructions and modules stored in the memory.
The computing power network processing device may also include an input device and an output device. The processor, memory, input devices, and output devices may be connected by a bus or other means.
The input device may receive input numeric or character information and generate key signal inputs related to user settings and function control of the computing power network processing device, such as a touch screen, a keypad, a mouse, or a plurality of mouse buttons, a trackball, a joystick, or the like. The output means may be an output device such as a display device of the computing network processing device. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
The power calculation network processing device of the embodiment of the application can be used for executing the technical scheme of the method embodiments of the application, and the implementation principle and the technical effect are similar, and are not repeated here.
The embodiment of the application also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and the computer execution instructions are used for realizing the power calculation network processing method of any one of the above when being executed by a processor.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is used for realizing the power calculation network processing method of any one of the above steps when being executed by a processor.
Fig. 10 is a schematic structural diagram of still another power network processing apparatus according to an embodiment of the present application, and as shown in fig. 10, the apparatus according to an embodiment of the present application includes a second obtaining module 1001, a sixth processing module 1002, a second determining module 1003, and a second broadcasting module 1004. The computing network processing means may be a server or a chip or integrated circuit implementing the functions of a server. Here, 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 a logic function, and both may be integrated or independent physically.
The second acquisition module is used for acquiring a calculation force request broadcasted by the calculation force consignment node, wherein the calculation force request comprises a calculation force task and a task mirror image;
The sixth processing module is used for determining 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 pulling a task mirror image in the computing power service node;
The second determining module is used for detecting the task mirror image in the computing power request and the task mirror image in the computing power service node and determining whether a task operator and a computing power test code of the task mirror image in the computing power service node are abnormal or not;
And the second broadcasting module is used for broadcasting a detection result, and the detection result is used for determining whether to execute the power calculation task by the power calculation service node.
Optionally, after the second broadcasting module broadcasts the detection result, the apparatus further includes:
And the seventh processing module is used for pulling the task mirror image in the computing power entrusting node and detecting after receiving the task completion information broadcast by the computing power service node, and broadcasting abnormal information if the abnormality is detected.
The embodiment of the application 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 meant to be exemplary only, and are not limiting of the implementations of the application described and/or claimed in this document.
The computing network processing device includes a processor and a memory, the various components being interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computing power network processing device, including instructions stored in or on memory for graphical information displayed on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. The memory is used as a non-transitory computer readable storage medium, and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the second acquisition module 1001, the sixth processing module 1002, the second determination module 1003, and the second broadcast module 1004 shown in fig. 10) corresponding to a method of the computing network processing device in an embodiment of the present application. The processor executes various functional applications of the authentication platform and data processing, i.e. the method of implementing the computing power network processing device in the above-described method embodiments, by running non-transitory software programs, instructions and modules stored in the memory.
The computing power network processing device may also include an input device and an output device. The processor, memory, input devices, and output devices may be connected by a bus or other means.
The input device may receive input numeric or character information and generate key signal inputs related to user settings and function control of the computing power network processing device, such as a touch screen, a keypad, a mouse, or a plurality of mouse buttons, a trackball, a joystick, or the like. The output means may be an output device such as a display device of the computing network processing device. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
The power calculation network processing device of the embodiment of the application can be used for executing the technical scheme of the method embodiments of the application, and the implementation principle and the technical effect are similar, and are not repeated here.
The embodiment of the application also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and the computer execution instructions are used for realizing the power calculation network processing method of any one of the above when being executed by a processor.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is used for realizing the power calculation network processing method of any one of the above steps when being executed by a processor.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.