CN117407164A - Method and device for providing computing power service, electronic equipment and storage medium - Google Patents

Method and device for providing computing power service, electronic equipment and storage medium Download PDF

Info

Publication number
CN117407164A
CN117407164A CN202311354866.8A CN202311354866A CN117407164A CN 117407164 A CN117407164 A CN 117407164A CN 202311354866 A CN202311354866 A CN 202311354866A CN 117407164 A CN117407164 A CN 117407164A
Authority
CN
China
Prior art keywords
computing power
chain node
node end
resource data
incentive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311354866.8A
Other languages
Chinese (zh)
Other versions
CN117407164B (en
Inventor
林群阳
赵雅倩
张闯
刘陆阳
王敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311354866.8A priority Critical patent/CN117407164B/en
Publication of CN117407164A publication Critical patent/CN117407164A/en
Application granted granted Critical
Publication of CN117407164B publication Critical patent/CN117407164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Mathematical Physics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for providing a computing power service, which relate to the technical field of providing the computing power service and are implemented by acquiring first computing power resource data; transmitting the first computing power resource data to a cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information; the demand chain node end equipment is used for acquiring calculation force demand data and excitation preference information; the demand chain node end equipment is used for calling a transaction incentive model and generating order information based on the calculation force requirement data, incentive preference information, first calculation force resource data and incentive factor information; the demand chain node end equipment is used for sending order information to the cross-chain module; the cross-link module is used for forwarding order information to the supply chain node end equipment; and receiving order information, and calling a corresponding computing power server to provide computing power service based on the order information.

Description

Method and device for providing computing power service, electronic equipment and storage medium
Technical Field
The present invention relates to the technical field of providing a computing service, and in particular, to a computing service providing method, a computing service providing apparatus, an electronic device, and a computer readable storage medium.
Background
Cloud computing (clouding) is one type of distributed computing, which refers to decomposing a huge data computing process program into numerous small programs through a network "cloud", and then processing and analyzing the small programs through a system composed of multiple servers to obtain results and returning the results to users. Early cloud computing, simply referred to as simple distributed computing, solves task distribution, and performs merging of computing results. Thus, cloud computing is also known as grid computing. By this technique, processing of tens of thousands of data can be completed in a short time (several seconds), thereby achieving a powerful network service.
At present, the related art aims at the fact that the order generation mode of cloud computing is single, and generation of orders based on various incentive mechanisms is not considered, so that the demands of users cannot be met, and meanwhile, the waste of computing power resources is caused.
Disclosure of Invention
The embodiment of the invention provides a method, a device, electronic equipment and a computer readable storage medium for providing a computing power service, so as to solve the problem of order generation mode singleness.
The embodiment of the invention discloses a power calculation service providing method, which is characterized by being applied to supply chain node end equipment, wherein the supply chain node end equipment is provided with a corresponding chain crossing module, and the supply chain node end equipment performs data interaction with the corresponding demand chain node end equipment through the chain crossing module, and comprises the following steps:
acquiring first computing power resource data;
transmitting the first computing power resource data to the cross-chain module;
the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information;
the demand chain node end equipment is used for acquiring calculation force requirement data and excitation preference information;
the demand chain node end equipment is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information;
the demand chain node end equipment is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node end equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment;
Receiving the order information, calling a corresponding computing power server based on the order information to provide computing power service, acquiring second computing power resource data when updating recorded second computing power resource data is monitored, and synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
Optionally, the supply chain node-end device is provided with a registration interface, and the step of acquiring the first computing power resource data includes:
and acquiring first computing power resource data by adopting the registration interface.
Optionally, the supply chain node end device is provided with an update interface, and the step of acquiring the second computing power resource data includes:
and acquiring second computing power resource data by adopting the updating interface.
Optionally, the supply chain node end device is provided with a viewing interface for outputting an incentive factor vector for expressing the incentive factor information.
Optionally, the supply chain node end device is provided with an additional interface for modifying the excitation factor vector; the cross-chain module is used to synchronize the modified stimulus factor vector to other supply chain node end devices.
Optionally, invoking the transaction incentive model to generate order information based on the computing power requirement data, incentive preference information, first computing power resource data, and the incentive factor information by:
the system comprises a supply chain node end device, a demand chain node end device, an excitation preference vector, an excitation factor type and an excitation factor type, wherein all calculation power supply user sets on the supply chain node end device which are in butt joint with the demand chain node end device are expressed as P, any calculation power supply user P epsilon P of the supply chain node end device, the total processing capacity of calculation power service provided by P is Rp, the idle processing capacity is Lp, the calculation power specification set is < Sp1, sp2, & gt, spK >, quotations corresponding to the calculation power specification are < Cp1, cp2, & gt, cpK, cpm (1 is less than or equal to m and is less than or equal to K, K is the number of different calculation power specifications and is the price of the calculation power specification Spm, the excitation factor vector is expressed as < Ep1, ep2, & gt, epN >, epj (1 is less than or equal to j N, N is the number of excitation factors), the excitation preference vector is identified as < B1, B2, & gt, bj (1 is less than or equal to N) is the number of the required excitation factors corresponding to the set to the excitation power specification, and Dq is set to be used for the influence factor D;
When the U inputs the excitation preference B and the calculation force requirement D, judging whether the calculation force requirement can be processed in a slicing way;
optionally, the requirement chain node end device includes an acquisition solution interface, and the requirement chain node end device is configured to acquire the calculation power requirement data and the incentive preference information sent by the consumer through the acquisition solution interface.
Optionally, the demand chain node end device includes an acceptance solution interface, and the demand chain node end device is configured to invoke the transaction incentive model, generate a recommendation scheme based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information, and display the recommendation scheme to a consumer user;
and when the demand chain node end equipment receives the confirmation information sent by the consumption user through the acceptance solution interface, generating order information for the recommended scheme.
Optionally, the demand chain node end device is provided with a start interface, and the step of receiving the order information and calling the corresponding computing power server to provide the computing power service based on the order information includes:
when the computing power resource of the supplier accords with the order information, sending a starting computing power transaction application aiming at the order information to the cross-link module, wherein the cross-link module is used for replying acceptance information aiming at the order information to the demand chain node end equipment through the starting interface.
Optionally, the initiation interface is further used for settling accounts for the computing power service.
The embodiment of the invention also discloses a power calculation service providing method which is applied to the demand chain node end equipment, wherein the demand chain node end equipment is provided with a corresponding chain crossing module, the demand chain node end equipment performs data interaction with the corresponding supply chain node end equipment through the chain crossing module, and the supply chain node end equipment is used for acquiring first power calculation resource data; transmitting the first computing power resource data to the cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information; comprising the following steps:
acquiring calculation force requirement data and excitation preference information;
invoking the transaction incentive model to generate order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information;
when the order information is judged to be the order for the supply chain node-end equipment, the order information is sent to the cross-chain module;
The cross-link module is used for forwarding the order information to the supply chain node end equipment; the supply chain node end equipment is used for receiving the order information, and calling a corresponding computing power server to provide computing power service based on the order information; when the updated and recorded second computing power resource data is monitored, acquiring the second computing power resource data; and synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
Optionally, the supply chain node-end device is provided with a registration interface, and the supply chain node-end device is configured to acquire the first computing resource data using the registration interface.
Optionally, the supply chain node end device is provided with an update interface, and the supply chain node end device is configured to acquire the second computing power resource data by adopting the update interface.
Optionally, the supply chain node end device is provided with a viewing interface for outputting an incentive factor vector for expressing the incentive factor information.
Optionally, the supply chain node end device is provided with an additional interface for modifying the excitation factor vector; the cross-chain module is used to synchronize the modified stimulus factor vector to other supply chain node end devices.
Optionally, invoking the transaction incentive model to generate order information based on the computing power requirement data, incentive preference information, first computing power resource data, and the incentive factor information by:
the system comprises a supply chain node end device, a demand chain node end device, an excitation preference vector, an excitation factor type and an excitation factor type, wherein all calculation power supply user sets on the supply chain node end device which are in butt joint with the demand chain node end device are expressed as P, any calculation power supply user P epsilon P of the supply chain node end device, the total processing capacity of calculation power service provided by P is Rp, the idle processing capacity is Lp, the calculation power specification set is < Sp1, sp2, & gt, spK >, quotations corresponding to the calculation power specification are < Cp1, cp2, & gt, cpK, cpm (1 is less than or equal to m and is less than or equal to K, K is the number of different calculation power specifications and is the price of the calculation power specification Spm, the excitation factor vector is expressed as < Ep1, ep2, & gt, epN >, epj (1 is less than or equal to j N, N is the number of excitation factors), the excitation preference vector is identified as < B1, B2, & gt, bj (1 is less than or equal to N) is the number of the required excitation factors corresponding to the set to the excitation power specification, and Dq is set to be used for the influence factor D;
When the U inputs the excitation preference B and the calculation force requirement D, judging whether the calculation force requirement can be processed in a slicing way;
optionally, the demand chain node end device includes an acquisition solution interface, and the step of acquiring the computing power requirement data and the incentive preference information includes:
the computing power demand data and incentive preference information sent by the consuming user are obtained through the acquisition solution interface.
Optionally, the demand chain node end device includes an acceptance solution interface, and the step of calling the transaction incentive model to generate order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information includes:
invoking the transaction incentive model, generating a recommendation scheme based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information, and displaying the recommendation scheme to a consumption user;
and when the demand chain node end equipment receives the confirmation information sent by the consumption user through the acceptance solution interface, generating order information for the recommended scheme.
Optionally, the demand chain node end device is provided with a starting interface, and the demand chain node end device is configured to send a starting computing power transaction application for the order information to the cross-chain module when it is determined that the computing power resource of the supplier accords with the order information, and the cross-chain module is configured to reply to the demand chain node end device with acceptance information for the order information through the starting interface.
Optionally, the initiation interface is further used for settling accounts for the computing power service.
The embodiment of the invention also discloses a power calculation service providing device which is applied to the supply chain node end equipment, wherein the supply chain node end equipment is provided with a corresponding chain crossing module, and the supply chain node end equipment performs data interaction with the corresponding demand chain node end equipment through the chain crossing module, and the power calculation service providing device comprises the following components:
the first computing power resource data acquisition module is used for acquiring first computing power resource data;
the first computing power resource data sending module is used for sending the first computing power resource data to the cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information;
the demand chain node end equipment is used for acquiring calculation force requirement data and excitation preference information; the demand chain node end equipment is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information; the demand chain node end equipment is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node end equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment;
The order information receiving module is used for receiving the order information, calling a corresponding computing power server to provide computing power service based on the order information, acquiring second computing power resource data when updating input second computing power resource data is monitored, and synchronizing the second computing power resource data to the demand chain node end equipment through the chain crossing module.
The embodiment of the invention also discloses a power calculation service providing device which is applied to the demand chain node end equipment, wherein the demand chain node end equipment is provided with a corresponding chain crossing module, the demand chain node end equipment performs data interaction with the corresponding supply chain node end equipment through the chain crossing module, and the supply chain node end equipment is used for acquiring first power calculation resource data; transmitting the first computing power resource data to the cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information; comprising the following steps:
the computing power requirement data and excitation preference information acquisition module is used for acquiring computing power requirement data and excitation preference information;
The transaction incentive model calling module is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information;
the order information sending module is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node-side equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment; the supply chain node end equipment is used for receiving the order information, and calling a corresponding computing power server to provide computing power service based on the order information; when the updated and recorded second computing power resource data is monitored, acquiring the second computing power resource data; and synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
The embodiment of the invention also discloses electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
The processor is configured to implement the method according to the embodiment of the present invention when executing the program stored in the memory.
Embodiments of the present invention also disclose a computer-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method according to the embodiments of the present invention.
The embodiment of the invention has the following advantages:
according to the embodiment of the invention, the first computing power resource data are acquired; transmitting the first computing power resource data to the cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information; the demand chain node end equipment is used for acquiring calculation force requirement data and excitation preference information; the demand chain node end equipment is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information; the demand chain node end equipment is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node end equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment; and receiving the order information, and calling a corresponding computing power server to provide computing power service based on the order information.
Drawings
FIG. 1 is a flow chart of steps of a method for providing a computing power service according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a configuration for a demand chain node-side device and a supply chain node-side device provided in an embodiment of the present invention;
FIG. 3 is a timing diagram for a demand chain node-side device provided in an embodiment of the present invention;
FIG. 4 is a timing diagram for a supply chain node-side apparatus provided in an embodiment of the present invention;
FIG. 5 is a flow chart of steps of another method for providing a computing power service provided in an embodiment of the present invention;
FIG. 6 is a block diagram of a computing power service providing apparatus provided in an embodiment of the present invention;
FIG. 7 is a block diagram of another computing power service providing apparatus provided in an embodiment of the present invention;
FIG. 8 is a block diagram of the hardware architecture of an electronic device provided in an embodiment of the present invention;
fig. 9 is a schematic diagram of a computer readable medium provided in an embodiment of the invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Referring to fig. 1, a flowchart illustrating steps of a method for providing a computing power service according to an embodiment of the present invention may specifically include the following steps:
Step 101, acquiring first computing power resource data;
step 102, sending the first computing power resource data to the cross-link module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information; the demand chain node end equipment is used for acquiring calculation force requirement data and excitation preference information; the demand chain node end equipment is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information; the demand chain node end equipment is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node end equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment;
step 103, receiving the order information, calling a corresponding computing power server to provide computing power service based on the order information, acquiring second computing power resource data when updating input second computing power resource data is monitored, and synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a demand chain node-end apparatus and a supply chain node-end apparatus provided in an embodiment of the present invention;
in practical applications, the power supply chain node end device is a device for serving a power supply user, for example, an enterprise providing cloud service may be a power supply user, may be simply referred to as a supply chain node end device, the power demand chain node end device may be simply referred to as a demand chain node end device, a power consumption user may be simply referred to as a consumption user, the power demand chain device may be served by a consumption user, and is mainly used for storing account information, power resource data, power transaction data and the like of the power consumption user, where the power resource data may be data from multiple supply chains; the embodiment of the invention can deploy a power transaction matching intelligent contract system on a power demand chain, and the system can comprise a power transaction incentive model. The consumption user can interact data with the supply chain node end equipment through a contract interface defined by the intelligent contract through the cross-chain module.
The supply chain node end equipment mainly stores account information, calculation power resource data, calculation power distribution data and the like of a calculation power supply user; wherein the computing force resource data may include incentive factor information, optionally the incentive factor information may be expressed by an incentive factor vector; alternatively, the embodiment of the invention can deploy the intelligent contract for the power transaction incentive, namely the intelligent contract for incentive, on the power supply chain. Illustratively, the computing power provision user registers or updates computing power resources (including computing power types, computing power service processing capabilities, specifications, offers, idle processing capabilities, incentive factor vectors, etc.) via a contract interface defined by the incentive smart contract, and looks at or appends the incentive factor vectors.
The chain crossing module is respectively connected with a calculation power supply chain and a calculation power demand chain to finish data transfer and interaction between chains. For example, the cross-chain module can synchronize the computing power resource data registered by the computing power supply chain to the computing power demand chain; the cross-chain module serves as a user agent of the power supply chain, maintains and manages transaction account data on the power demand chain, and registers rights and interests corresponding to each supply user to the power supply chain; and the cross-chain module performs the distribution scheduling processing of the computing resources on the computing power supply chain and maintains the computing power resource data of each supply user.
Optionally, the power supply user may register the first power resource data at the supply chain node end device, the supply chain node end device may send the first power resource data to the cross-chain module, and the cross-chain module may be configured to synchronize the first power resource data including the incentive factor information to the demand chain node end device; when the consuming user inputs the power demand and incentive preferences, the demand chain node-end device may then generate a recommendation based on the power demand data, incentive preference information, the first power resource data, and incentive factor information.
For example, referring to FIG. 2, assume that all of the power supply users on the power supply chains (e.g., power supply chains A and B) interfacing with the power demand chain have a set of P, that for any of the power supply users P ε P, P the power service provided has a total processing power of Rp, that the idle processing power has a set of Lp power specifications < Sp1, sp2,.. SpK >, where Spq is the qth Sp and the corresponding quotations < Cp1, cp2,..CpK >, where Cpq is the qth Cp, where Cpm (1+.mK, K is the number of different power specifications) is the price of the power specification Spm; the stimulus vector is expressed as < Ep1, ep2, & gt, epN >, where Epj (1+.j+.n, N is the number of stimulus) represents the utility (e.g., carbon neutralization gain) of a certain stimulus. The computing force supply user may Register or Update the above data by actuating a Register or Update interface of the smart contract.
For a computing power consumption user U, the U can input an incentive preference B and a computing power requirement D through a GetSolution interface of a matching intelligent contract, and acquire a recommendation scheme meeting the incentive preference; excitation preference may be expressed by a vector < B1, B2,..bn > where Bj (1+.j+.n) indicates that a multiple is set for the corresponding excitation factor utility, the greater the value of this multiple, the greater the impact weight on the corresponding excitation factor, i.e., the more the user sees this excitation factor (e.g., low carbon). The calculation force requirement D includes the required calculation force type Dt, the specification Dq (e.g., how much GFLOPS, MFLOPS, TFLOPS or PFLOPS), whether or not the processing can be sliced, and the like.
The goal of the excitation mechanism is to obtain an optimal solution that satisfies either equation (1) or (2):
the optimal solution meeting the formula (1) or (2) is to make the sum of the products of all the excitation factors and the excitation preference subtracted from the calculation cost minimum on the premise of meeting the calculation force requirement of the calculation force consumption user.
Of course, the above examples are merely examples, and a person skilled in the art may use any algorithm to generate a recommendation scheme based on the calculation power requirement data, the incentive preference information, the first calculation power resource data and the incentive factor information, or may display the recommendation scheme according to actual requirements in any number, which is not limited in this embodiment of the present application.
When the demand chain node end device receives the confirmation information sent by the consumer user, order information for the recommended scheme can be generated, and the order information is forwarded to the supply chain node end device through the cross-chain module, and the supply chain node end device can provide computing power service for the consumer user based on the order information.
The embodiment of the invention can also acquire the second computing power resource data when the updating and recording of the second computing power resource data is monitored, and synchronize the second computing power resource data to the demand chain node end equipment through the cross-chain module, so that the computing power supply user can dynamically update the computing power resource data to provide richer order types for the computing power demand user.
According to the embodiment of the invention, the first computing power resource data are acquired; transmitting the first computing power resource data to the cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information; the demand chain node end equipment is used for acquiring calculation force requirement data and excitation preference information; the demand chain node end equipment is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information; the demand chain node end equipment is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node end equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment; and receiving the order information, and calling a corresponding computing power server to provide computing power service based on the order information.
On the basis of the above embodiments, modified embodiments of the above embodiments are proposed, and it is to be noted here that only the differences from the above embodiments are described in the modified embodiments for the sake of brevity of description.
Optionally, the supply chain node-end device is provided with a registration interface, and the step of acquiring the first computing power resource data includes:
and acquiring first computing power resource data by adopting the registration interface.
The contract interface for stimulating intelligent contract definition includes a registration interface Register: the computing power supply user registers computing power resource data (including computing power type, computing power service processing capability, specification, quotation, idle processing capability, incentive factor vector, etc.) with the computing power supply chain, theoretically, the interface only needs to be responsible for registering the incentive factor vector, and other data of the computing power resource are registered together through the interface for describing more complete information.
Optionally, the supply chain node end device is provided with an update interface, and further includes:
and acquiring second computing power resource data by adopting the updating interface.
And synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
The contract interface for stimulating the intelligent contract definition comprises an Update interface Update: the computing power supply user updates its computing power resource data to the computing power supply chain.
Optionally, the requirement chain node end device includes an acquisition solution interface, and the requirement chain node end device is configured to acquire the calculation power requirement data and the incentive preference information sent by the consumer through the acquisition solution interface.
The contract interface for matching the definition of the intelligent contract comprises: obtaining a solution interface Getsolution: and calling by the computing power consumption user, and calling an incentive mechanism algorithm according to the input computing power demand and incentive preference data to acquire a computing power resource allocation recommendation scheme.
Optionally, the demand chain node end device includes an acceptance solution interface, and the demand chain node end device is configured to invoke the transaction incentive model, generate a recommendation scheme based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information, and display the recommendation scheme to a consumer user;
and when the demand chain node end equipment receives the confirmation information sent by the consumption user through the acceptance solution interface, generating order information for the recommended scheme.
The contract interface for matching the definition of the intelligent contract comprises: acceptance solution interface acceptsolution interface: invoked by a computing power consuming user, a computing power resource allocation recommendation is adopted to place an order to a computing power provider (possibly comprising multiple providers).
Optionally, the supply chain node end device is provided with a viewing interface for outputting an incentive factor vector for expressing the incentive factor information.
The contract interface for stimulating the definition of the intelligent contract comprises: view interface View: looking at the excitation factor vectors already defined on all current supply chains, an example is illustrated, such as the current excitation factor vector being<E 1 ,E 2 ,E 3 >Meaning represented by each element: e (E) 1 Representing low carbon utility (e.g., carbon neutralization benefits), E 2 Indicating energy-saving effect, E 3 Indicating public utility.
Optionally, the supply chain node end device is provided with an additional interface for modifying the excitation factor vector; the cross-chain module is used to synchronize the modified stimulus factor vector to other supply chain node end devices.
The contract interface for stimulating the definition of the intelligent contract comprises: additional interface application: an excitation factor or variable is appended to the end of the current excitation factor vector, and the input parameters include a utility value and a description string. After the computing power supply user calls the interface to add the excitation factors, the cross-chain module on the supply chain forwards the added excitation factor vectors to the demand chain, and the demand chain and the cross-chain module synchronize the excitation factor vectors to other supply chains.
Optionally, the demand chain node end device is provided with a start interface, and the step of receiving the order information and calling the corresponding computing power server to provide the computing power service based on the order information includes:
when the computing power resource of the supplier accords with the order information, sending a starting computing power transaction application aiming at the order information to the cross-link module, wherein the cross-link module is used for replying acceptance information aiming at the order information to the demand chain node end equipment through the starting interface.
Optionally, the initiation interface is further used for settling accounts for the computing power service.
The contract interface for matching the definition of the intelligent contract comprises: starting an interface Start: the cross-chain module is used for calling, starting the power transaction, and the subsequent transaction can be processed by a power transaction program, so that the under-chain quick transaction can be used, and different settlement modes such as timing settlement and the like can be supported.
In order that those skilled in the art will better understand the embodiments of the present invention, a complete example will be described below.
1. Calculation force demand chain
The power demand chain serves power consumption users and mainly stores account information of the power consumption users, power resource data (comprising data from a plurality of supply chains), power transaction data and the like; and deploying an intelligent contract for matching the calculation force transaction (called matching intelligent contract for short) on the calculation force demand chain. The computing force consuming user and the cross-chain module can interact with the ledger data through a contract interface defined by the matching intelligent contracts. The contract interfaces defined by the matching intelligent contracts are as follows:
Obtaining a solution interface Getsolution: invoking by the computing power consumption user, invoking an incentive mechanism algorithm according to the input computing power demand and incentive preference data to acquire a computing power resource allocation recommendation scheme;
acceptance solution interface acceptsolution interface: invoked by a computing power consuming user, a computing power resource allocation recommendation is adopted to place an order to a computing power provider (possibly comprising multiple providers).
Starting an interface Start: the cross-chain module is used for calling, starting the power transaction, and the subsequent transaction can be processed by a power transaction program, so that the under-chain quick transaction can be used, and different settlement modes such as timing settlement and the like can be supported.
2. Calculation power supply chain
The power supply chain is used for serving power supply users and mainly storing account information, power resource data (including respective incentive vectors), power distribution data and the like of the power supply users; a power transaction incentive smart contract (abbreviated incentive smart contract) is deployed on the power supply chain. The computing power supply user registers or updates computing power resources (including computing power types, computing power service processing capabilities, specifications, offers, idle processing capabilities, incentive factor vectors, etc.) through a contract interface defined by the incentive smart contract, and views or appends the incentive factor vectors. The incentive smart contract defines the contract interface as follows:
Registration interface Register: the computing power supply user registers computing power resource data (including computing power type, computing power service processing capability, specification, quotation, idle processing capability, incentive factor vector, etc.) with the computing power supply chain, theoretically, the interface only needs to be responsible for registering the incentive factor vector, and other data of the computing power resource are registered together through the interface for describing more complete information.
Updating an interface Update: the computing power supply user updates its computing power resource data to the computing power supply chain.
View interface View: looking at the excitation factor vectors already defined on all current supply chains, an example is illustrated, such as the current excitation factor vector being<E 1 ,E 2 ,E 3 >Meaning represented by each element: e (E) 1 Representing low carbon utility (e.g., carbon neutralization benefits), E 2 Indicating energy-saving effect, E 3 Indicating public utility.
Additional interface application: an excitation factor or variable is appended to the end of the current excitation factor vector, and the input parameters include a utility value and a description string. After the computing power supply user calls the interface to add the excitation factors, the cross-chain module on the supply chain forwards the added excitation factor vectors to the demand chain, and the demand chain and the cross-chain module synchronize the excitation factor vectors to other supply chains.
3. Cross-chain module
The chain crossing module is respectively connected with a calculation power supply chain and a calculation power demand chain to finish data transfer and interaction between chains. For example, the cross-chain module can synchronize the computing power resource data registered by the computing power supply chain to the computing power demand chain; the cross-chain module serves as a user agent of the power supply chain, maintains and manages transaction account data on the power demand chain, and registers rights and interests corresponding to each supply user to the power supply chain; and the cross-chain module performs the distribution scheduling processing of the computing resources on the computing power supply chain and maintains the computing power resource data of each supply user.
4. Power transaction incentive mechanism
As shown in fig. 2, assuming that all the computing power supply users on the computing power supply chain (e.g., computing power supply chains a and B) interfacing with the computing power demand chain are aggregated as P, for any computing power supply user P e P, P provides computing power service total processing power Rp, idle processing power Lp, computing power specification aggregate < Sp1, sp2,.. SpK >, where Spq is the qth Sp, and the corresponding quotations < Cp1, cp2,..cpk >, where Cpq is the qth Cp, where Cpm (1+.m+.k, K is the number of different computing power specifications) is the price of computing power specification Spm; the stimulus vector is expressed as < Ep1, ep2, & gt, epN >, where Epj (1+.j+.n, N is the number of stimulus) represents the utility (e.g., carbon neutralization gain) of a certain stimulus. The computing force supply user may Register or Update the above data by actuating a Register or Update interface of the smart contract.
For a computing power consumption user U, the U can input an incentive preference B and a computing power requirement D through a GetSolution interface of a matching intelligent contract, and acquire a recommendation scheme meeting the incentive preference; excitation preference may be expressed by a vector < B1, B2,..bn > where Bj (1+.j+.n) indicates that a multiple is set for the corresponding excitation factor utility, the greater the value of this multiple, the greater the impact weight on the corresponding excitation factor, i.e., the more the user sees this excitation factor (e.g., low carbon). The calculation force requirement D includes the required calculation force type Dt, the specification Dq (e.g., how much GFLOPS, MFLOPS, TFLOPS or PFLOPS), whether or not the processing can be sliced, and the like.
The goal of the excitation mechanism is to obtain an optimal solution that satisfies either equation (1) or (2):
the optimal solution meeting the formula (1) or (2) is to make the sum of the products of all the excitation factors and the excitation preference subtracted from the calculation cost minimum on the premise of meeting the calculation force requirement of the calculation force consumption user.
Fifth, key process flow
The key processing flow comprises a processing flow that a power supply user registers or updates power resource data with a power supply chain, a power consumption user obtains recommended schemes meeting power requirements and incentive preferences from a power demand chain, and further adopts the recommended schemes. The descriptions are as follows:
Referring to FIG. 3, FIG. 3 is a timing diagram for a demand chain node-side device provided in an embodiment of the present invention;
A. message interaction process for registering and updating computing resources for computing power supply users
The flow of the information for registering the computing resources by the computing power supply user is shown in fig. 3, the supply user calls a Register interface of the motivating intelligent contract deployed on the supply chain to Register computing power resource data, corresponding data can be stored in a uplink mode, and meanwhile when the computing power resource data on the newly registered chain is received by the cross-chain module, the new registration data can be synchronized with the computing power demand chain and written into a demand chain account book (namely in the uplink mode). The Update process of the computing resource data is similar to the registration process, and the main difference is that the Update interface is called, which is not described here again.
Referring to fig. 4, fig. 4 is a timing diagram for a supply chain node-side apparatus provided in an embodiment of the present invention;
B. process for acquiring information interaction of recommended scheme and adoption scheme meeting incentive preference by computing power consumption user
The flow of the information for the power consumption user to acquire the recommended solution is shown in fig. 4, the consumption user invokes the GetSolution interface of the matching intelligent contract deployed on the power demand chain, the input data includes the power demand (power type, specification, etc.) and the incentive preference vector, the intelligent contract program calculates the optimal recommended solution meeting the incentive preference based on the incentive algorithm (refer to formulas 1 and 2), and returns the recommended solution to the consumption user. The consumer user may view the recommendations and adjust the incentive preference vector for multiple attempts to obtain different recommendations. When the consumer wants to adopt a recommended scheme, the AcceptSolution interface matching the intelligent contract can be called, and the order request of the supplier is completed through the contract interface. After acquiring order information, the cross-chain module judges whether a calculation power supplier in the order belongs to a calculation power supply chain connected with the calculation power supplier; if not, neglecting; if so, the order is forwarded to the supply chain and the computing resources are applied. After receiving the order, the supply chain node checks whether the remaining computing power resources for the user in the order meet the requirement; if not, directly returning an application failure message to the cross-link module, and forwarding the application failure message to the demand chain through the cross-link module; if yes, according to the setting of the supply user, whether the user needs to interact with the supply user is checked, if not, an approval application message is directly returned to the cross-link module and forwarded to the demand chain by the cross-link module; if interactive confirmation with the user is required, the next operation processing can be performed according to the user feedback. When the application of the computing power resources is approved, the computing power resource data (such as available or idle computing power resources) corresponding to the user on the supply chain needs to be updated. When the cross-chain module receives the approval application message, a Start interface of the matching intelligent contract on the demand chain is called to Start the computing power transaction (the specific processing mode depends on the system implementation, such as quick transaction under the chain, support of timing settlement and the like).
Referring to fig. 5, a flowchart illustrating steps of another method for providing a computing power service according to an embodiment of the present invention may specifically include the following steps:
step 501, acquiring calculation force requirement data and excitation preference information;
step 502, calling the transaction incentive model, and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information;
step 503, when it is determined that the order information is an order for the supply chain node end device, sending the order information to the cross-chain module; the cross-link module is used for forwarding the order information to the supply chain node end equipment; the supply chain node end equipment is used for receiving the order information, and calling a corresponding computing power server to provide computing power service based on the order information; when the updated and recorded second computing power resource data is monitored, acquiring the second computing power resource data; and synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
In a specific implementation, the embodiment of the invention is applied to a demand chain node end device, the demand chain node end device is provided with a corresponding cross-chain module, the demand chain node end device performs data interaction with a corresponding supply chain node end device through the cross-chain module, and the supply chain node end device is used for acquiring first computing power resource data; transmitting the first computing power resource data to the cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing force resource data includes incentive factor information.
Optionally, the supply chain node-end device is provided with a registration interface, and the supply chain node-end device is configured to acquire the first computing resource data using the registration interface.
Optionally, the supply chain node end device is provided with an update interface, and the supply chain node end device is configured to acquire the second computing power resource data by adopting the update interface.
Optionally, the requirement chain node end device is configured to synchronize the second computing power resource data to the requirement chain node end device through the cross-chain module.
Optionally, the demand chain node end device includes an acquisition solution interface, and the step of acquiring the computing power requirement data and the incentive preference information includes:
the computing power demand data and incentive preference information sent by the consuming user are obtained through the acquisition solution interface.
Optionally, the demand chain node end device includes an acceptance solution interface, and the step of calling the transaction incentive model to generate order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information includes:
invoking the transaction incentive model, generating a recommendation scheme based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information, and displaying the recommendation scheme to a consumption user;
And when the demand chain node end equipment receives the confirmation information sent by the consumption user through the acceptance solution interface, generating order information for the recommended scheme.
Optionally, the supply chain node end device is provided with a viewing interface for outputting an incentive factor vector for expressing the incentive factor information.
Optionally, the supply chain node end device is provided with an additional interface for modifying the excitation factor vector; the cross-chain module is used to synchronize the modified stimulus factor vector to other supply chain node end devices.
Optionally, the demand chain node end device is provided with a starting interface, and the demand chain node end device is configured to send a starting computing power transaction application for the order information to the cross-chain module when it is determined that the computing power resource of the supplier accords with the order information, and the cross-chain module is configured to reply to the demand chain node end device with acceptance information for the order information through the starting interface.
Optionally, the initiation interface is further used for settling accounts for the computing power service.
For the supply chain node end device embodiment, the description is relatively simple as it is substantially similar to the demand chain node end device embodiment, and reference is made to the section of the description of the demand chain node end device embodiment for that matter.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 6, a block diagram of a power service providing apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
the first computing power resource data acquisition module 601 is configured to acquire first computing power resource data;
the first computing power resource data sending module 602 is configured to send the first computing power resource data to the cross-link module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information; the demand chain node end equipment is used for acquiring calculation force requirement data and excitation preference information; the demand chain node end equipment is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information; the demand chain node end equipment is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node end equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment;
The order information receiving module 603 is configured to receive the order information, call a corresponding computing power server based on the order information to provide a computing power service, and acquire second computing power resource data when updating the entered second computing power resource data is monitored, and synchronize the second computing power resource data to the requirement chain node device through the cross-chain module.
Referring to fig. 7, a block diagram of another computing power service providing apparatus provided in an embodiment of the present invention is shown, which may specifically include the following modules:
a calculation force demand data and incentive preference information acquisition module 701 for acquiring calculation force demand data and incentive preference information;
a transaction incentive model invoking module 702 for invoking the transaction incentive model to generate order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information;
an order information sending module 703, configured to send the order information to the cross-link module when determining that the order information is an order for the supply chain node device; the cross-link module is used for forwarding the order information to the supply chain node end equipment; the supply chain node end equipment is used for receiving the order information, and calling a corresponding computing power server to provide computing power service based on the order information; when the updated and recorded second computing power resource data is monitored, acquiring the second computing power resource data; and synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In addition, the embodiment of the invention also provides electronic equipment, which comprises: the processor, the memory, store the computer program on the memory and can run on the processor, this computer program realizes the above-mentioned all processes of the service providing method embodiment of calculation power when being carried out by the processor, and can reach the same technical result, in order to avoid repetition, will not be repeated here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes the processes of the embodiments of the computing power service providing method and can achieve the same technical effects, and in order to avoid repetition, the description is omitted. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 800 includes, but is not limited to: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, processor 810, and power supply 811. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 8 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station, and then processing the received downlink data by the processor 810; and, the uplink data is transmitted to the base station. In general, the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 801 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 802, such as helping the user to send and receive e-mail, browse web pages, access streaming media, and the like.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 800. The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, the graphics processor 8041 processing image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 801 in case of a telephone call mode.
The electronic device 800 also includes at least one sensor 805 such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 8061 and/or the backlight when the electronic device 800 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 805 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 806 is used to display information input by a user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the electronic device. In particular, the user input unit 807 includes a touch panel 8071 and other input devices 8072. Touch panel 8071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on touch panel 8071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 8071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends the touch point coordinates to the processor 810, and receives and executes commands sent from the processor 810. In addition, the touch panel 8071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, physical keyboards, function keys (e.g., volume control keys, switch keys, etc.), trackballs, mice, joysticks, and so forth, which are not described in detail herein.
Further, the touch panel 8071 may be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 810 to determine a type of touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of touch event. Although in fig. 8, the touch panel 8071 and the display panel 8061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 808 is an interface to which an external device is connected to the electronic apparatus 800. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 800 or may be used to transmit data between the electronic apparatus 800 and an external device.
The memory 809 can be used to store software programs as well as various data. The memory 809 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory 809 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 809, and invoking data stored in the memory 809, thereby performing overall monitoring of the electronic device. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 810.
The electronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and the power supply 811 may preferably be logically coupled to the processor 810 through a power management system that provides for managing charge, discharge, and power consumption.
In addition, the electronic device 800 includes some functional modules, which are not shown, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
In yet another embodiment provided by the present invention, as shown in fig. 9, there is further provided a computer-readable storage medium 901 having instructions stored therein, which when run on a computer, cause the computer to perform the computing power service providing method described in the above embodiment.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units 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.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (24)

1. The utility model provides a power calculation service providing method, which is characterized in that the power calculation service providing method is applied to supply chain node end equipment, the supply chain node end equipment is provided with a corresponding cross-chain module, and the supply chain node end equipment performs data interaction with the corresponding demand chain node end equipment through the cross-chain module, and the power calculation service providing method comprises the following steps:
acquiring first computing power resource data;
transmitting the first computing power resource data to the cross-chain module;
the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information;
the demand chain node end equipment is used for acquiring calculation force requirement data and excitation preference information;
the demand chain node end equipment is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information;
the demand chain node end equipment is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node end equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment;
Receiving the order information, calling a corresponding computing power server based on the order information to provide computing power service, acquiring second computing power resource data when updating recorded second computing power resource data is monitored, and synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
2. The method of claim 1, wherein the supply chain node-side device is provided with a registration interface, and wherein the step of obtaining the first computing resource data comprises:
and acquiring first computing power resource data by adopting the registration interface.
3. The method of claim 1, wherein the supply chain node-side device is provided with an update interface, and wherein the step of obtaining the second computing force resource data comprises:
and acquiring second computing power resource data by adopting the updating interface.
4. The method according to claim 1, wherein the supply chain node end device is provided with a viewing interface for outputting an incentive factor vector for expressing the incentive factor information.
5. The method according to claim 4, characterized in that the supply chain node end device is provided with an additional interface for modifying the excitation factor vector; the cross-chain module is used to synchronize the modified stimulus factor vector to other supply chain node end devices.
6. The method of claim 5, wherein the transaction incentive model is invoked by generating order information based on the computing power requirement data, incentive preference information, first computing power resource data, and the incentive factor information:
all the computing power supply user sets on the supply chain node end equipment which are in butt joint with the demand chain node end equipment are expressed as P, the total processing capacity of computing power service provided by any computing power supply user P epsilon P of the supply chain node end equipment is Rp, the idle processing capacity is Lp, the computing power specification sets are < Sp1, sp2, & gt, spK >, wherein Spq is the q-th Sp, quotations corresponding to the computing power specification are < Cp1, cp2, & gt, cpK >, wherein Cpq is the q-th Cp, cpm is the price of the computing power specification Spm, and 1 +.m +.K, K is the number of different computing power specifications; the excitation factor vector is expressed as < Ep1, ep2, & gt, epN >, wherein Epj, N is the number of excitation factors and 1+.j+.n; one computing power consuming user is expressed as U; incentive preference vector identified as < B1, B2, BN >; bj is expressed as a multiple of the utility setting of the corresponding excitation factor, and 1.ltoreq.j.ltoreq.N, the multiple being used to express the impact weight of the corresponding excitation factor; the calculation force requirement D comprises a required calculation force type Dt and a calculation force specification Dq;
When the U inputs the excitation preference B and the calculation force requirement D, judging whether the calculation force requirement can be processed in a slicing way;
7. the method of claim 1, wherein the demand chain node end device includes an acquisition solution interface through which the demand chain node end device is to acquire the power demand data and incentive preference information sent by the consuming user.
8. The method of claim 7, wherein the demand chain node end device includes an acceptance solution interface, the demand chain node end device is configured to invoke the transaction incentive model, generate a recommendation based on the computing power requirement data, incentive preference information, first computing power resource data, and the incentive factor information, and present the recommendation to a consuming user;
and when the demand chain node end equipment receives the confirmation information sent by the consumption user through the acceptance solution interface, generating order information for the recommended scheme.
9. The method according to claim 1, wherein the demand chain node end device is provided with a start interface, and the step of receiving the order information and calling a corresponding computing power server to provide a computing power service based on the order information comprises:
When the computing power resource of the supplier accords with the order information, sending a starting computing power transaction application aiming at the order information to the cross-link module, wherein the cross-link module is used for replying acceptance information aiming at the order information to the demand chain node end equipment through the starting interface.
10. The method of claim 9, wherein the initiation interface is further for settlement for the computing force service.
11. The power calculation service providing method is characterized by being applied to a demand chain node end device, wherein the demand chain node end device is provided with a corresponding cross-chain module, the demand chain node end device performs data interaction with a corresponding supply chain node end device through the cross-chain module, and the supply chain node end device is used for acquiring first power calculation resource data; transmitting the first computing power resource data to the cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information; comprising the following steps:
Acquiring calculation force requirement data and excitation preference information;
invoking the transaction incentive model to generate order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information;
when the order information is judged to be the order for the supply chain node-end equipment, the order information is sent to the cross-chain module;
the cross-link module is used for forwarding the order information to the supply chain node end equipment; the supply chain node end equipment is used for receiving the order information, and calling a corresponding computing power server to provide computing power service based on the order information; when the updated and recorded second computing power resource data is monitored, acquiring the second computing power resource data; and synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
12. The method according to claim 11, wherein the supply chain node-end device is provided with a registration interface, the supply chain node-end device being adapted to obtain the first computing power resource data using the registration interface.
13. The method of claim 11, wherein the supply chain node-side device is provided with an update interface, the supply chain node-side device being configured to obtain the second computing power resource data using the update interface.
14. The method of claim 11, wherein the supply chain node-end device is provided with a viewing interface for outputting an incentive factor vector for expressing the incentive factor information.
15. The method according to claim 14, characterized in that the supply chain node end device is provided with an additional interface for modifying the excitation factor vector; the cross-chain module is used to synchronize the modified stimulus factor vector to other supply chain node end devices.
16. The method of claim 15, wherein the transaction incentive model is invoked by generating order information based on the computing power requirement data, incentive preference information, first computing power resource data, and the incentive factor information:
all the computing power supply user sets on the supply chain node end equipment which are in butt joint with the demand chain node end equipment are expressed as P, the total processing capacity of computing power service provided by any computing power supply user P epsilon P of the supply chain node end equipment is Rp, the idle processing capacity is Lp, the computing power specification sets are < Sp1, sp2, & gt, spK >, wherein Spq is the q-th Sp, quotations corresponding to the computing power specification are < Cp1, cp2, & gt, cpK >, wherein Cpq is the q-th Cp, cpm is the price of the computing power specification Spm, and 1 +.m +.K, K is the number of different computing power specifications; the excitation factor vector is expressed as < Ep1, ep2, & gt, epN >, wherein Epj, N is the number of excitation factors and 1+.j+.n; one computing power consuming user is expressed as U; incentive preference vector identified as < B1, B2, BN >; bj is expressed as a multiple of the utility setting of the corresponding excitation factor, and 1.ltoreq.j.ltoreq.N, the multiple being used to express the impact weight of the corresponding excitation factor; the calculation force requirement D comprises a required calculation force type Dt and a calculation force specification Dq;
When the U inputs the excitation preference B and the calculation force requirement D, judging whether the calculation force requirement can be processed in a slicing way;
17. the method of claim 11, wherein the demand chain node end device includes an acquisition solution interface, the step of acquiring the computing power demand data and incentive preference information comprising:
the computing power demand data and incentive preference information sent by the consuming user are obtained through the acquisition solution interface.
18. The method of claim 17, wherein the demand chain node-side device includes an acceptance solution interface, and wherein the step of invoking the transaction incentive model to generate order information based on the computing power demand data, incentive preference information, first computing power resource data, and the incentive factor information includes:
invoking the transaction incentive model, generating a recommendation scheme based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information, and displaying the recommendation scheme to a consumption user;
and when the demand chain node end equipment receives the confirmation information sent by the consumption user through the acceptance solution interface, generating order information for the recommended scheme.
19. The method according to claim 11, wherein the requirement chain node end device is provided with a start interface, and the requirement chain node end device is configured to send a start computing power transaction application for the order information to the cross-chain module when determining that computing power resources of a supplier meet the order information, and the cross-chain module is configured to reply to the requirement chain node end device with acceptance information for the order information through the start interface.
20. The method of claim 19, wherein the initiation interface is further for settling accounts for the computing force service.
21. The utility model provides a power calculation service provides device, characterized in that is applied to supply chain node end equipment, supply chain node end equipment is provided with corresponding cross chain module, supply chain node end equipment carries out data interaction with corresponding demand chain node end equipment through cross chain module, includes:
the first computing power resource data acquisition module is used for acquiring first computing power resource data;
the first computing power resource data sending module is used for sending the first computing power resource data to the cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information;
The demand chain node end equipment is used for acquiring calculation force requirement data and excitation preference information; the demand chain node end equipment is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information; the demand chain node end equipment is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node end equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment;
the order information receiving module is used for receiving the order information, calling a corresponding computing power server to provide computing power service based on the order information, acquiring second computing power resource data when updating input second computing power resource data is monitored, and synchronizing the second computing power resource data to the demand chain node end equipment through the chain crossing module.
22. The power calculation service providing device is characterized by being applied to a demand chain node end device, wherein the demand chain node end device is provided with a corresponding chain crossing module, the demand chain node end device performs data interaction with a corresponding supply chain node end device through the chain crossing module, and the supply chain node end device is used for acquiring first power calculation resource data; transmitting the first computing power resource data to the cross-chain module; the cross-link module is used for forwarding the first computing power resource data to the demand chain node end equipment; the demand chain node end equipment is configured with an algorithm transaction excitation model; the first computing power resource data includes incentive factor information; comprising the following steps:
The computing power requirement data and excitation preference information acquisition module is used for acquiring computing power requirement data and excitation preference information;
the transaction incentive model calling module is used for calling the transaction incentive model and generating order information based on the computing power requirement data, incentive preference information, first computing power resource data and the incentive factor information;
the order information sending module is used for sending the order information to the cross-chain module when the order information is judged to be the order for the supply chain node-side equipment; the cross-link module is used for forwarding the order information to the supply chain node end equipment; the supply chain node end equipment is used for receiving the order information, and calling a corresponding computing power server to provide computing power service based on the order information; when the updated and recorded second computing power resource data is monitored, acquiring the second computing power resource data; and synchronizing the second computing power resource data to the demand chain node end equipment through the cross-chain module.
23. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
The memory is used for storing a computer program;
the processor is configured to implement the method according to any one of claims 1-10 or 11-20 when executing a program stored on a memory.
24. A computer-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method of any of claims 1-10 or 11-20.
CN202311354866.8A 2023-10-19 2023-10-19 Method and device for providing computing power service, electronic equipment and storage medium Active CN117407164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311354866.8A CN117407164B (en) 2023-10-19 2023-10-19 Method and device for providing computing power service, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311354866.8A CN117407164B (en) 2023-10-19 2023-10-19 Method and device for providing computing power service, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117407164A true CN117407164A (en) 2024-01-16
CN117407164B CN117407164B (en) 2024-02-27

Family

ID=89493815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311354866.8A Active CN117407164B (en) 2023-10-19 2023-10-19 Method and device for providing computing power service, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117407164B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190114666A1 (en) * 2017-10-17 2019-04-18 Mastercard International Incorporated Payment card transaction systems and methods with dynamic geo-targeted, incentive-based transaction and delivery management
CN112418927A (en) * 2020-11-19 2021-02-26 北京顺达同行科技有限公司 Discount information recommendation method and device, computer equipment and storage medium
CN114913013A (en) * 2022-05-13 2022-08-16 江南大学 House renting transaction system and house renting transaction method based on block chain
CN115396442A (en) * 2022-08-26 2022-11-25 北京交通大学 Calculation force sharing system and method for urban rail transit
CN116743768A (en) * 2023-08-14 2023-09-12 亚信科技(中国)有限公司 Method, apparatus, device and computer readable storage medium for trading computing power resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190114666A1 (en) * 2017-10-17 2019-04-18 Mastercard International Incorporated Payment card transaction systems and methods with dynamic geo-targeted, incentive-based transaction and delivery management
CN112418927A (en) * 2020-11-19 2021-02-26 北京顺达同行科技有限公司 Discount information recommendation method and device, computer equipment and storage medium
CN114913013A (en) * 2022-05-13 2022-08-16 江南大学 House renting transaction system and house renting transaction method based on block chain
CN115396442A (en) * 2022-08-26 2022-11-25 北京交通大学 Calculation force sharing system and method for urban rail transit
CN116743768A (en) * 2023-08-14 2023-09-12 亚信科技(中国)有限公司 Method, apparatus, device and computer readable storage medium for trading computing power resources

Also Published As

Publication number Publication date
CN117407164B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN110995923A (en) Screen projection control method and electronic equipment
CN112597361B (en) Ordering processing method and device, electronic equipment and storage medium
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN111399819B (en) Data generation method, device, electronic equipment and storage medium
CN111143002A (en) Application sharing method, electronic equipment and computer readable storage medium
CN111199424A (en) Advertisement putting method and device, terminal equipment and storage medium
CN108021379B (en) Application program upgrading method, mobile terminal and server
CN109428871B (en) Defense strategy determination method and device
CN110290263B (en) Image display method and mobile terminal
CN113238868B (en) Task processing method, device, server, equipment, system and storage medium
CN107765954B (en) Application icon updating method, mobile terminal and server
CN108200635B (en) Operation control method of application program and mobile terminal
CN115509770B (en) Micro-service calling method and device, electronic equipment and readable storage medium
CN111309392B (en) Equipment control method and electronic equipment
CN111163227B (en) Sharing method and electronic equipment
CN111209072B (en) Application sharing method, first electronic device and readable storage medium
CN110796438B (en) Message sending method and mobile terminal
CN117407164B (en) Method and device for providing computing power service, electronic equipment and storage medium
CN109743469B (en) VOLTE-based communication method and mobile terminal
CN111273961A (en) Advertisement display method and device and electronic equipment
CN110990029A (en) Application processing method and electronic equipment
CN111475141B (en) Method and device for generating list and electronic equipment
CN110430573A (en) A kind of information authentication method, electronic equipment and network side equipment
CN109412986B (en) Communication channel setting method and mobile terminal
CN110210844B (en) Resource transfer method, server and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant