Block chain-based fog node distribution method and device, equipment, medium and product

Through the blockchain-based fog node allocation method, the resources of edge smart devices are dynamically allocated and optimized, and the problem of resource consumption imbalance caused by the increase in the number of edge devices is solved, and the event processing efficiency is improved.

CN119052244AActive Publication Date: 2024-11-29CHINA MOBILE ZIJIN INNOVATION INST CO LTD +2
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411301894.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-11-29
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

With the increase in the number of edge devices and the amount of computing, the resource consumption of fog nodes is unbalanced, resulting in the problem of low event processing efficiency.

Method used

The blockchain-based fog node allocation method is adopted to build data loads by collecting event information, sending them to the fog nodes for packaging and verification, and dynamic allocation and broadcasting of fog nodes is used to optimize resource utilization.

Benefits of technology

It improves the efficiency of fog node allocation, solves the problem of unbalanced resource consumption, and improves the efficiency of event processing by edge intelligent devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052244A_ABST
    Figure CN119052244A_ABST
Patent Text Reader

Abstract

The invention discloses a fog node distribution method and device based on a block chain, equipment, a medium and a product, and relates to the technical field of block chains, the method is applied to edge intelligent equipment, and the method comprises the following steps: collecting event information, and constructing a data load based on the event information; sending the data load to a fog node, packaging the data load by the fog node to obtain a data block, sending the data block to a block chain, performing fog node allocation on the edge intelligent equipment by a cloud controller based on the block chain to obtain an allocation result, and sending the allocation result to the edge intelligent equipment. And the distribution result is broadcasted through the block chain. The problem of low event processing efficiency caused by unbalanced fog node resource consumption along with the increase of the number of edge devices and the increase of the calculated amount is solved, and the efficiency of fog node allocation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based fog node allocation method, device, equipment, medium and product. Background Art

[0002] With the rapid development of communication technology and the surge in the number of mobile devices, the popularization of Internet of Things (IOT) technology has been promoted, and ultra-large-scale data has been generated in widely distributed mobile terminals and IoT devices. The existing technology uses edge computing methods to provide corresponding services and calculations to avoid communication delays. At the same time, with the vigorous development of artificial intelligence (AI) applications, edge computing and artificial intelligence are combined to produce edge intelligence, so as to better respond to environmental changes. In addition, in order to reduce the pressure on the cloud computing environment, the existing technology also introduces many decentralized central nodes, namely fog nodes, between the edge computing center and the cloud computing center.

[0003] However, in order to alleviate the limitations of cloud computing itself, edge intelligence brings artificial intelligence to the vicinity of network edge devices and clusters edge devices according to device type, location or specific characteristics. Since the driving factor for clustering edge devices is to manage devices in an effective way and utilize limited resources, most of the previous clustering work has focused on device-level management. This clustering mechanism does not effectively improve resource utilization in the implementation of edge intelligence. In addition, the data generated by edge intelligent devices when responding to various events has not been valued and protected. For example, when operations or equipment failures and performance degradation events occur, one of the traditional methods to track historical events is to analyze the large system logs collected by all edge devices. This method is prone to malicious tampering of data. On the other hand, the edge intelligent cluster uses fog nodes to maintain edge devices within its range. As the number of edge devices increases and the amount of computing increases, there will be problems with unbalanced and inefficient fog node resource consumption.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a blockchain-based fog node allocation method, device, equipment, medium and product, aiming to solve the technical problem that with the increase in the number of edge devices and the increase in computing power, the resource consumption of fog nodes is unbalanced, resulting in low event processing efficiency.

[0006] To achieve the above purpose, the present application proposes a fog node allocation method based on blockchain, which is applied to edge intelligent devices and includes:

[0007] Collecting event information and building a data payload based on the event information;

[0008] The data load is sent to the fog node, the fog node packages the data load to obtain a data block, and the data block is sent to the blockchain. The cloud controller allocates the edge smart device to the fog node based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain.

[0009] In one embodiment, the step of collecting event information and constructing a data payload based on the event information includes:

[0010] If the device type of the edge intelligent device is a collector, after collecting the environmental information, the event information is output based on the environmental information, and according to the event information, the data load is output through the fog node identifier, the cluster identifier, and the member identifier of the edge intelligent device;

[0011] If the device type of the edge intelligent device is a reactor, event information is output based on the executed operations and device status of the edge intelligent device, and according to the event information, a first data payload is output through a fog node identifier, a cluster identifier, and a member identifier of the edge intelligent device.

[0012] In one embodiment, before the step of collecting event information and constructing a data payload based on the event information, the method further includes:

[0013] Based on the function of the edge intelligent device, the edge intelligent device is classified to obtain a device type, where the device type includes one or more of a collector and a reactor;

[0014] Receive a member identifier, a cluster identifier, and a fog node identifier obtained by the cloud controller identification, wherein the member identifier is obtained by the cloud controller identifying the edge smart device according to the public key of the edge smart device, the cluster identifier is obtained by the cloud controller performing cluster identification on the edge smart device, and the fog node identifier is obtained by the cloud control system connecting the edge smart device to the fog node.

[0015] To achieve the above purpose, the present application also proposes a fog node allocation method based on blockchain, which is applied to fog nodes and includes:

[0016] Receive data payload sent by edge smart devices;

