CN114221967A - Resource sharing platform and resource sharing method based on block chain network - Google Patents

Resource sharing platform and resource sharing method based on block chain network Download PDF

Info

Publication number
CN114221967A
CN114221967A CN202111527762.3A CN202111527762A CN114221967A CN 114221967 A CN114221967 A CN 114221967A CN 202111527762 A CN202111527762 A CN 202111527762A CN 114221967 A CN114221967 A CN 114221967A
Authority
CN
China
Prior art keywords
resource
resource sharing
block chain
layer
platform
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
CN202111527762.3A
Other languages
Chinese (zh)
Other versions
CN114221967B (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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202111527762.3A priority Critical patent/CN114221967B/en
Publication of CN114221967A publication Critical patent/CN114221967A/en
Application granted granted Critical
Publication of CN114221967B publication Critical patent/CN114221967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure provides a resource sharing platform based on a block chain network, which can be applied to the field of block chains. The resource sharing platform based on the block chain network comprises: the service processing layer is suitable for providing a service interaction port for a user so that the user can share the computing resources according to the preset service processing logic and generate computing resource sharing behavior data; and the block chain network layer is connected with the service processing layer through an interface and is suitable for uploading the calculation capacity resource sharing behavior data to the block chain network so as to store the calculation capacity resource sharing behavior data by the block chain network. The present disclosure also provides a resource sharing method, device, storage medium and program product of the application resource sharing platform.

Description

Resource sharing platform and resource sharing method based on block chain network
Technical Field
The present disclosure relates to the field of blockchain, and more particularly, to a resource sharing platform, a resource sharing method, an apparatus, a device, a medium, and a program product based on a blockchain network.
Background
Currently, the global GPU computing power market is generally occupied by some head internet companies, the computing power of the head companies is concentrated to form a centralized computing power monopoly, and the most serious problem is that the computing power service is expensive, so that the decentralized P2P GPU computing power sharing mode becomes a new trend at present.
For example, the goal of the Golem project is to create a decentralized, global computational network, enabling decentralized microservices and asynchronous task execution. Users can share the personal CPU/GPU to contribute to the calculation power, meanwhile, the network can judge the contribution degree according to the algorithm and give rewards, and the method can be used in the fields of CGI rendering, scientific calculation, artificial intelligence and the like.
For another example, the Vectordash project creates a P2P shared computing platform by integrating the GPU computing power, but the functions are relatively original, only a single task computing power transaction can be realized, and the transaction mechanism is opaque and has hidden danger in data security.
Therefore, there is a need in the related art for a resource sharing platform that can sufficiently ensure data security and transaction transparency.
Disclosure of Invention
In view of the above, the present disclosure provides a resource sharing platform, a resource sharing method, an apparatus, a device, a medium, and a program product based on a blockchain network.
According to a first aspect of the present disclosure, there is provided a resource sharing platform based on a blockchain network, including:
the service processing layer is suitable for providing a service interaction port for a user so that the user can share the computing resources according to the preset service processing logic and generate computing resource sharing behavior data;
and the block chain network layer is connected with the service processing layer through an interface and is suitable for uploading the calculation capacity resource sharing behavior data to a block chain network so that the block chain network can store the calculation capacity resource sharing behavior data.
According to the embodiment of the disclosure, the block chain network layer is designed and realized through a block chain network design layer;
the block chain network design layer includes:
a first generation layer, adapted to generate a network configuration file according to the block chain scene class file by using a preset modeling language;
and the import layer is suitable for importing the network configuration file into a block chain network framework to generate the block chain network layer.
According to an embodiment of the present disclosure, the above-mentioned block chain network layer includes:
and the contract management layer is suitable for generating a resource sharing contract to be signed based on the intelligent contract and uploading the signed resource sharing contract to the block chain network, wherein the resource sharing contract is used for stipulating a resource sharing rule between the resource sharing platform and the user.
According to an embodiment of the present disclosure, the service processing layer includes:
and the data layer is suitable for storing first attribute data of the resource sharing platform and second attribute data generated by registering the user in the resource sharing platform.
According to an embodiment of the present disclosure, the users include resource consumers and resource contributors;
the service processing layer comprises:
a first interaction port adapted to interact with the resource consumer so as to process a resource sharing request of the resource consumer;
a second interaction port adapted to interact with said resource contributor.
According to an embodiment of the present disclosure, the above block chain scene class file includes:
user class files, resource class files to be shared and transaction class files.
A second aspect of the present disclosure provides a resource sharing method using the resource sharing platform, including:
responding to a resource sharing request initiated by a resource consumer for a resource to be shared displayed by the resource sharing platform, and sending an access address of the resource to be shared to the resource consumer;
responding to the computing resource consumer to complete a computing resource sharing task according to the access address, and generating computing resource sharing behavior data;
and uploading the computing power resource sharing behavior data to a block chain network so that the block chain network stores the computing power resource sharing behavior data.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described resource sharing method.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described resource sharing method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described resource sharing method.
According to the embodiment of the disclosure, by adopting a mode that the resource sharing platform is designed into the service processing layer and the block chain network layer, the computing resource sharing behavior data generated by the service processing layer can be stored into the block chain network through the block chain network layer, so that the technical problems of lack of traceability and transaction repudiation in the computing resource sharing process in the related technology are solved, the credible connection of all the transaction links of the sharing computing platform is realized, and the behaviors of the consumers and the contributors have the technical effect of a mutual credible guarantee mechanism.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of a resource sharing platform based on a blockchain network according to an embodiment of the present disclosure;
fig. 2 schematically shows a block diagram of a structure of a resource sharing platform based on a blockchain network according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a design logic diagram of a blockchain network layer according to an embodiment of the present disclosure;
fig. 4 schematically shows a block diagram of the structure of a data layer of a blockchain-based network according to an embodiment of the present disclosure;
fig. 5 schematically shows a block diagram of a resource sharing platform based on a blockchain network according to another embodiment of the present disclosure;
FIG. 6 schematically shows a flow chart of a resource sharing method according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates a business flow diagram for a resource sharing platform according to an embodiment of the disclosure; and
fig. 8 schematically shows a block diagram of an electronic device adapted to implement a resource sharing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
In embodiments of the present disclosure, the terms may include:
HyperLegger Fabric: initiating a created open source block chain distributed account book by a Linux fund;
the transaction body refers to a participant, follows the business rules and generates interaction;
assets, including traded assets, assets belonging to a subject, any valuable items exchanged between parties in a business agreement. In the embodiments of the present disclosure, the transaction may not be specifically defined in a general sense, and any interaction between transaction subjects may be understood as a transaction.
The business rules refer to business logic of interaction between transaction bodies, preconditions of the interaction and the like;
the intelligent contract refers to a block chain code (Chaincode) running on the HyperLegger, is the execution of a business rule, and the generation, the to-be-generated effect and the effective state of the intelligent contract are respectively recorded on a super ledger.
A business network, a logical network composed of a group of entity nodes which cooperate to achieve a specific goal.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
It should be noted that the resource sharing platform and the resource sharing method based on the blockchain network provided in the embodiments of the present disclosure may be used in the field of blockchains, and may also be used in any field other than the field of blockchains.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, necessary security measures are taken, and the customs of the public order is not violated.
The disclosure provides a resource sharing platform based on a block chain network, which can be applied to the field of block chains. The resource sharing platform based on the block chain network comprises: the service processing layer is suitable for providing a service interaction port for a user so that the user can share the computing resources according to the preset service processing logic and generate computing resource sharing behavior data; and the block chain network layer is connected with the service processing layer through an interface and is suitable for uploading the calculation capacity resource sharing behavior data to the block chain network so as to store the calculation capacity resource sharing behavior data by the block chain network. The present disclosure also provides a resource sharing method, device, storage medium and program product of the application resource sharing platform.
Fig. 1 schematically illustrates an application scenario diagram of a resource sharing platform based on a blockchain network according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include resource sharing platforms 101, 102, 103 based on a blockchain network, a network 104 and a blockchain network 105. The network 104 is used to provide a medium for communication links between the blockchain network based resource sharing platforms 101, 102, 103 and the blockchain network 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may interact with the blockchain network 105 through the network 104 using the blockchain network based resource sharing platform 101, 102, 103.
The blockchain network 105 may include a plurality of nodes, and the nodes 105 may be servers that provide various services, such as a background management server (for example only) that supports computing resource sharing behavior data requests issued by users using the resource sharing platforms 101, 102, 103.
It should be understood that the number of resource sharing platforms, networks, and blockchain networks in fig. 1 is merely illustrative. There may be any number of blockchain network based resource sharing platforms, networks, and blockchain networks, as desired for implementation.
The resource sharing platform based on the blockchain network according to the embodiment of the disclosure will be described in detail with fig. 2 to 3 based on the scenario described in fig. 1.
Fig. 2 schematically shows a block diagram of a resource sharing platform based on a blockchain network according to an embodiment of the present disclosure.
As shown in fig. 2, the resource sharing platform 200 based on the blockchain network of this embodiment includes a service processing layer 201 and a blockchain network layer 202.
And the service processing layer 201 is adapted to provide a service interaction port for a user, so that the user performs computing resource sharing according to a preset service processing logic to generate computing resource sharing behavior data.
According to an embodiment of the present disclosure, the computing resources may include GPU (graphics processing unit) computing resources, but are not limited thereto, and may also include CPU (central processing unit) computing resources.
According to the embodiment of the disclosure, in some application scenarios, for example, in a training scenario of a neural network model, because the data volume of a training sample is large, a model training party can upload a large data volume of a model training task to a provider of a GPU computing resource through a resource sharing platform, so that the model training task is executed in a local computer of the provider of the GPU computing resource, and after the execution is finished, a training result is returned to the model training party.
According to an embodiment of the present disclosure, the business process logic may be written at the build stage of the business process layer 201. The business processing logic may include, for example, business rules, i.e., business logic that refers to interactions between transaction entities, preconditions for interactions to occur, and the like.
According to the embodiment of the disclosure, the data generated in the interaction process between transaction bodies can be the computing resource sharing behavior data.
According to the embodiment of the disclosure, since the resource sharing task involves three main bodies, namely, a resource contributor, a resource consumer and a resource sharing platform, in the process of executing the resource sharing task, a large amount of data transmission needs to be involved, and the business processing logic designed by the resource sharing platform is not transparent, so that hidden dangers such as data security exist.
The block chain network layer 202 is connected to the service processing layer through an interface, and is adapted to upload the computational resource sharing behavior data to the block chain network, so that the block chain network stores the computational resource sharing behavior data.
According to the embodiment of the disclosure, by using the blockchain network layer 202, each transaction link in the resource sharing task execution process can be connected together in a trusted manner, so that the resource contributor, the resource consumer and the resource sharing platform have a distributed consensus, accounting and mutual trust transaction trusted guarantee mechanism in the frame of the blockchain network.
In the embodiment of the disclosure, by adopting a mode that the resource sharing platform is designed into the service processing layer and the block chain network layer, the computing resource sharing behavior data generated by the service processing layer can be stored into the block chain network through the block chain network layer, so that the technical problems of lack of traceability and transaction repudiation in the computing resource sharing process in the related technology are solved, the links of the transaction of the sharing computing platform are connected together in a credible manner, and the behaviors of the consumer and the contributor have the technical effect of a mutual trust guarantee mechanism.
According to an embodiment of the present disclosure, users include resource consumers and resource contributors.
The service processing layer comprises:
the first interaction port is suitable for interacting with the resource consumer so as to process the resource sharing request of the resource consumer;
a second interaction port adapted to interact with resource contributors.
According to an embodiment of the disclosure, the first interactive port and the second interactive port may be a B-end program and a C-end program of a front-end page presentation of the resource sharing platform.
According to an embodiment of the disclosure, a B-side application may interface with a resource sharing platform for resource contributors. When a resource contributor registers in the resource sharing platform, an installation package of the B-side application may be sent to the resource contributor. After the resource contributor installs the B-side application program in the local computer, the B-side application program may host the local computer of the resource contributor to provide the computing power sharing service to the outside, and the resource contributor may set a time period for providing the rental computing power resource.
According to the embodiment of the disclosure, when the resource contributor registers in the resource sharing platform, the resource contributor can register according to the identity information and the resource condition. The identity information may include, for example, name, mailbox, contact, identification number, country, region, etc. The resource conditions may include, for example, GPU model, core count, CPU model, memory capacity, operating system version, and the like.
According to the embodiment of the disclosure, the B-side application program may further configure a GPU virtualization module in the local computer of the resource contributor, the GPU virtualization module is invisible to the user, Linux is built in, and an open source KVMGT-kernel virtualization scheme may be used to virtualize a GPU with multiple physical cores into a virtual computing environment supporting multiple tasks, i.e., multiple VMs.
According to the embodiment of the disclosure, the C-side application program can provide functions of account management, task management, status viewing, fund management and the like for the resource consumer.
According to the embodiment of the disclosure, the C-side application program is implemented by a Web page, but is not limited thereto, and a client-side program package under Linux and Windows may also be provided.
According to the embodiment of the disclosure, the C-side application program realized by the Web page has the advantage of convenient access, and the C-side application program realized by the client program can bear greater concurrent access pressure.
According to embodiments of the present disclosure, a resource sharing request of a resource consumer may be initiated based on a C-side application. When initiating a resource sharing request, a resource consumer may submit GPU usage application information, which may include, for example, information such as a GPU model, a core number, a CPU model, a memory capacity, an operating system version, application time, a return IP key, and the like.
According to an embodiment of the present disclosure, the front-end page may also display home page content, product summary, operation guide, FAQ (Frequently Asked Questions), and the like; providing computing resource browsing, model configuration, specification, internal memory, operating system, charging mode and the like of the GPU server; provide user registration, login entry, etc.
According to the embodiment of the disclosure, the block chain network layer is designed and realized through a block chain network design layer;
the blockchain network design layer includes a first generation layer and a lead-in layer.
And the first generation layer is suitable for generating a network configuration file according to the block chain scene class file by using a preset modeling language.
According to an embodiment of the present disclosure, the preset modeling language may include, for example, a HyperLegendr Comperser language.
According to an embodiment of the present disclosure, a blockchain scene class file includes: user class files, resource class files to be shared and transaction class files.
According to an embodiment of the present disclosure, a user may refer to a participating user of the resource sharing platform, i.e., a trading subject.
According to an embodiment of the present disclosure, the resources to be shared may be assets, i.e., for example, GPU computing resources and CPU computing resources.
According to an embodiment of the present disclosure, the transaction class file may be a file defining business rules.
And the import layer is suitable for importing the network configuration file into the block chain network framework to generate a block chain network layer.
According to an embodiment of the present disclosure, the blockchain network framework may be created according to a Hyperridge Fabric blockchain network.
Fig. 3 schematically illustrates a design logic diagram of a blockchain network layer according to an embodiment of the present disclosure.
As shown in fig. 3, model definition may be performed first, i.e., defining transaction principals, assets, and rules involved in the blockchain network. After the model definition is completed, a network configuration file can be generated based on the block chain scene class file by using Hyperridge Composer language based on the Hyperridge Composer Playground interface. After the network configuration file is generated, the network configuration file can be imported into a pre-constructed HyperLegend Fabric framework to generate a real block chain service network.
According to an embodiment of the disclosure, HyperLedge Composer may describe a blockchain network with three classes, Assets (Assets), transaction bodies (Transactions) and rules (Transactions).
According to embodiments of the present disclosure, a network configuration file may include a file suffixed with BNA that contains executable transaction handler functions, which may be considered to be smart contracts written using JavaScript. The client application may be written using the Hyperledger Composer API to access BNA functions.
According to the embodiment of the disclosure, Hyperridge Composer Playground is a browser-based interface, which can be used to model Hyperridge Fabric service network: which valuable goods are exchanged (assets), who participates in the exchange of goods (transaction body), how the assets are protected (rules), what business logic is involved in the process (transactions), etc. The components are combined together in an intelligent contract form through HyperLegendr Fabric, a distributed processing system is created, and operation of the block chain application is controlled. The intelligent contract runs on a plurality of nodes in the network, and the output result after running is approved by all network members through a confirmation process.
According to the embodiment of the disclosure, the Hyperhedge Composer Playgroup can simulate the state storage of the blockchain network by using the local storage of the browser, so as to create, test and generate a network configuration file (. bna), and further import the network configuration file (. bna) into the real Hyperhedge Fabric network.
According to the embodiment of the disclosure, the generated network configuration file (. bna) is deployed in the Hyperledger Fabric network, which can be understood as a virtual service subnet deployed in the physical network of the Hyperledger Fabric, and one Hyperledger Fabric network can run a plurality of service subnets.
According to the embodiment of the disclosure, a Rest Server of a middle layer (Hyperhedger composite Playgroup) is called by using a restAPI interface of a front end, and the middle layer interacts with a real Fabric network of a back end by using an SDK. The Restful interface is established and the SDK will be automatically loaded in the corresponding program.
According to the embodiment of the disclosure, a more reasonable and efficient calculation force sharing platform is designed for the calculation force sharing platform through an open interface layer based on a HyperLegger Fabric network framework, so that decoupling of a service network and the resource sharing platform is realized, and technical effects of fairness and service transparentization of the resource sharing platform are realized.
According to an embodiment of the present disclosure, a block chain network layer includes:
and the contract management layer is suitable for generating a resource sharing contract to be signed based on the intelligent contract and uploading the signed resource sharing contract to the block chain network, wherein the resource sharing contract is used for stipulating a resource sharing rule between the resource sharing platform and the user.
According to embodiments of the present disclosure, a resource sharing contract may include a resource lease contract involving a resource contributor and a resource sharing platform, a resource consumption contract involving a resource consumer and a resource sharing platform, and a resource trading contract involving a resource consumer and a resource contributor.
According to embodiments of the present disclosure, a resource lease contract may include, for example, the following:
asset: resource manifest (GPU model, RAM, IP address, time period settings);
the belonged side of the asset: a contributor;
asset lessees: a platform;
the cost is as follows: …, respectively;
a switch: (managed/unmanaged).
According to embodiments of the present disclosure, a resource inventory in an asset may be used to specify what resources a resource contributor will contribute in what manner at the resource sharing platform. After the resource contributor sets the time period, the resource may be shared to the resource consumer only within the time period set by the resource contributor.
According to an embodiment of the present disclosure, hosting may mean that a resource contributor hosts all of its local computers to a resource sharing platform, which has all of its operating rights to its local computers within a pre-agreed time.
According to embodiments of the present disclosure, an unmanaged, or resource contributor, shares only a portion of the computing resources of its local computer to a resource consumer.
According to embodiments of the present disclosure, a resource consumption contract may include the following:
asset: resource manifest (GPU model, RAM, IP address, access key, time period settings);
the belonged side of the asset: a platform;
an asset consumer: a consumer;
the cost is as follows: … are provided.
According to embodiments of the present disclosure, a resource consumption contract may be signed with a resource sharing platform before a resource consumer begins resource sharing, where an asset may include information of a computing resource that the resource consumer wants to use, where a GPU model, RAM, IP address, access key, time period settings, etc. may be specified, and the resource sharing platform may match the appropriate resource contributors for the resource consumer based on the resource manifest.
According to an embodiment of the present disclosure, a service processing layer includes:
and the data layer is suitable for storing first attribute data of the resource sharing platform and second attribute data generated by registering a user on the resource sharing platform.
According to the embodiment of the disclosure, the data of the resource sharing platform is derived from the interaction between the transaction body itself and the transaction body, and the data layer can be defined as two layers: the system comprises attribute data and transaction data, wherein the attribute data are first attribute data of a transaction main body (a resource sharing platform, a resource consumer and a resource contributor), do not relate to direct transaction, can be stored by the resource sharing platform, and can also be uploaded to a block chain network for storage; the transaction data is transaction data generated by interaction between transaction subjects and relates to information of any activity, interaction and transaction link between roles.
According to the embodiment of the disclosure, in order to realize better performance and efficiency of the blockchain network layer, the bottom data can be stored in the local of the transaction main body, and the transaction data is integrated and written into the blocks of the intelligent contract by using Hyperridge Composer and REST API.
According to an embodiment of the present disclosure, the underlying data may include, for example, data to be shared by resource consumers, result data generated by calculation completion of resource contributors, and the like.
Fig. 4 schematically shows a block diagram of a data layer of a blockchain-based network according to an embodiment of the present disclosure.
As shown in fig. 4, 401 may represent a data store of a resource consumer, 402 may represent a data store of a resource contributor, and 403 may represent a data store of a resource sharing platform.
As can be seen from FIG. 4, the resource consumers, the resource contributors, and the resource sharing platform all correspond to transactional data and attribute data.
After generating the transaction data, the transaction data may be written to the block of the smart contract using Hyperleader Composer and REST API integration.
Fig. 5 schematically shows a block diagram of a resource sharing platform based on a blockchain network according to another embodiment of the present disclosure.
As shown in fig. 5, the service processing layer may include an interaction port layer, a service logic layer, a data layer, and an application interface layer, and the blockchain network layer includes an intelligent contract layer and a blockchain network framework.
According to the embodiment of the disclosure, the interaction port layer can include a Web end, namely a Web port, besides a B-end application program and a C-end application program, and resource consumers and resource contributors can conveniently access the resource sharing platform through the Web port.
According to the embodiment of the disclosure, the business logic layer may write the business logic of the resource sharing platform in a design stage of the resource sharing platform, and the business logic may include interaction rules between transaction agents of the resource sharing platform.
According to the embodiment of the disclosure, the business processing layer can be connected with the blockchain network layer through the application interface layer, so that the computational resource sharing behavior data generated by the business processing layer can be uploaded to the blockchain network constructed based on the HyperLegend Fabric.
Based on the resource sharing platform based on the block chain network, the disclosure also provides a resource sharing method. This method will be described in detail below with reference to fig. 6.
Fig. 6 schematically shows a flow chart of a resource sharing method according to an embodiment of the present disclosure.
In operation S601, in response to a resource sharing request initiated by a resource consumer for a resource to be shared shown by a resource sharing platform, an access address of the resource to be shared is sent to the resource consumer.
In operation S602, computing power resource sharing behavior data is generated in response to a computing power resource consumer completing a computing power resource sharing task according to an access address.
In operation S603, the computational resource sharing behavior data is uploaded to the blockchain network, so that the blockchain network stores the computational resource sharing behavior data.
FIG. 7 schematically shows a business flow diagram of a resource sharing platform according to an embodiment of the disclosure.
As shown in fig. 7, the resource contributor may register on the resource sharing platform in advance by providing a computing power configuration information application, and after the registration is completed, the resource sharing platform may send an installation package of the B-side application program to the resource contributor for the resource contributor to install. After the B-side application is installed and run, the local computers of the resource contributors may be hosted by the resource sharing platform.
The resource consumer can browse the GPU computing power resources to be rented displayed by the resource sharing platform, and then select the target GPU computing power resources to be rented from the multiple GPU computing power resources to be rented to submit order requests to the resource sharing platform. After receiving the order request, the resource sharing platform may return order request confirmation information to the resource consumer, where the order request confirmation information may include information of the fee to be paid. The resource consumer can transfer the account to the resource sharing platform according to the information of the cost to be paid in the order request confirmation information, after the resource sharing platform receives the account transfer, the resource sharing platform can return the information of confirming the successful account transfer to the resource consumer, and provide the IP address pointing to the target resource to be rented and the access SSH key for the resource consumer.
According to the embodiment of the disclosure, after receiving the IP address and the access SSH key, the resource consumer may access the resource to be leased, such as the local computer of the resource contributor, by clicking the IP address and inputting the corresponding SSH key, and then may deploy a task code to the local computer of the resource consumer to start executing the computing power sharing task.
After the resource contributor completes the computing task for the resource consumer locally, the resource contributor can send task completion information to the resource sharing platform, and the resource sharing platform can respond to the task completion information and send cost conditions to the resource contributor and the resource consumer. After the resource contributors and resource consumers confirm the cost, the resource sharing platform may transfer the cost to the resource contributors, settle the cost, and then send the cost details to the resource consumers.
According to the embodiment of the disclosure, in the above-mentioned business process, every time any interaction between a resource consumer, a resource contributor, and a resource sharing platform is involved, the calculation power resource sharing behavior data can be generated, and can be uploaded to the block chain network in real time for storage, or after the resource contributor and the resource consumer confirm that the resource sharing task is completed, the calculation power resource sharing behavior data generated in the execution process of the resource contribution task can be uploaded to the block chain network together for storage.
According to the embodiment of the present disclosure, any plurality of modules in the service processing layer 201 and the blockchain network layer 202 may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the service processing layer 201 and the blockchain network layer 202 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the business process layer 201 and the blockchain network layer 202 may be implemented at least in part as computer program modules that, when executed, may perform corresponding functions.
Fig. 8 schematically shows a block diagram of an electronic device adapted to implement a resource sharing method according to an embodiment of the present disclosure.
As shown in fig. 8, an electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., Application Specific Integrated Circuit (ASIC)), among others. The processor 801 may also include onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or RAM 803. Note that the programs may also be stored in one or more memories other than the ROM 802 and RAM 803. The processor 801 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 800 may also include input/output (I/O) interface 805, input/output (I/O) interface 805 also connected to bus 804, according to an embodiment of the present disclosure. Electronic device 800 may also include one or more of the following components connected to I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 802 and/or RAM 803 described above and/or one or more memories other than the ROM 802 and RAM 803.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the resource sharing method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 801. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via communication section 809, and/or installed from removable media 811. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program, when executed by the processor 801, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A resource sharing platform based on a blockchain network, comprising:
the service processing layer is suitable for providing a service interaction port for a user so that the user can share the computing resources according to the preset service processing logic and generate computing resource sharing behavior data;
and the block chain network layer is connected with the service processing layer through an interface and is suitable for uploading the calculation capacity resource sharing behavior data to the block chain network so that the block chain network can store the calculation capacity resource sharing behavior data.
2. The platform of claim 1, wherein the blockchain network layer is implemented by a blockchain network design layer design;
the blockchain network design layer comprises:
a first generation layer, adapted to generate a network configuration file according to the block chain scene class file by using a preset modeling language;
and the import layer is suitable for importing the network configuration file into a block chain network framework to generate the block chain network layer.
3. The platform of claim 1, wherein the blockchain network layer comprises:
and the contract management layer is suitable for generating a resource sharing contract to be signed based on the intelligent contract and uploading the signed resource sharing contract to the block chain network, wherein the resource sharing contract is used for defining the resource sharing rule between the resource sharing platform and the user.
4. The platform of claim 1, wherein the business process layer comprises:
and the data layer is suitable for storing first attribute data of the resource sharing platform and second attribute data generated by registering the user on the resource sharing platform.
5. The platform of claim 1, wherein the users comprise resource consumers and resource contributors;
the service processing layer comprises:
a first interaction port adapted to interact with the resource consumer to process a resource sharing request of the resource consumer;
a second interaction port adapted to interact with the resource contributor.
6. The platform of claim 2, wherein the blockchain scene class file comprises:
user class files, resource class files to be shared and transaction class files.
7. A resource sharing method applying the resource sharing platform according to any one of claims 1 to 6, comprising:
responding to a resource sharing request initiated by a resource consumer for a resource to be shared displayed by the resource sharing platform, and sending an access address of the resource to be shared to the resource consumer;
responding to the computational resource consumer to complete a computational resource sharing task according to the access address, and generating computational resource sharing behavior data;
uploading the computing power resource sharing behavior data to a block chain network so that the block chain network can store the computing power resource sharing behavior data.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of claim 7.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of claim 7.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to claim 7.
CN202111527762.3A 2021-12-14 2021-12-14 Resource sharing platform and resource sharing method based on block chain network Active CN114221967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111527762.3A CN114221967B (en) 2021-12-14 2021-12-14 Resource sharing platform and resource sharing method based on block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111527762.3A CN114221967B (en) 2021-12-14 2021-12-14 Resource sharing platform and resource sharing method based on block chain network

