Blockchain-based fog node allocation method, apparatus, device, medium, and product
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA MOBILE ZIJIN INNOVATION INST CO LTD
- Filing Date
- 2024-09-18
- Publication Date
- 2026-06-30
AI Technical Summary
As the number of edge devices and the amount of computation increase, the resource consumption of fog nodes becomes unbalanced, resulting in low event processing efficiency.
Data payloads are constructed by collecting event information, packaged and sent to fog nodes, and then sent to the blockchain. The cloud controller allocates fog nodes based on the blockchain and broadcasts the allocation results through the blockchain. Combined with a deep learning model, the resource consumption and distance of fog nodes are analyzed to select the optimal fog node for allocation.
It improves the allocation efficiency of fog nodes, solves the problem of unbalanced resource consumption, and enhances event processing efficiency.
Smart Images

Figure CN119052244B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of blockchain technology, and in particular to a method, apparatus, device, medium, and product for allocating fog nodes based on blockchain. Background Technology
[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. Massive amounts of data have been generated in widely distributed mobile terminals and IoT devices. Existing technologies use edge computing to provide corresponding services and computing, avoiding communication delays. At the same time, with the booming development of artificial intelligence (AI) applications, the combination of edge computing and artificial intelligence has created edge intelligence, which can better respond to environmental changes. In addition, in order to reduce the pressure on the cloud computing environment, existing technologies also introduce numerous decentralized central nodes, namely fog nodes, between the edge computing center and the cloud computing center.
[0003] However, to alleviate the limitations of cloud computing itself, edge intelligence brings artificial intelligence to the vicinity of network edge devices and clusters these devices according to their type, location, or specific characteristics. Since the driving force for clustering edge devices is to manage devices effectively and utilize limited resources, most clustering work in the past 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 in response to various events has not been valued or protected. For example, when operational or device failures or performance degradation events occur, one of the traditional methods to track historical events is to analyze large system logs collected by all edge devices. This method is prone to malicious data tampering. On the other hand, edge intelligent clusters use fog nodes to maintain edge devices within their range. As the number of edge devices and the amount of computing power increase, there will be problems of unbalanced and inefficient resource consumption of fog nodes.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is 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 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.
[0006] To achieve the above objectives, this application proposes a blockchain-based fog node allocation method, applied to edge intelligent devices, the method comprising:
[0007] Collect event information and construct a data payload based on the event information;
[0008] The data payload is sent to the fog node, which packages the data payload into a data block and sends the data block to the blockchain. The cloud controller allocates fog nodes to the edge smart device 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, then after collecting environmental information, it outputs event information based on the environmental information, and outputs data payload through the fog node identifier, cluster identifier and member identifier of the edge intelligent device according to the event information;
[0011] If the device type of the edge intelligent device is a reactor, then based on the executed operations and device status of the edge intelligent device, event information is output, 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.
[0012] In one embodiment, prior to the steps of collecting event information and constructing a data payload based on the event information, the method further includes:
[0013] Based on the functions of the edge intelligent devices, the edge intelligent devices are classified to obtain device types, which include one or more of collectors and reactors.
[0014] The cloud controller receives a member identifier, a cluster identifier, and a fog node identifier. The member identifier is obtained by the cloud controller based on 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. The fog node identifier is obtained by the cloud control system connecting the edge intelligent device to a fog node.
[0015] To achieve the above objectives, this application also proposes a blockchain-based fog node allocation method, which is applied to fog nodes and includes:
[0016] Receive data payloads sent by edge intelligent devices;
[0017] The data payload is packaged into data blocks, which are then sent to the blockchain. The cloud controller allocates fog nodes to the edge smart devices based on the blockchain, obtains the allocation results, and broadcasts the allocation results through the blockchain.
[0018] In one embodiment, the step of packaging the data payload into data blocks and sending the data blocks to the blockchain includes:
[0019] The edge intelligent device is authorized and verified based on the data load to obtain the verification result;
[0020] If the verification result is successful, the data payload is packaged to obtain a data block;
[0021] The data block is sent to the blockchain.
[0022] To achieve the above objectives, this application also proposes a blockchain-based fog node allocation method, which is applied to a cloud controller and includes:
[0023] After collecting event information, the edge intelligent device 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.
[0024] Fog nodes are allocated to edge smart devices based on the blockchain, the allocation results are obtained, and the allocation results are broadcast through the blockchain.
[0025] In one 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:
[0026] Based on the blockchain, the resource consumption of at least one fog node is analyzed using the deep learning model to obtain a first analysis result;
[0027] Based on the blockchain, the relative distance between at least one fog node and the edge intelligent device is analyzed using the deep learning model to obtain a second analysis result;
[0028] The optimal fog node is selected by combining the results of the first and second analyses, and a selection message is generated.
[0029] The selection message is sent to the optimal fog node, which calculates a random number, outputs the allocation result based on the random number, and sends the allocation result to the blockchain.
[0030] The allocation results are broadcast through the blockchain.
[0031] Furthermore, to achieve the above objectives, this 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, the edge intelligent cluster system including edge intelligent devices, and the device includes:
[0032] A construction module is used to collect event information and construct a data payload based on the event information;
[0033] The allocation module is used to send the data payload to the fog nodes, where the fog nodes package the data payload into data blocks and send the data blocks to the blockchain. The cloud controller allocates fog nodes to the edge smart device based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain.
[0034] Furthermore, to achieve the above objectives, this application also proposes a blockchain-based fog node allocation device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the blockchain-based fog node allocation method described above.
[0035] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the blockchain-based fog node allocation method described above.
[0036] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the blockchain-based fog node allocation method described above.
[0037] One or more technical solutions proposed in this application have at least the following technical effects:
[0038] This application proposes a blockchain-based fog node allocation method, apparatus, device, and product. It collects event information and constructs a data payload based on this information. The data payload is sent to fog nodes, which package it into data blocks and send these blocks to the blockchain. A cloud controller then allocates fog nodes to edge intelligent devices based on the blockchain, obtaining allocation results, which are then broadcast through the blockchain. This process, involving edge intelligent devices collecting event information, constructing data payloads based on these events, sending the data payloads to fog nodes, packaging the data payloads, sending them to the blockchain, and finally, the cloud controller allocating fog nodes to edge intelligent devices based on the blockchain and broadcasting the allocation results, solves the problem of unbalanced fog node resource consumption and low event processing efficiency caused by an increase in the number of edge devices and computational load, thus improving the efficiency of fog node allocation. Attached Figure Description
[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a flowchart illustrating an embodiment of the blockchain-based fog node allocation method of this application.
[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 diagram illustrates the data load involved in the blockchain-based fog node allocation method of this application.
[0044] Figure 4 This is a schematic diagram illustrating the workflow of the edge intelligent cluster involved in the blockchain-based fog node allocation method of this application;
[0045] Figure 5 This is a flowchart illustrating Embodiment 2 of the blockchain-based fog node allocation method of this application.
[0046] Figure 6This is a schematic diagram illustrating the fog node blockchain construction method based on blockchain in this application;
[0047] Figure 7 This is a flowchart illustrating Embodiment 3 of the blockchain-based fog node allocation method of this application;
[0048] Figure 8 This is a schematic diagram of the module structure of the blockchain-based fog node allocation device according to an embodiment of this application;
[0049] Figure 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 this application embodiment.
[0050] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0051] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0052] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0053] The main solution of this application embodiment is as follows: 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 a data load is output through the fog node identifier, cluster identifier, and member identifier of the edge intelligent device according to the event information; 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 a first data load is output through the fog node identifier, cluster identifier, and member identifier of the edge intelligent device according to the event information. Based on the function of the edge intelligent device, the edge intelligent device is classified to obtain device types, which include one or more of collectors and reactors; the member identifier, cluster identifier, and fog node identifier obtained by the cloud controller are received, whereby the member identifier is obtained by the cloud controller based on 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 a fog node. The system receives data payloads sent by edge intelligent devices; packages the data payloads into data blocks and sends the data blocks to the blockchain. The cloud controller allocates fog nodes to the edge intelligent devices based on the blockchain, obtains allocation results, and broadcasts the allocation results through the blockchain. The system also performs authorization verification on the edge intelligent devices based on the data payloads, obtaining verification results. If the verification result is successful, the data payloads are packaged into data blocks and sent to the blockchain. Furthermore, the system collects event information, constructs data payloads based on the event information, and sends the data payloads to fog nodes. The fog nodes package the data payloads into data blocks and send the data blocks to the blockchain. Finally, the system allocates fog nodes to the edge intelligent devices according to the blockchain, obtains allocation results, and broadcasts the allocation results through the blockchain. Based on the blockchain, the resource consumption of at least one fog node is analyzed using 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 using the deep learning model to obtain a second analysis result; combining the first and second analysis results, an optimal fog node is selected, and a selection message is generated; the selection message is sent to the optimal fog node, which calculates a random number, outputs an allocation result based on the random number, and sends the allocation result to the blockchain; the allocation result is broadcast through the blockchain.This invention addresses the problem of unbalanced fog node resource consumption and low event processing efficiency caused by the increase in the number of edge devices and computational load. It achieves fog node allocation, improving allocation efficiency. Based on this invention, considering the reality that data generated by edge intelligent devices in response to various events is not given sufficient attention and protection, and that edge intelligent clusters use fog nodes to maintain edge devices within their range, the problem of unbalanced fog node resource consumption and low efficiency arises with the increase in the number of edge devices and computational load, a blockchain-based fog node method is designed. The effectiveness of this blockchain-based fog node method is verified during fog node allocation, and the efficiency of fog node allocation is significantly improved.
[0054] In this embodiment, for ease of description, the following description uses a blockchain-based fog node device as the execution subject.
[0055] Since most intelligence in existing technologies is imposed on cloud servers in centralized systems, edge intelligence brings artificial intelligence to the vicinity of network edge devices to alleviate the limitations of cloud computing itself. To further minimize the energy consumption and network burden of edge devices and reduce system complexity, edge devices are clustered according to device type, location, or specific characteristics. Because the driving force for clustering edge devices is to manage devices effectively and utilize limited resources, most clustering work in the past 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 in response to various events has not been valued and protected. For example, when operational or device failures and performance degradation events occur, one of the traditional methods to track historical events is to analyze large system logs collected by all edge devices. This method is not reliable enough because these system logs are computationally intensive and easily tampered with maliciously. On the other hand, edge intelligent clusters use fog nodes to maintain edge devices within their range. As the number of edge devices and the amount of computation increase, there will be problems of unbalanced and inefficient resource consumption of fog nodes, which will lead to a decrease in the efficiency of edge intelligent devices in processing events.
[0056] This application provides a solution that utilizes blockchain to allocate fog nodes in an edge intelligent cluster system, thereby improving the efficiency of edge intelligent devices in handling events. At the same time, the reasonable allocation of fog nodes can also achieve the rational use of resources and provide users with better services.
[0057] As can be seen from the above embodiments, this application collects event information and constructs a data payload based on the event information; the data payload is sent to fog nodes, where the fog nodes package the data payload into data blocks and send the data blocks to the blockchain. The cloud controller then allocates fog nodes to the edge intelligent devices based on the blockchain, obtains the allocation results, and broadcasts the allocation results through the blockchain. Thus, by collecting event information through edge intelligent devices, constructing a data payload based on the event information, sending the data payload to fog nodes, packaging the data payload, sending it to the blockchain, and finally, the cloud controller allocates fog nodes to the edge intelligent devices based on the blockchain, obtains the allocation results, and broadcasts the allocation results through the blockchain, this solves 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, thereby improving the efficiency of fog node allocation.
[0058] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or fog node allocation device capable of performing the above functions. The following description uses a blockchain-based fog node device as an example to illustrate this embodiment and the subsequent embodiments.
[0059] Based on this, embodiments of this application provide a blockchain-based fog node allocation method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the blockchain-based fog node allocation method of this application.
[0060] In this embodiment, the blockchain-based fog node allocation method is applied to an edge intelligent cluster system, which includes edge intelligent devices. The method includes steps S04 to S06:
[0061] Step S03: Collect event information and construct a data load based on the event information;
[0062] Before the implementation of this embodiment, it should be clear that 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. This has generated massive amounts of data in widely distributed mobile terminals and IoT devices. In the prior art, edge computing is used to provide corresponding services and computing, avoiding communication delays. At the same time, with the booming development of artificial intelligence (AI) applications, the combination of edge computing and artificial intelligence has produced edge intelligence, which can better respond to environmental changes. In addition, in order to reduce the pressure on the cloud computing environment, the prior art also introduces many distributed central nodes, namely fog nodes, between the edge computing center and the cloud computing center.
[0063] However, to alleviate the limitations of cloud computing itself, edge intelligence brings artificial intelligence to the vicinity of network edge devices and clusters these devices according to their type, location, or specific characteristics. Since the driving force for clustering edge devices is to manage devices effectively and utilize limited resources, most clustering work in the past 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 in response to various events has not been valued or protected. For example, when operational or device failures or performance degradation events occur, one of the traditional methods to track historical events is to analyze large system logs collected by all edge devices. This method is prone to malicious data tampering. On the other hand, edge intelligent clusters use fog nodes to maintain edge devices within their range. As the number of edge devices and the amount of computing power increase, there will be problems of unbalanced and inefficient resource consumption of fog nodes.
[0064] Therefore, the architecture of the method described in this embodiment is as follows: Figure 2 As shown, Figure 2 This paper briefly introduces the relationship between edge intelligent devices, edge intelligent clusters, and fog computing environments. In an edge intelligent cluster, the members of a specific cluster—the edge intelligent devices—can be located in different locations and can connect to multiple fog environments. A single edge intelligent device may be a member of multiple edge intelligent clusters. For example, in cluster-1, edge intelligent devices d1, d2, and d3 are within the communication range of fog node Fog1, while edge intelligent devices d3 and d4 are within the communication range of fog node Fog4. 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. Figure 2 The architecture of this embodiment, as described herein, includes at least a cloud controller, which is used to allocate fog nodes for edge intelligent devices to achieve better processing results.
[0065] Having clarified the architecture of the edge intelligence cluster system, the edge intelligence devices in this embodiment collect event information and then construct a data payload based on the event information. Edge intelligence pushes artificial intelligence (AI) algorithms and computing power to the edge devices that generate data, rather than centralizing processing in data centers or the cloud. In edge intelligence, the data payload involves the amount of data that the edge devices need to process and analyze. Since these devices perform data processing locally, the data payload includes real-time data streams, sensor data, and computing tasks.
[0066] Step S04: The data payload is sent to the fog node, which packages the data payload into a data block and sends the data block to the blockchain. The cloud controller allocates fog nodes to the edge smart device based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain.
[0067] After obtaining the data payload, the data payload is sent to the fog node corresponding to the edge intelligent device. The corresponding fog node processes the data payload to obtain a data block, and then uploads the data block to the blockchain. It should be clear that the blockchain includes multiple fog nodes, and the data payload can be processed through multiple fog nodes so that the edge intelligent devices connected to multiple fog nodes can perform event processing.
[0068] In addition, after being uploaded to the blockchain, the fog node resources of edge intelligent devices can be redistributed through the cloud controller to obtain the allocation results. In order to enable numerous fog nodes to know about this situation, the allocation results are also broadcast through the blockchain.
[0069] Specifically, step S03 above, which involves collecting event information and constructing a data payload 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, it outputs event information based on the environmental information, and outputs data load 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, then based on the executed operations and device status of the edge intelligent device, output event information, and according to the event information, output data load through the fog node identifier, cluster identifier and member identifier of the edge intelligent device.
[0072] like Figure 3As shown, the edge intelligent device, acting as a collector, is responsible for gathering information about the surrounding environment and sharing events among other cluster members within the same cluster and nearby fog nodes. Figure 2 Edge device d3 in the cluster will share event information about its surrounding environment with all edge devices in cluster-1, as well as 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. This 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. Figure 3 (a) and (b) show a set of data fields for the data load constructed by the collector and reactor, respectively. In the figures, 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 digest: 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 identifier: 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 unique identifiers to each cluster. For each edge device, the cluster identifier is set to static unless it is manually updated.
[0077] (5) Fog Node Identifier: This is a list of unique identifiers for 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) Events: 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 As shown in (a), in the case of a reactor, this data field mainly contains the operations performed and the current state of the reactor, such as... Figure 3 As shown in (b);
[0079] (7) Related edge devices: Information on 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 exists only in the data load 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 practice, to enable multiple edge intelligent devices to process events, the data payload obtained by the edge intelligent devices is sent to the relevant edge intelligent devices. The relevant edge intelligent devices respond to the data payload and continue to generate data payloads. It should be clear that the edge intelligent devices include multiple collectors and reactors. For example, when one collector senses that the temperature has increased, in order to prevent a fire, another collector, after receiving the information that the temperature has increased, will capture the flames to obtain information on whether a fire has occurred. Then, the information on the temperature increase and the fire will be sent to the reactor, which will take corresponding measures to deal with the fire, such as spraying water.
[0082] Since edge intelligent devices specifically include collectors and reactors, they need to be identified accordingly, such as the identifier of a single device, the identifier of a cluster, and the identifier of a fog node. Therefore, in this embodiment, before step S03, which involves collecting event information and constructing a data load based on the event information, the method further includes:
[0083] Step S01: Based on the functions of the edge intelligent devices, classify the edge intelligent devices to obtain device types, which include one or more of collectors and reactors;
[0084] Step S02: Receive the member identifier, cluster identifier, and fog node identifier obtained by the cloud controller. The member identifier is obtained by the cloud controller based on 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. The fog node identifier is obtained by the cloud control system connecting the edge intelligent device to the fog node.
[0085] Each edge device is equipped with AI-based computing power, which determines when and how to take action, collect data, and share events. These edge intelligent devices are called collectors. Other devices are responsible for reacting to the environment and are called data-driven reactors. For example, in an edge intelligence cluster, to manage energy consumption in a smart building, the on / off state of smart lights might depend on environmental data collected by nearby light and temperature sensors. In this example, the smart lights rely on nearby light and temperature sensors rather than a remote central control center. The intelligence of these edge devices can form an edge intelligence cluster, and therefore, based on their responsibilities, they can be divided into two categories: collectors and reactors. Collectors are primarily responsible for collecting data or information about the surrounding environment. Examples of collectors include temperature sensors, light sensors, solar panels, touch and motion sensors, and CO2 sensors. Reactors are primarily responsible for reacting to the surrounding environment based on information shared by the collectors. Examples of reactors include smart light bulbs, ventilation systems, and room heating systems.
[0086] To facilitate the control of edge intelligent devices, the cloud controller can identify the edge intelligent devices based on 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. Therefore, the edge intelligent devices are represented as clusters to obtain cluster identifiers. Finally, the edge intelligent devices are connected to fog nodes to obtain fog node identifiers of the edge intelligent devices.
[0087] Furthermore, such as Figure 4 As shown, a real-world business scenario is used to illustrate the process, which includes all network operations such as generating data payloads on edge smart devices, building blocks to form a blockchain from fog nodes, and communication between all entities. The specific workflow is as follows:
[0088] First, in a real working environment, when an edge smart device detection event occurs, the event can be triggered based on time or by a change in the environmental state.
[0089] Then, the event triggers a collector that continuously monitors the state of the environment. The corresponding collector collects the environment data and builds a data payload.
[0090] The constructed data payload will then be broadcast to other edge devices and the nearest fog nodes that best meet the requirements;
[0091] Then, after other edge intelligent devices receive the data load, the collector or reactor will extract the event data and react accordingly to the environment or further collect environmental data based on predefined tasks;
[0092] Then, after receiving the same data load, the fog node will determine its source. If the newly received data load comes from the same edge smart device, it will update the latest block in the existing blockchain. If the newly received data load comes from different edge smart devices, it will build a new block and send it to the existing blockchain.
[0093] Finally, the fog node that receives the data payload will calculate the required Nonce. Once this process is complete, the updated blockchain will be broadcast 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 the updated blockchain list.
[0094] As can be clearly seen from the above scheme, this embodiment clusters edge devices with intelligence at its core, allowing network edge devices to share their knowledge and events with other edge devices that have similar and dependent intelligence, or remote fog and cloud servers, working collectively towards a common goal. Furthermore, a blockchain is established within the cluster, leveraging the immutability, decentralization, consensus, and transparency of blockchain technology to ensure that the event history of edge devices is immutable and easily traceable. Data generated during the production process of the edge intelligent cluster is protected from the original device to the server, enabling analysis and investigation of the causes of any abnormal events by tracing the immutable event chain. In addition, deep learning-based technology is used to dynamically and intelligently allocate resource-rich fog nodes to edge intelligent devices for data uploading to the blockchain. Edge intelligent clusters built through this secure and efficient mechanism can be widely applied to establishing transparent and efficient smart cities, smart homes, supply chains, logistics, and other systems.
[0095] This embodiment, through the above-described scheme, specifically collects event information and constructs a data payload based on the event information; the data payload is sent to fog nodes, where the fog nodes package the data payload into data blocks and send the data blocks to the blockchain. The cloud controller then allocates fog nodes to the edge intelligent devices based on the blockchain, obtains the allocation results, and broadcasts the allocation results through the blockchain. Thus, by having edge intelligent devices collect event information, construct a data payload based on the event information, send the data payload to fog nodes, have the fog nodes package the data payload and send it to the blockchain, and finally, have the cloud controller allocate fog nodes to the edge intelligent devices based on the blockchain, obtain the allocation results, and broadcast the allocation results through the blockchain, this solution addresses 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, thereby improving the efficiency of fog node allocation.
[0096] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 5 This application also proposes a blockchain-based fog node allocation method, which is applied to fog nodes and includes steps S05-S06:
[0097] Step S05: Receive the data payload sent by the edge intelligent device;
[0098] Step S06: Package the data payload to obtain data blocks, and send the data blocks to the blockchain. The cloud controller allocates fog nodes to the edge smart device based on the blockchain, obtains the allocation results, and broadcasts the allocation results through the blockchain.
[0099] After constructing the data payload, the edge intelligent device shares it with nearby fog nodes for processing. The steps for block construction in the edge intelligent cluster are as follows:
[0100] First, for the collector device, on each event triggered by time or other device events, the edge intelligent device builds a data payload, then broadcasts the newly built data payload to other relevant edge intelligent devices and dynamically uploads it to the nearest fog node that best meets the requirements;
[0101] Then, the fog node verifies whether the data payload originates from an authorized edge smart device. Only after successful verification is the data payload packaged. Therefore, in step S06 above, the steps of packaging the data payload to obtain a data block and sending the data block to the blockchain include:
[0102] Step S061: Perform authorization verification on the edge intelligent device based on the data load to obtain the verification result;
[0103] Step S062: If the verification result is successful, the data payload is packaged to obtain a data block;
[0104] Step S063: Send the data block to the blockchain.
[0105] Fog nodes check the cluster identifier, collector or reactor identifier, and the summary of the previous block. If the data load comes from the reactor and the data load in the previous block came from the collector, then the data collected in the data load 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, along with the hash of the previous block in the blockchain and the fog node's random number, to package it into a block and add it to the existing blockchain.
[0107] like Figure 6 As shown, Figure 6 It demonstrates a block structure built from fog nodes. Figure 6 The first block, Block t, is constructed using the data payload of collector i, containing a root hash and a Nonce. The root hash of the initial block is an empty value, and the 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 an event from another collector or reactor. Therefore, the data of the first block always comes 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 reactor, the hash of the previous block, and the random number.
[0108] In addition, the Nonce in a block must conform to the format of a predefined cryptographic block hash, which is calculated by 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, through the above-described scheme, specifically receives data payloads sent by edge intelligent devices; packages the data payloads into data blocks, sends the data blocks to the blockchain, and the cloud controller allocates fog nodes to the edge intelligent devices based on the blockchain, obtaining allocation results, and broadcasting the allocation results through the blockchain. Thus, by having edge intelligent devices collect event information, construct data payloads based on the event information, send the data payloads to fog nodes, package the data payloads through the fog nodes, send them to the blockchain, and finally, having the cloud controller allocate fog nodes to the edge intelligent devices based on the blockchain, obtaining allocation results, and broadcasting the allocation results through the blockchain, this solution addresses 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, thereby improving the efficiency of fog node allocation.
[0110] Based on the first and second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description and will not be repeated hereafter. Please refer to [the original text] for further details. Figure 7 This application proposes a blockchain-based fog node allocation method, which is applied to a cloud controller and includes:
[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. The fog node packages the data payload to obtain a data block and sends the data block to the blockchain.
[0112] Step S08: Fog nodes are allocated to edge smart devices according to the blockchain to obtain allocation results, and the allocation results are broadcast through the blockchain.
[0113] It should be clear that the fog nodes in this embodiment introduce numerous distributed central nodes between the edge computing center and the cloud computing center. The fog nodes are responsible for performing complex edge analysis and maintaining all edge intelligent devices within their communication range. The fog computing environment is closer to where data is generated, which can reduce the pressure on the cloud computing environment, improve transmission speed, and reduce latency and response time. However, after processing events, the resource requirements of some edge intelligent devices may increase or decrease. In this case, the cloud controller needs to adjust the resource requirements. Therefore, step S07 in this embodiment, which involves allocating fog nodes to edge intelligent devices according to the blockchain, obtaining the allocation result, and broadcasting the allocation result through the blockchain, includes:
[0114] Step S081: Based on the blockchain, analyze the resource consumption of at least one fog node using the deep learning model to obtain a first analysis result;
[0115] Step S082: Based on the blockchain, the relative distance between at least one fog node and the edge intelligent device is analyzed using the deep learning model to obtain a second analysis result;
[0116] Step S083: Combine the results of the first analysis and the second analysis to select the optimal fog node and generate a selection message;
[0117] Step S084: The selection message is sent to the optimal fog node. After the optimal fog node calculates a random number, it outputs the allocation result based on the random number and sends the allocation result to the blockchain.
[0118] Step S085: Broadcast the allocation result through the blockchain.
[0119] When data blocks have been updated in the blockchain, a deep learning model is used to determine the most suitable fog node to calculate the Nonce random number and broadcast the result to other fog nodes. This not only solves the potential conflicts 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] Furthermore, any fog node may receive multiple consecutive data payloads from the same edge device, meaning that the collector / reactor identifier of a newly received data payload may be the same as the identifier in the latest block in the blockchain.
[0121] In the above scenarios, 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 it to the event data field of the latest block in the blockchain. If the device is a reactor, the collected data and event information from the newly received data payload will be extracted and appended to the corresponding data field of the latest block in the blockchain. After the append operation, the Nonce will be recalculated by the same fog node. Once this process is complete, 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 broadcast to other fog nodes in the blockchain network. Once the blockchain is published, it will be very difficult for any system or intruder to modify the chain data. In this way, all fog nodes will have the updated blockchain list.
[0123] This embodiment, through the above-described scheme, specifically allocates fog nodes to edge intelligent devices based on the blockchain, obtains the allocation results, and broadcasts the allocation results through the blockchain. Thus, edge intelligent devices collect event information, then construct a data payload based on the event information, and send the data payload to fog nodes. The fog nodes package the data payload and send it to the blockchain. Finally, the cloud controller allocates fog nodes to the edge intelligent devices based on the blockchain, obtains the allocation results, and broadcasts the allocation results through the blockchain. This solves 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, thereby improving the efficiency of fog node allocation.
[0124] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the blockchain-based fog node allocation method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0125] This application also provides a blockchain-based fog node allocation device, please refer to... Figure 8 The blockchain-based fog node allocation device is applied to an edge intelligent cluster system, which includes edge intelligent devices. The device includes:
[0126] The 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 payload to the fog node, the fog node packages the data payload into a data block, and sends the data block to the blockchain. The cloud controller allocates fog nodes to the edge smart device 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 in this application, employing the blockchain-based fog node allocation method described in the above embodiments, can solve the technical problem of unbalanced fog node resource consumption caused by the increase in the number of edge devices and the increase in computing power, resulting in low event processing efficiency. Compared with the prior art, the beneficial effects of the blockchain-based fog node allocation device provided in this application are the same as those of the blockchain-based fog node allocation method provided in the above embodiments, and other technical features in the blockchain-based fog node allocation device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0129] This application provides a blockchain-based fog node allocation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to execute the blockchain-based fog node allocation method in Embodiment 1 above.
[0130] The following is for reference. Figure 9 The diagram illustrates a structural schematic of a blockchain-based fog node allocation device suitable for implementing embodiments of this application. The blockchain-based fog node allocation device in these embodiments may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 9The blockchain-based fog node allocation device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0131] like Figure 9 As shown, a blockchain-based fog node allocation device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for the operation of the blockchain-based fog node allocation device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the blockchain-based fog node allocation device to communicate wirelessly or wiredly with other devices to exchange data. Although a blockchain-based fog node allocation device with various systems is shown in the figure, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.
[0132] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0133] The blockchain-based fog node allocation device provided in this application, employing the blockchain-based fog node allocation method described in the above embodiments, can solve the technical problem of unbalanced fog node resource consumption caused by the increase in the number of edge devices and the increase in computing power, resulting in low event processing efficiency. Compared with the prior art, the beneficial effects of the blockchain-based fog node allocation device provided in this application are the same as those of the blockchain-based fog node allocation method provided in the above embodiments, and other technical features of this blockchain-based fog node allocation device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0134] It should be understood that the various parts disclosed in this application can be implemented using 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 suitable manner in one or more embodiments or examples.
[0135] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0136] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the blockchain-based fog node allocation method in the above embodiments.
[0137] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. 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 conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0138] The aforementioned computer-readable storage medium may be included in a blockchain-based fog node allocation device; or it may exist independently and not assembled into a blockchain-based fog node allocation device.
[0139] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by a blockchain-based fog node allocation device, the blockchain-based fog node allocation device: collects event information and constructs a data payload based on the event information; sends the data payload to a fog node, whereby the fog node packages the data payload into data blocks and sends the data blocks to the blockchain; the cloud controller allocates fog nodes to the edge intelligent device based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain.
[0140] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0141] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0142] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0143] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned blockchain-based fog node allocation method. This addresses the technical problem of unbalanced fog node resource consumption and consequently low event processing efficiency caused by the increase in the number of edge devices and computational load. Compared to existing technologies, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the blockchain-based fog node allocation method provided in the above embodiments, and will not be elaborated upon here.
[0144] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the blockchain-based fog node allocation method described above.
[0145] The computer program product provided in this application can solve the technical problem of unbalanced fog node resource consumption caused by the increase in the number of edge devices and the increase in computing power, resulting in low event processing efficiency. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the blockchain-based fog node allocation method provided in the above embodiments, and will not be repeated here.
[0146] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A fog node allocation method based on blockchain, characterized in that, The method is applied to edge intelligent devices, and the method includes: Collect event information and construct a data payload based on the event information, wherein the data payload includes a previous block digest, timestamp, collector identifier and / or reactor identifier, cluster identifier, fog node identifier, event, related edge device, and collected data; 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, then after collecting environmental information, it outputs event information based on the environmental information, and outputs data payload through the fog node identifier, cluster identifier and member identifier of the edge intelligent device according to the event information; If the device type of the edge intelligent device is a reactor, then based on the executed operations and device status of the edge intelligent device, event information is output, 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. The data payload is sent to the fog node, which packages the data payload into a data block and sends the data block to the blockchain. The cloud controller allocates fog nodes to the edge smart device based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain.
2. The method as described in claim 1, 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 functions of the edge intelligent devices, the edge intelligent devices are classified to obtain device types, which include one or more of collectors and reactors. The cloud controller receives a member identifier, a cluster identifier, and a fog node identifier. The member identifier is obtained by the cloud controller based on 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. The fog node identifier is obtained by the cloud control system connecting the edge intelligent device to a fog node.
3. A fog node allocation method based on blockchain, characterized in that, The method is applied to fog nodes, and the method includes: Receive data payload sent by edge intelligent devices, wherein the data payload includes a previous block digest, timestamp, collector identifier and / or reactor identifier, cluster identifier, fog node identifier, event, related edge device, and collected data; Prior to the step of receiving the data payload sent by the edge intelligent device, the method further includes: If the device type of the edge intelligent device is a collector, then after collecting environmental information, the edge intelligent device outputs event information based on the environmental information, and outputs data payload through the fog node identifier, cluster identifier and member identifier of the edge intelligent device according to the event information; If the device type of the edge intelligent device is a reactor, then the edge intelligent device outputs event information based on the operations executed by the edge intelligent device and the device status, and outputs the first data load according to the event information through the fog node identifier, cluster identifier and member identifier of the edge intelligent device; The data payload is packaged into data blocks, which are then sent to the blockchain. The cloud controller allocates fog nodes to the edge smart devices based on the blockchain, obtains the allocation results, and broadcasts the allocation results through the blockchain.
4. The method as described in claim 3, characterized in that, The step of packaging the data payload into a data block and sending the data block to the blockchain includes: The edge intelligent device is authorized and verified based on the data load to obtain the verification result; If the verification result is successful, the data payload is packaged to obtain a data block; The data block is sent to the blockchain.
5. A fog node allocation method based on blockchain, characterized in that, The method is applied to a cloud controller, and the method includes: After collecting event information, the edge intelligent device 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. The data payload includes a previous block digest, timestamp, collector identifier and / or reactor identifier, cluster identifier, fog node identifier, event, related edge device, and collected data. The step of constructing a data payload based on the event information collected by the edge intelligent device includes: If the device type of the edge intelligent device is a collector, then after collecting environmental information, the edge intelligent device outputs event information based on the environmental information, and outputs data payload through the fog node identifier, cluster identifier and member identifier of the edge intelligent device according to the event information; If the device type of the edge intelligent device is a reactor, then the edge intelligent device outputs event information based on the operations executed by the edge intelligent device and the device status, and outputs the first data load according to the event information through the fog node identifier, cluster identifier and member identifier of the edge intelligent device; Fog nodes are allocated to edge smart devices based on the blockchain, the allocation results are obtained, and the allocation results are broadcast through the blockchain.
6. The method as described in claim 5, characterized in that, 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: Based on the blockchain, the resource consumption of at least one fog node is analyzed using a deep learning model to obtain the first analysis result; Based on the blockchain, the relative distance between at least one fog node and the edge intelligent device is analyzed using the deep learning model to obtain a second analysis result; The optimal fog node is selected by combining the results of the first and second analyses, and a selection message is generated. The selection message is sent to the optimal fog node, which calculates a random number, outputs the allocation result based on the random number, and sends the allocation result to the blockchain. The allocation results are broadcast through the blockchain.
7. A fog node allocation device based on blockchain, characterized in that, The device is used in edge intelligent devices, and the device includes: A construction module is used to collect event information and construct a data payload based on the event information. The data payload includes a previous block summary, timestamp, collector identifier and / or reactor identifier, cluster identifier, fog node identifier, event, related edge device, and collected data. The construction module is further configured to, if the device type of the edge intelligent device is a collector, output event information based on the environmental information after collecting environmental information, and output data load through the fog node identifier, cluster identifier and member identifier of the edge intelligent device according to the event information; If the device type of the edge intelligent device is a reactor, then based on the executed operations and device status of the edge intelligent device, event information is output, 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. The allocation module is used to send the data payload to the fog nodes, where the fog nodes package the data payload into data blocks and send the data blocks to the blockchain. The cloud controller allocates fog nodes to the edge smart device based on the blockchain, obtains the allocation result, and broadcasts the allocation result through the blockchain.
8. A blockchain-based fog node allocation device, characterized in that, The device includes: a memory, a processor, and a computer program stored in 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 in any one of claims 1 to 6.
9. A storage medium, 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 a processor, it implements the steps of the blockchain-based fog node allocation method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the blockchain-based fog node allocation method as described in any one of claims 1 to 6.