[0017] The data load is packaged to obtain a data block, and the data block is sent to the blockchain. The cloud controller allocates fog nodes to the edge intelligent device based on the blockchain, obtains an allocation result, and broadcasts the allocation result through the blockchain.

[0018] In one embodiment, the step of packaging the data payload to obtain a data block and sending the data block to the blockchain includes:

[0019] Performing authorization verification on the edge intelligent device based on the data load to obtain a verification result;

[0020] If the verification result is passed, the data payload is packaged to obtain a data block;

[0021] The data block is sent to the blockchain.

[0022] To achieve the above purpose, the present application also proposes a fog node allocation method based on blockchain, which is applied to a cloud controller and includes:

[0023] After the edge intelligent device collects event information, it constructs a data payload based on the event information and sends the data payload to the fog node. The fog node packages the data payload into data blocks and sends the data blocks to the blockchain.

[0024] The edge intelligent device is allocated fog nodes according to the blockchain to obtain an allocation result, and the allocation result is broadcasted through the blockchain.

[0025] In one embodiment, the step of allocating fog nodes to edge smart devices according to the blockchain, obtaining an allocation result, and broadcasting the allocation result through the blockchain includes:

[0026] Based on the blockchain, analyzing resource consumption of at least one fog node by using the deep learning model to obtain a first analysis result;

[0027] Based on the blockchain, analyzing the relative distance between at least one fog node and the edge intelligent device through the deep learning model to obtain a second analysis result;

[0028] Selecting the optimal fog node based on the first analysis and the second analysis results, and generating a selection message;

[0029] The selection message is sent to the optimal fog node, and after the optimal fog node calculates a random number, an allocation result is output based on the random number, and the allocation result is sent to the blockchain;

[0030] The allocation result is broadcasted via the blockchain.

[0031] In addition, to achieve the above purpose, the present application also proposes a blockchain-based fog node allocation device, wherein the blockchain-based fog node allocation is applied to an edge intelligent cluster system, wherein the edge intelligent cluster system includes an edge intelligent device, and the device includes:

[0032] A construction module, used to collect event information and construct a data load based on the event information;

[0033] The allocation module is used to send the data load to the fog node, the fog node packages the data load to obtain a data block, and sends the data block to the blockchain. The cloud controller allocates the edge intelligent device to the fog node based on the blockchain to obtain an allocation result, and broadcasts the allocation result through the blockchain.

[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a blockchain-based fog node allocation device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the blockchain-based fog node allocation method as described above.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the blockchain-based fog node allocation method as described above are implemented.

[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the blockchain-based fog node allocation method as described above.

[0037] One or more technical solutions proposed in this application have at least the following technical effects:

[0038] The embodiment of the present application proposes a method, device, equipment and product for allocating fog nodes based on blockchain, which collects event information and builds a data load based on the event information; sends the data load to the fog node, and the fog node packages the data load to obtain a data block, and sends the data block to the blockchain, and the cloud controller allocates fog nodes to the edge smart device based on the blockchain to obtain an allocation result, and broadcasts the allocation result through the blockchain. Thus, event information is collected by the edge smart device, and then a data load is constructed based on the event information, and the data load is sent to the fog node, and the data load is packaged and sent to the blockchain by the fog node. Finally, the cloud controller allocates fog nodes to the edge smart device based on the blockchain to obtain an allocation result, and broadcasts the allocation result through the blockchain. It solves the problem that the increase in the number of edge devices and the increase in the amount of calculation causes the unbalanced consumption of fog node resources, resulting in low event processing efficiency, and improves the efficiency of fog node allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0041] Figure 1 A flowchart of the first embodiment of the fog node allocation method based on blockchain of this application is provided;

[0042] Figure 2 This is a schematic diagram of the system architecture of the edge intelligent cluster system involved in the blockchain-based fog node allocation method of this application;

[0043] Figure 3 This is a schematic diagram of data load involved in the blockchain-based fog node allocation method of this application;

[0044] Figure 4 A schematic diagram of the edge intelligent cluster workflow involved in the blockchain-based fog node allocation method of this application;

[0045] Figure 5 A flowchart of the second embodiment of the fog node allocation method based on blockchain provided in this application;

[0046] Figure 6A schematic diagram of a fog node construction blockchain is provided for the fog node allocation method based on blockchain in this application;

[0047] Figure 7 A flowchart of the third embodiment of the fog node allocation method based on blockchain of this application is provided;

[0048] Figure 8 This is a schematic diagram of the module structure of the fog node allocation device based on blockchain in an embodiment of the present application;

[0049] Fig. 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the blockchain-based fog node allocation method in an embodiment of the present application.

[0050] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0052] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0053] The main solution of the embodiment of the present application is: if the device type of the edge intelligent device is a collector, then after collecting environmental information, event information is output based on the environmental information, and according to the event information, data load is output through the fog node identifier, cluster identifier and member identifier of the edge intelligent device; if the device type of the edge intelligent device is a reactor, event information is output based on the executed operation and device status of the edge intelligent device, and according to the event information, the first data load is output through the fog node identifier, cluster identifier and member identifier of the edge intelligent device. Based on the function of the edge intelligent device, the edge intelligent device is classified to obtain the device type, and the device type includes one or more of a collector and a reactor; the member identifier, cluster identifier and fog node identifier obtained by receiving the cloud controller identification, the member identifier is obtained by the cloud controller identifying the edge intelligent device according to the public key of the edge intelligent device, the cluster identifier is obtained by the cloud controller performing cluster identification on the edge intelligent device, and the fog node identifier is obtained by the cloud control system connecting the edge intelligent device to the fog node. Receive the data payload sent by the edge smart device; package the data payload to obtain a data block, and send the data block to the blockchain; the cloud controller allocates the edge smart device to the fog node based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain. Perform authorization verification on the edge smart device based on the data payload to obtain a verification result; if the verification result is passed, package the data payload to obtain a data block; and send the data block to the blockchain. After the edge smart device collects event information, it constructs a data payload based on the event information, and sends the data payload to the fog node; the fog node packages the data payload to obtain a data block, and sends the data block to the blockchain; fog nodes are allocated to the edge smart device according to the blockchain to obtain the allocation result, and the allocation result is broadcast through the blockchain. Based on the blockchain, the resource consumption of at least one fog node is analyzed by the deep learning model to obtain a first analysis result; based on the blockchain, the relative distance between at least one fog node and the edge intelligent device is analyzed by the deep learning model to obtain a second analysis result; the optimal fog node is selected in combination with the first analysis and the second analysis results, and a selection message is generated; the selection message is sent to the optimal fog node, and after the optimal fog node calculates a random number, an allocation result is output based on the random number, and the allocation result is sent to the blockchain; the allocation result is broadcasted through the blockchain.Thus, the problem of unbalanced fog node resource consumption and low event processing efficiency caused by the increase in the number of edge devices and the increase in computing power is solved, and the allocation of fog nodes is realized, thereby improving the efficiency of fog node allocation. Based on the scheme of the present invention, a blockchain-based fog node method is designed based on the fact that the data generated by edge intelligent devices in response to various events are not valued and protected. In addition, the edge intelligent cluster uses fog nodes to maintain the edge devices within its range. As the number of edge devices and the amount of computing power increase, there will be unbalanced fog node resource consumption and low efficiency. The effectiveness of the blockchain-based fog node method of the present invention is verified when allocating fog nodes. Finally, the efficiency of fog node allocation by the method of the present invention is significantly improved.