Publications (2)

Publication Number Publication Date
CN114221967A true CN114221967A (en) 2022-03-22
CN114221967B CN114221967B (en) 2023-06-02

Family

ID=80701856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111527762.3A Active CN114221967B (en) 2021-12-14 2021-12-14 Resource sharing platform and resource sharing method based on block chain network

Country Status (1)

Country Link
CN (1) CN114221967B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175913A (en) * 2019-04-12 2019-08-27 阿里巴巴集团控股有限公司 Data processing system, method, calculating equipment and storage medium based on block chain
CN110225129A (en) * 2019-06-18 2019-09-10 余俊龙 Based on block chain application extension control method and intelligent terminal, privately owned Cloud Server
CN111949394A (en) * 2020-07-16 2020-11-17 广州玖的数码科技有限公司 Method, system and storage medium for sharing computing power resource
CN112261015A (en) * 2020-10-12 2021-01-22 北京沃东天骏信息技术有限公司 Block chain based information sharing method, platform, system and electronic equipment
US20210200750A1 (en) * 2018-12-28 2021-07-01 Hefei Dappworks Technology Co., Ltd. Method and device of processing data for blockchain, and blockchain system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210200750A1 (en) * 2018-12-28 2021-07-01 Hefei Dappworks Technology Co., Ltd. Method and device of processing data for blockchain, and blockchain system
CN110175913A (en) * 2019-04-12 2019-08-27 阿里巴巴集团控股有限公司 Data processing system, method, calculating equipment and storage medium based on block chain
CN110225129A (en) * 2019-06-18 2019-09-10 余俊龙 Based on block chain application extension control method and intelligent terminal, privately owned Cloud Server
CN111949394A (en) * 2020-07-16 2020-11-17 广州玖的数码科技有限公司 Method, system and storage medium for sharing computing power resource
CN112261015A (en) * 2020-10-12 2021-01-22 北京沃东天骏信息技术有限公司 Block chain based information sharing method, platform, system and electronic equipment

