CN112488706B - A blockchain-based cloud service management method and system - Google Patents
A blockchain-based cloud service management method and system Download PDFInfo
- Publication number
- CN112488706B CN112488706B CN202011324394.8A CN202011324394A CN112488706B CN 112488706 B CN112488706 B CN 112488706B CN 202011324394 A CN202011324394 A CN 202011324394A CN 112488706 B CN112488706 B CN 112488706B
- Authority
- CN
- China
- Prior art keywords
- service
- cloud
- matching
- request
- user
- 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.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 75
- 238000005516 engineering process Methods 0.000 claims abstract description 23
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000012545 processing Methods 0.000 claims description 16
- 238000011156 evaluation Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 13
- 230000002457 bidirectional effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 21
- 230000007246 mechanism Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011002 quantification Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000004043 responsiveness Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06315—Needs-based resource requirements planning or analysis
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Economics (AREA)
- Accounting & Taxation (AREA)
- Entrepreneurship & Innovation (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- Game Theory and Decision Science (AREA)
- Educational Administration (AREA)
- Finance (AREA)
- Computing Systems (AREA)
- Development Economics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种基于区块链的云服务管理方法及系统。The present invention relates to the field of computer technology, in particular to a blockchain-based cloud service management method and system.
背景技术Background technique
云计算利用虚拟化技术整合IT资源到一个大规模、可扩展的资源池,通过互联网为各种企业和用户提供灵活、可扩展、多样化的按需服务。Cloud computing uses virtualization technology to integrate IT resources into a large-scale, scalable resource pool, and provides flexible, scalable, and diverse on-demand services to various enterprises and users through the Internet.
云计算成为一种被普遍认可的创新计算模式,激励了大量云计算服务提供商的出现。服务提供商数量的增多,一方面会出现不同的服务提供商提供相同或相似但服务质量却各异的云服务的情况;另一方面,由于部分服务提供商可能提供虚假的、不可信的服务信息参与到服务选择的过程中,导致服务使用者无法有效获取真实可靠的高质量服务,且服务选择的质量不高。这为云服务资源的有效利用,用户任务的高效执行以及云用户支付费用的最小化带来挑战。Cloud computing has become a generally recognized innovative computing model, which has inspired the emergence of a large number of cloud computing service providers. As the number of service providers increases, on the one hand, different service providers will provide the same or similar cloud services with different service qualities; on the other hand, some service providers may provide false and untrustworthy services Information participates in the process of service selection, resulting in service users being unable to effectively obtain authentic and reliable high-quality services, and the quality of service selection is not high. This brings challenges to the effective utilization of cloud service resources, the efficient execution of user tasks, and the minimization of cloud user payment costs.
目前的云服务提供在服务选择阶段依靠在云用户和多个云服务提供者之间增加云代理商来方便用户发现、监测和选择更加合适的云用户。云服务提供商将云服务信息注册至云代理商,云代理商将来自云用户的服务需求作为输入,找到满足云用户需求的服务,并响应服务相关信息。The current cloud service provision relies on adding cloud agents between cloud users and multiple cloud service providers in the service selection stage to facilitate users to discover, monitor and select more suitable cloud users. The cloud service provider registers the cloud service information to the cloud broker, and the cloud broker takes the service requirements from the cloud users as input, finds services that meet the cloud user's needs, and responds to service-related information.
但随着近期云服务提供商数量和服务类型的进一步增长,依靠云代理商的云服务管理已经成为一项越来越费时的管理模式,并且依靠云代理商实现的云服务选择还面临着不可靠选择风险的存在(如故意操纵选择结果)。However, with the further increase in the number and types of cloud service providers in the near future, cloud service management relying on cloud brokers has become an increasingly time-consuming management model, and the choice of cloud services realized by relying on cloud brokers still faces challenges. Presence of reliable selection risks (such as deliberate manipulation of selection results).
有鉴于此,高度集中的服务方式已无法为消费者提供满意的服务,显然,亟需开发一种更加有效的云服务管理方法为用户提供更为高效、安全的云服务。In view of this, highly centralized service methods can no longer provide consumers with satisfactory services. Obviously, it is urgent to develop a more effective cloud service management method to provide users with more efficient and secure cloud services.
发明内容Contents of the invention
针对现有技术存在的问题,本发明实施例提供一种基于区块链的云服务管理方法及系统。Aiming at the problems existing in the prior art, the embodiment of the present invention provides a blockchain-based cloud service management method and system.
本发明提供一种基于区块链的云服务管理方法,包括:接收多个云服务者的服务注册请求,每个所述服务注册请求至少包含服务相关信息;The present invention provides a blockchain-based cloud service management method, comprising: receiving service registration requests from multiple cloud service providers, each of which includes at least service-related information;
利用智能合约提取所述服务相关信息,以将所述每个云服务者的服务注册请求加入至区块链中;Using smart contracts to extract the service-related information, so as to add the service registration request of each cloud service provider to the block chain;
接收至少一个云用户的服务请求;receiving a service request from at least one cloud subscriber;
根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,以建立每个云用户与所述目标云服务者之间的匹配;According to the service request, use the smart contract to match the target service registration request from the block chain to establish a match between each cloud user and the target cloud service provider;
所述目标云服务者是与所述目标服务注册请求所对应的云服务者。The target cloud service provider is the cloud service provider corresponding to the target service registration request.
根据本发明提供的一种基于区块链的云服务管理方法,所述根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,具体包括:According to a block chain-based cloud service management method provided by the present invention, according to the service request, using the smart contract to match the target service registration request from the block chain specifically includes:
基于智能合约技术的服务匹配算法,将所述服务请求的服务需求信息与每个所述服务注册请求的服务相关信息进行匹配,以确定所述服务请求所对应的目标服务注册请求。The service matching algorithm based on smart contract technology matches the service requirement information of the service request with the service-related information of each service registration request, so as to determine the target service registration request corresponding to the service request.
根据本发明提供的一种基于区块链的云服务管理方法,所述基于智能合约技术的服务匹配算法,将所述服务请求的服务需求信息与每个所述服务注册请求的服务相关信息进行匹配,包括:According to a blockchain-based cloud service management method provided by the present invention, the service matching algorithm based on smart contract technology compares the service requirement information of the service request with the service-related information of each service registration request matches, including:
在单用户服务匹配场景下,在所有所述服务注册请求的服务相关信息中,确定与所述云用户的服务请求的服务需求信息之间匹配度最高的一个,作为匹配对象;In the single-user service matching scenario, among all the service-related information of the service registration request, determine the one with the highest matching degree with the service requirement information of the service request of the cloud user as the matching object;
在多用户服务匹配场景下,基于云用户总匹配率和总匹配质量的最大化以及总匹配价格的最小化作为匹配目标,确定每个所述云用户的服务请求所对应的目标服务注册请求。In a multi-user service matching scenario, based on maximizing the total matching rate and quality of cloud users and minimizing the total matching price as matching goals, determine the target service registration request corresponding to each cloud user's service request.
根据本发明提供的一种基于区块链的云服务管理方法,在接收多个云服务者的服务注册请求之前,还包括:According to a blockchain-based cloud service management method provided by the present invention, before receiving service registration requests from multiple cloud service providers, it also includes:
基于区块链的分布式云服务网络,对每个所述云服务者进行注册,并为每个所述云服务者分配一个唯一的服务账户;A blockchain-based distributed cloud service network, registering each of the cloud service providers, and assigning a unique service account to each of the cloud service providers;
在接收至少一个云用户的服务请求之前,还包括:Prior to receiving service requests from at least one Cloud Subscriber, also include:
基于区块链的分布式云服务网络,对每个所述云用户进行注册,并未每个所述云用户分配一个唯一的用户账户。The blockchain-based distributed cloud service network registers each cloud user and assigns each cloud user a unique user account.
根据本发明提供的一种基于区块链的云服务管理方法,所述服务相关信息至少包括:服务类型、服务质量参数集合、服务资源量、服务单位资源价格;According to a blockchain-based cloud service management method provided by the present invention, the service-related information at least includes: service type, service quality parameter set, service resource amount, service unit resource price;
所述服务需求信息至少包括:服务属性需求、资源量需求、需求单位资源价格。The service demand information at least includes: service attribute demand, resource quantity demand, and demand unit resource price.
根据本发明提供的一种基于区块链的云服务管理方法,在根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,以建立每个云用户与所述目标云服务者之间的匹配之后,还包括:According to a block chain-based cloud service management method provided by the present invention, according to the service request, the smart contract is used to match the target service registration request from the block chain to establish the relationship between each cloud user and the After matching between target cloud service providers, it also includes:
在所述区块链中存储服务水平协议;storing service level agreements in said blockchain;
所述服务水平协议每个云用户与所述目标云服务者在链下签订并上传至所述区块链的。The service level agreement is signed by each cloud user and the target cloud service provider under the chain and uploaded to the blockchain.
根据本发明提供的一种基于区块链的云服务管理方法,收集每个所述云用户对所述目标云服务者的评价,以调用所述智能合约更新所述目标云服务者的服务信誉;According to a block chain-based cloud service management method provided by the present invention, the evaluation of each cloud user on the target cloud service provider is collected, so as to call the smart contract to update the service reputation of the target cloud service provider ;
将所述目标云服务者的服务信誉作为所述目标云服务者的服务相关信息的一部分上传至所述区块链中。Uploading the service reputation of the target cloud service provider to the block chain as part of the service-related information of the target cloud service provider.
本发明还提供一种基于区块链的云服务管理系统,包括:第一接收单元、第一处理单元、第二接收单元和第二处理单元;第一接收单元,用于接收多个云服务者的服务注册请求,每个所述服务注册请求至少包含服务相关信息;The present invention also provides a blockchain-based cloud service management system, including: a first receiving unit, a first processing unit, a second receiving unit, and a second processing unit; the first receiving unit is used to receive multiple cloud service service registration requests by the operator, each of which includes at least service-related information;
第一处理单元,用于利用智能合约提取所述服务相关信息,以将所述每个云服务者的服务注册请求加入至区块链中;The first processing unit is used to extract the service-related information by using the smart contract, so as to add the service registration request of each cloud service provider to the block chain;
第二接收单元,用于接收至少一个云用户的服务请求;a second receiving unit, configured to receive a service request from at least one cloud user;
第二处理单元,用于根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,以建立每个云用户与所述目标云服务者之间的匹配;The second processing unit is configured to use the smart contract to match a target service registration request from the blockchain according to the service request, so as to establish a match between each cloud user and the target cloud service provider;
所述目标云服务者是与所述目标服务注册请求所对应的云服务者。The target cloud service provider is the cloud service provider corresponding to the target service registration request.
本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述基于区块链的云服务管理方法的步骤。The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the block-based Steps of a chained cloud service management method.
本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述基于区块链的云服务管理方法的步骤。The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the aforementioned blockchain-based cloud service management methods are implemented.
本发明提供的基于区块链的云服务管理方法及系统,提供了一种基于区块链及智能合约技术构建的基于区块链技术分布式云服务方法,能将社会闲置资源注册到分布式云服务中,提高了社会闲置资源利用效率;同时为用户提供了更好的服务选择平台,用户可选择更满足自身需求的云服务;并且利用区块链记录云服务交易,保证交易凭证的不可篡改,能更好的满足用户和服务提供者的最优化双向选择。The blockchain-based cloud service management method and system provided by the present invention provides a distributed cloud service method based on blockchain and smart contract technology, which can register social idle resources to distributed In the cloud service, the utilization efficiency of social idle resources is improved; at the same time, a better service selection platform is provided for users, and users can choose cloud services that better meet their own needs; and the blockchain is used to record cloud service transactions to ensure the authenticity of transaction certificates. Tampering can better meet the optimal two-way choice of users and service providers.
附图说明Description of drawings
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are the present invention. For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.
图1是本发明提供的基于区块链的云服务管理方法的流程示意图之一;Fig. 1 is one of the schematic flow charts of the blockchain-based cloud service management method provided by the present invention;
图2是本发明提供的基于区块链的云服务管理方法的流程示意图之二;Fig. 2 is the second schematic flow diagram of the blockchain-based cloud service management method provided by the present invention;
图3是本发明提供的基于区块链的云服务管理方法中关于服务请求的示意图;Fig. 3 is a schematic diagram of a service request in the blockchain-based cloud service management method provided by the present invention;
图4是本发明提供的基于区块链的云服务管理方法中关于服务匹配及交易记录的示意图;Fig. 4 is a schematic diagram of service matching and transaction records in the blockchain-based cloud service management method provided by the present invention;
图5是本发明提供的基于区块链的云服务管理方法中关于身份注册的示意图;Fig. 5 is a schematic diagram of identity registration in the blockchain-based cloud service management method provided by the present invention;
图6是本发明提供的基于区块链的云服务管理方法中关于服务提供及服务评价的示意图;Fig. 6 is a schematic diagram of service provision and service evaluation in the blockchain-based cloud service management method provided by the present invention;
图7是本发明提供的基于区块链的云服务管理方法与基于broker的云服务机制的服务匹配时间比较示意图;Fig. 7 is a schematic diagram of the service matching time comparison between the blockchain-based cloud service management method provided by the present invention and the broker-based cloud service mechanism;
图8是本发明提供的基于区块链的云服务管理方法与基于broker的云服务机制的系统收益比较示意图;Fig. 8 is a schematic diagram of system revenue comparison between the blockchain-based cloud service management method and the broker-based cloud service mechanism provided by the present invention;
图9是本发明提供的基于区块链的云服务管理方法与基于broker的云服务机制的总体服务QoS比较示意图;Fig. 9 is a schematic diagram of the overall service QoS comparison between the blockchain-based cloud service management method provided by the present invention and the broker-based cloud service mechanism;
图10是本发明提供的基于区块链的云服务管理系统的结构示意图;Fig. 10 is a schematic structural diagram of a blockchain-based cloud service management system provided by the present invention;
图11是本发明提供的电子设备的结构示意图。Fig. 11 is a schematic structural diagram of an electronic device provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
下面结合图1-图9描述本发明实施例所提供的基于区块链的云服务管理方法和系统。The blockchain-based cloud service management method and system provided by the embodiments of the present invention are described below with reference to FIGS. 1-9 .
图1是本发明提供的基于区块链的云服务管理方法的流程示意图之一,如图1所示,包括但不限于以下步骤:Fig. 1 is one of the flow diagrams of the blockchain-based cloud service management method provided by the present invention, as shown in Fig. 1, including but not limited to the following steps:
步骤S1:接收多个云服务者的服务注册请求,每个所述服务注册请求至少包含服务相关信息;Step S1: receiving service registration requests from multiple cloud service providers, each of which includes at least service-related information;
步骤S2:利用智能合约提取所述服务相关信息,以将所述每个云服务者的服务注册请求加入至区块链中;Step S2: using the smart contract to extract the service-related information, so as to add the service registration request of each cloud service provider to the blockchain;
步骤S3:接收至少一个云用户的服务请求;Step S3: receiving a service request from at least one cloud user;
步骤S4:根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,以建立每个云用户与所述目标云服务者之间的匹配;Step S4: According to the service request, use the smart contract to match the target service registration request from the blockchain to establish a match between each cloud user and the target cloud service provider;
所述目标云服务者是与所述目标服务注册请求所对应的云服务者。The target cloud service provider is the cloud service provider corresponding to the target service registration request.
考虑到现有的依靠云代理商实现云服务管理的中心化云服务管理方法,存在较高的不可靠选择风险以及大量相似的云服务带来的选择的高耗时性等缺陷,本发明提供的基于区块链的云服务管理方法,采用去中心化的区块链,利用区块链的优势,设计了基于区块链的分布式云服务服务管理机制。整个基于区块链的云服务管理方法的实施步骤,可以包括但不限于云服务及云用户注册、服务请求、服务匹配及服务交易和服务提供及服务评价等四个部分。在基于区块链和智能合约技术构建的分布式云服务系统中实现自动检索、查找、提供、使用、释放所需的所有云计算资源,完成云用户及云服务提供商之间的可靠交易。Considering that the existing centralized cloud service management method that relies on cloud agents to realize cloud service management has defects such as high risk of unreliable selection and high time-consuming selection caused by a large number of similar cloud services, the present invention provides The blockchain-based cloud service management method adopts the decentralized blockchain and utilizes the advantages of the blockchain to design a distributed cloud service management mechanism based on the blockchain. The implementation steps of the entire blockchain-based cloud service management method may include, but are not limited to, four parts: cloud service and cloud user registration, service request, service matching, service transaction, service provision, and service evaluation. In the distributed cloud service system based on blockchain and smart contract technology, all cloud computing resources required are automatically retrieved, searched, provided, used, and released, and reliable transactions between cloud users and cloud service providers are completed.
具体地,在步骤S1中,基于区块链的云服务管理系统先依次收集所有云服务者的服务注册请求Specifically, in step S1, the blockchain-based cloud service management system first sequentially collects service registration requests from all cloud service providers
本发明所提供的基于区块链的分布式的云服务管理系统中,主要包括云服务提供者(又称云服务者,CSP)与云服务消费者(又称云用户)这两大类应用实体。其中,云服务者可分为三类不同资源提供方且对应两类云区块链节点。The blockchain-based distributed cloud service management system provided by the present invention mainly includes two types of applications: cloud service provider (also known as cloud service provider, CSP) and cloud service consumer (also known as cloud user). entity. Among them, cloud service providers can be divided into three types of different resource providers and correspond to two types of cloud blockchain nodes.
其中,在区块链中三类不同资源的服务方所对应的节点分别为个人服务提供者、云服务代理机构以及企业级云服务提供者,他们分布在不同的地理位置,基于区块链技术构成一种云区块链网络。Among them, the nodes corresponding to the service providers of the three types of different resources in the blockchain are individual service providers, cloud service agencies, and enterprise-level cloud service providers. They are distributed in different geographical locations and based on blockchain technology Constitute a cloud blockchain network.
另一方面,云服务者根据自身能力所对应两类云区块链节点,分别为区块链轻节点与区块链标准节点。其中,区块链轻节点因自身资源有限,仅存储区块链中部分自身感兴趣的区块数据(例如,自己近距离范围内的服务提供者节点的相关信息),标准节点则为区块链网络基础节点,保存全网完整区块链数据。一般来说,个人服务提供者和云服务代理机构因其有限资源配置为区块链轻节点,而企业级云服务提供者配置则为区块链标准节点。On the other hand, cloud service providers correspond to two types of cloud blockchain nodes according to their own capabilities, namely blockchain light nodes and blockchain standard nodes. Among them, due to their limited resources, the light nodes of the blockchain only store some of the block data that they are interested in in the blockchain (for example, information about service provider nodes within close range), while the standard nodes are block The basic node of the chain network saves the complete blockchain data of the entire network. Generally speaking, personal service providers and cloud service agencies are configured as blockchain light nodes due to their limited resources, while enterprise-level cloud service providers are configured as blockchain standard nodes.
在步骤S1中,先获取到加入至区块链中的各个云服务者的服务注册请求。其中,每个所述注册请求分别向分布式的云服务网络系统发送服务注册请求。其中,服务注册请求中必须包括服务相关信息,以说明能够提供的服务类型、服务质量参数集合、服务资源量、服务单位资源价格等。In step S1, the service registration requests of each cloud service provider added to the blockchain are obtained first. Wherein, each of the registration requests sends a service registration request to the distributed cloud service network system respectively. Among them, the service registration request must include service-related information to describe the type of service that can be provided, the set of service quality parameters, the amount of service resources, and the price of service unit resources.
在步骤S2中,云服务网络系统利用区块链中的智能合约将每个服务注册请求所携带的服务相关信息提取出来,并将这些信息以交易的形式发布至区块链中,这样在整个区块链中公开发布着与所有云服务者所发布的服务注册请求相对应的服务相关信息。In step S2, the cloud service network system uses the smart contract in the blockchain to extract the service-related information carried by each service registration request, and publishes the information to the blockchain in the form of transactions, so that the entire The service-related information corresponding to the service registration requests issued by all cloud service providers is published publicly in the blockchain.
在步骤S3中,当云服务网络系统在某个时间点,接收到一个或多个云用户的服务请求后,则相应的读取与每个云用户发布的服务请求相关的服务需求信息。In step S3, when the cloud service network system receives service requests from one or more cloud users at a certain point in time, it correspondingly reads the service requirement information related to the service requests issued by each cloud user.
在步骤S4中,在获取到各个云用户的服务需求信息后,利用智能合约将所有的服务需求信息与区块链中的所有的服务注册相关的服务相关信息进行匹配,以实现云服务者与云用户之间的最佳服务匹配。In step S4, after obtaining the service demand information of each cloud user, use the smart contract to match all the service demand information with the service-related information related to all service registrations in the blockchain, so as to realize cloud service providers and Optimal service matching among cloud users.
图2是本发明提供的基于区块链的云服务管理方法的流程示意图之二,如图2所示,在上述实施例的基础上,本发明提供了一种基于区块链的基于区块链的云服务管理方法,包括但不限于以下步骤:Fig. 2 is the second schematic flow diagram of the blockchain-based cloud service management method provided by the present invention. As shown in Fig. 2, on the basis of the above-mentioned embodiments, the present invention provides a blockchain-based cloud service management method Chain cloud service management methods, including but not limited to the following steps:
Step 1,初始化区块链网络,设计编写相关智能合约,并定义存储数据的数据结构。
Step 2,接收到输入指令(IN)。
Step 3,判别输入指令类型,以根据指令类型的不同,实现不同步骤的跳转,包括:转入至注册及服务发布的步骤(即转至step 4);转入至服务请求的步骤(即转至step 5)或者转入至服务评价的步骤(即转至step 6)。
Step 4,在注册及服务发布的步骤,主要包括:可以判断云服务者是否拥有合法的服务账户;若有则分析云服务者的指令是否为服务注册指令;若是则完成服务请求的注册,以提取服务注册请求的服务属性以及服务相关信息,并以交易形式发布至区块链后转入至step 7;若云服务者的指令不是服务注册指令,则直接转step 7。如果云服务者未拥有合法的服务账户,则为云服务者进行账户注册。
Step 5,服务请求的步骤,主要包括:调用智能合约执行服务匹配算法,用户同服务提供者链下协,签订服务水平协议(Service Level Agreement,SLA),存储SLA至区块链中,完成服务交易,更新服务状态,转step6。商
Step 6,服务评价的步骤,主要包括:调用智能合约更新服务信誉,更新服务评价,存储服务评价至区块链,转Step 7。
Step 7,判断系统是否运行正常,正常运转则再次进入step 3,执行迭代监控、处理的步骤;若不正常则转入3至step 8。
Step 8,结束。
本发明提供的基于区块链的云服务管理方法,具体为一种基于区块链及智能合约技术构建的基于区块链技术分布式云服务方法,能将社会闲置资源注册到分布式云服务中,提高了社会闲置资源利用效率;同时为用户提供了更好的服务选择平台,用户可选择更满足自身需求的云服务;并且利用区块链记录云服务交易,保证交易凭证的不可篡改,能更好的满足用户和服务提供者的最优化双向选择。The blockchain-based cloud service management method provided by the present invention is specifically a distributed cloud service method based on blockchain and smart contract technology, which can register social idle resources to distributed cloud services Among them, the utilization efficiency of social idle resources is improved; at the same time, a better service selection platform is provided for users, and users can choose cloud services that better meet their own needs; and the blockchain is used to record cloud service transactions to ensure that transaction certificates cannot be tampered with. It can better satisfy the optimal two-way choice of users and service providers.
基于上述实施例的内容,作为一种可选实施例,所述根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,具体包括:Based on the content of the above-mentioned embodiment, as an optional embodiment, using the smart contract to match the target service registration request from the blockchain according to the service request specifically includes:
基于智能合约技术的服务匹配算法,将所述服务请求的服务需求信息与每个所述服务注册请求的服务相关信息进行匹配,以确定所述服务请求所对应的目标服务注册请求。The service matching algorithm based on smart contract technology matches the service requirement information of the service request with the service-related information of each service registration request, so as to determine the target service registration request corresponding to the service request.
图3是本发明提供的基于区块链的云服务管理方法中关于服务请求的示意图,如图3所示,云服务者向分布式云服务网络发送服务注册请求,每个服务注册请求包含了对应的服务相关信息,主要包括:服务类型、服务质量参数集合、服务资源量、服务单位资源价格等服务相关信息。区块链中智能合约将提取这些信息并将其写入区块链中,等待服务请求。Fig. 3 is a schematic diagram of a service request in the blockchain-based cloud service management method provided by the present invention. As shown in Fig. 3, the cloud service provider sends a service registration request to the distributed cloud service network, and each service registration request includes The corresponding service-related information mainly includes service-related information such as service type, service quality parameter set, service resource amount, and service unit resource price. A smart contract in the blockchain will extract this information and write it into the blockchain, waiting for service requests.
云用户可以向基于区块链的分布式云服务网络发起服务请求,每个服务请求包含有与之对应的服务需求信息,包括:对目标服务的各类服务属性需求(包括功能属性和非功能属性)、资源量需求等。服务请求将触发基于智能合约技术的服务匹配算法。所述服务匹配算法将分别考虑服务请求方(每个云用户)所能承受的最大资金支出以及服务提供方(每个云服务者)的最优服务质量等因素,以完成最佳服务匹配。Cloud users can initiate service requests to the blockchain-based distributed cloud service network, and each service request contains corresponding service demand information, including: various service attribute requirements (including functional attributes and non-functional attributes) for the target service attributes), resource requirements, etc. Service requests will trigger a service matching algorithm based on smart contract technology. The service matching algorithm will consider factors such as the maximum capital expenditure that the service requester (each cloud user) can bear and the optimal service quality of the service provider (each cloud service provider) to complete the best service matching.
本发明提供的基于区块链的云服务管理方法,利用区块链的智能合约技术,实现服务请求的匹配处理,设计了一个基于区块链的分布式云服务管理机制,保证安全的p2p资源交易。基于区块链技术和智能合约技术构建的分布式云服务系统可以实现自动检索、查找、提供、使用、释放所需的所有云计算资源,完成可靠交易。The block chain-based cloud service management method provided by the present invention utilizes block chain smart contract technology to realize matching processing of service requests, and designs a block chain-based distributed cloud service management mechanism to ensure safe p2p resources trade. The distributed cloud service system based on blockchain technology and smart contract technology can automatically retrieve, find, provide, use, and release all required cloud computing resources to complete reliable transactions.
基于上述实施例的内容,作为一种可选实施例,所述基于智能合约技术的服务匹配算法,将所述服务请求的服务需求信息与每个所述服务注册请求的服务相关信息进行匹配,包括:Based on the content of the above embodiment, as an optional embodiment, the service matching algorithm based on smart contract technology matches the service requirement information of the service request with the service related information of each service registration request, include:
在单用户服务匹配场景下,在所有所述服务注册请求的服务相关信息中,确定与所述云用户的服务请求的服务需求信息之间匹配度最高的一个,作为匹配对象;In the single-user service matching scenario, among all the service-related information of the service registration request, determine the one with the highest matching degree with the service requirement information of the service request of the cloud user as the matching object;
在多用户服务匹配场景下,基于云用户总匹配率和总匹配质量的最大化以及总匹配价格的最小化作为匹配目标,确定每个所述云用户的服务请求所对应的目标服务注册请求。In a multi-user service matching scenario, based on maximizing the total matching rate and quality of cloud users and minimizing the total matching price as matching goals, determine the target service registration request corresponding to each cloud user's service request.
进一步地,在基于智能合约技术的服务匹配算法实现服务请求的匹配运算的过程中,云区块链网络能够实现基于智能合约的服务匹配算法,以依据用户服务需求信息,考虑服务提供者的服务相关信息,实现综合匹配。Furthermore, in the process of realizing the matching operation of service requests based on the service matching algorithm based on smart contract technology, the cloud block chain network can realize the service matching algorithm based on smart contracts, so as to consider the service provider's service requirements based on user service demand information. Relevant information to achieve comprehensive matching.
具体地,在单用户服务匹配场景下,以对用户的服务需求匹配量最大化,完成服务匹配,同时实现资源定价。Specifically, in the single-user service matching scenario, the service matching is completed by maximizing the matching amount of the user's service demand, and resource pricing is realized at the same time.
由于仅有一个云用户参与匹配,则仅需要以该云用户的服务需求信息与任一服务注册请求的服务相关信息的匹配量最大化作为匹配目标,以为所述云用户匹配到最优的云服务者。Since only one cloud user participates in the matching, it is only necessary to maximize the matching amount between the cloud user’s service demand information and any service registration request’s service-related information as the matching goal, so as to match the cloud user with the optimal cloud servant.
图4是本发明提供的基于区块链的云服务管理方法中关于服务匹配及交易记录的示意图,如图4所示,在面对更加普遍的多用户同时服务匹配场景,则以社会福利最大化为目标,以服务质量及服务价格为因素,实现服务匹配。Figure 4 is a schematic diagram of service matching and transaction records in the blockchain-based cloud service management method provided by the present invention. As shown in Figure 4, in the face of more common multi-user simultaneous service matching scenarios, the social welfare Turn it into a goal, and use service quality and service price as factors to achieve service matching.
例如,所述以社会福利最大化为目标可以理解为:若同时存在100个云用户发出了服务请求,以参与最优匹配,则所述社会福利最大化是指能最大程度同时满足云用户需要的最大数量。如:第一匹配结果是同时满足80个云用户的匹配需求,第二匹配结果是同时能够满足98个云用户的匹配需求,则可以认为所述第二匹配结果是以社会福利最大化为目标的匹配结果。For example, the goal of maximizing social welfare can be understood as: if there are 100 cloud users who send service requests at the same time to participate in optimal matching, then the maximization of social welfare refers to meeting the needs of cloud users to the greatest extent at the same time the maximum number of . For example: the first matching result is to meet the matching needs of 80 cloud users at the same time, and the second matching result is to meet the matching needs of 98 cloud users at the same time, then it can be considered that the second matching result is aimed at maximizing social welfare matching results.
其中,服务质量可以包括服务的抖动率、中断率、响应时间等属性参数。抖动率越小、中断率越低、响应时间越短,则所述服务质量越大。而总匹配质量可以理解为所有云用户所对应的匹配质量的综合质量(如平均值或累加值)。Wherein, the quality of service may include attribute parameters such as service jitter rate, interruption rate, and response time. The smaller the jitter rate, the lower the interruption rate, and the shorter the response time, the greater the quality of service. The total matching quality can be understood as a comprehensive quality (such as an average value or an accumulated value) of matching qualities corresponding to all cloud users.
其中,匹配价格是针对每个云用户的服务请求的意愿价格与每个对应的云服务者的服务价格之间的差值。一般来说匹配价格越低,则说明匹配度越高。而平均匹配价格可以理解为所有云用户所对应的匹配价格的综合价格(如平均值或累加值)。Wherein, the matching price is the difference between the desired price of each cloud user's service request and the service price of each corresponding cloud service provider. Generally speaking, the lower the matching price, the higher the matching degree. The average matching price can be understood as a comprehensive price (such as an average or cumulative value) of matching prices corresponding to all cloud users.
进一步地,基于智能合约技术的服务匹配算法还可以根据计算各云服务者的综合信誉、各云服务者的标准化服务质量等作为匹配参数,实现智能匹配运算,对此本发明均不作具体的限定。Furthermore, the service matching algorithm based on smart contract technology can also calculate the comprehensive reputation of each cloud service provider, the standardized service quality of each cloud service provider as matching parameters, and realize intelligent matching operations, which are not specifically limited by the present invention. .
本发明提供的基于区块链的云服务管理方法,利用智能合约技术的服务匹配算法,自动进行云用户与云服务者的需求匹配,该服务管理机制为用户提供了更好的服务选择平台,用户可选择更满足自身需求的云服务;利用区块链记录云服务交易,保证交易凭证的不可篡改。基于区块链的分布式云服务能更好的满足用户和服务提供者的最优化双向选择。The blockchain-based cloud service management method provided by the present invention uses the service matching algorithm of smart contract technology to automatically match the needs of cloud users and cloud service providers. The service management mechanism provides users with a better service selection platform. Users can choose cloud services that better meet their own needs; use blockchain to record cloud service transactions to ensure that transaction certificates cannot be tampered with. Blockchain-based distributed cloud services can better meet the optimal two-way choice of users and service providers.
基于上述实施例的内容,作为一种可选实施例,在接收多个云服务者的服务注册请求之前,还包括:Based on the content of the foregoing embodiments, as an optional embodiment, before receiving service registration requests from multiple cloud service providers, it further includes:
基于区块链的分布式云服务网络,对每个所述云服务者进行注册,并为每个所述云服务者分配一个唯一的服务账户;A blockchain-based distributed cloud service network, registering each of the cloud service providers, and assigning a unique service account to each of the cloud service providers;
在接收至少一个云用户的服务请求之前,还包括:Prior to receiving service requests from at least one Cloud Subscriber, also include:
基于区块链的分布式云服务网络,对每个所述云用户进行注册,并未每个所述云用户分配一个唯一的用户账户。The blockchain-based distributed cloud service network registers each cloud user and assigns each cloud user a unique user account.
基于区块链的分布式云服务网络,允许访问各种云服务者,完成注册的云服务者将被分配一个唯一的服务账户,每个云服务者可以使用这一服务账户,将其服务信息发布到区块链上。作为区块链网络中的客户端节点,每个云用户在请求服务以获取目标云服务者的服务账户之前完成用户账户的注册。A blockchain-based distributed cloud service network allows access to various cloud service providers. Cloud service providers who have completed registration will be assigned a unique service account. Each cloud service provider can use this service account to share its service information published on the blockchain. As a client node in the blockchain network, each cloud user completes the registration of the user account before requesting the service to obtain the service account of the target cloud server.
图5是本发明提供的基于区块链的云服务管理方法中关于身份注册的示意图,如图5所示,云用户的注册包括:由云用户向基于区块链的云服务管理网络上传注册请求;云服务管理网络接收所述注册请求后,在区块链上完成信息的登记和公布,将生成的账户和账户私钥发送给所述云用户。Fig. 5 is a schematic diagram of identity registration in the blockchain-based cloud service management method provided by the present invention. As shown in Fig. 5, the registration of cloud users includes: uploading and registering by cloud users to the blockchain-based cloud service management network Request; after receiving the registration request, the cloud service management network completes the registration and publishing of information on the block chain, and sends the generated account and account private key to the cloud user.
其中,云服务者的注册则相对来说,要求要高一点,包括:云服务者向云服务管理网络上传服务注册请求;云服务管理网络接收所述服务注册请求求后,在区块链上完成相应信息的登记和公布,将生成的账户和账户私钥发送给所述云服务者;然后,云服务者可以基于所述账户实现服务信息的即时发布,并能够随时接收到相应的服务注册相应信息等。Among them, the registration of the cloud service provider is relatively more demanding, including: the cloud service provider uploads the service registration request to the cloud service management network; Complete the registration and announcement of the corresponding information, and send the generated account and account private key to the cloud service provider; then, the cloud service provider can realize the instant release of service information based on the account, and can receive the corresponding service registration at any time Corresponding information etc.
本发明提供的基于区块链的云服务管理方法,采用认证注册的方式,对每个云用户以及每个云服务者的身份、发布信息等进行统一管理,有效的保证了交易的安全性、可靠性。The block chain-based cloud service management method provided by the present invention adopts authentication and registration to uniformly manage the identity and release information of each cloud user and each cloud service provider, effectively ensuring the security of transactions, reliability.
基于上述实施例的内容,作为一种可选实施例,所述服务相关信息至少包括:服务类型、服务质量参数集合、服务资源量、服务单位资源价格;所述服务需求信息至少包括:服务属性需求、资源量需求、需求单位资源价格。Based on the content of the above embodiments, as an optional embodiment, the service-related information includes at least: service type, service quality parameter set, service resource amount, and service unit resource price; the service demand information includes at least: service attributes Demand, resource volume demand, resource price per demand unit.
具体地,所述服务类型可以包括:基础云服务类型:基础设施即服务(IaaS)、平台即服务(PaaS)、软件即服务(SaaS);新兴云服务类型:后端即服务(Backend-as-a-Service)、过程即服务(Process-as-a-Service)、安全即服务(Security-as-a-Service)、区块链即服务(Blockchain-as-a-Service)等。Specifically, the service types may include: basic cloud service types: Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS); emerging cloud service types: Backend-as-a-Service (Backend-as-a-Service) -a-Service), Process-as-a-Service, Security-as-a-Service, Blockchain-as-a-Service, etc.
所述服务质量参数集合可以包括:安全性;可用性;可靠性;响应性:满意度和可保证性等特性,每个特性包含若干特定指标。基于基本指标评价方法,定义服务质量参数集合为A={Aqual,Aquan},其中Aqual={l1,...,lk}为k个定性属性,Aquan={n1,...,nm}为m个定量属性。不同服务质量属性参数采用不同量化方法,可获得量化后的服务参数量化值集合 The set of service quality parameters may include: security; availability; reliability; responsiveness: satisfaction and guarantee, and other characteristics, each of which includes several specific indicators. Based on the basic index evaluation method, the service quality parameter set is defined as A={A qual ,A quan }, where A qual ={l 1 ,...,l k } are k qualitative attributes, and A quan ={n 1 , ...,n m } are m quantitative attributes. Different quantification methods are used for different service quality attribute parameters, and the quantized value set of service parameters can be obtained
所述服务资源量可以包括:云服务虚拟机实例。即当前云服务提供者可对外租赁的给定类型的服务虚拟机实例数量,形式化定义为RC,其中C代表当前服务提供者标识。The service resource amount may include: a cloud service virtual machine instance. That is, the number of service virtual machine instances of a given type that the current cloud service provider can lease externally, formally defined as R C , where C represents the current service provider ID.
所述服务单位资源价格可以包括:单位服务虚拟机实例的服务定价pC。The service unit resource price may include: service pricing p C for a unit service virtual machine instance.
所述服务属性需求可以包括:用户对云服务类服务质量的最低要求其描述对应云服务的服务质量参数集合。The service attribute requirements may include: the user's minimum requirements for cloud service quality of service It describes the QoS parameter set of the corresponding cloud service.
所述资源量需求可以包括:用户所需指定类型云服务虚拟机数量Bu。The resource requirement may include: the number B u of cloud service virtual machines of a specified type required by the user.
所述需求单位资源价格可以包括:用户可容忍的最高单位资源价格pu。The demanded unit resource price may include: the highest unit resource price p u tolerable by the user.
需要说明的是,在实际工作过程中,服务相关信息以及服务需求信息还可以包括其他内容,本发明不对其作具体地限定。It should be noted that, in an actual working process, the service-related information and service demand information may also include other content, which is not specifically limited in the present invention.
基于上述实施例的内容,作为一种可选实施例,在根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,以建立每个云用户与所述目标云服务者之间的匹配之后,还包括:Based on the content of the above embodiment, as an optional embodiment, according to the service request, use the smart contract to match the target service registration request from the blockchain to establish the relationship between each cloud user and the target After matching between cloud service providers, it also includes:
在所述区块链中存储服务水平协议;storing service level agreements in said blockchain;
所述服务水平协议是由每个云用户与所述目标云服务者在链下签订并上传至所述区块链的。The service level agreement is signed off-chain by each cloud user and the target cloud service provider and uploaded to the block chain.
具体地,本发明提供的基于区块链的云服务管理方法,在完成服务匹配后,参与的云服务者和云用户双方将签订SLA,并将该协议以区块链交易形式记录至链上,以提供追责保障,为后期服务提供水平及服务评价提供佐证材料,防止虚假评价。Specifically, in the block chain-based cloud service management method provided by the present invention, after the service matching is completed, the participating cloud service providers and cloud users will sign an SLA, and record the agreement on the chain in the form of a block chain transaction , to provide accountability protection, provide supporting materials for later service provision levels and service evaluations, and prevent false evaluations.
基于上述实施例的内容,本发明提供的基于区块链的云服务管理方法,还可以包括:Based on the content of the above-mentioned embodiments, the blockchain-based cloud service management method provided by the present invention may also include:
收集每个所述云用户对所述目标云服务者的评价,以调用所述智能合约更新所述目标云服务者的服务信誉;Collecting each cloud user's evaluation of the target cloud service provider to call the smart contract to update the service reputation of the target cloud service provider;
将所述目标云服务者的服务信誉作为所述目标云服务者的服务相关信息的一部分上传至所述区块链中。Uploading the service reputation of the target cloud service provider to the block chain as part of the service-related information of the target cloud service provider.
图6是本发明提供的基于区块链的云服务管理方法中关于服务提供及服务评价的示意图,如图6所示,云服务者提供服务将发生在区块链之外,即云服务者按照链上服务协定,为云用户提供服务。Fig. 6 is a schematic diagram of service provision and service evaluation in the block chain-based cloud service management method provided by the present invention. As shown in Fig. 6, the service provided by the cloud service provider will take place outside the block chain, that is, the cloud service provider Provide services to cloud users in accordance with the on-chain service agreement.
在服务结束后,云用户可以对服务提供者进行评价,该评价将形成云服务者的服务信誉,为后续服务管理及用户服务选择提供参考。并可以将每个云服务者的服务信誉作为匹配指标加入至服务匹配算法,以实现对于每个云服务者的监督。After the service ends, the cloud user can evaluate the service provider, which will form the cloud service provider's service reputation and provide reference for subsequent service management and user service selection. And the service reputation of each cloud service provider can be added to the service matching algorithm as a matching index to realize the supervision of each cloud service provider.
本发明提供的基于区块链的云服务管理方法,通过服务评价作为提升云服务者服务水平的一种方式,同时能更好的满足云用户的最优化选择。The block chain-based cloud service management method provided by the present invention uses service evaluation as a way to improve the service level of cloud service providers, and at the same time can better meet the optimal choice of cloud users.
图7是本发明提供的基于区块链的云服务管理方法与基于broker的云服务机制的性能比较示意图,如图7所示,将本发明提供的分布式云服务架构(DCS)与传统的基于broker的云服务机制(BCS)进行比较。Fig. 7 is a schematic diagram of the performance comparison between the blockchain-based cloud service management method provided by the present invention and the broker-based cloud service mechanism. As shown in Fig. 7, the distributed cloud service architecture (DCS) provided by the present invention is compared with the traditional Compared with the broker-based cloud service mechanism (BCS).
在BCS架构中,代理节点根据本发明提供的信誉及QoS量化方法对服务提供者进行分析。考虑云用户支付及云服务者的实际成本等,运行相同的服务匹配算法,得到两种架构下的服务匹配时间图7所示。In the BCS framework, the proxy node analyzes the service provider according to the reputation and QoS quantification method provided by the present invention. Considering the cloud user payment and the actual cost of the cloud service provider, and running the same service matching algorithm, the service matching time under the two architectures is shown in Figure 7.
随着云服务者数量的增加,需要分析更多云服务者是否满足云用户的需求,从而会导致服务匹配的时间增加。As the number of cloud service providers increases, it is necessary to analyze whether more cloud service providers meet the needs of cloud users, which will increase the time for service matching.
但可以获知:DCS架构下的服务匹配在时间上更加优于BCS下的服务选择。But it can be known that the service matching under the DCS architecture is better than the service selection under the BCS in terms of time.
图8是本发明提供的基于区块链的云服务管理方法与基于broker的云服务机制的系统收益比较示意图,图9是本发明提供的基于区块链的云服务管理方法与基于broker的云服务机制的总体服务QoS比较示意图,如图8和图9所示,可以明显看出DCS同BCS架构下的服务提供在性能上是相近的,且随着云服务者数量的增多,任务量逐渐增大的情况下,云用户接受到的服务性能会更优,CSP的服务收益也更优。综合考虑图8图9,可以总结出,分布式云服务机制在保证服务性能的情况下有效提高了服务匹配的效率,减轻用户负担,提高社会资源的综合利用率。Figure 8 is a schematic diagram of the comparison of system benefits between the blockchain-based cloud service management method and the broker-based cloud service mechanism provided by the present invention, and Figure 9 is the blockchain-based cloud service management method provided by the present invention and the broker-based cloud The schematic diagram of the overall service QoS comparison of the service mechanism is shown in Figure 8 and Figure 9. It can be clearly seen that the performance of DCS and BCS under the architecture is similar, and as the number of cloud service providers increases, the task load gradually increases. When it increases, the service performance received by cloud users will be better, and the service income of CSP will be better. Considering Figure 8 and Figure 9 comprehensively, it can be concluded that the distributed cloud service mechanism effectively improves the efficiency of service matching while ensuring service performance, reduces the burden on users, and improves the comprehensive utilization of social resources.
图10是本发明提供的基于区块链的云服务管理系统的结构示意图,如图10所示,本发明提供的基于区块链的云服务管理系统,主要包括但不限于:第一接收单元1、第一处理单元2、第二接收单元3和第二处理单元4。Fig. 10 is a schematic structural diagram of the blockchain-based cloud service management system provided by the present invention. As shown in Fig. 10, the blockchain-based cloud service management system provided by the present invention mainly includes but is not limited to: a
第一接收单元1主要用于接收多个云服务者的服务注册请求,每个所述服务注册请求至少包含服务相关信息;The
第一处理单元2主要用于利用智能合约提取所述服务相关信息,以将所述每个云服务者的服务注册请求加入至区块链中;The
第二接收单元3主要用于接收至少一个云用户的服务请求;The
第二处理单元4主要用于根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,以建立每个云用户与所述目标云服务者之间的匹配;所述目标云服务者是与所述目标服务注册请求所对应的云服务者。The
在第一接收单元1中,先获取到加入至区块链中的各个云服务者的服务注册请求。其中,每个所述注册请求分别向分布式的云服务网络系统发送服务注册请求。其中,服务注册请求中必须包括服务相关信息,以说明能够提供的服务类型、服务质量参数集合、服务资源量、服务单位资源价格等。In the
在第一处理单元2中,云服务网络系统利用区块链中的智能合约将每个服务注册请求所携带的服务相关信息提取出来,并将这些信息以交易的形式发布至区块链中,这样在整个区块链中公开发布着与所有云服务者所发布的服务注册请求相对应的服务相关信息。In the
在第二接收单元3中,当云服务网络系统在某个时间点,接收到一个或多个云用户的服务请求后,则相应的读取与每个云用户发布的服务请求相关的服务需求信息。In the
在第二处理单元4中,在获取到各个云用户的服务需求信息后,利用智能合约将所有的服务需求信息与区块链中的所有的服务注册相关的服务相关信息进行匹配,以实现云服务者与云用户之间的最佳服务匹配。In the
本发明提供的基于区块链的云服务管理系统在具体运用时,提供了一种基于区块链及智能合约技术构建的基于区块链技术分布式云服务方法,能将社会闲置资源注册到分布式云服务中,提高了社会闲置资源利用效率;同时为用户提供了更好的服务选择平台,用户可选择更满足自身需求的云服务;并且利用区块链记录云服务交易,保证交易凭证的不可篡改,能更好的满足用户和服务提供者的最优化双向选择。The blockchain-based cloud service management system provided by the present invention provides a distributed cloud service method based on blockchain and smart contract technology, which can register social idle resources to In the distributed cloud service, the utilization efficiency of social idle resources is improved; at the same time, a better service selection platform is provided for users, and users can choose cloud services that better meet their own needs; and the blockchain is used to record cloud service transactions to ensure transaction certificates It cannot be tampered with, and can better meet the optimal two-way choice of users and service providers.
需要说明的是,本发明实施例提供的基于区块链的云服务管理系统,在具体执行时,可以基于上述任一实施例所述的基于区块链的云服务管理方法来实现,对此本实施例不作赘述。It should be noted that the blockchain-based cloud service management system provided by the embodiment of the present invention can be implemented based on the blockchain-based cloud service management method described in any of the above-mentioned embodiments during specific execution. This embodiment will not be described in detail.
图11是本发明提供的电子设备的结构示意图,如图11所示,该电子设备可以包括:处理器(processor)110、通信接口(CommunicationsInterface)120、存储器(memory)130和通信总线140,其中,处理器110,通信接口120,存储器130通过通信总线140完成相互间的通信。处理器110可以调用存储器130中的逻辑指令,以执行基于区块链的云服务管理方法,该方法包括:接收多个云服务者的服务注册请求,每个所述服务注册请求至少包含服务相关信息;利用智能合约提取所述服务相关信息,以将所述每个云服务者的服务注册请求加入至区块链中;接收至少一个云用户的服务请求;根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,以建立每个云用户与所述目标云服务者之间的匹配;所述目标云服务者是与所述目标服务注册请求所对应的云服务者。Fig. 11 is a schematic structural diagram of an electronic device provided by the present invention. As shown in Fig. 11, the electronic device may include: a processor (processor) 110, a communication interface (CommunicationsInterface) 120, a memory (memory) 130 and a
此外,上述的存储器130中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the
另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法所提供的基于区块链的云服务管理方法,该方法包括:接收多个云服务者的服务注册请求,每个所述服务注册请求至少包含服务相关信息;利用智能合约提取所述服务相关信息,以将所述每个云服务者的服务注册请求加入至区块链中;接收至少一个云用户的服务请求;根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,以建立每个云用户与所述目标云服务者之间的匹配;所述目标云服务者是与所述目标服务注册请求所对应的云服务者。On the other hand, the present invention also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer During execution, the computer can execute the block chain-based cloud service management method provided by the above-mentioned methods, the method includes: receiving service registration requests from multiple cloud service providers, and each service registration request includes at least service-related information; Use the smart contract to extract the service-related information, so as to add the service registration request of each cloud service provider to the block chain; receive the service request of at least one cloud user; according to the service request, use the smart contract Match target service registration requests from the blockchain to establish a match between each cloud user and the target cloud service provider; the target cloud service provider is the cloud service corresponding to the target service registration request By.
又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的基于区块链的云服务管理方法,该方法包括:接收多个云服务者的服务注册请求,每个所述服务注册请求至少包含服务相关信息;利用智能合约提取所述服务相关信息,以将所述每个云服务者的服务注册请求加入至区块链中;接收至少一个云用户的服务请求;根据所述服务请求,利用所述智能合约从所述区块链中匹配目标服务注册请求,以建立每个云用户与所述目标云服务者之间的匹配;所述目标云服务者是与所述目标服务注册请求所对应的云服务者。In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to execute the blockchain-based cloud service provided by the above-mentioned embodiments. A management method, the method includes: receiving service registration requests from multiple cloud service providers, each of which at least includes service-related information; using smart contracts to extract the service-related information, so that each cloud service provider The service registration request is added to the block chain; the service request of at least one cloud user is received; according to the service request, the smart contract is used to match the target service registration request from the block chain to establish each cloud user Matching with the target cloud service provider; the target cloud service provider is the cloud service provider corresponding to the target service registration request.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011324394.8A CN112488706B (en) | 2020-11-23 | 2020-11-23 | A blockchain-based cloud service management method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011324394.8A CN112488706B (en) | 2020-11-23 | 2020-11-23 | A blockchain-based cloud service management method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112488706A CN112488706A (en) | 2021-03-12 |
CN112488706B true CN112488706B (en) | 2023-02-17 |
Family
ID=74933037
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011324394.8A Active CN112488706B (en) | 2020-11-23 | 2020-11-23 | A blockchain-based cloud service management method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112488706B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113535691B (en) * | 2021-09-15 | 2022-01-25 | 支付宝(杭州)信息技术有限公司 | User service registration method and device |
CN116016095A (en) * | 2021-10-22 | 2023-04-25 | 华为技术有限公司 | Contract management method, device and system |
CN114553495A (en) * | 2022-01-27 | 2022-05-27 | 南京第三极区块链科技有限公司 | Service registration and discovery system based on block chain and use method thereof |
CN114760306B (en) * | 2022-03-31 | 2024-04-09 | 四川链向科技集团有限公司 | Task scheduling method for cloud and fog edge collaborative environment based on blockchain |
CN115689202B (en) * | 2022-11-01 | 2023-10-20 | 南京莫愁智慧信息科技有限公司 | Three-dimensional digital data processing method based on block chain |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109064330A (en) * | 2018-07-19 | 2018-12-21 | 中链科技有限公司 | Service transacting processing method, system and device based on alliance's block chain |
CN110753126A (en) * | 2019-10-28 | 2020-02-04 | 国网河南省电力公司信息通信公司 | Service node selection method, device management method, device, system and medium |
CN110855701A (en) * | 2019-11-21 | 2020-02-28 | 清华大学 | A blockchain-based infrastructure service method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6566948B2 (en) * | 2013-08-16 | 2019-08-28 | エムデーセーブ,インコーポレイテッド | Network-based marketplace services that facilitate bundled services and product purchases |
CN109714173B (en) * | 2019-01-25 | 2020-09-29 | 北京邮电大学 | Block chain-based Internet of things authentication method and device |
KR102131207B1 (en) * | 2019-10-23 | 2020-07-07 | 비씨카드(주) | Method, device and payment server for providing payment services based on bio information and supporting the same |
CN111754307B (en) * | 2020-06-28 | 2021-09-10 | 铭数科技(青岛)有限公司 | Multi-factor electric quantity transaction matching method and device based on block chain |
-
2020
- 2020-11-23 CN CN202011324394.8A patent/CN112488706B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109064330A (en) * | 2018-07-19 | 2018-12-21 | 中链科技有限公司 | Service transacting processing method, system and device based on alliance's block chain |
CN110753126A (en) * | 2019-10-28 | 2020-02-04 | 国网河南省电力公司信息通信公司 | Service node selection method, device management method, device, system and medium |
CN110855701A (en) * | 2019-11-21 | 2020-02-28 | 清华大学 | A blockchain-based infrastructure service method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112488706A (en) | 2021-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112488706B (en) | A blockchain-based cloud service management method and system | |
Yuan et al. | CSEdge: Enabling collaborative edge storage for multi-access edge computing based on blockchain | |
US10057186B2 (en) | Service broker for computational offloading and improved resource utilization | |
US11252220B2 (en) | Distributed code execution involving a serverless computing infrastructure | |
US20140236864A1 (en) | Allocating financial risk and reward in a multi-tenant environment | |
US20200201910A1 (en) | System and Method for Providing a Graph Protocol for Forming a Decentralized and Distributed Graph Database | |
US20110213712A1 (en) | Cloud Broker and Procurement System and Method | |
US20110153727A1 (en) | Cloud federation as a service | |
Debe et al. | Blockchain-based decentralized reverse bidding in fog computing | |
CN111460504B (en) | Service processing method, device, node equipment and storage medium | |
CN103544064A (en) | Cloud computing method, cloud management platform and client | |
KR20200034171A (en) | Distributed computing resources sharing system and computing apparatus thereof providing reward based on block chain | |
CN112997469B (en) | Intelligent, decentralized and autonomous markets for distributed computing and storage | |
US11847503B2 (en) | Execution of functions by clusters of computing nodes | |
Das et al. | A QoS and profit aware cloud confederation model for IaaS service providers | |
Jain et al. | Auction based cost‐efficient resource allocation by utilizing blockchain in fog computing | |
CN115048224A (en) | Computing power reuse management method and device based on multiple cloud service providers | |
US20130339424A1 (en) | Deriving a service level agreement for an application hosted on a cloud platform | |
CN110602215B (en) | Resource processing method based on alliance block chain and alliance block chain system | |
US20230289724A1 (en) | Distributed ledger inventory management | |
KR20240170753A (en) | Server operating content shooting equipment rental brokerage and management platform based on security token offering and content shooting equipment rental brokerage and management method using the same | |
CN108632285A (en) | Network service implementation method, service node device and storage medium | |
CN108667841A (en) | Network service realization method, server and storage medium | |
CN113313600B (en) | Message processing method, device and system, storage medium and electronic device | |
CN103856557A (en) | Business object processing method and system based on third-party platform |
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 |