[0054] In this embodiment, for the convenience of description, the following is explained using a blockchain-based fog node device as the execution entity.

[0055] Since most intelligence in the existing technology is imposed on the cloud server of the centralized system, in order to alleviate the limitations of cloud computing itself, edge intelligence brings artificial intelligence to the vicinity of network edge devices. In order to further minimize the energy consumption and network burden of edge devices and reduce the complexity of the system, edge devices are clustered according to the type, location or specific characteristics of the device. Because the driving factor for clustering edge devices is to manage devices in an effective way and utilize limited resources, most of the previous clustering work has focused on device-level management. This clustering mechanism does not effectively improve resource utilization in the implementation of edge intelligence. In addition, the data generated by edge intelligent devices when responding to various events has not been valued and protected. For example, when an operation or device failure and performance degradation event occurs, one of the traditional methods to track historical events is to analyze the large system logs collected by all edge devices. This method is not reliable enough because these system logs are computationally intensive and easy to be maliciously tampered with. On the other hand, the edge intelligent cluster uses fog nodes to maintain the edge devices within its range. With the increase in the number of edge devices and the increase in computing power, there will be problems of unbalanced and inefficient fog node resource consumption, which will lead to a decrease in the efficiency of edge intelligent devices in processing events.

[0056] This application provides a solution that uses blockchain to allocate fog nodes in an edge intelligent cluster system to improve the efficiency of event processing by edge intelligent devices. At the same time, reasonable allocation of fog nodes can also achieve rational use of resources and provide users with better services.

[0057] It can be seen from the above embodiments that the present application collects event information and constructs a data load based on the event information; sends the data load to the fog node, the fog node packages the data load to obtain a data block, and sends the data block to the blockchain, and the cloud controller allocates fog nodes to the edge smart device based on the blockchain to obtain an allocation result, and broadcasts the allocation result through the blockchain. Thus, event information is collected by the edge smart device, and then a data load is constructed based on the event information, and the data load is sent to the fog node, the data load is packaged by the fog node and sent to the blockchain, and finally, the cloud controller allocates fog nodes to the edge smart device based on the blockchain to obtain an allocation result, and broadcasts the allocation result through the blockchain. It solves the problem that the increase in the number of edge devices and the increase in computing power causes the unbalanced consumption of fog node resources, resulting in low event processing efficiency, and improves the efficiency of fog node allocation.

[0058] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a fog node allocation device, etc. The following takes a fog node device based on blockchain as an example to illustrate this embodiment and the following embodiments.

[0059] Based on this, the embodiment of the present application provides a fog node allocation method based on blockchain, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the blockchain-based fog node allocation method of the present application.

[0060] In this embodiment, the blockchain-based fog node allocation method is applied to an edge intelligent cluster system, the edge intelligent cluster system includes edge intelligent devices, and the method includes steps S04 to S06:

[0061] Step S03, collecting event information, and constructing a data load based on the event information;

[0062] Before explaining the present embodiment, it should be clear that the rapid development of communication technology and the surge in the number of mobile devices have promoted the popularization of Internet of Things (IOT) technology, and generated extremely large-scale data in widely distributed mobile terminals and IoT devices. The prior art uses edge computing methods to provide corresponding services and calculations to avoid communication delays. At the same time, with the vigorous development of artificial intelligence (AI) applications, edge computing and artificial intelligence are combined to produce edge intelligence, so as to better respond to environmental changes. In addition, in order to reduce the pressure on the cloud computing environment, the prior art also introduces a large number of decentralized central nodes, namely fog nodes, between the edge computing center and the cloud computing center.