Also Published As

Publication number Publication date
CN114221967B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
US10769600B2 (en) Cryptocurrency transactions using debit and credit values
Sehgal et al. Cloud computing
Hill et al. Guide to cloud computing: principles and practice
Pon et al. Android and the demise of operating system-based power: Firm strategy and platform control in the post-PC world
Chang et al. Transforming enterprise cloud services
Dempsey et al. Industry trends in cloud computing
US20160260157A1 (en) Rapid service orchestration and management
CA2887503A1 (en) Systems and methods for providing information-technology assets in an open environment
CN106462441A (en) Providing excess compute resources with virtualization
CN106951555A (en) SaaS mode contents management systems based on structural data
US11032134B2 (en) Providing and managing an adapter as a service (AaaS) brokering service
US9519505B1 (en) Enhanced configuration and property management system
Gundu et al. Hybrid IT and multi cloud an emerging trend and improved performance in cloud computing
US20180089677A1 (en) Scalable credit card system
US20060224424A1 (en) Business context services for adaptable service oriented architecture components
Vijai et al. E-commerce on cloud: opportunities and challenges
CA3137564A1 (en) Hidden line property of online content to inhibit bot activity
CN114221967B (en) Resource sharing platform and resource sharing method based on block chain network
Bhattacharjee An analysis of the cloud computing platform
US20230105621A1 (en) Extended reality content navigation
US20180205617A1 (en) System and method for graphically building a virtual network of computer components
Herbold et al. Model-based testing as a service
Dubey et al. Amazon Web Services: the Definitive Guide for Beginners and Advanced Users
Skúlason Architectural operations in cloud computing
Sahana Economics and Security Implications of Cloud Computing

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