CN110753126A - Service node selection method, device management method, device, system and medium - Google Patents

Service node selection method, device management method, device, system and medium Download PDF

Info

Publication number
CN110753126A
CN110753126A CN201911032332.7A CN201911032332A CN110753126A CN 110753126 A CN110753126 A CN 110753126A CN 201911032332 A CN201911032332 A CN 201911032332A CN 110753126 A CN110753126 A CN 110753126A
Authority
CN
China
Prior art keywords
service
service node
target
layer
internet
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
CN201911032332.7A
Other languages
Chinese (zh)
Other versions
CN110753126B (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.)
State Grid Corp of China SGCC
Beijing University of Posts and Telecommunications
Information and Telecommunication Branch of State Grid Henan Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Beijing University of Posts and Telecommunications
Information and Telecommunication Branch of State Grid Henan Electric Power 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 State Grid Corp of China SGCC, Beijing University of Posts and Telecommunications, Information and Telecommunication Branch of State Grid Henan Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201911032332.7A priority Critical patent/CN110753126B/en
Publication of CN110753126A publication Critical patent/CN110753126A/en
Application granted granted Critical
Publication of CN110753126B publication Critical patent/CN110753126B/en
Expired - Fee Related 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
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • H04L67/1065Discovery involving distributed pre-established resource-based relationships among peers, e.g. based on distributed hash tables [DHT] 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • 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
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The application relates to a method for selecting a service node, a method, a device, a system and a storage medium for managing equipment information. The method is applied to a cloud layer in a distributed cloud architecture system, the distributed cloud architecture system comprises an equipment layer, an edge layer and a cloud layer, the edge layer is used for providing low-delay service for Internet of things equipment in the equipment layer, the cloud layer is a distributed cloud network based on a block chain, and the method comprises the following steps: receiving a cloud resource leasing request sent by a target device; selecting a target service node which meets the service requirement and the resource requirement from each service node of the cloud layer, wherein different service nodes correspond to different service providers; controlling the target service node to provide services to the target device, wherein the services comprise storage services and/or computing services. The method can reduce the service cost and meet the requirement of the Internet of things on data processing delay.

Description

Service node selection method, device management method, device, system and medium
Technical Field
The present application relates to the field of internet of things, and in particular, to a method for selecting a service node, a method, an apparatus, a system, and a storage medium for managing device information.
Background
As the variety and number of internet of things devices has increased explosively, it has become increasingly challenging to deal with the diversity and vast amounts of data generated by these internet of things devices.
In the conventional technology, because cloud computing can provide efficient and flexible services, mass data generated by the internet of things equipment is generally transmitted to a remote cloud for processing, but the service providing mode in the conventional technology is high in cost and cannot meet the requirement of the internet of things on data processing delay.
Disclosure of Invention
Based on this, it is necessary to provide a service node selection method, an apparatus, a system, and a storage medium for managing device information, for the technical problems that the service cost of the conventional method is high and the requirement of the internet of things on data processing delay cannot be met.
In a first aspect, an embodiment of the present application provides a method for selecting a service node, which is applied to a cloud layer in a distributed cloud architecture system, where the distributed cloud architecture system includes an equipment layer, an edge layer, and a cloud layer, the edge layer is used to provide a low-latency service to an internet of things device in the equipment layer, and the cloud layer is a distributed cloud network based on a block chain, and the method includes:
receiving a cloud resource leasing request sent by a target device, wherein the cloud resource leasing request comprises a service requirement and a resource requirement of the target device;
selecting a target service node which meets the service requirement and the resource requirement from each service node of the cloud layer, wherein different service nodes correspond to different service providers;
controlling the target service node to provide services to the target device, wherein the services comprise storage services and/or computing services.
In a second aspect, an embodiment of the present application provides a method for managing device information, which is applied to an edge layer in a distributed cloud infrastructure system, where the distributed cloud infrastructure system includes the device layer, the edge layer, and a cloud layer, the edge layer is a distributed edge network based on a block chain, and the cloud layer is a distributed cloud network based on the block chain, and the method includes:
when the Internet of things equipment moves out of the coverage range of an access point, receiving an authentication request sent by the Internet of things equipment, wherein the authentication request comprises an identifier of the Internet of things equipment;
when the fact that the identification of the Internet of things equipment is stored in the block chain account book of the block chain account book is determined, a response message is sent to the Internet of things equipment, and the response message is used for indicating that the authentication of the Internet of things equipment is successful.
In a third aspect, an embodiment of the present application provides a device for selecting a service node, which is applied to a cloud layer in a distributed cloud infrastructure system, where the distributed cloud infrastructure system includes an equipment layer, an edge layer, and a cloud layer, the edge layer is used to provide a low-latency service to an internet of things device in the equipment layer, and the cloud layer is a distributed cloud network based on a block chain, and the device includes:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a cloud resource leasing request sent by a target device, and the cloud resource leasing request comprises a service demand and a resource demand of the target device;
a selection module, configured to select a target service node that meets the service requirement and the resource requirement from each service node in the cloud layer, where different service nodes correspond to different service providers;
and the control module is used for controlling the target service node to provide services for the target equipment, wherein the services comprise storage services and/or computing services.
In a fourth aspect, an embodiment of the present application provides an apparatus for managing device information, which is applied to an edge layer in a distributed cloud infrastructure system, where the distributed cloud infrastructure system includes the device layer, the edge layer, and a cloud layer, the edge layer is a distributed edge network based on a block chain, and the cloud layer is a distributed cloud network based on a block chain, where the apparatus includes:
the system comprises a first receiving module, a second receiving module and a sending module, wherein the first receiving module is used for receiving an authentication request sent by the Internet of things equipment when the Internet of things equipment moves out of the coverage range of an access point, and the authentication request comprises an identifier of the Internet of things equipment;
the first sending module is used for sending a response message to the internet of things equipment when the fact that the identification of the internet of things equipment is stored in the block chain account book of the first sending module is determined, and the response message is used for indicating that the authentication of the internet of things equipment is successful.
In a fifth aspect, an embodiment of the present application provides a distributed cloud architecture system, including: the device layer, the edge layer and the cloud layer;
the equipment layer is used for collecting the Internet of things environment data;
the edge layer is configured to execute a management method of device information provided by the second aspect of the embodiment of the present application;
the cloud layer is configured to execute the method for selecting the service node provided in the first aspect of the embodiment of the present application.
In a sixth aspect, an embodiment of the present application provides a storage medium, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements a method for selecting a service node provided in the first aspect of the present application or a method for managing device information provided in the second aspect of the present application.
According to the service node selection scheme provided by the embodiment of the application, the cloud layer in the system receives the cloud resource leasing request sent by the target equipment, selects the target service node meeting the service requirement and the resource requirement from all the service nodes of the cloud layer, and controls the target service node to provide service for the target equipment. Because the cloud layer in the system is a distributed cloud network based on a block chain, and different service nodes in the cloud layer correspond to different service providers, as long as the service providers capable of providing resources can access the cloud layer to provide services for the devices applying for cloud resources, that is, the cloud layer in the present application includes a large number of different service providers, which can provide different services (including the price of the services), whereas only a few cloud service providers in the traditional extremely centralized cloud layer, so that when a target service node is selected according to the service requirement (including the price requirement of the services) of the target device, the cloud layer in the present application includes a large number of service providers, so that the target service node meeting the service requirement of the user can be selected to provide services for the target device, in the traditional technology, the number of service providers in the cloud layer is small, and the service price is higher, so that when the service price requirement in the service requirement of the target equipment is lower, a target service node meeting the service requirement of a user is difficult to find out, at the moment, the target equipment can only use the service with higher price, and therefore, compared with the traditional technology, the cost of the service is reduced. Meanwhile, the cloud layer is a distributed cloud network based on the block chain, the maintenance of the interactive data between the target equipment and the target service node is automatically maintained based on the block chain technology, and special maintenance equipment is not required to be arranged to maintain the interactive data, so that the service cost is further reduced. In addition, because the edge layer is added in the system, the edge layer can provide low-delay service for the Internet of things equipment, and therefore, compared with the prior art in which all Internet of things data are processed by the cloud layer, the system meets the requirement of the Internet of things on data processing delay.
The management scheme of the equipment information can realize the management of the identity information of the equipment in the Internet of things through the edge layer, and the edge layer is a distributed edge network based on the block chain, so that the management of the identity information of the equipment in the Internet of things can be completed through any edge server in the edge layer no matter whether the equipment in the Internet of things moves and which area the equipment in the Internet of things moves, the management efficiency of the equipment information is improved, and the safety of the equipment information is ensured.
Drawings
Fig. 1 is a schematic structural diagram of a distributed cloud architecture system applied in an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for selecting a service node according to an embodiment;
fig. 3 is a schematic flowchart of a method for selecting a service node according to another embodiment;
fig. 4 is a schematic flowchart of a method for selecting a service node according to another embodiment;
FIG. 5 is a diagram illustrating a change in reputation value of a service node according to an embodiment;
fig. 6 is a schematic diagram illustrating a change in the number of services provided by a service node according to an embodiment;
fig. 7 is a schematic flowchart of a method for selecting a service node according to another embodiment;
FIG. 8 is a diagram illustrating a variation of a delay for solving a hash problem according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating a variation of a delay for solving a hash problem according to an increase in the number of service nodes participating in consensus according to an embodiment;
fig. 10 is a flowchart illustrating a method for managing device information according to an embodiment;
fig. 11 is a flowchart illustrating a method for managing device information according to another embodiment;
fig. 12 is a flowchart illustrating a method for managing device information according to another embodiment;
fig. 13 is a flowchart illustrating a method for managing device information according to another embodiment;
fig. 14 is a schematic internal structure diagram of a selection apparatus of a service node according to an embodiment;
fig. 15 is a schematic internal structure diagram of a device information management apparatus according to an embodiment.
Detailed Description
The method for selecting a service node provided in the embodiment of the present application may be applied to a distributed cloud architecture system as shown in fig. 1, where the system includes a device layer 10, an edge layer 11, and a cloud layer 12. The device layer 10 includes various internet of things devices and access points for managing the internet of things devices within a preset range, and the internet of things devices can be smart phones, tablet computers, smart watches, fitness trackers, virtual reality devices, internet of things sensors and the like. The edge server in the edge layer 11 may provide a low-latency service to the internet of things device in the device layer and manage identity information of the internet of things device. The cloud layer 12 includes a plurality of different service nodes, where the different service nodes correspond to different service providers, and may provide more complex computing services and storage services to the internet of things device, and the cloud layer 12 is a distributed cloud network based on a block chain.
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application are further described in detail by the following embodiments in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The following description will be given by taking an execution subject as a cloud layer in a distributed cloud architecture system as an example:
fig. 2 is a flowchart illustrating a method for selecting a service node according to an embodiment. The embodiment relates to a specific process of how the cloud layer selects a target service node for a target device. As shown in fig. 2, the method may include:
s101, receiving a cloud resource leasing request sent by a target device, wherein the cloud resource leasing request comprises a service requirement and a resource requirement of the target device.
The target equipment is the Internet of things equipment in the equipment layer. The service requirement may include various attribute information of the service required by the target device, such as attribute information of a service price, a distance between the service node and the target device, and a type of the service. The resource demand is the size of the resource required by the target device. When the internet of things equipment has resource requirements, the internet of things equipment can send a cloud resource lease request to the cloud layer so that the cloud layer can allocate resources for the cloud layer. Wherein the resources may include at least one of storage resources and computing resources. Of course, other devices associated with the internet of things device may also send cloud resource lease requests to the cloud layer. The other devices may be management devices, and the management devices manage the internet of things devices in the same area.
In addition, in the application of the internet of things, the delay requirement of part of applications on data processing is high, for example, in the field of unmanned driving, some low-delay services for the target device can be processed by an edge layer in a distributed cloud architecture system, and collected data of the part of services do not need to be transmitted to a cloud layer. Alternatively, the edge layer may be a distributed edge network based on block chains.
S102, selecting a target service node which meets the service requirement and the resource requirement from each service node of the cloud layer, wherein different service nodes correspond to different service providers.
The cloud layer is a distributed cloud network based on a block chain, is constructed in a public allowable block chain mode, provides a resource providing platform, forms an open resource market and does not need a third-party management platform for management. The multi-party service provider can independently access the cloud layer, contribute own idle resources and obtain corresponding benefits. When accessing the cloud layer, the service provider needs to provide the cloud layer with the quality of service that the service provider can provide, the amount of available resources, and the like. The service quality includes a unit resource lease price, etc. The cloud performs reputation value management on service providers accessing the cloud in an effort to provide high performance services to resource requesters (e.g., target devices).
After the multi-party service provider accesses the cloud layer, a plurality of service nodes exist in the cloud layer, and different service nodes correspond to different service providers. Therefore, after the cloud layer receives the cloud resource leasing request, the cloud layer selects the service nodes, as target service nodes for providing service to the target equipment, from the service nodes, of which the available resource amount is not less than the resource demand amount applied by the target equipment and the service quality value can meet the service demand applied by the target equipment according to the service quality value and the available resource amount declared by each service node by the cloud layer.
S103, controlling the target service node to provide services for the target equipment, wherein the services comprise storage services and/or computing services.
The target service node can provide storage service for the target equipment so as to store the Internet of things environment data acquired by the target equipment and intermediate data generated in the operation process. The target service node can also provide a large amount of computing services for the target equipment so as to meet the requirement of the Internet of things on complex data processing.
According to the method for selecting the service node, the cloud layer in the system receives the cloud resource leasing request sent by the target equipment, selects the target service node meeting the service requirement and the resource requirement from all the service nodes of the cloud layer, and controls the target service node to provide the service for the target equipment. Because the cloud layer in the system is a distributed cloud network based on a block chain, and different service nodes in the cloud layer correspond to different service providers, as long as the service providers capable of providing resources can access the cloud layer to provide services for the devices applying for cloud resources, that is, the cloud layer in the present application includes a large number of different service providers, which can provide different services (including the price of the services), whereas only a few cloud service providers in the traditional extremely centralized cloud layer, so that when a target service node is selected according to the service requirement (including the price requirement of the services) of the target device, the cloud layer in the present application includes a large number of service providers, so that the target service node meeting the service requirement of the user can be selected to provide services for the target device, in the traditional technology, the number of service providers in the cloud layer is small, and the service price is higher, so that when the service price requirement in the service requirement of the target equipment is lower, a target service node meeting the service requirement of a user is difficult to find out, at the moment, the target equipment can only use the service with higher price, and therefore, compared with the traditional technology, the cost of the service is reduced. Meanwhile, the cloud layer is a distributed cloud network based on the block chain, the maintenance of the interactive data between the target equipment and the target service node is automatically maintained based on the block chain technology, and special maintenance equipment is not required to be arranged to maintain the interactive data, so that the service cost is further reduced. In addition, because the edge layer is added in the system, the edge layer can provide low-delay service for the Internet of things equipment, and therefore, compared with the prior art in which all Internet of things data are processed by the cloud layer, the system meets the requirement of the Internet of things on data processing delay.
In practical application, in order to enable a service provider accessed to a cloud layer to provide a high-performance service for a resource requester (such as an internet of things device), the cloud layer performs reputation value management on the service provider accessed to the cloud layer, so that the service provider with a better reputation value provides the service for the resource requester, and meanwhile, the service provider with the better reputation value can obtain higher income. For this scenario, the target service node may be obtained with reference to the process shown in fig. 3. Optionally, the cloud resource lease request received by the cloud layer further includes a first reputation value of each service node, where the first reputation value is a reputation value of a service node maintained by the target device. As shown in fig. 3, the S102 may include:
s201, aiming at each service node, determining a total reputation value of the current service node according to a first reputation value of the current service node and a second reputation value of the current service node stored in a block chain ledger of the current service node.
Each service node in the cloud layer maintains a block chain account book, a second credit value of each service node is stored in the block chain account book, the second credit value is an externally declared current credit value maintained by the service node, and the second credit value can be obtained by calculating a service credit evaluation value provided by a plurality of devices receiving the service of the service node. The first reputation value is a current reputation value of a service node maintained by a target device, which is calculated from service reputation evaluation values of a plurality of services provided by the target device to the service node.
Optionally, the obtaining process of the first reputation value of the current service node is as follows: obtaining a first credit value IT of the current service node according to the following formulak(x′i):
Figure BDA0002250503160000091
Wherein the content of the first and second substances,rnumber of times of service provided to the target device by the current service node, Vr(x′i) Is the target device based on the current service node x'iReputation evaluation value, ET, obtained from the quality of service of the r-th service providedr-1(x′i) Is the current service node x'iA total reputation value, σ, obtained after r-1 times of service is provided to the target devicereqIs the current service node x'iThe parameters associated with the successful service being provided,
Figure BDA0002250503160000092
is a weight of a history factor, cr(x′i) Is the current service node x'iA network environment providing an r-th service.
Therefore, the first message of each service node is received at the cloud layerAfter the reputation value, for each service node, the cloud layer determines a total reputation value of the current service node according to the first reputation value and the second reputation value of the current service node. Wherein, the cloud layer can be according to the formula: t (x'i)=β*ET(x′i)+(1-β)*IT(x′i) Determining a total reputation value T (x ') of the current service node'i),IT(x′i) Is a first reputation value, ET (x'i) Is the second reputation value, β is a weight of the second reputation value.
S202, according to the current service quality of each service node and the available resource quantity of each service node, selecting an initial service node from each service node, wherein the available resource quantity is not less than the resource demand quantity, and the current service quality meets the service demand.
S203, selecting a target service node from the initial service nodes according to the total reputation value of each service node.
The higher the total reputation value of the service node is, the higher the credibility of the service node for declaring the service quality which can be provided by the service node is, namely the smaller the difference between the actual service quality provided by the service node and the service quality declared by the service node is; conversely, the lower the total reputation value of the service node is, the lower the credibility of the service node for declaring the quality of service that the service node can provide to the outside is, that is, the greater the difference between the actual quality of service provided by the service node and the quality of service declared to the outside by the service node is.
The cloud layer may select the initial service node with the highest total reputation value as the target service node. When the initial service nodes with the highest total reputation value are multiple, the cloud layer can arbitrarily select one initial service node from the initial service nodes with the highest total reputation value as the target service node.
In this embodiment, in the process of selecting a target service node providing a service for a target device, the cloud layer considers the quality of service provided by each service node and the total credit value of each service node, so that the finally selected target service node can meet the service requirement and the required resource requirement of the target device and is a service node with a higher total credit value, so that the target device can obtain a resource service meeting the self requirement, and avoid obtaining a false service not meeting the self requirement.
In one embodiment, after the target service node provides the service to the target device, the current quality of service and the second reputation value of the target service node are also updated according to the service actually provided by the target service node. For this case, the process may be performed by referring to the following procedure shown in fig. 4, and optionally, as shown in fig. 4, after S103, the method may further include:
s301, receiving a service quality evaluation value and a reputation evaluation value of the service provided by the target service node by the target device.
The target device evaluates the service quality of the service according to the actual service provided by the target service node to obtain a service quality evaluation value
Figure BDA0002250503160000111
Wherein the content of the first and second substances,
Figure BDA0002250503160000112
m is a target service node xiThe number of attributes included in the service provided,
Figure BDA0002250503160000113
for target device to target service node xiService quality evaluation value of mth service attribute of provided service
Figure BDA0002250503160000114
wmThe weight of the mth service attribute relative to other related service attributes is 0 ≦ wm≤1。
After one-time service is finished, the target equipment according to the target service node xiThe current service quality declared by itself and the service quality actually obtained by the target device after the service is finished (equivalent to the above-mentioned service quality evaluation value)
Figure BDA0002250503160000115
And obtaining the service quality difference degree. Wherein the target device may be based on a formula
Figure BDA0002250503160000116
Obtaining a quality of service difference
Figure BDA0002250503160000117
As described above
Figure BDA0002250503160000118
Serving node x to a targetiThe current quality of service declared externally by itself. Then, the target device compares the service quality difference degree of the target service node
Figure BDA0002250503160000119
And comparing the reputation with a preset threshold value, and obtaining the reputation evaluation value of the target service node according to the comparison result. Wherein the target device may be based on a formula
Figure BDA00022505031600001110
Determining reputation evaluation value V (x) of target service nodei) And-epsilon and epsilon are the preset threshold values.
If the service quality difference degree of the target service node
Figure BDA0002250503160000121
If the real service obtained by the target equipment is not consistent with the current service quality claimed by the target service node before service, reasonably determining that the target service node provides false service, determining that the target service node is not credible, and reducing the credit value of the target service node; otherwise, the target service node really declares the service characteristics of the target service node to the outside, is credible and needs to increase the credit value of the target service node.
S302, updating the current service quality of the target service node stored in the block chain account book of the target service node according to the service quality evaluation value.
Each service node in the cloud layer maintains a block chain account book, and the current service quality of each service node is stored in the block chain account book. Optionally, the cloud layer may update its current quality of service stored in the blockchain ledger of the target service node by the following process: acquiring the current service quality of the target service node stored in the block chain account book of the target service node; determining the target service quality corresponding to the target service node according to the service quality evaluation value and the current service quality; replacing the current quality of service with the target quality of service.
Specifically, the service quality evaluation value of the target service node sent by the target equipment is obtained in the cloud layer
Figure BDA0002250503160000122
The cloud layer may then be formulated
Figure BDA0002250503160000123
Determining a target serving node xiCorresponding target quality of service
Figure BDA0002250503160000124
Wherein the content of the first and second substances,
Figure BDA0002250503160000125
is the current quality of service, w is the weight occupied by the current quality of service,in order to be a function of the statistics,
Figure BDA0002250503160000127
for the target device to the target service node xiThe service quality evaluation value of the kth service is provided, k is the target service node xiThe number of services provided, k, is greater than or equal to 1. As described above
Figure BDA0002250503160000128
Where t denotes the current time, tjThe time corresponding to the service quality evaluation value. Lambda is a time attenuation factor (0 < lambda < 1) so that the current time is distantThe more recent evaluation value of the service quality to the target service quality
Figure BDA0002250503160000129
The greater the computational impact of (c).
And S303, updating a second credit value of the block chain account book of the target service node according to the credit evaluation value.
Each service node in the cloud layer maintains a block chain account book, and the block chain account book stores a second credit value of each service node. Optionally, the cloud layer may update the second reputation value of the cloud layer stored in the blockchain ledger of the target service node by the following process: acquiring a second credit value of the target service node stored in a block chain account book of the target service node; determining a target reputation value corresponding to the target service node according to the reputation evaluation value and the second reputation value; replacing the second reputation value with the target reputation value.
Specifically, a reputation evaluation value V (x) of a target service node sent by target equipment is obtained in a cloud layeri) The cloud layer may then be formulated
Figure BDA0002250503160000131
Determining a target reputation value ET corresponding to a target service nodek(xi)。
Wherein, Vk(xi) Serving the target device based on the target serving node xiReputation evaluation value, ET, obtained from the quality of service of the kth service providedk-1(xi) For the second reputation value, σ is associated with the target service node xiThe parameters associated with the successful service being provided,is a weight of a history factor, ck(xi) Serving node x to the targetiA network environment providing a kth service. As described above
Figure BDA0002250503160000133
s represents the number of successful services provided by the target service node, and k represents the total number of services provided by the target service node. Therefore, in order to obtain a higher reputation value, the target service node must continuously obtain favorable comments for multiple times, and cannot easily give up the historical behavior trust information of the target service node to perform dishonest service.
In addition, after one service transaction is finished, the target device can update the maintained first reputation value of the target service node according to the service provided by the target service node. Alternatively, the target device may be based on a formula
Figure BDA0002250503160000134
A first reputation value of the target service node is determined.
Wherein r is the number of times of service provided by the target service node to the target device, Vr(xi) Serving the target device based on the target serving node xiReputation evaluation value, ET, obtained from the quality of service of the r-th service providedr-1(xi) Serving node x to the targetiA total reputation value, σ, obtained after r-1 times of service is provided to the target devicereqTo the target service node xiThe parameters associated with the successful service being provided,
Figure BDA0002250503160000141
is a weight of a history factor, cr(xi) Serving node x to the targetiA network environment providing an r-th service.
In order to analyze the performance of a matching algorithm for matching a target device with a target service node based on the service quality and the credit value, a simulation experiment is performed on the process of selecting the target service node for the target device by the cloud layer. As shown in fig. 5 (the horizontal axis in fig. 5 represents the number of times the service node provides services, and the vertical axis represents the reputation value of the service node), there are three types of service nodes in the simulation experiment: 1) honest service nodes, i.e. providing trusted services for the target device, may be, for example, the service node 1 providing higher quality of service and the service node 3 providing lower quality of service in fig. 5. 2) A dishonest service node, i.e. a service node 2 in fig. 5, always provides a fake service to the target device. 3) Random service nodes, i.e., random, provide trusted or fake services to target devices. It can be seen through simulation that as the number of service transactions increases, the reputation values of honest service nodes 1 and 3 also increase, the reputation value of service node 2 decreases, and the reputation value of service node 4 changes unstably.
In addition, the influence of the quality of service and the reputation value on the number of services provided by each service node can also be seen in fig. 6. (the horizontal axis in fig. 6 represents the total number of times of service provided by all service nodes, and the vertical axis represents the number of times of service provided by each service node). Since the service nodes 1 and the service nodes 3 are honest service nodes and have high reputation values, under the condition that the total service times are fixed, the cloud layer selects the service nodes 1 and the service nodes 3 to provide services externally for a large number of times, the select service nodes 2 to provide services externally for a small number of times, and the select service nodes 4 to provide services externally for a very slow number of times.
In this embodiment, the cloud layer may update the current service quality of the service provided by the target service node according to the service quality evaluation value and the reputation evaluation value of the service provided by the target service node, which are fed back by the target device, and update the second reputation value of the service provided by the target service node, so that the current service quality declared by the target service node better conforms to the actual service provision condition, and the target service node providing real service may obtain a higher reputation evaluation value. In addition, a mechanism for updating the current service quality and the second reputation value of the service node is introduced, and the service node can be stimulated to better provide service for the target equipment.
The cloud layer is a distributed cloud network based on a block chain, and consensus operation is required to be performed in the cloud layer in order to achieve consistency and correctness of block chain account book data of each service node. On the basis of the above embodiment, optionally, as shown in fig. 7, the method further includes:
s401, obtaining a second reputation value corresponding to each first service node, wherein the first service node is a service node participating in consensus operation.
S402, determining the target first service node according to the second reputation value corresponding to each first service node.
Specifically, the target first service node is the first service node having the authority to generate the block. Optionally, the step S402 may be: for each first service node, determining a random number search range corresponding to the current first service node according to a second reputation value corresponding to the current first service node, and solving a hash problem based on the random number search range; and determining the first service node which is shortest in time for solving the Hash problem as a target first service node.
The current first service node is any one of all the first service nodes. After the cloud layer obtains a second credit value corresponding to the current first service node, the cloud layer obtains a current first service node x ″, according to the second credit value corresponding to the current first service nodeiReputation ranking ofThen, according to the formulaDetermining a current first service node x ″iRandom number search range corresponding to R-th random number search
Figure BDA0002250503160000163
And solving the hash problem based on the determined random number search range. Wherein n is the number of the first service nodes in the cloud layer, and ss is the parameter of the random number search range. Therefore, the higher the second reputation value is, the larger the random number search range can be obtained by the first service node, so that the probability of solving the Hash problem is higher, and the probability of solving the Hash problem is the same as that of the first service nodeThe chance of getting a prize is also greater.
S403, adding a block generated by the target first service node into a block chain, wherein the block comprises all information of interaction between the target service node and the target device.
The target first service node packages all service records cached by the target first service node, wherein all the service records comprise all information of interaction between the target service node and target equipment and service transaction information of other service nodes. The target first service node generates a block based on all the service records packed and adds the generated block to the block chain. Optionally, before adding the generated block to the block chain, the target first service node broadcasts the generated block in the cloud layer, and after receiving the confirmation information that the number of the generated blocks exceeds the preset number, the target first service node adds the generated block to the block chain. Wherein, the preset number can be (n + 1)/3.
In order to verify the consensus algorithm provided by the embodiment of the present application, a program is used to compare the time delay of the consensus algorithm a (consensus algorithm based on the second reputation value) provided by the embodiment of the present application with the time delay of the conventional consensus algorithm b (b is a workload proving algorithm) in the hash solution. As can be seen from fig. 8 (the horizontal axis in fig. 8 represents the hash difficulty, and the vertical axis represents the time required to solve the hash difficulty), as the hash difficulty increases, both the consensus algorithm a and the consensus algorithm b increase in the time used to solve the hash difficulty. However, it is clear that the consensus algorithm a can solve the hash problem faster. The reason is that in the consensus algorithm a, a corresponding random number search range is divided for each first service node, and each first service node verifies the hash problem in the random number search range divided by itself, so that each first service node is parallel in form when solving the hash problem, and thus, the random number search time can be effectively reduced.
Fig. 9 (the horizontal axis in fig. 9 represents the number of first service nodes participating in the consensus operation, and the vertical axis represents the time required to solve the hash problem) shows the variation of the time required to solve the hash problem when the hash difficulty is 27, 28, 29, and 30, respectively. As can be seen from fig. 9, as the number of first service nodes participating in the consensus operation increases, the efficiency of solving the hash problem is significantly improved. This can show that the consensus algorithm mechanism based on the second reputation value provided by the embodiments of the present application can be well applied to a distributed shared cloud.
In this embodiment, the cloud layer divides a corresponding random number search range for each first service node based on the second reputation value of the first service node, so that the first service node with the higher second reputation value can obtain a random number search range with a larger range, so that the probability of solving the hash problem is higher, and the chance of obtaining the reward is also higher, thereby stimulating the first service node to provide better service for the target device to obtain a higher reputation value.
Next, the following description will be made by taking the execution body as an edge layer:
fig. 10 is a flowchart illustrating a method for managing device information according to an embodiment, where as shown in fig. 10, the method may include:
s501, when the Internet of things equipment moves out of the coverage range of the access point, receiving an authentication request sent by the Internet of things equipment, wherein the authentication request comprises the identification of the Internet of things equipment.
The access point can manage identity information of the Internet of things equipment within a preset range, and when the Internet of things equipment is within the coverage range of the access point, if the Internet of things equipment needs authentication, the authentication of the Internet of things equipment can be directly completed through the access point. When the Internet of things equipment moves out of the coverage range of the access point, if the Internet of things equipment needs authentication, the authentication request sent by the Internet of things equipment can be transmitted to the edge layer through the access point, and the authentication of the Internet of things equipment is completed by the edge server in the edge layer.
S502, when the fact that the identification of the Internet of things equipment is stored in the block chain account book of the block chain account book is determined, sending a response message to the Internet of things equipment, wherein the response message is used for indicating that the authentication of the Internet of things equipment is successful.
The edge layer is a distributed edge network based on the block chain, and the data of the block chain account book maintained in each edge server of the edge layer are consistent, so that the management of the identity information of the equipment of the internet of things can be completed through any edge server in the edge layer no matter whether the equipment of the internet of things moves and which area the equipment of the internet of things moves to.
According to the management method for the equipment information, the management of the identity information of the equipment in the Internet of things can be realized through the edge layer, and because the edge layer is a distributed edge network based on the block chain, the management of the identity information of the equipment in the Internet of things can be completed through any edge server in the edge layer no matter whether the equipment in the Internet of things moves or not and which area the equipment in the Internet of things moves to, so that the management efficiency of the equipment information is improved, and the safety of the equipment information is ensured.
When a user needs to perform some operations on the internet of things device (for example, the user needs to access the physical network device), optionally, the method may further include: receiving a user access control request sent by a management device through an access point, wherein the user access control request comprises an identifier of a user and an identifier of the Internet of things device; and when determining that the block chain account book of the user stores the binding relationship between the user and the Internet of things equipment according to the identification of the user and the identification of the Internet of things equipment, sending a response message to the management equipment, wherein the response message is used for indicating that the user has the authority to manage the Internet of things equipment.
Specifically, the identifier of the user may be an account of the internet of things of the user, or may be other information for identifying the identity of the user. When the Internet of things equipment is registered, the edge layer receives a registration request sent by the Internet of things equipment, the registration request carries the identification of the target user and the identification of the Internet of things equipment, a binding relation between the Internet of things equipment and the target user is established according to the registration request, and the binding relation is stored in a block chain account book of the edge layer. The binding relation is used for representing that the target user has the authority to manage the Internet of things equipment.
In this way, when a user needs to operate the internet of things device, when the user is a local user (i.e., a user managed by a local access point), the access point completes authentication of the user access control request. When the user is a remote user (i.e. a user not managed by the local access point), the access point transmits a user access request to the edge layer, the edge layer verifies the user access control request, and the user can be given a corresponding device access right after verification.
In this embodiment, the edge layer may complete management of user access control and device information registration, and because the edge layer is an edge network based on a block chain, information and device identity information required for user access control are maintained based on a block chain technology, which improves security of information storage.
To facilitate understanding of those skilled in the art, the following describes in detail a management process of device information on an edge layer from an internet of things device registration process, an internet of things device authentication and data acquisition process, and an access control process, as shown in fig. 11 to 13, where fig. 11 is an internet of things device registration process, fig. 12 is an internet of things device authentication and data acquisition process, and fig. 13 is an access control process, specifically:
the internet of things equipment registration process comprises the following steps S601-S606:
s601, the Internet of things equipment sends a registration request to the access point.
S602, the access point distributes a signature key and an encryption key to the Internet of things equipment.
And S603, the equipment of the Internet of things sends the signed equipment identifier to the access point.
S604, the access point transmits the signed device identification and the public key to the edge server.
S605, the edge server establishes a binding relationship between the target user and the Internet of things device, and stores the binding relationship in a block chain account book.
S606, the edge server returns the registration success information to the access point.
The process of the authentication, data acquisition and access control of the equipment of the internet of things comprises the following steps S701-S709:
s701, the Internet of things equipment sends an authentication request to the access point.
S702, if the Internet of things equipment is in the coverage range of the access point, the access point completes identity verification of the Internet of things equipment.
And S703, if the verification is passed, the access point sends an authentication success message to the Internet of things equipment.
S704, if the Internet of things equipment is not in the coverage range of the access point, the access point forwards the authentication request to the edge server.
S705, the edge server inquires a block chain account book, and if the block chain account book stores the identification of the Internet of things equipment, the edge server sends an authentication success message to the access point.
S706, the access point sends an authentication success message to the Internet of things equipment.
And S707, the Internet of things equipment sends a connection establishment request to the edge server.
S708, the edge server sends a connection establishment success message.
And S709, the Internet of things equipment encrypts and uploads the acquired Internet of things environment data to the edge server.
The access control procedure includes S801-S806 as follows:
s801, the management device sends a user access request to the access point.
S802, if the access request is a local user access request, the access point completes the verification of the user access request.
And S803, if the verification is passed, sending a response message for allowing the access to the management equipment.
S804, the management equipment is connected with the Internet of things equipment.
S805, if the access request is a remote user access request, the access point forwards the user access request to the edge server.
And S806, the edge server inquires a block chain account book and completes verification of the user access request.
And S807, if the verification is passed, sending a response message for allowing access to the management device through the access point.
And S808, the management equipment is connected with the Internet of things equipment.
Fig. 14 is a schematic internal structure diagram of a device for selecting a service node according to an embodiment, where the device is applied to a cloud layer in a distributed cloud architecture system, where the distributed cloud architecture system includes an equipment layer, an edge layer, and a cloud layer, the edge layer is used to provide a low-latency service to an internet of things device in the equipment layer, and the cloud layer is a distributed cloud network based on a block chain, as shown in fig. 14, the device includes: a first receiving module 20, a selecting module 21 and a control module 22.
Specifically, the first receiving module 20 is configured to receive a cloud resource lease request sent for a target device, where the cloud resource lease request includes a service requirement and a resource requirement amount of the target device;
the selection module 21 is configured to select a target service node that meets the service requirement and the resource requirement from each service node in the cloud layer, where different service nodes correspond to different service providers;
the control module 22 is configured to control the target service node to provide a service to the target device, where the service includes a storage service and/or a computing service.
According to the service node selection device provided by the embodiment of the application, the cloud layer in the system receives the cloud resource leasing request sent by the target equipment, selects the target service node meeting the service requirement and the resource requirement from each service node of the cloud layer, and controls the target service node to provide the service for the target equipment. Because the cloud layer in the system is a distributed cloud network based on a block chain, and different service nodes in the cloud layer correspond to different service providers, as long as the service providers capable of providing resources can access the cloud layer to provide services for the devices applying for cloud resources, that is, the cloud layer in the present application includes a large number of different service providers, which can provide different services (including the price of the services), whereas only a few cloud service providers in the traditional extremely centralized cloud layer, so that when a target service node is selected according to the service requirement (including the price requirement of the services) of the target device, the cloud layer in the present application includes a large number of service providers, so that the target service node meeting the service requirement of the user can be selected to provide services for the target device, in the traditional technology, the number of service providers in the cloud layer is small, and the service price is higher, so that when the service price requirement in the service requirement of the target equipment is lower, a target service node meeting the service requirement of a user is difficult to find out, at the moment, the target equipment can only use the service with higher price, and therefore, compared with the traditional technology, the cost of the service is reduced. Meanwhile, the cloud layer is a distributed cloud network based on the block chain, the maintenance of the interactive data between the target equipment and the target service node is automatically maintained based on the block chain technology, and special maintenance equipment is not required to be arranged to maintain the interactive data, so that the service cost is further reduced. In addition, because the edge layer is added in the system, the edge layer can provide low-delay service for the Internet of things equipment, and therefore, compared with the prior art in which all Internet of things data are processed by the cloud layer, the system meets the requirement of the Internet of things on data processing delay.
On the basis of the foregoing embodiment, optionally, the cloud resource lease request further includes a first reputation value of each service node, where the first reputation value is a reputation value of a service node maintained by the target device;
the selecting module 21 is specifically configured to determine, for each service node, a total reputation value of the current service node according to a first reputation value of the current service node and a second reputation value of the current service node stored in a block chain ledger of the current service node; selecting an initial service node from each service node, wherein the available resource quantity is not less than the resource demand quantity and the current service quality meets the service demand, according to the current service quality of each service node and the available resource quantity of each service node; and selecting a target service node from the initial service nodes according to the total reputation value of each service node.
On the basis of the foregoing embodiment, optionally, after the controlling the target service node to provide the service, the method further includes: the device comprises a second receiving module, a first updating module and a second updating module.
Specifically, the second receiving module is configured to receive a service quality evaluation value and a reputation evaluation value of the service provided by the target service node by the target device after the control module 22 controls the target service node to provide the service;
the first updating module is used for updating the current service quality of the first updating module stored in the block chain account book of the target service node according to the service quality evaluation value;
and the second updating module is used for updating a second credit value of the target service node stored in the block chain account book of the target service node according to the credit evaluation value.
On the basis of the above embodiment, optionally, the apparatus further includes: the device comprises an acquisition module, a determination module and a block adding module;
specifically, the obtaining module is configured to obtain a second reputation value corresponding to each first service node, where the first service node is a service node participating in consensus operation;
the determining module is used for determining a target first service node according to the second reputation value corresponding to each first service node, wherein the target first service node is the shortest first service node in the process of solving the Hash problem;
the block adding module is used for adding a block generated by the target first service node into a block chain, wherein the block comprises all information of interaction between the target service node and the target equipment.
On the basis of the foregoing embodiment, optionally, the determining module is specifically configured to determine, for each first service node, a random number search range corresponding to the current first service node according to a second reputation value corresponding to the current first service node, and solve the hash problem based on the random number search range; and determining the first service node which is shortest in time for solving the Hash problem as a target first service node.
On the basis of the foregoing embodiment, optionally, the first updating module includes a first obtaining unit, a first determining unit, and a first replacing unit;
specifically, the first obtaining unit is configured to obtain a current service quality of the first obtaining unit, where the current service quality is stored in a block chain ledger of the target service node;
the first determining unit is used for determining the target service quality corresponding to the target service node according to the service quality evaluation value and the current service quality;
a first replacement unit replaces the current quality of service with the target quality of service.
On the basis of the foregoing embodiment, optionally, the first determining unit is specifically configured to determine the target quality of service corresponding to the target service node according to the following formula
Figure BDA0002250503160000241
Figure BDA0002250503160000242
Wherein the content of the first and second substances,is the current quality of service, w is the weight occupied by the current quality of service,
Figure BDA0002250503160000244
in order to be a function of the statistics,
Figure BDA0002250503160000245
for the target device to the target service node xiThe service quality evaluation value of the kth service is provided, k is the target service node xiThe number of services provided, k, is greater than or equal to 1.
On the basis of the foregoing embodiment, optionally, the second updating module includes: a second obtaining unit, a second determining unit and a second replacing unit;
specifically, the second obtaining unit is configured to obtain a second reputation value of the target service node, where the second reputation value is stored in a block chain ledger of the target service node;
the second determining unit is used for determining a target reputation value corresponding to the target service node according to the reputation evaluation value and the second reputation value;
a second replacement unit is to replace the second reputation value with the target reputation value.
On the basis of the foregoing embodiment, optionally, the second determining unit is specifically configured to determine the target reputation value ET of the target service node according to the following formulak(xi):
Figure BDA0002250503160000246
Wherein, Vk(xi) Serving the target device based on the target serving node xiReputation evaluation value, ET, obtained from the quality of service of the kth service providedk-1(xi) For the second reputation value, σ is associated with the target service node xiThe parameters associated with the successful service being provided,is a weight of a history factor, ck(xi) Serving node x to the targetiA network environment providing a kth service.
On the basis of the foregoing embodiment, optionally, the obtaining process of the first reputation value of the current service node is as follows:
obtaining a first credit value IT of the current service node according to the following formulak(x′i):
Wherein r is the number of times of service provided by the current service node to the target device, Vr(x′i) Is the target device based on the current service node x'iReputation evaluation value, ET, obtained from the quality of service of the r-th service providedr-1(x′i) Is the current service node x'iA total reputation value, σ, obtained after r-1 times of service is provided to the target devicereqIs the current service node x'iThe parameters associated with the successful service being provided,
Figure BDA0002250503160000252
is a weight of a history factor, cr(x′i) Is the current service node x'iA network environment providing an r-th service.
On the basis of the foregoing embodiment, optionally, the edge layer is a distributed edge network based on a block chain.
Fig. 15 is a schematic diagram of an internal structure of an apparatus for managing device information according to an embodiment, where the apparatus is applied to an edge layer in a distributed cloud infrastructure system, where the distributed cloud infrastructure system includes the device layer, the edge layer, and a cloud layer, the edge layer is a distributed edge network based on a block chain and provides a low-latency service to an internet of things device in the device layer, and the cloud layer is a distributed cloud network based on a block chain, as shown in fig. 15, the apparatus includes: a first receiving module 30 and a first transmitting module 31.
Specifically, the first receiving module 30 is configured to receive an authentication request sent by an internet of things device when the internet of things device moves out of a coverage area of an access point, where the authentication request includes an identifier of the internet of things device;
the first sending module 31 is configured to send a response message to the internet of things device when it is determined that the identifier of the internet of things device is stored in the block chain book of the first sending module, where the response message is used to indicate that the authentication of the internet of things device is successful.
On the basis of the above embodiment, optionally, the apparatus further includes: the second receiving module and the second sending module.
Specifically, the second receiving module is configured to receive a user access control request sent by a management device through an access point, where the user access control request includes an identifier of a user and an identifier of the internet of things device;
the second sending module is used for sending a response message to the management device when determining that the binding relationship between the user and the internet of things device is stored in the block chain account book of the second sending module according to the identification of the user and the identification of the internet of things device, wherein the response message is used for indicating that the user has the authority to manage the internet of things device.
On the basis of the above embodiment, optionally, the apparatus further includes: a third receiving module and a processing module.
Specifically, the third receiving module is configured to receive a registration request sent by the internet of things device before the second receiving module receives an access control request sent by the management device;
the processing module is used for establishing a binding relationship between the Internet of things equipment and a target user according to the registration request, and the binding relationship is used for representing that the target user has authority to manage the Internet of things equipment.
In one embodiment, there is also provided a distributed cloud architecture system, as shown in fig. 1, including: a device layer, an edge layer, and a cloud layer. The device layer is used for collecting the Internet of things environment data; an edge layer configured to perform the method for managing device information according to any one of the embodiments; the cloud layer is configured to execute the method for selecting the service node according to any one of the above embodiments.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, the computer program being applied to a cloud layer in a distributed cloud architecture system, the distributed cloud architecture system including a device layer, an edge layer and a cloud layer, the edge layer being used for providing a low-latency service to an internet of things device in the device layer, the cloud layer being a block chain-based distributed cloud network, and the computer program when executed by a processor implements the following steps:
receiving a cloud resource leasing request sent by a target device, wherein the cloud resource leasing request comprises a service requirement and a resource requirement of the target device;
selecting a target service node which meets the service requirement and the resource requirement from each service node of the cloud layer, wherein different service nodes correspond to different service providers;
controlling the target service node to provide services to the target device, wherein the services comprise storage services and/or computing services.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, the computer program being applied to an edge layer in a distributed cloud architecture system, the distributed cloud architecture system including a device layer, the edge layer and a cloud layer, the edge layer being a blockchain-based distributed edge network and providing low-latency services to internet of things devices in the device layer, the cloud layer being a blockchain-based distributed cloud network, and the computer program when executed by a processor implementing the following steps:
when the Internet of things equipment moves out of the coverage range of an access point, receiving an authentication request sent by the Internet of things equipment, wherein the authentication request comprises an identifier of the Internet of things equipment;
when the fact that the identification of the Internet of things equipment is stored in the block chain account book of the block chain account book is determined, a response message is sent to the Internet of things equipment, and the response message is used for indicating that the authentication of the Internet of things equipment is successful.
The service node selection device, the device information management device, the system and the storage medium provided in the above embodiments may execute the service node selection method and the device information management method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in the above embodiments, reference may be made to a method for selecting a service node and a method for managing device information provided in any embodiment of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (18)

1. A method for selecting a service node is applied to a cloud layer in a distributed cloud architecture system, the distributed cloud architecture system comprises an equipment layer, an edge layer and a cloud layer, the edge layer is used for providing a low-delay service for Internet of things equipment in the equipment layer, and the cloud layer is a distributed cloud network based on a block chain, and the method comprises the following steps:
receiving a cloud resource leasing request sent by a target device, wherein the cloud resource leasing request comprises a service requirement and a resource requirement of the target device;
selecting a target service node which meets the service requirement and the resource requirement from each service node of the cloud layer, wherein different service nodes correspond to different service providers;
controlling the target service node to provide services to the target device, wherein the services comprise storage services and/or computing services.
2. The method of claim 1, further comprising a first reputation value for each service node in the cloud resource lease request, wherein the first reputation value is a reputation value for a service node maintained by the target device;
the selecting a target service node satisfying the service demand and the resource demand from the service nodes of the cloud layer includes:
for each service node, determining a total credit value of the current service node according to a first credit value of the current service node and a second credit value of the current service node stored in a block chain account book of the current service node;
selecting an initial service node from each service node, wherein the available resource quantity is not less than the resource demand quantity and the current service quality meets the service demand, according to the current service quality of each service node and the available resource quantity of each service node;
and selecting a target service node from the initial service nodes according to the total reputation value of each service node.
3. The method of claim 2, further comprising, after said controlling the target serving node to provide the service:
receiving a service quality evaluation value and a reputation evaluation value of the target device for the service provided by the target service node;
updating the current service quality of the target service node stored in the block chain account book according to the service quality evaluation value;
and updating a second credit value of the block chain account book of the target service node according to the credit evaluation value.
4. The method of claim 3, further comprising:
acquiring a second credit value corresponding to each first service node, wherein the first service node is a service node participating in consensus operation;
determining a target first service node according to the second reputation value corresponding to each first service node, wherein the target first service node is the shortest first service node for solving the Hash problem;
and adding a block generated by the target first service node into a block chain, wherein the block comprises all information of interaction between the target service node and the target equipment.
5. The method of claim 4, wherein determining the target first service node according to the second reputation value corresponding to each first service node comprises:
for each first service node, determining a random number search range corresponding to the current first service node according to a second reputation value corresponding to the current first service node, and solving a hash problem based on the random number search range;
and determining the first service node which is shortest in time for solving the Hash problem as a target first service node.
6. The method according to claim 3, wherein the updating the current service quality of the target service node stored in the blockchain ledger according to the service quality assessment value comprises:
acquiring the current service quality of the target service node stored in the block chain account book of the target service node;
determining the target service quality corresponding to the target service node according to the service quality evaluation value and the current service quality;
replacing the current quality of service with the target quality of service.
7. The method of claim 6, wherein the determining the target quality of service corresponding to the target service node according to the quality of service evaluation value and the current quality of service comprises:
determining the target service quality corresponding to the target service node according to the following formula
Figure FDA0002250503150000031
Figure FDA0002250503150000032
Wherein the content of the first and second substances,
Figure FDA0002250503150000033
is the current quality of service, w is the weight occupied by the current quality of service,in order to be a function of the statistics,
Figure FDA0002250503150000035
for the target device to the target service node xiThe service quality evaluation value of the kth service is provided, k is the target service node xiThe number of services provided, k, is greater than or equal to 1.
8. The method of claim 3, wherein the updating the second reputation value of the target service node stored in the blockchain ledger according to the reputation evaluation value comprises:
acquiring a second credit value of the target service node stored in a block chain account book of the target service node;
determining a target reputation value corresponding to the target service node according to the reputation evaluation value and the second reputation value;
replacing the second reputation value with the target reputation value.
9. The method of claim 8, wherein determining a target reputation value corresponding to the target service node based on the reputation evaluation value and the second reputation value comprises:
determining a target reputation value ET of the target service node according to the following formulak(xi):
Figure FDA0002250503150000041
Wherein, Vk(xi) Serving the target device based on the target serving node xiReputation evaluation value, ET, obtained from the quality of service of the kth service providedk-1(xi) For the second reputation value, σ is associated with the target service node xiThe parameters associated with the successful service being provided,
Figure FDA0002250503150000042
is a weight of a history factor, ck(xi) Serving node x to the targetiA network environment providing a kth service.
10. The method of claim 2, wherein the obtaining of the first reputation value of the current service node comprises:
obtaining a first credit value IT of the current service node according to the following formulak(x′i):
Figure FDA0002250503150000043
Wherein r is the number of times of service provided by the current service node to the target device, Vr(x′i) Is the target device based on the current service node x'iReputation evaluation value, ET, obtained from the quality of service of the r-th service providedr-1(x′i) Is the current service node x'iA total reputation value, σ, obtained after r-1 times of service is provided to the target devicereqIs the current service node x'iThe parameters associated with the successful service being provided,is a weight of a history factor, cr(x′i) Is the current service node x'iA network environment providing an r-th service.
11. The method according to any of claims 1 to 10, wherein the edge layer is a block chain based distributed edge network.
12. The method for managing the equipment information is applied to an edge layer in a distributed cloud architecture system, the distributed cloud architecture system comprises an equipment layer, the edge layer and a cloud layer, the edge layer is a distributed edge network based on a block chain and provides low-delay service for Internet of things equipment in the equipment layer, and the cloud layer is a distributed cloud network based on the block chain, and the method comprises the following steps:
when the Internet of things equipment moves out of the coverage range of an access point, receiving an authentication request sent by the Internet of things equipment, wherein the authentication request comprises an identifier of the Internet of things equipment;
when the fact that the identification of the Internet of things equipment is stored in the block chain account book of the block chain account book is determined, a response message is sent to the Internet of things equipment, and the response message is used for indicating that the authentication of the Internet of things equipment is successful.
13. The method of claim 12, further comprising:
receiving a user access control request sent by a management device through an access point, wherein the user access control request comprises an identifier of a user and an identifier of the Internet of things device;
and when determining that the block chain account book of the user stores the binding relationship between the user and the Internet of things equipment according to the identification of the user and the identification of the Internet of things equipment, sending a response message to the management equipment, wherein the response message is used for indicating that the user has the authority to manage the Internet of things equipment.
14. The method of claim 13, wherein before receiving the access control request sent by the management device, the method further comprises:
receiving a registration request sent by the Internet of things equipment;
and establishing a binding relationship between the Internet of things equipment and a target user according to the registration request, wherein the binding relationship is used for representing that the target user has authority to manage the Internet of things equipment.
15. The device for selecting the service node is applied to a cloud layer in a distributed cloud architecture system, the distributed cloud architecture system comprises an equipment layer, an edge layer and a cloud layer, the edge layer is used for providing a low-delay service for an internet of things equipment in the equipment layer, and the cloud layer is a distributed cloud network based on a block chain, and the device comprises:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a cloud resource leasing request sent by a target device, and the cloud resource leasing request comprises a service demand and a resource demand of the target device;
a selection module, configured to select a target service node that meets the service requirement and the resource requirement from each service node in the cloud layer, where different service nodes correspond to different service providers;
and the control module is used for controlling the target service node to provide services for the target equipment, wherein the services comprise storage services and/or computing services.
16. The device for managing the device information is applied to an edge layer in a distributed cloud architecture system, the distributed cloud architecture system comprises the device layer, the edge layer and a cloud layer, the edge layer is a distributed edge network based on a block chain, the cloud layer is a distributed cloud network based on a block chain, and the device comprises:
the system comprises a first receiving module, a second receiving module and a sending module, wherein the first receiving module is used for receiving an authentication request sent by the Internet of things equipment when the Internet of things equipment moves out of the coverage range of an access point, and the authentication request comprises an identifier of the Internet of things equipment;
the first sending module is used for sending a response message to the internet of things equipment when the fact that the identification of the internet of things equipment is stored in the block chain account book of the first sending module is determined, and the response message is used for indicating that the authentication of the internet of things equipment is successful.
17. A distributed cloud architecture system, comprising: the device layer, the edge layer and the cloud layer;
the equipment layer is used for collecting the Internet of things environment data;
the edge layer for performing the method of any of the preceding claims 12 to 14;
the cloud for performing the method of any of the above claims 1 to 11.
18. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1-14.
CN201911032332.7A 2019-10-28 2019-10-28 Service node selection method, device, system and medium Expired - Fee Related CN110753126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911032332.7A CN110753126B (en) 2019-10-28 2019-10-28 Service node selection method, device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911032332.7A CN110753126B (en) 2019-10-28 2019-10-28 Service node selection method, device, system and medium