[0063] However, in order to alleviate the limitations of cloud computing itself, edge intelligence brings artificial intelligence to the vicinity of network edge devices and clusters edge devices according to device type, location or specific characteristics. Since the driving factor for clustering edge devices is to manage devices in an effective way and utilize limited resources, most of the previous clustering work has focused on device-level management. This clustering mechanism does not effectively improve resource utilization in the implementation of edge intelligence. In addition, the data generated by edge intelligent devices when responding to various events has not been valued and protected. For example, when operations or equipment failures and performance degradation events occur, one of the traditional methods to track historical events is to analyze the large system logs collected by all edge devices. This method is prone to malicious tampering of data. On the other hand, the edge intelligent cluster uses fog nodes to maintain edge devices within its range. As the number of edge devices increases and the amount of computing increases, there will be problems with unbalanced and inefficient fog node resource consumption.

[0064] Therefore, the structure of the method described in this embodiment is as follows Figure 2 As shown, Figure 2 The relationship between edge intelligent devices, edge intelligent clusters and fog computing environments is briefly introduced. In an edge intelligent cluster, members of a specific cluster, that is, edge intelligent devices, can be located in different locations and can be connected to multiple fog environments. A single edge intelligent device may be a member of multiple edge intelligent clusters. For example, members of cluster-1, that is, edge intelligent devices d1, d2 and d3 are located in the communication range of fog node Fog1, while edge intelligent devices d3 and d4 are located in the communication range of fog node Fog 4. Similarly, fog nodes Fog1, Fog2 and Fog3 are fog nodes of edge intelligent device d13, and d13 is a member of edge intelligent cluster-3, except Figure 2 According to the contents recorded in , the architecture of this embodiment also includes at least a cloud controller, which is used to allocate fog nodes of edge intelligent devices to obtain better processing effects.

[0065] After understanding the architecture of the edge intelligence cluster system, the edge intelligence devices in this embodiment collect event information and then build data load based on the event information. Edge intelligence pushes artificial intelligence (AI) algorithms and computing power to edge devices where data is generated, rather than centralizing them in data centers or the cloud for processing. In edge intelligence, data load involves the amount of data that edge devices need to process and analyze. Since these devices perform data processing locally, data load includes real-time data streams, sensor data, and computing tasks.

[0066] Step S04, sending the data payload to the fog node, the fog node packages the data payload to obtain a data block, and sends the data block to the blockchain, the cloud controller allocates the edge smart device to the fog node based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain.

[0067] After obtaining the data load, the data load is sent to the fog node corresponding to the edge intelligent device. The data load is processed by the corresponding fog node to obtain a data block, and the data block is uploaded to the blockchain. It should be clear that the blockchain includes multiple fog nodes, and the data load can be processed by multiple fog nodes so that the edge intelligent devices connected to multiple fog nodes can perform event processing.

[0068] In addition, after uploading to the blockchain, the fog node resources of the edge intelligent device can be reallocated through the cloud controller to obtain the allocation results. In order to make many fog nodes aware of this situation, the obtained allocation results are also broadcast through the blockchain.

[0069] Specifically, the above step S03, collecting event information and building a data load based on the event information, includes:

[0070] Step S031, if the device type of the edge intelligent device is a collector, after collecting environmental information, event information is output based on the environmental information, and data load is output through the fog node identifier, cluster identifier, and member identifier of the edge intelligent device according to the event information;

[0071] Step S032: If the device type of the edge intelligent device is a reactor, event information is output based on the executed operations and device status of the edge intelligent device, and data load is output through the fog node identifier, cluster identifier and member identifier of the edge intelligent device according to the event information.

[0072] like Figure 3As shown, the edge intelligent device as a collector is responsible for collecting information about the surrounding environment and sharing events among other cluster members in the same cluster and nearby fog nodes, e.g. Figure 2 The edge device d3 in will share the event information of its surrounding environment with all edge devices in cluster-1 and all edge devices within the communication range of fog nodes Fog1 and Fog4. For each event, the corresponding edge device collector constructs a data payload with a set of additional information. The data payload is then used by the fog nodes to build blocks and send transactions. The content of the data payload depends on the type of edge device, i.e., collector or reactor, e.g. Figure 3 (a) and (b) show a set of data fields of the data payload constructed by the collector and the reactor, respectively. In the figure, C represents the collector device, R represents the reactor device, and F represents the fog node. The following is a brief explanation of each field:

[0073] (1) Previous block summary: It is similar to the hash value of the previous block in the blockchain. This value is always obtained from the fog node, which is responsible for building and maintaining the blockchain. At time t = 0, this value is set to empty;

[0074] (2) Timestamp: It is the time when the collector or reactor generates the event;

[0075] (3) Collector / reactor identification: The public key of each edge smart device is regarded as a member identifier;

[0076] (4) Cluster Identifier: This is a list of unique identifiers for each cluster to which the edge device belongs. Typically, the cloud controller is responsible for assigning a unique identifier to each cluster. For each edge device, the cluster identifier is set static unless it is manually updated.

[0077] (5) Fog node identification: This is a list of unique identifiers of fog nodes, which are uniformly assigned by the cloud controller. This field cannot be empty, indicating that each edge device must be connected to at least one fog node;

[0078] (6) Event: If it is a collector, this data field contains the collected surrounding environment data. This value can be used to monitor the current state of the environment, such as Figure 3 (a), while in the case of a reactor, the data field mainly contains the operations that have been performed and the current state of the reactor, such as Figure 3 (b)

[0079] (7) Related edge devices: information of other edge devices, including collectors and reactors in the same cluster and nearby fog nodes. All generated events will be further shared among this group of edge devices and fog nodes.

[0080] (8) Collected data: This data field only exists in the data payload generated by the reactor. The collected data is the surrounding environment data shared by other edge devices. The reactor responds to environmental changes based on this data.

[0081] In order to enable multiple edge smart devices to process events, the data load obtained by the edge smart device is sent to the relevant edge smart device, and the relevant edge smart device responds to the data load and continues to generate data load. It should be clear that the edge smart device includes multiple collectors and reactors. For example, when a collector senses that the temperature is getting higher, in order to avoid a fire, another collector will capture the flame after receiving the information of the higher temperature, and obtain information on whether a fire has occurred. Then, the temperature increase and fire information are sent to the reactor, and corresponding measures will be taken for the fire, such as spraying water sources, etc.;

[0082] Since the edge intelligent device specifically includes a collector and a reactor, it is necessary to complete corresponding identification for them, such as the identification of a single device, the identification of a cluster, and the identification of a fog node. Therefore, in step S03 of this embodiment, before the step of collecting event information and constructing a data load based on the event information, the method further includes:

[0083] Step S01, classifying the edge intelligent devices based on their functions to obtain device types, where the device types include one or more of a collector and a reactor;

[0084] Step S02, receiving the member identifier, cluster identifier and fog node identifier obtained by the cloud controller identification, wherein the member identifier is obtained by the cloud controller identifying the edge smart device according to the public key of the edge smart device, the cluster identifier is obtained by the cloud controller performing cluster identification on the edge smart device, and the fog node identifier is obtained by the cloud control system connecting the edge smart device to the fog node.

[0085] Each edge device is equipped with artificial intelligence-based computing power, which can determine when the edge device should take action and how to collect data and share events. This edge intelligent device is called a collector. There are also other devices responsible for responding to the environment, called data-based reactors. For example, in an edge intelligent cluster, in order to manage energy consumption in smart buildings, the turning on and off of smart lights may depend on the environmental data collected by nearby light sensors and temperature sensors. In this example, instead of relying entirely on a remote central control center, smart lights rely on nearby light sensors and temperature sensors. The intelligence of these edge devices can form an edge intelligent cluster, so they can be divided into two categories according to the responsibilities of edge intelligent devices: collectors and reactors. Collectors are mainly responsible for collecting data or information about the surrounding environment. Examples of collectors can include temperature sensors, light sensors, solar panels, touch and motion sensors, and CO2 sensors. Reactors are mainly responsible for responding to the surrounding environment based on the information shared by collectors. Examples can include smart light bulbs, ventilation systems, and room heating systems.

[0086] In order to facilitate the control of edge intelligent devices, the cloud controller can identify the edge intelligent devices according to their public keys to obtain the member identifiers of the edge intelligent devices. In addition to individual devices, they can also be integrated into clusters, so the edge intelligent devices are represented as clusters to obtain cluster identifiers. Finally, the edge intelligent devices are connected to the fog nodes to obtain the fog node identifiers of the edge intelligent devices.

[0087] Furthermore, if Figure 4 As shown in the figure, an actual business scenario is introduced. The process includes all network operations such as generating data load on edge smart devices, building blocks on fog nodes to form blockchains, and communication between all entities. The specific workflow is as follows:

[0088] First, in the actual working environment, an edge smart device detection event occurs. The event can be triggered based on time or when the environment status changes;

[0089] Then, the event triggers the collector that continuously monitors the environment status. The corresponding collector collects the environment data and builds the data payload.

[0090] The constructed data payload is then broadcast to other edge devices and nearby fog nodes that best meet the requirements;

[0091] Then, after other edge intelligent devices receive the data payload, the collector or reactor will extract the event data and react to the environment accordingly or further collect environmental data based on predefined tasks;

[0092] Then, after receiving the same data payload, the fog node will determine its source. If the newly received data payload comes from the same edge smart device, the latest block existing in the existing blockchain will be updated. If the newly received data payload comes from a different edge smart device, a new block will be constructed and sent to the existing blockchain.

[0093] Finally, the fog node that receives the data payload will calculate the required Nonce. Once the process is completed, the updated blockchain will be further broadcasted to other fog nodes in the blockchain network. Once the blockchain is published, it will be difficult for any system or intruder to modify the chain data. In this way, all fog nodes will have an updated blockchain list.

[0094] It is clear from the above scheme that this embodiment clusters edge devices with intelligence as the center, allowing network edge devices to share their knowledge and events with other edge devices with similar and dependent intelligence or remote fog and cloud servers, working towards a common goal in a collective way, and establishing a blockchain between them within the cluster, using the immutability, decentralization, consensus and transparency of blockchain technology to ensure that the event history records of edge devices are immutable and easy to trace. The data generated during the production process of the edge intelligent cluster is protected from the original device to the server, and the cause of any abnormal event can be analyzed and investigated by tracking the immutable event chain. In addition, deep learning-based technology is used to dynamically and intelligently allocate fog nodes with abundant resources for edge intelligent devices to upload data to the chain. The edge intelligent cluster built by this safe and efficient mechanism can be widely used to establish transparent and efficient smart cities, smart homes, supply chains, logistics and other systems.

