Computing power transaction method, device and system
By introducing Starkberg game into computing power trading, the trading strategies of both parties to computing power trading have reached Nash equilibrium, solving the problem that the existing technology cannot meet the expectations of both parties, and achieving the balance of computing power trading.
Patent Information
- Application Number
- CN202310653615.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-02
- Publication Date
- 2024-11-01
AI Technical Summary
The existing computing power trading methods cannot meet the expectations of both parties to the computing power trading at the same time, resulting in the inability to effectively achieve Nash equilibrium trading strategies during the computing power scheduling process between different organizations or institutions.
Starkberg game was introduced during computing power trading, and the balance of computing power trading was achieved by repeatedly generating trading strategies until the strategies of both parties met the Nash equilibrium point.
Through the Starkberg game, the trading strategies of both parties to the computing power transaction can achieve Nash equilibrium, meet the expectations of both parties, and solve the problem that the existing technology cannot meet the computing power transaction strategies that both parties to the computing power transaction at the same time.
Smart Images

Figure CN118887010A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a computing power trading method, device and system. Background Art
[0002] Existing computing power trading methods usually schedule computing power among different computing power resource pools within the same organization or institution. However, in wide-area, regional, and metropolitan network environments, there are various types of computing power resources, such as eastern computing power, western computing power, regional computing power, metropolitan computing power, edge computing power, etc. These computing powers often belong to different organizations or institutions and are affected by factors such as reputation and market competition. The transaction parties between different organizations or institutions are often priced by one party during the computing power scheduling process, and are the dominant party in the computing power scheduling process. Existing computing power trading methods have the problem of being unable to simultaneously meet the computing power trading strategies expected by both parties to the computing power transaction. Summary of the invention
[0003] The technical problem to be solved by the present invention is to address the above-mentioned deficiencies in the prior art and to provide a computing power trading method, device and system. In the process of computing power trading, the Stackelberg game is added, and the two parties to the computing power trading repeatedly generate trading strategies until the trading strategies of both parties satisfy the Nash equilibrium, so as to solve the problem that the existing computing power trading method cannot simultaneously satisfy the computing power trading strategies expected by both parties to the computing power trading.
[0004] In a first aspect, the present invention provides a computing power trading method, which is applied to a target computing power core node, comprising:
[0005] Step S11, receiving a transaction request sent by a target computing power demand node;
[0006] Step S12, generating a target selling strategy according to the transaction request and pre-stored node resource selling information;
[0007] Step S13, sending the target selling strategy to the target computing power demand node, so that the target computing power demand node generates a target purchasing strategy according to the target selling strategy;
[0008] Step S14, receiving the target purchase strategy sent by the target computing power demand node;
[0009] Step S15, determine whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game. If so, perform target computing power trading according to the Nash equilibrium point. Otherwise, update the target selling strategy according to the target purchase strategy and return to step S13.
[0010] Preferably, before receiving the transaction request sent by the target computing power demand node, step S11 further includes:
[0011] Upload the target computing power resources and network environment information to the computing network brain for registration, so that the computing network brain selects the target computing power core node from the registered nodes according to the target computing power resources and network environment information;
[0012] In response to the computing network brain entering the transaction service state, it receives node resource selling information uploaded by computing power selling nodes within a preset range, wherein the node resource selling information includes the node's available computing power, network environment and starting price.
[0013] Preferably, the Nash equilibrium point of the Stackelberg game satisfies the following formula:
[0014]
[0015]
[0016] Among them, x i is the target selling strategy of the i-th computing power selling node, y j The target purchasing strategy for purchasing computing power from the jth computing power selling node is: is the target selling strategy of the i-th computing power selling node in addition to the target selling strategy that satisfies the Nash equilibrium, To purchase computing power from the jth computing power selling node and the target purchasing strategy other than the target purchasing strategy that satisfies the Nash equilibrium, The target selling strategy for the i-th computing power selling node to satisfy the Nash equilibrium is: The target purchasing strategy is to purchase computing power from the j-th computing power selling node and satisfy the Nash equilibrium.
[0017] Preferably, the Nash equilibrium point is (x * ,y * ),in,
[0018]
[0019]
[0020] In the formula, m≥i, m≥n≥j.
[0021] Preferably, before the target computing power transaction is performed according to the target Nash equilibrium point, the method further includes:
[0022] Signing the target computing power transaction;
[0023] The target computing power transaction information and the signature are broadcast to the target proxy nodes within a preset range, so that the target proxy nodes verify the target computing power transaction according to the target computing power transaction information and the signature.
[0024] In a second aspect, the present invention further provides a computing power trading method, which is applied to a target computing power demand node, comprising:
[0025] Step S21, sending a transaction request to a target computing power core node, so that the target computing power core node generates a target selling strategy according to the transaction request and pre-stored node resource selling information;
[0026] Step S22, in response to receiving the target selling strategy sent by the target computing power core node, generating a target purchasing strategy according to the target selling strategy;
[0027] Step S23, sending the target purchase strategy to the target computing power core node, so that the target computing power core node determines whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game, and performs target computing power transactions according to the Nash equilibrium point when the judgment is yes.
[0028] Preferably, before sending the transaction request to the target computing power core node, step S21 further includes:
[0029] The target computing power resources and network environment information are uploaded to the computing network brain for registration, so that the computing network brain selects the target computing power core node from the registered nodes according to the target computing power resources and network environment information.
[0030] In a third aspect, the present invention further provides a computing power trading device, which is arranged at a target computing power core node, comprising:
[0031] A first receiving module, used to receive a transaction request sent by a target computing power demand node;
[0032] A generating module, connected to the receiving module, for generating a target selling strategy according to the transaction request and pre-stored node resource selling information;
[0033] A first sending module, connected to the generating module, for sending the target selling strategy to the target computing power demand node, so that the target computing power demand node generates a target purchasing strategy according to the target selling strategy;
[0034] A second receiving module, connected to the first sending module, for receiving a target purchase strategy sent by the target computing power demand node;
[0035] The judgment module is connected to the second receiving module, and is used to judge whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game. If so, the target computing power transaction is performed according to the Nash equilibrium point; otherwise, the target selling strategy is updated according to the target purchase strategy, and the result is returned to the first sending module.
[0036] In a fourth aspect, the present invention further provides a computing power trading device, which is arranged at a target computing power demand node, comprising:
[0037] A second sending module is used to send a transaction request to a target computing power core node, so that the target computing power core node generates a target selling strategy according to the transaction request and pre-stored node resource selling information;
[0038] a response module, connected to the second sending module, configured to generate a target purchase strategy according to the target selling strategy in response to receiving the target selling strategy sent by the target computing power core node;
[0039] The third sending module is connected to the response module and is used to send the target purchase strategy to the target computing power core node, so that the target computing power core node determines whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game, and performs target computing power transactions according to the Nash equilibrium point when the judgment is yes.
[0040] In a fifth aspect, the present invention further provides a computing power trading device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the computing power trading method described in the first aspect above, or to implement the computing power trading method described in the second aspect above.
[0041] In a sixth aspect, the present invention further provides a computing power trading system, comprising a target computing power core node and a target computing power demand node;
[0042] The target computing power core node is used to execute the computing power trading method described in the first aspect above;
[0043] The target computing power demand node is used to execute the computing power trading method described in the second aspect above.
[0044] The computing power trading method, device and system provided by the present invention include: a target computing power core node receives a trading request sent by a target computing power demand node; generates a target selling strategy according to the trading request and pre-stored node resource selling information; sends the target selling strategy to the target computing power demand node, so that the target computing power demand node generates a target purchasing strategy according to the target selling strategy; receives the target purchasing strategy sent by the target computing power demand node; determines whether the target purchasing strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game, and if so, performs target computing power trading according to the Nash equilibrium point, otherwise, updates the target selling strategy according to the target purchasing strategy, and returns to the step of sending the target selling strategy to the target computing power demand node. Since the present invention adds the Stackelberg game in the process of computing power trading, the two parties to the computing power trading repeatedly generate trading strategies until the trading strategies of both parties meet the Nash equilibrium, thereby solving the problem that the existing computing power trading method cannot simultaneously meet the computing power trading strategies expected by both parties to the computing power trading. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is a flow chart of a computing power trading method according to Embodiment 1 of the present invention;
[0046] Figure 2 This is a flow chart of a computing power trading method according to Embodiment 2 of the present invention;
[0047] Figure 3 This is a schematic diagram of the structure of a computing power trading device according to Embodiment 3 of the present invention;
[0048] Figure 4 This is a schematic diagram of the structure of a computing power trading device according to Embodiment 4 of the present invention;
[0049] Figure 5 This is a schematic diagram of the structure of a computing power trading device according to Example 5 of the present invention. DETAILED DESCRIPTION
[0050] In order to enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0051] It should be understood that the specific embodiments and drawings described herein are only used to explain the present invention rather than to limit the present invention.
[0052] It can be understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other.
[0053] It can be understood that, for the convenience of description, the drawings of the present invention only show the parts related to the present invention, while the parts irrelevant to the present invention are not shown in the drawings.
[0054] It can be understood that each unit and module involved in the embodiments of the present invention may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.
[0055] It can be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.
[0056] It is understood that the flowcharts and block diagrams of the present invention illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present invention. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.
[0057] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.
[0058] Embodiment 1:
[0059] This embodiment provides a computing power trading method, which is applied to the target computing power core node, such as Figure 1 As shown, the method includes:
[0060] Step S11, receiving a transaction request sent by the target computing power demand node.
[0061] In this embodiment, the target computing power core nodes can be divided into levels. When computing power transactions are conducted within the same area, the computing power transactions can be represented by low-level target computing power core nodes. When computing power transactions are conducted across regions, the computing power transactions can be represented by high-level target computing power core nodes in the corresponding regions.
[0062] The computing power resource pool is collectively referred to as a node. The target computing power core node is a node with a long registration time and a large historical transaction volume within a region. It has rich computing power resources and higher energy efficiency than ordinary nodes. It mainly sells computing power and has an agency trading function, and is responsible for transaction agency work within the jurisdiction.
[0063] Optionally, before step S11, receiving the transaction request sent by the target computing power demand node, further includes:
[0064] Upload the target computing power resources and network environment information to the computing network brain for registration, so that the computing network brain selects the target computing power core node from the registered nodes according to the target computing power resources and network environment information;
[0065] In response to the computing network brain entering the transaction service state, it receives node resource selling information uploaded by computing power selling nodes within a preset range, wherein the node resource selling information includes the node's available computing power, network environment and starting price.
[0066] In this embodiment, in the computing power network, there is a computing network brain, which is responsible for the resource management and orchestration work such as node management, path management, computing power identification, information collection, and policy issuance of the entire network; the computing network brain selects core nodes by region by evaluating node registration time, historical transaction volume and other information. The core node election can be carried out through the DPoS (Delegated Proof of Stake) mechanism.
[0067] Each node entering the network must register in the computing network brain, and regularly select the target computing power core nodes based on information such as the longest registration time, node computing power, node network environment, historical transaction volume, etc., and exclude the priority of the target computing power core nodes.
[0068] At the same time, the computing network brain can regularly monitor the service status of the target computing power core node, and can be responsible for computing power transactions across a wide area or when the target computing power core node responds timeout.
[0069] Step S12: generating a target selling strategy according to the transaction request and pre-stored node resource selling information.
[0070] In this embodiment, the target computing power core node collects node resource sale information in the jurisdiction, such as available computing power, network environment, starting price, etc., and enters the computing power transaction service state. The target sale strategy is x={x 1 ,x 2 …x m}, where m represents the number of nodes that sell computing power through the target computing power core node agent.
[0071] Step S13: Send the target selling strategy to the target computing power demand node, so that the target computing power demand node generates a target purchasing strategy according to the target selling strategy.
[0072] In this embodiment, the target purchase strategy generated by the target computing power demand node is y={y 1 ,y 2 …y m}, where n represents the number of nodes selling computing power from which computing power is purchased.
[0073] Step S14, receiving the target purchase strategy sent by the target computing power demand node.
[0074] Step S15, determine whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game. If so, perform target computing power trading according to the Nash equilibrium point. Otherwise, update the target selling strategy according to the target purchase strategy and return to step S13.
[0075] In this embodiment, the utility function of the target computing power core node for selling resources is U(x, y), and the utility function of the target computing power demand node for purchasing computing power resources is G(x, y).
[0076] Through the Stackelberg game, the two parties in the computing power transaction make repeated quotations until their quotations satisfy the Nash equilibrium. The target purchase strategy and target selling strategy that satisfy the Nash equilibrium are used as the final transaction plan, which can meet the expectations of both parties for the transaction.
[0077] Optionally, the Nash equilibrium point of the Stackelberg game satisfies the following formula:
[0078]
[0079]
[0080] Among them, x i is the target selling strategy of the i-th computing power selling node, y j The target purchasing strategy for purchasing computing power from the jth computing power selling node is: is the target selling strategy of the i-th computing power selling node in addition to the target selling strategy that satisfies the Nash equilibrium, To purchase computing power from the jth computing power selling node and the target purchasing strategy other than the target purchasing strategy that satisfies the Nash equilibrium, The target selling strategy for the i-th computing power selling node to satisfy the Nash equilibrium is: The target purchasing strategy is to purchase computing power from the j-th computing power selling node and satisfy the Nash equilibrium.
[0081] Optionally, the Nash equilibrium point is (x * ,y * ),in,
[0082]
[0083]
[0084] In the formula, m≥i, m≥n≥j.
[0085] Optionally, before the target computing power transaction is performed according to the target Nash equilibrium point, the method further includes:
[0086] Signing the target computing power transaction;
[0087] The target computing power transaction information and the signature are broadcast to the target proxy nodes within a preset range, so that the target proxy nodes verify the target computing power transaction according to the target computing power transaction information and the signature.
[0088] In this embodiment, the computing power core nodes in other areas can act as proxy nodes to receive the information and signature of the target computing power transaction, and then verify the legitimacy of the transaction, store the verified transactions in the transaction pool, and further broadcast them on the P2P (point to point) network. The target computing power core node notifies both the computing power supply and demand parties to start the transaction and conduct post-transaction evaluation.
[0089] In a specific embodiment, the computing power trading method may include the following steps:
[0090] Step 1: The computing node joins the network, registers in the computing network brain, and provides information such as computing resources and network environment;
[0091] Step 2: The computing network brain regularly selects regional core nodes based on the length of registration time, node computing power, node network environment, historical transaction volume and other information;
[0092] Step 3: The computing network brain enters the transaction service state and regularly monitors the service status of the core nodes;
[0093] Step 4: The core node collects node resource sale information in the jurisdiction, such as available computing power, network environment, starting price, etc., and enters the computing power transaction service state;
[0094] Step 5: The core node collects the computing power transaction demand in the jurisdiction area and generates a computing power sales strategy based on the collected node resource sales information;
[0095] Step 6: Send the computing power selling strategy to the computing power demand node. The computing power demand node selects the intended transaction node and / or node set based on the received computing power selling strategy and generates a new round of computing power purchase strategy;
[0096] Step 7: The core node and the computing power demand node follow the Stackelberg game, repeatedly quote, and determine whether the Nash equilibrium is met. If it is announced that the transaction has not been reached, the core node updates the computing power sales strategy and returns to step 6, otherwise execute step 8;
[0097] Step 8: If the transaction is reached, the core node acting as the agent for the transaction will sign the transaction and broadcast the transaction information to the core nodes in other regions;
[0098] Step 9: After receiving the signed transaction, the core nodes in other regions verify the legitimacy of the transaction. After verification, illegal transactions are discarded and legal transactions are stored in the transaction pool. At the same time, further P2P network broadcasting;
[0099] Step 10: The core node acting as the agent for this transaction notifies both parties of computing power supply and demand to start the transaction, and conducts post-transaction evaluation to end this process.
[0100] The computing power trading method provided by the embodiment of the present invention comprises the following steps: a target computing power core node receives a trading request sent by a target computing power demand node; a target selling strategy is generated according to the trading request and pre-stored node resource selling information; the target selling strategy is sent to the target computing power demand node, so that the target computing power demand node generates a target purchasing strategy according to the target selling strategy; the target purchasing strategy sent by the target computing power demand node is received; it is determined whether the target purchasing strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game, if so, the target computing power trading is performed according to the Nash equilibrium point, otherwise, the target selling strategy is updated according to the target purchasing strategy, and the step of sending the target selling strategy to the target computing power demand node is returned. Since the present invention adds the Stackelberg game in the process of computing power trading, the two parties of the computing power trading repeatedly generate trading strategies until the trading strategies of both parties satisfy the Nash equilibrium, thereby solving the problem that the existing computing power trading method cannot simultaneously satisfy the computing power trading strategies expected by both parties of the computing power trading.
[0101] Embodiment 2:
[0102] This embodiment provides a computing power trading method, which is applied to a target computing power demand node, such as Figure 2 As shown, the method includes
[0103] Step S21, sending a transaction request to a target computing power core node, so that the target computing power core node generates a target selling strategy according to the transaction request and pre-stored node resource selling information.
[0104] Optionally, before sending the transaction request to the target computing power core node, step S21 further includes:
[0105] The target computing power resources and network environment information are uploaded to the computing network brain for registration, so that the computing network brain selects the target computing power core node from the registered nodes according to the target computing power resources and network environment information.
[0106] In this embodiment, in the computing power network, there is a computing network brain, which is responsible for the resource management and orchestration work such as node management, path management, computing power identification, information collection, and policy issuance of the entire network; the computing network brain selects core nodes by region by evaluating node registration time, historical transaction volume and other information. The core node election can be carried out through the DPoS (Delegated Proof of Stake) mechanism.
[0107] Each node entering the network must register in the computing network brain, and regularly select the target computing power core nodes based on information such as the longest registration time, node computing power, node network environment, historical transaction volume, etc., and exclude the priority of the target computing power core nodes.
[0108] At the same time, the computing network brain can regularly monitor the service status of the target computing power core node, and can be responsible for computing power transactions across a wide area or when the target computing power core node responds timeout.
[0109] Step S22, in response to receiving the target selling strategy sent by the target computing power core node, generating a target purchasing strategy according to the target selling strategy.
[0110] In this embodiment, the target computing power core node collects node resource sale information in the jurisdiction, such as available computing power, network environment, starting price, etc., and enters the computing power transaction service state. The target sale strategy is x={x 1 ,x 2 …x m}, where m represents the number of nodes that sell computing power through the target computing power core node agent.
[0111] The target purchase strategy generated by the target computing power demand node is y = {y 1 ,y 2 …y m}, where n represents the number of nodes selling computing power from which computing power is purchased.
[0112] Step S23, sending the target purchase strategy to the target computing power core node, so that the target computing power core node determines whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game, and performs target computing power transactions according to the Nash equilibrium point when the judgment is yes.
[0113] In this embodiment, through the Stackelberg game, the two parties in the computing power transaction are allowed to repeatedly quote until the quotes of both parties satisfy the Nash equilibrium. The target purchase strategy and the target selling strategy that satisfy the Nash equilibrium are used as the final transaction plan, which can meet the expectations of both parties for the transaction.
[0114] Embodiment 3:
[0115] This embodiment provides a computing power trading device, which is set at the target computing power core node, such as Figure 3 As shown, including:
[0116] The first receiving module 101 is used to receive a transaction request sent by a target computing power demand node;
[0117] The generating module 102 is connected to the receiving module 101 and is used to generate a target selling strategy according to the transaction request and the pre-stored node resource selling information;
[0118] A first sending module 103, connected to the generating module 102, is used to send the target selling strategy to the target computing power demand node, so that the target computing power demand node generates a target purchasing strategy according to the target selling strategy;
[0119] The second receiving module 104 is connected to the first sending module 103 and is used to receive the target purchase strategy sent by the target computing power demand node;
[0120] The judgment module 105 is connected to the second receiving module 104, and is used to judge whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game. If so, the target computing power transaction is performed according to the Nash equilibrium point; otherwise, the target selling strategy is updated according to the target purchase strategy, and the result is returned to the first sending module 103.
[0121] Preferably, the device further comprises:
[0122] The first registration module is used to upload the target computing power resources and network environment information to the computing network brain for registration, so that the computing network brain selects the target computing power core node from the registered nodes according to the target computing power resources and network environment information;
[0123] The service module is used to receive node resource sale information uploaded by the computing power selling nodes within a preset range in response to the computing network brain entering the transaction service state, wherein the node resource sale information includes the node's available computing power, network environment and starting price.
[0124] Preferably, the Nash equilibrium point of the Stackelberg game satisfies the following formula:
[0125]
[0126]
[0127] Among them, x i is the target selling strategy of the i-th computing power selling node, y jThe target purchasing strategy for purchasing computing power from the jth computing power selling node is: is the target selling strategy of the i-th computing power selling node in addition to the target selling strategy that satisfies the Nash equilibrium, To purchase computing power from the jth computing power selling node and the target purchasing strategy other than the target purchasing strategy that satisfies the Nash equilibrium, The target selling strategy for the i-th computing power selling node to satisfy the Nash equilibrium is: The target purchasing strategy is to purchase computing power from the j-th computing power selling node and satisfy the Nash equilibrium.
[0128] Preferably, the Nash equilibrium point is (x * ,y * ),in,
[0129]
[0130]
[0131] In the formula, m≥i, m≥n≥j.
[0132] Preferably, the device further comprises:
[0133] A signature module, used to sign the target computing power transaction;
[0134] The broadcast module is used to broadcast the information of the target computing power transaction and the signature to the target proxy node within a preset range, so that the target proxy node verifies the target computing power transaction according to the information of the target computing power transaction and the signature.
[0135] Embodiment 4:
[0136] This embodiment provides a computing power trading device, which is set at a target computing power demand node, such as Figure 4 As shown, including:
[0137] The second sending module 201 is used to send a transaction request to a target computing power core node, so that the target computing power core node generates a target selling strategy according to the transaction request and pre-stored node resource selling information;
[0138] A response module 202, connected to the second sending module 201, is used to generate a target purchase strategy according to the target selling strategy in response to receiving the target selling strategy sent by the target computing power core node;
[0139] The third sending module 203 is connected to the response module 202, and is used to send the target purchase strategy to the target computing power core node, so that the target computing power core node determines whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game, and performs the target computing power transaction according to the Nash equilibrium point when the judgment is yes.
[0140] Preferably, the device further comprises:
[0141] The second registration module is used to upload the target computing power resources and network environment information to the computing network brain for registration, so that the computing network brain selects the target computing power core node from the registered nodes according to the target computing power resources and network environment information.
[0142] Embodiment 5:
[0143] This embodiment provides a computing power trading device, including a memory 31 and a processor 32, wherein the memory 31 stores a computer program, and the processor 32 is configured to run the computer program to implement the computing power trading method as described in Example 1, or to implement the computing power trading method as described in Example 2.
[0144] Embodiment 6:
[0145] This embodiment provides a computing power trading system, including a target computing power core node and a target computing power demand node;
[0146] The target computing power core node is used to execute the computing power trading method described in Example 1;
[0147] The target computing power demand node is used to execute the computing power trading method described in Example 2.
[0148] The computing power trading method, device and system provided in Examples 2 to 6 are as follows: the target computing power core node receives the trading request sent by the target computing power demand node; generates a target selling strategy according to the trading request and pre-stored node resource selling information; sends the target selling strategy to the target computing power demand node, so that the target computing power demand node generates a target purchasing strategy according to the target selling strategy; receives the target purchasing strategy sent by the target computing power demand node; determines whether the target purchasing strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game, and if so, performs the target computing power trading according to the Nash equilibrium point, otherwise, updates the target selling strategy according to the target purchasing strategy, and returns to the step of sending the target selling strategy to the target computing power demand node. Since the present invention adds the Stackelberg game in the process of computing power trading, the two parties to the computing power trading repeatedly generate trading strategies until the trading strategies of both parties meet the Nash equilibrium, thereby solving the problem that the existing computing power trading method cannot simultaneously meet the computing power trading strategies expected by both parties to the computing power trading.
[0149] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A computing power trading method, characterized in that: Applied to the target computing power core node, the method includes: Step S11, receiving a transaction request sent by a target computing power demand node; Step S12, generating a target selling strategy according to the transaction request and pre-stored node resource selling information; Step S13, sending the target selling strategy to the target computing power demand node, so that the target computing power demand node generates a target purchasing strategy according to the target selling strategy; Step S14, receiving the target purchase strategy sent by the target computing power demand node; Step S15, determine whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game. If so, perform target computing power trading according to the Nash equilibrium point. Otherwise, update the target selling strategy according to the target purchase strategy and return to step S13.
2. The computing power trading method according to claim 1, characterized in that: The step S11, before receiving the transaction request sent by the target computing power demand node, also includes: Upload the target computing power resources and network environment information to the computing network brain for registration, so that the computing network brain selects the target computing power core node from the registered nodes according to the target computing power resources and network environment information; In response to the computing network brain entering the transaction service state, it receives node resource selling information uploaded by computing power selling nodes within a preset range, wherein the node resource selling information includes the node's available computing power, network environment and starting price.
3. The computing power trading method according to claim 2, characterized in that: The Nash equilibrium point of the Stackelberg game satisfies the following formula: Among them, x i is the target selling strategy of the i-th computing power selling node, y j The target purchase strategy for purchasing computing power from the j-th computing power selling node is: is the target selling strategy of the i-th computing power selling node in addition to the target selling strategy that satisfies the Nash equilibrium, To purchase computing power from the jth computing power selling node and to have a target purchasing strategy other than the target purchasing strategy that satisfies the Nash equilibrium, The target selling strategy for the i-th computing power selling node to satisfy the Nash equilibrium is: The target purchasing strategy is to purchase computing power from the j-th computing power selling node and satisfy the Nash equilibrium.
4. The computing power trading method according to claim 3, characterized in that: The Nash equilibrium point is (x * ,y * ),in, In the formula, m≥i, m≥n≥j.
5. The computing power trading method according to claim 1, characterized in that: Before the target computing power transaction is performed according to the target Nash equilibrium point, the method further includes: Signing the target computing power transaction; The target computing power transaction information and the signature are broadcast to the target proxy nodes within a preset range, so that the target proxy nodes verify the target computing power transaction according to the target computing power transaction information and the signature.
6. A computing power trading method, characterized in that: Applied to the target computing power demand node, the method includes: Step S21, sending a transaction request to a target computing power core node, so that the target computing power core node generates a target selling strategy according to the transaction request and pre-stored node resource selling information; Step S22, in response to receiving the target selling strategy sent by the target computing power core node, generating a target purchasing strategy according to the target selling strategy; Step S23, sending the target purchase strategy to the target computing power core node, so that the target computing power core node determines whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game, and performs target computing power transactions according to the Nash equilibrium point when the judgment is yes.
7. The computing power trading method according to claim 6, characterized in that: The step S21, before sending the transaction request to the target computing power core node, also includes: The target computing power resources and network environment information are uploaded to the computing network brain for registration, so that the computing network brain selects the target computing power core node from the registered nodes according to the target computing power resources and network environment information.
8. A computing power trading device, characterized in that: Set at the target computing power core node, the device includes: A first receiving module, used to receive a transaction request sent by a target computing power demand node; A generating module, connected to the receiving module, for generating a target selling strategy according to the transaction request and pre-stored node resource selling information; A first sending module, connected to the generating module, for sending the target selling strategy to the target computing power demand node, so that the target computing power demand node generates a target purchasing strategy according to the target selling strategy; A second receiving module, connected to the first sending module, for receiving a target purchase strategy sent by the target computing power demand node; The judgment module is connected to the second receiving module, and is used to judge whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game. If so, the target computing power transaction is performed according to the Nash equilibrium point; otherwise, the target selling strategy is updated according to the target purchase strategy, and the result is returned to the first sending module.
9. A computing power trading device, characterized in that: Set at the target computing power demand node, the device includes: A second sending module is used to send a transaction request to a target computing power core node, so that the target computing power core node generates a target selling strategy according to the transaction request and pre-stored node resource selling information; a response module, connected to the second sending module, configured to generate a target purchase strategy according to the target selling strategy in response to receiving the target selling strategy sent by the target computing power core node; The third sending module is connected to the response module and is used to send the target purchase strategy to the target computing power core node, so that the target computing power core node determines whether the target purchase strategy and the target selling strategy have a Nash equilibrium point of the Stackelberg game, and performs target computing power transactions according to the Nash equilibrium point when the judgment is yes.
10. A computing power trading device, characterized in that: It includes a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the computing power trading method as described in any one of claims 1 to 5, or to implement the computing power trading method as described in claims 6 to 7.
11. A computing power trading system, characterized in that: Including target computing power core nodes and target computing power demand nodes; The target computing power core node is used to execute the computing power trading method described in any one of claims 1 to 5; The target computing power demand node is used to execute the computing power trading method described in any one of claims 6-7.