Publications (2)

Publication Number Publication Date
CN110753126A true CN110753126A (en) 2020-02-04
CN110753126B CN110753126B (en) 2022-06-17

Family

ID=69280512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911032332.7A Expired - Fee Related CN110753126B (en) 2019-10-28 2019-10-28 Service node selection method, device, system and medium

Country Status (1)

Country Link
CN (1) CN110753126B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111565101A (en) * 2020-04-28 2020-08-21 上海物融智能科技有限公司 Processing method and device for computing task
CN111722926A (en) * 2020-06-05 2020-09-29 中国科学院自动化研究所 Secure and trusted edge coordination method and system based on payment mechanism
CN112003922A (en) * 2020-08-18 2020-11-27 杭州指令集智能科技有限公司 Data transmission method and device
CN112118295A (en) * 2020-08-21 2020-12-22 深圳大学 File caching method and device, edge node and computer readable storage medium
CN112217876A (en) * 2020-09-22 2021-01-12 远光软件股份有限公司 Internet of things system, Internet of things communication method and electronic equipment
CN112488706A (en) * 2020-11-23 2021-03-12 国网河南省电力公司信息通信公司 Cloud service management method and system based on block chain
CN112488481A (en) * 2020-11-24 2021-03-12 北京邮电大学 Service provider determining method and device based on alliance chain
CN113612854A (en) * 2021-08-16 2021-11-05 中国联合网络通信集团有限公司 Communication method, server and terminal based on block chain
CN114900519A (en) * 2022-05-06 2022-08-12 中国电信股份有限公司 Capability calling method, capability calling device, storage medium and electronic equipment
CN116074841A (en) * 2023-03-07 2023-05-05 鹏城实验室 Edge computing trusted access method, device, equipment and computer storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874107A (en) * 2016-12-26 2017-06-20 广东工业大学 It is a kind of based on the thin cloud resource auction technique for purchasing by group in mobile cloud computing
CN108494830A (en) * 2018-02-27 2018-09-04 浙江辉宏地理信息有限公司 A kind of Internet of Things using block chain
CN109165972A (en) * 2018-07-30 2019-01-08 广东工业大学 A kind of mobile block chain resource allocation methods of task based access control migration mechanism
CN109548031A (en) * 2018-03-01 2019-03-29 重庆大学 A kind of non-equilibrium edge cloud network access and resource allocation mechanism
CN109714173A (en) * 2019-01-25 2019-05-03 北京邮电大学 A kind of Internet of Things authentication method and device based on block chain
CN109788046A (en) * 2018-12-29 2019-05-21 河海大学 A kind of more tactful edge calculations resource regulating methods based on improvement ant colony algorithm
US10341430B1 (en) * 2018-11-27 2019-07-02 Sailpoint Technologies, Inc. System and method for peer group detection, visualization and analysis in identity management artificial intelligence systems using cluster based analysis of network identity graphs
CN110177055A (en) * 2019-05-29 2019-08-27 电子科技大学 A kind of method for pre-distributing of the following marginal area resource of edge calculations scene

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874107A (en) * 2016-12-26 2017-06-20 广东工业大学 It is a kind of based on the thin cloud resource auction technique for purchasing by group in mobile cloud computing
CN108494830A (en) * 2018-02-27 2018-09-04 浙江辉宏地理信息有限公司 A kind of Internet of Things using block chain
CN109548031A (en) * 2018-03-01 2019-03-29 重庆大学 A kind of non-equilibrium edge cloud network access and resource allocation mechanism
CN109165972A (en) * 2018-07-30 2019-01-08 广东工业大学 A kind of mobile block chain resource allocation methods of task based access control migration mechanism
US10341430B1 (en) * 2018-11-27 2019-07-02 Sailpoint Technologies, Inc. System and method for peer group detection, visualization and analysis in identity management artificial intelligence systems using cluster based analysis of network identity graphs
CN109788046A (en) * 2018-12-29 2019-05-21 河海大学 A kind of more tactful edge calculations resource regulating methods based on improvement ant colony algorithm
CN109714173A (en) * 2019-01-25 2019-05-03 北京邮电大学 A kind of Internet of Things authentication method and device based on block chain
CN110177055A (en) * 2019-05-29 2019-08-27 电子科技大学 A kind of method for pre-distributing of the following marginal area resource of edge calculations scene

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
NIU XUDONG;SHAO SUJIE;XIN CHEN;ZHOU JUN: ""Workload Allocation Mechanism for Minimum Service Delay in Edge Computing-Based Power Internet of Things"", 《IEEE》 *
SONG KANG;LINNA RUAN;SHAOYONG GUO; WENCUI LI;XUESONG QIU: ""Geographic Clustering Based Mobile Edge Computing Resource Allocation Optimization Mechanism"", 《IEEE》 *
周平,殷波,邱雪松,郭少勇,孟洛明: ""面向服务可靠性的云资源调度方法"", 《电子学报》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111565101A (en) * 2020-04-28 2020-08-21 上海物融智能科技有限公司 Processing method and device for computing task
CN111722926A (en) * 2020-06-05 2020-09-29 中国科学院自动化研究所 Secure and trusted edge coordination method and system based on payment mechanism
CN111722926B (en) * 2020-06-05 2023-12-22 中国科学院自动化研究所 Safe and reliable edge cooperation method and system based on payment mechanism
CN112003922A (en) * 2020-08-18 2020-11-27 杭州指令集智能科技有限公司 Data transmission method and device
CN112118295A (en) * 2020-08-21 2020-12-22 深圳大学 File caching method and device, edge node and computer readable storage medium
CN112217876A (en) * 2020-09-22 2021-01-12 远光软件股份有限公司 Internet of things system, Internet of things communication method and electronic equipment
CN112217876B (en) * 2020-09-22 2023-09-19 远光软件股份有限公司 Internet of things system, internet of things communication method and electronic equipment
CN112488706B (en) * 2020-11-23 2023-02-17 国网河南省电力公司信息通信公司 Cloud service management method and system based on block chain
CN112488706A (en) * 2020-11-23 2021-03-12 国网河南省电力公司信息通信公司 Cloud service management method and system based on block chain
CN112488481A (en) * 2020-11-24 2021-03-12 北京邮电大学 Service provider determining method and device based on alliance chain
CN113612854A (en) * 2021-08-16 2021-11-05 中国联合网络通信集团有限公司 Communication method, server and terminal based on block chain
CN113612854B (en) * 2021-08-16 2023-07-25 中国联合网络通信集团有限公司 Communication method, server and terminal based on block chain
CN114900519A (en) * 2022-05-06 2022-08-12 中国电信股份有限公司 Capability calling method, capability calling device, storage medium and electronic equipment
CN114900519B (en) * 2022-05-06 2023-12-12 中国电信股份有限公司 Capability calling method, capability calling device, storage medium and electronic equipment
CN116074841A (en) * 2023-03-07 2023-05-05 鹏城实验室 Edge computing trusted access method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN110753126B (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN110753126B (en) Service node selection method, device, system and medium
CN110991622B (en) Machine learning model processing method based on block chain network and node
US11048690B2 (en) Contribution of multiparty data aggregation using distributed ledger technology
US20200160319A1 (en) Entity-sovereign data wallets using distributed ledger technology
US20230299984A1 (en) Blockchain-based data processing method, apparatus and device, and storage medium
CN111950858A (en) Edge cloud collaborative computing resource transaction method, computer equipment and storage medium
US11531982B2 (en) Optimal transactions sharding for scalable blockchain
US20220269670A1 (en) Data processing method and apparatus, computer device, and storage medium
CN109117994B (en) Event prediction method and device and electronic equipment
CN110705973A (en) Consensus method applied to miner nodes in block chain system and block chain system
CN112651001A (en) Access request authentication method, device, equipment and readable storage medium
CN108616362B (en) Voting information generation method and device
Batool et al. Fl-mab: client selection and monetization for blockchain-based federated learning
Ibrahim et al. Blockchain-based parking sharing service for smart city development
Ekanayake et al. Lightweight blockchain framework using enhanced master-slave blockchain paradigm: Fair rewarding mechanism using reward accuracy model
WO2018024815A1 (en) Resource path monitoring
John Joseph et al. A novel trust-scoring system using trustability co-efficient of variation for identification of secure agent platforms
CN113282417B (en) Task allocation method and device, computer equipment and storage medium
Benjamin Franklin et al. Machine learning-based trust management in cloud using blockchain technology
US11451488B2 (en) Resource path monitoring
Peng et al. Spatiotemporal prediction based intelligent task allocation for secure spatial crowdsourcing in industrial IoT
CN115842866A (en) Data processing method and device, computer readable medium and electronic equipment
WO2020062119A1 (en) Method and system for incentivizing data exchange
CN115150141B (en) Single sign-on method and single point management equipment
CN111818107B (en) Network request response method, device, equipment and readable storage medium

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220617

CF01 Termination of patent right due to non-payment of annual fee