[0095] This embodiment uses the above scheme, specifically by collecting event information and building a data load based on the event information; sending the data load to the fog node, the fog node packs the data load to obtain a data block, and sends the data block to the blockchain, and the cloud controller allocates the edge smart device to the fog node based on the blockchain to obtain the allocation result, and broadcasts the allocation result through the blockchain. Thus, the event information is collected by the edge smart device, and then the data load is built based on the event information, and the data load is sent to the fog node, the data load is packaged by the fog node and sent to the blockchain, and finally, the cloud controller allocates the edge smart device to the fog node based on the blockchain to obtain the allocation result, and broadcasts the allocation result through the blockchain. It solves the problem that the increase in the number of edge devices and the increase in computing power causes the unbalanced consumption of fog node resources, resulting in low event processing efficiency, and improves the efficiency of fog node allocation.

[0096] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 5 The present application also proposes a blockchain-based fog node allocation method, which is applied to fog nodes and includes steps S05-S06:

[0097] Step S05, receiving the data load sent by the edge intelligent device;

[0098] Step S06, packing the data payload to obtain data blocks, and sending the data blocks to the blockchain, the cloud controller allocates fog nodes to the edge smart devices based on the blockchain, obtains allocation results, and broadcasts the allocation results through the blockchain.

[0099] After the edge intelligent device builds the data load, it will be shared with nearby fog nodes for processing. The steps of block construction in the edge intelligent cluster are as follows:

[0100] First, for the collector’s device, on each event triggered by time or other device events, the edge intelligent device will build a data payload, then broadcast the newly built data payload to other related edge intelligent devices and dynamically upload it to the nearby fog node that best meets the requirements;

[0101] Then, the fog node verifies whether the data payload comes from the authorized edge smart device, and packages the data payload only after the verification is passed. Therefore, in the above step S06, the step of packaging the data payload to obtain a data block and sending the data block to the blockchain includes:

[0102] Step S061, performing authorization verification on the edge smart device based on the data load to obtain a verification result;

[0103] Step S062, when the verification result is passed, the data payload is packaged to obtain a data block;

[0104] Step S063, sending the data block to the blockchain.

[0105] The fog node checks the cluster identifier, the identifier of the collector or reactor, and the digest of the previous block. If the data payload comes from the reactor and the data payload in the previous block comes from the collector, the collected data in the data payload received by the reactor should match the value of the event field in the previous block;

[0106] Finally, the fog node uses the newly received data payload from the edge smart device together with the hash of the previous block in the blockchain and the random number of the fog node to package it into a block and add it to the existing blockchain.

[0107] like Figure 6 As shown, Figure 6 The block structure constructed by fog nodes is shown in Figure 6 The first block Block t in is constructed using the data payload of collector i, including a root hash value and a Nonce. The root hash value of the initial block is a null value, and Nonce is a random special number, also known as proof of work (Pow). According to the framework proposed by the present invention, the reactor is always triggered by events from other collectors or reactors. Therefore, the data of the first block is always from the collector, while the second and third blocks, Block t+1 and Block t+2, are constructed using the data payload received from the collector or from the reactor, the hash value of the previous block, and a random number.

[0108] Additionally, the Nonce in the block must satisfy the format of a predefined cryptographic block hash, which is calculated from two other components: the data payload received by the collector or reactor and the hash of the previous block in the blockchain.

[0109] This embodiment uses the above scheme, specifically by receiving the data load sent by the edge smart device; packaging the data load to obtain a data block, and sending the data block to the blockchain, and the cloud controller allocates the edge smart device to the fog node based on the blockchain to obtain the allocation result, and broadcasts the allocation result through the blockchain. Thus, event information is collected by the edge smart device, and then the data load is constructed based on the event information, and the data load is sent to the fog node. The data load is packaged by the fog node and sent to the blockchain. Finally, the cloud controller allocates the edge smart device to the fog node based on the blockchain to obtain the allocation result, and broadcasts the allocation result through the blockchain. This solves the problem that the increase in the number of edge devices and the amount of computing power causes unbalanced consumption of fog node resources, resulting in low event processing efficiency, and improves the efficiency of fog node allocation.

[0110] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, please refer to Figure 7 , the present application proposes a fog node allocation method based on blockchain, the method is applied to a cloud controller, the method comprises:

[0111] Step S07, after the edge intelligent device collects event information, it constructs a data payload based on the event information, and sends the data payload to the fog node, which packages the data payload into data blocks and sends the data blocks to the blockchain;

[0112] Step S08, allocate fog nodes to edge intelligent devices according to the blockchain, obtain allocation results, and broadcast the allocation results through the blockchain.

[0113] It should be clear that the fog nodes in this embodiment are numerous decentralized central nodes introduced between the edge computing center and the cloud computing center. The fog nodes are responsible for performing complex edge analysis and maintaining all edge smart devices within their communication range. The fog computing environment is closer to where the data is generated, which can reduce the pressure on the cloud computing environment, improve the transmission rate, and reduce delays and response times. However, after processing the event, the resource requirements of some edge smart devices may become higher or lower. At this time, the cloud controller needs to make adjustments. Therefore, step S07 in this embodiment, the step of allocating fog nodes to edge smart devices according to the blockchain, obtaining allocation results, and broadcasting the allocation results through the blockchain includes:

[0114] Step S081, based on the blockchain, analyzing the resource consumption of at least one fog node through the deep learning model to obtain a first analysis result;

[0115] Step S082, based on the blockchain, analyzing the relative distance between at least one fog node and the edge intelligent device through the deep learning model to obtain a second analysis result;

[0116] Step S083, selecting the optimal fog node based on the first analysis and the second analysis results, and generating a selection message;

[0117] Step S084, sending the selection message to the optimal fog node, and after the optimal fog node calculates a random number, outputting an allocation result based on the random number, and sending the allocation result to the blockchain;

[0118] Step S085, broadcasting the allocation result through the blockchain.

[0119] When the data block has been updated in the blockchain, the deep learning model is used to combine the resource consumption of the fog node and the relative distance between the fog node and the edge intelligent device. The model is used to determine the fog node that best meets the requirements and is responsible for calculating the Nonce random number and broadcasting the result to other fog nodes. This not only solves the conflict that may occur when multiple fog nodes receive data loads from the same edge intelligent device, but also effectively utilizes computing resources and improves the efficiency of fog nodes updating blocks.

[0120] In addition, any fog node may receive multiple consecutive data payloads from the same edge device, that is, the collector / reactor identifier of the newly received data payload may be the same as the identifier in the latest block in the blockchain;

[0121] For the above situation, if the edge device is a collector, the fog node can simply extract the value of the event data field from the newly received data payload and append the value to the event data field of the latest block in the blockchain. If the device is a reactor, the collected data information and event information in the newly received data payload will be extracted and appended to the corresponding data fields of the latest block in the blockchain. After the append operation, the Nonce will be recalculated by the same fog node. Once the process is completed, the newly received data payload will be discarded, and the updated blockchain will be broadcast to other fog nodes in the network.

[0122] Finally, the updated blockchain will be further broadcasted to other fog nodes in the blockchain network. After the blockchain is published, it will be difficult for any system or intruder to modify the chain data. In this way, all fog nodes will have an updated blockchain list.

[0123] This embodiment uses the above scheme to allocate fog nodes to edge smart devices according to the blockchain, obtain allocation results, and broadcast the allocation results through the blockchain. Thus, event information is collected by edge smart devices, and then data load is constructed based on the event information, and the data load is sent to the fog node. The data load is packaged and sent to the blockchain by the fog node. Finally, the cloud controller allocates fog nodes to edge smart devices based on the blockchain, obtains allocation results, and broadcasts the allocation results through the blockchain. This solves the problem of unbalanced fog node resource consumption caused by the increase in the number of edge devices and the increase in computing power, which leads to low event processing efficiency, and improves the efficiency of fog node allocation.

[0124] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the blockchain-based fog node allocation method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0125] This application also provides a fog node allocation device based on blockchain, please refer to Figure 8 , the blockchain-based fog node allocation device is applied to an edge intelligent cluster system, the edge intelligent cluster system includes edge intelligent devices, and the device includes:

[0126] A construction module 10 is used to collect event information and construct a data load based on the event information;

[0127] The allocation module 20 is used to send the data load to the fog node, and the fog node packages the data load to obtain a data block, and sends the data block to the blockchain. The cloud controller allocates the edge intelligent device to the fog node based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain.

[0128] The blockchain-based fog node allocation device provided by the present application adopts the blockchain-based fog node allocation method in the above embodiment, which can solve the technical problem that the increase in the number of edge devices and the increase in the amount of calculation cause the unbalanced consumption of fog node resources, thereby resulting in low event processing efficiency. Compared with the prior art, the beneficial effects of the blockchain-based fog node allocation device provided by the present application are the same as the beneficial effects of the blockchain-based fog node allocation method provided by the above embodiment, and the other technical features of the blockchain-based fog node allocation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0129] The present application provides a blockchain-based fog node allocation device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the blockchain-based fog node allocation method in the above-mentioned embodiment 1.

[0130] Reference below Fig. 9 , which shows a schematic diagram of the structure of a fog node allocation device based on blockchain suitable for implementing the embodiment of the present application. The fog node allocation device based on blockchain in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9The blockchain-based fog node allocation device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0131] like Fig. 9 As shown, the fog node allocation device based on blockchain may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the fog node allocation device based on blockchain are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the blockchain-based fog node allocation device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a blockchain-based fog node allocation device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0132] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0133] The blockchain-based fog node allocation device provided by the present application adopts the blockchain-based fog node allocation method in the above embodiment, which can solve the technical problem that the increase in the number of edge devices and the increase in the amount of calculation cause the unbalanced consumption of fog node resources, thereby resulting in low event processing efficiency. Compared with the prior art, the beneficial effects of the blockchain-based fog node allocation device provided by the present application are the same as the beneficial effects of the blockchain-based fog node allocation method provided by the above embodiment, and the other technical features of the blockchain-based fog node allocation device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.

[0134] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0135] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0136] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the blockchain-based fog node allocation method in the above-mentioned embodiment.

[0137] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0138] The above-mentioned computer-readable storage medium may be included in the blockchain-based fog node allocation device; or it may exist independently without being assembled into the blockchain-based fog node allocation device.

[0139] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the blockchain-based fog node allocation device, the blockchain-based fog node allocation device: collects event information and builds a data load based on the event information; sends the data load to the fog node, and the fog node packages the data load to obtain a data block, and sends the data block to the blockchain, and the cloud controller allocates the edge intelligent device to the fog node based on the blockchain to obtain an allocation result, and broadcasts the allocation result through the blockchain.

[0140] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0141] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0142] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0143] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned blockchain-based fog node allocation method, which can solve the technical problem that the increase in the number of edge devices and the increase in the amount of calculations cause the unbalanced consumption of fog node resources, thereby resulting in low event processing efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the blockchain-based fog node allocation method provided in the above-mentioned embodiment, and will not be repeated here.

[0144] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned blockchain-based fog node allocation method.

[0145] The computer program product provided by the present application can solve the technical problem that the increase in the number of edge devices and the amount of computing result in unbalanced resource consumption of fog nodes, thereby leading to low event processing efficiency. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the blockchain-based fog node allocation method provided in the above embodiment, which will not be repeated here.

[0146] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A fog node allocation method based on blockchain, It is characterized in that The method is applied to an edge intelligent device, and the method comprises: Collecting event information and building a data payload based on the event information; The data load is sent to the fog node, the fog node packages the data load to obtain a data block, and the data block is sent to the blockchain. The cloud controller allocates the edge intelligent device to the fog node based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain.

2. The method according to claim 1, It is characterized in that The step of collecting event information and constructing a data load based on the event information includes: If the device type of the edge intelligent device is a collector, after collecting the environmental information, the event information is output based on the environmental information, and according to the event information, the data load is output through the fog node identifier, the cluster identifier, and the member identifier of the edge intelligent device; If the device type of the edge intelligent device is a reactor, event information is output based on the executed operations and device status of the edge intelligent device, and according to the event information, a first data payload is output through a fog node identifier, a cluster identifier, and a member identifier of the edge intelligent device.

3. The method according to claim 2, It is characterized in that Before the step of collecting event information and constructing a data load based on the event information, the method further includes: Based on the function of the edge intelligent device, the edge intelligent device is classified to obtain a device type, where the device type includes one or more of a collector and a reactor; Receive a member identifier, a cluster identifier, and a fog node identifier obtained by the cloud controller identification, wherein the member identifier is obtained by the cloud controller identifying the edge smart device according to the public key of the edge smart device, the cluster identifier is obtained by the cloud controller performing cluster identification on the edge smart device, and the fog node identifier is obtained by the cloud control system connecting the edge smart device to the fog node.

4. A fog node allocation method based on blockchain, It is characterized in that The method is applied to a fog node, and the method comprises: Receive data payload sent by edge smart devices; The data load is packaged to obtain a data block, and the data block is sent to the blockchain. The cloud controller allocates fog nodes to the edge intelligent device based on the blockchain, obtains an allocation result, and broadcasts the allocation result through the blockchain.

5. The method according to claim 4, It is characterized in that The step of packaging the data payload to obtain a data block and sending the data block to the blockchain includes: Performing authorization verification on the edge intelligent device based on the data load to obtain a verification result; If the verification result is passed, the data payload is packaged to obtain a data block; The data block is sent to the blockchain.

6. A fog node allocation method based on blockchain, It is characterized in that The method is applied to a cloud controller, and the method comprises: After the edge intelligent device collects event information, it constructs a data payload based on the event information and sends the data payload to the fog node. The fog node packages the data payload into data blocks and sends the data blocks to the blockchain. The edge intelligent device is allocated fog nodes according to the blockchain to obtain an allocation result, and the allocation result is broadcasted through the blockchain.

7. The method according to claim 6, It is characterized in that The steps of allocating fog nodes to edge intelligent devices according to the blockchain, obtaining an allocation result, and broadcasting the allocation result through the blockchain include: Based on the blockchain, analyzing resource consumption of at least one fog node by using the deep learning model to obtain a first analysis result; Based on the blockchain, analyzing the relative distance between at least one fog node and the edge intelligent device through the deep learning model to obtain a second analysis result; Selecting the optimal fog node based on the first analysis and the second analysis results, and generating a selection message; The selection message is sent to the optimal fog node, and after the optimal fog node calculates a random number, an allocation result is output based on the random number, and the allocation result is sent to the blockchain; The allocation result is broadcasted via the blockchain.

8. A fog node allocation device based on blockchain, It is characterized in that The device is applied to an edge intelligent device, and the device includes: A construction module, used to collect event information and construct a data load based on the event information; The allocation module is used to send the data load to the fog node, the fog node packages the data load to obtain a data block, and sends the data block to the blockchain. The cloud controller allocates the edge intelligent device to the fog node based on the blockchain to obtain an allocation result, and broadcasts the allocation result through the blockchain.

9. A fog node allocation device based on blockchain, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the blockchain-based fog node allocation method as described in any one of claims 1 to 7.

10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the blockchain-based fog node allocation method as described in any one of claims 1 to 7 are implemented.

11. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the blockchain-based fog node allocation method as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for establishing smart contract microservice model based on fog calculation

    CN108833161A

  • Fog network unloading decision and resource allocation method based on block chain technology

    CN111770073A

  • Fog node scheduling method and device, computer equipment and storage medium

    CN112073542A

  • Task scheduling method for starting double block chains in cloud and mist collaborative environment

    CN115442370A

  • Computing task fog-fog-cloud optimization method under intelligent power grid cloud edge cooperation mechanism

    CN117608806A