Inter-node data communication method and system based on edge computing framework
Patent Information
- Application Number
- CN202211651560.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2042-12-21
AI Technical Summary
[0003]现有物联网解决方案大多专注于边缘设备与云端之间的数据交互,难以在节点之间灵活地实现数据的订阅与推送服务
[0071] The present invention provides a method and system for inter-node data communication based on an edge computing framework, comprising: a first edge node obtaining subscription information of a second edge node as a data subscriber from the cloud; the second edge node obtaining address information of the first edge node as a data pusher from the cloud; when the second edge node moves into the communication coverage area of the first edge node, the data communication component of the second edge node sending online information to the first edge node according to the address information; when the first edge node receives the online information, the first edge node obtaining telemetry data corresponding to the subscription information from the pending data topic of the local message queue telemetry transmission (MQTT); and the data communication component of the first edge node directly pushing the telemetry data corresponding to the subscription information to the second edge node. Under cloud management, the data subscription and push service between the first and second edge nodes is realized, which can not only effectively alleviate the pressure of cloud data processing, but also reduce data transmission redundancy and reduce latency; when a new edge node is connected to the cloud, under cloud management, the data subscription and push service can be quickly realized, that is, it has flexible scalability of subscription and push.
Smart Images

Figure CN116156002B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet of Things (IoT) technology, specifically to a method and system for inter-node data communication based on an edge computing framework. Background Technology
[0002] With the vigorous development of technologies related to the Internet of Things (IoT) industry chain, the integration of IoT with traditional industries has become an inevitable path and effective means for industrial upgrading and transformation. As IoT continues to integrate and innovate with traditional industries, the number of network edge devices is constantly increasing, leading to a growing demand for network resources. Limited by the capacity of network bandwidth, traditional cloud-based centralized processing methods are insufficient to meet the needs of massive numbers of edge devices. To address this network resource demand problem, edge computing technology has been introduced. Edge computing refers to providing the nearest service to the object or data source, with applications initiated on edge devices to generate faster network service responses. The widespread application of edge computing technology in IoT application scenarios has effectively solved the network resource demand problem.
[0003] Most existing IoT solutions focus on data interaction between edge devices and the cloud, making it difficult to flexibly implement data subscription and push services between nodes. Summary of the Invention
[0004] This invention provides a method and system for inter-node data communication based on an edge computing framework, which enables data subscription and push services between nodes.
[0005] In a first aspect, embodiments of the present invention provide a method for inter-node data communication based on an edge computing framework, comprising:
[0006] The first edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the first edge node;
[0007] The first edge node obtains subscription information from the cloud from the second edge node, which is the data subscriber;
[0008] The second edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the second edge node;
[0009] The second edge node obtains the address information of the first edge node, which is the data pusher, from the cloud;
[0010] When the second edge node moves into the communication coverage area of the first edge node, the data communication component of the second edge node sends online information to the first edge node according to the address information;
[0011] When the first edge node receives online information, it retrieves the telemetry data corresponding to the subscription information from the data topic to be distributed in the local Message Queuing Telemetry Transport (MQTT).
[0012] The data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node.
[0013] In one embodiment, the method further includes:
[0014] When the network between the first edge node and the second edge node is interrupted, the health check component of the first edge node detects the network interruption and removes the online information of the second edge node;
[0015] The edge routing component of the first edge node caches the telemetry data that needs to be pushed to the second edge node locally;
[0016] When the network between the first edge node and the second edge node is restored, the health check component of the first edge node detects the network restoration and identifies the second edge node as online.
[0017] The edge routing component of the first edge node distributes the locally cached telemetry data that needs to be pushed to the second edge node to the MQTT topic for inter-node communication;
[0018] The data communication component of the first edge node obtains telemetry data from the MQTT topic for inter-node communication and pushes the obtained telemetry data to the second edge node.
[0019] In one embodiment, the first edge node accesses the cloud based on the cloud's service orchestration and metadata configuration for the first edge node, including:
[0020] The cloud configures the metadata of the first edge node, which includes device protocols, connection information, device telemetry points, and telemetry data distribution settings.
[0021] Cloud-based orchestration of protocol parsing components corresponding to the device protocols running on the first edge node;
[0022] The data communication component of the first edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic;
[0023] The edge routing component of the first edge node distributes metadata from the local MQTT topic to the metadata management component;
[0024] The metadata management component of the first edge node stores metadata;
[0025] The protocol parsing component of the first edge node reads the connection information from the metadata management component, communicates with the device telemetry point according to the connection information, obtains telemetry data, and publishes the obtained telemetry data to the local MQTT pending data topic;
[0026] The edge routing component of the first edge node distributes data to the corresponding MQTT topic based on the telemetry data distribution settings;
[0027] The data communication component of the first edge node retrieves telemetry data from the MQTT topic and pushes it.
[0028] In one embodiment, the second edge node accesses the cloud based on the cloud's service orchestration and metadata configuration for the second edge node, including:
[0029] The metadata of the second edge node is configured in the cloud. The metadata includes application algorithm components and subscription information for subscribing to telemetry data of the first edge node.
[0030] Cloud orchestration of application algorithm components running on second edge nodes;
[0031] The data communication component of the second edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic;
[0032] The edge routing component of the second edge node distributes metadata from the local MQTT topic to the metadata management component;
[0033] The metadata management component of the second edge node stores metadata.
[0034] In one embodiment, the online information includes the identification information of the second edge node. Before the data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node, the method further includes:
[0035] Match the identifier information of the second edge node with the whitelist of the first edge node;
[0036] If the match is successful, the data communication component of the first edge node will directly push the telemetry data corresponding to the subscription information to the second edge node;
[0037] If a match fails, the network connection between the first edge node and the second edge node is disconnected.
[0038] Secondly, embodiments of the present invention provide a node-to-node data communication system based on an edge computing framework, including at least one first edge node as a data pusher, at least one second edge node as a data subscriber, and a cloud for managing the first and second edge nodes;
[0039] The first edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the first edge node;
[0040] The first edge node obtains subscription information from the cloud from the second edge node, which is the data subscriber;
[0041] The second edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the second edge node;
[0042] The second edge node obtains the address information of the first edge node, which is the data pusher, from the cloud;
[0043] When the second edge node moves into the communication coverage area of the first edge node, the data communication component of the second edge node sends online information to the first edge node according to the address information;
[0044] When the first edge node receives online information, the first edge node obtains the telemetry data corresponding to the subscription information from the pending data topic of the MQTT telemetry transmission in the local message queue.
[0045] The data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node.
[0046] In one embodiment,
[0047] When the network between the first edge node and the second edge node is interrupted, the health check component of the first edge node detects the network interruption and removes the online information of the second edge node;
[0048] The edge routing component of the first edge node caches the telemetry data that needs to be pushed to the second edge node locally;
[0049] When the network between the first edge node and the second edge node is restored, the health check component of the first edge node detects the network restoration and identifies the second edge node as online.
[0050] The edge routing component of the first edge node distributes the locally cached telemetry data that needs to be pushed to the second edge node to the MQTT topic for inter-node communication;
[0051] The data communication component of the first edge node obtains telemetry data from the MQTT topic for inter-node communication and pushes the obtained telemetry data to the second edge node.
[0052] In one embodiment, the first edge node accesses the cloud based on the cloud's service orchestration and metadata configuration for the first edge node, including:
[0053] The cloud configures the metadata of the first edge node, which includes device protocols, connection information, device telemetry points, and telemetry data distribution settings.
[0054] Cloud-based orchestration of protocol parsing components corresponding to the device protocols running on the first edge node;
[0055] The data communication component of the first edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic;
[0056] The edge routing component of the first edge node distributes metadata from the local MQTT topic to the metadata management component;
[0057] The metadata management component of the first edge node stores metadata;
[0058] The protocol parsing component of the first edge node reads the connection information from the metadata management component, communicates with the device telemetry point according to the connection information, obtains telemetry data, and publishes the obtained telemetry data to the local MQTT pending data topic;
[0059] The edge routing component of the first edge node distributes data to the corresponding MQTT topic based on the telemetry data distribution settings;
[0060] The data communication component of the first edge node retrieves telemetry data from the MQTT topic and pushes it.
[0061] In one embodiment, the second edge node accesses the cloud based on the cloud's service orchestration and metadata configuration for the second edge node, including:
[0062] The metadata of the second edge node is configured in the cloud. The metadata includes application algorithm components and subscription information for subscribing to telemetry data of the first edge node.
[0063] Cloud orchestration of application algorithm components running on second edge nodes;
[0064] The data communication component of the second edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic;
[0065] The edge routing component of the second edge node distributes metadata from the local MQTT topic to the metadata management component;
[0066] The metadata management component of the second edge node stores metadata.
[0067] In one embodiment, the online information includes the identification information of the second edge node. Before the data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node, the method further includes:
[0068] Match the identifier information of the second edge node with the whitelist of the first edge node;
[0069] If the match is successful, the data communication component of the first edge node will directly push the telemetry data corresponding to the subscription information to the second edge node;
[0070] If a match fails, the network connection between the first edge node and the second edge node is disconnected.
[0071] The present invention provides a method and system for inter-node data communication based on an edge computing framework, comprising: a first edge node obtaining subscription information of a second edge node as a data subscriber from the cloud; the second edge node obtaining address information of the first edge node as a data pusher from the cloud; when the second edge node moves into the communication coverage area of the first edge node, the data communication component of the second edge node sending online information to the first edge node according to the address information; when the first edge node receives the online information, the first edge node obtaining telemetry data corresponding to the subscription information from the pending data topic of the local message queue telemetry transmission (MQTT); and the data communication component of the first edge node directly pushing the telemetry data corresponding to the subscription information to the second edge node. Under cloud management, the data subscription and push service between the first and second edge nodes is realized, which can not only effectively alleviate the pressure of cloud data processing, but also reduce data transmission redundancy and reduce latency; when a new edge node is connected to the cloud, under cloud management, the data subscription and push service can be quickly realized, that is, it has flexible scalability of subscription and push. Attached Figure Description
[0072] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0073] Figure 1 A flowchart illustrating a node-to-node data communication method based on an edge computing framework, as provided in an embodiment of the present invention;
[0074] Figure 2 A flowchart of a node-to-node data communication method based on an edge computing framework, provided in another embodiment of the present invention;
[0075] Figure 3 This is a schematic diagram of an inter-node data communication system based on an edge computing framework, provided in an embodiment of the present invention.
[0076] The accompanying drawings have illustrated specific embodiments of the invention, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the invention in any way, but rather to illustrate the concept of the invention to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0077] The present invention will now be described in further detail with reference to specific embodiments and accompanying drawings. Similar elements in different embodiments are referred to by associated similar element reference numerals. In the following embodiments, many details are described to facilitate a better understanding of this application. However, those skilled in the art will readily recognize that some features may be omitted in different situations, or may be replaced by other elements, materials, or methods. In some cases, certain operations related to this application are not shown or described in the specification. This is to avoid obscuring the core parts of this application with excessive description. For those skilled in the art, detailed description of these related operations is not necessary; they can fully understand the related operations based on the description in the specification and general technical knowledge in the art.
[0078] Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can be rearranged or adjusted in a manner obvious to those skilled in the art. Therefore, the various orders in the specification and drawings are only for the clear description of a particular embodiment and do not imply a necessary order, unless otherwise stated that a particular order must be followed.
[0079] The serial numbers assigned to components in this document, such as "first" and "second," are used only to distinguish the described objects and have no sequential or technical meaning. The terms "connection" and "linkage" used in this application, unless otherwise specified, include both direct and indirect connections (linkages).
[0080] In one possible application scenario of this invention, the first edge node can be, for example, an IoT edge gateway, which is responsible for collecting telemetry data (such as temperature data collected by a temperature sensor, pressure data collected by a pressure sensor, etc.) from multiple telemetry devices and pushing it according to the telemetry data distribution settings; the second edge node can be, for example, a mobile inspection device, which is carried by staff and obtains data from the first edge node when it enters the communication coverage area of the first edge node; the cloud can be a central server, providing access and management, rule engine and other functions for a large number of edge nodes, and is responsible for the service orchestration, device connection configuration, telemetry data distribution and subscription functions of the edge nodes.
[0081] In this embodiment of the invention, the edge node is a service platform built close to the network edge of the user, providing storage, computing, and network resources. It offloads some critical business applications to the edge of the access network to reduce latency losses caused by network transmission and multi-level forwarding. The edge node in this embodiment is built on an edge computing framework, providing a runtime environment for microservices such as protocol parsing and edge intelligent applications. Specifically, the edge computing framework deployed in the edge node may include: a Docker runtime environment and MQTT Broker, metadata management components, edge routing components, data communication components, health check components, local storage components, and protocol parsing components.
[0082] The metadata management component manages the node's metadata, responsible for storing and retrieving metadata from a lightweight database. This metadata primarily includes node application information, device telemetry information, and communication security information.
[0083] The edge routing component distributes the data received by the framework to the corresponding MQTT topics for use by different components or applications. The data received by the framework primarily comes from: resource update data from the IoT cloud, device telemetry data received by the local protocol parsing component, data generated by locally loaded edge applications, data pushed from remote edge nodes, and status changes of edge nodes and devices.
[0084] The data communication component is responsible for interacting with the IoT cloud, supporting functions such as synchronizing cloud resource updates, and reporting changes in the status of edge hosts and devices; it is also responsible for pushing telemetry data subscribed to by other edge nodes.
[0085] The health check component is responsible for health checks on node components and network connections.
[0086] The protocol parsing component is responsible for reading device metadata, communicating and interacting with the device, and pushing telemetry data.
[0087] Example 1
[0088] Figure 1 This is a flowchart illustrating a node-to-node data communication method based on an edge computing framework, as provided in an embodiment of the present invention. Figure 1 As shown, the inter-node data communication method based on an edge computing framework provided in this embodiment may include:
[0089] S101. The first edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the first edge node.
[0090] In one optional implementation, the first edge node's access to the cloud, based on the cloud's service orchestration and metadata configuration for the first edge node, may specifically include:
[0091] The cloud configures the metadata of the first edge node, which includes device protocols, connection information, device telemetry points, and telemetry data distribution settings; it may also include communication security information such as communication keys, as well as configuration information distributed to the cloud.
[0092] Cloud-based orchestration of protocol parsing components corresponding to the device protocols running on the first edge node;
[0093] The data communication component of the first edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic;
[0094] The edge routing component of the first edge node distributes metadata from the local MQTT topic to the metadata management component;
[0095] The metadata management component of the first edge node stores metadata;
[0096] The protocol parsing component of the first edge node reads the connection information from the metadata management component, communicates with the device telemetry point according to the connection information, obtains telemetry data, and publishes the obtained telemetry data to the local MQTT pending data topic;
[0097] The edge routing component of the first edge node distributes data to the corresponding MQTT topic based on the telemetry data distribution settings;
[0098] The data communication component of the first edge node obtains telemetry data from the MQTT topic and pushes it. For example, it can push telemetry data to the MQTT in the cloud based on the configuration information distributed to the cloud.
[0099] S102, The first edge node obtains the subscription information of the second edge node, which is a data subscriber, from the cloud.
[0100] The cloud can also configure subscription information for the first edge node. When the second edge node subscribes to the telemetry data of the first edge node, the first edge node can obtain the subscription information of the second edge node as a data subscriber from the cloud. The subscription information may include, for example, the identification information of the second edge node and the type of telemetry data subscribed to.
[0101] S103. The second edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the second edge node.
[0102] In one optional implementation, the second edge node's access to the cloud, based on the cloud's service orchestration and metadata configuration for the second edge node, may specifically include:
[0103] The metadata of the second edge node is configured in the cloud. The metadata includes application algorithm components and subscription information for subscribing to telemetry data of the first edge node.
[0104] Cloud orchestration of application algorithm components running on second edge nodes;
[0105] The data communication component of the second edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic;
[0106] The edge routing component of the second edge node distributes metadata from the local MQTT topic to the metadata management component;
[0107] The metadata management component of the second edge node stores metadata.
[0108] S104. The second edge node obtains the address information of the first edge node, which is the data pusher, from the cloud.
[0109] The cloud can also configure the address information of the data pusher for the second edge node. The second edge node can obtain the address information of the first edge node, which is the data pusher, from the cloud so as to obtain the subscribed data based on the address information.
[0110] S105. When the second edge node moves into the communication coverage area of the first edge node, the data communication component of the second edge node sends online information to the first edge node according to the address information.
[0111] When the movable second edge node moves into the communication coverage area of the first edge node, the data communication component of the second edge node can send online information to the first edge node according to the address information, notifying the first edge node to prepare for data reception.
[0112] S106. When the first edge node receives online information, the first edge node obtains the telemetry data corresponding to the subscription information from the pending data topic of the local message queue telemetry transmission MQTT.
[0113] The first edge node synchronously updates its telemetry data distribution configuration metadata from the cloud. Its latest telemetry data is then published to the local MQTT's pending distribution data topic. When the first edge node receives online information from a data subscriber, its edge routing component, based on the latest telemetry data distribution settings and the second edge node's online information, retrieves the telemetry data corresponding to the subscription information from the local MQTT's pending distribution data topic. This retrieved telemetry data is then distributed to the MQTT topic for inter-node communication.
[0114] S107. The data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node.
[0115] The data communication component of the first edge node obtains the telemetry data corresponding to the subscription information from the MQTT topic of inter-node communication and pushes it to the MQTT topic of the second edge node; the edge routing component of the second edge node distributes the data to the application algorithm component through the MQTT topic.
[0116] This embodiment provides a node-to-node data communication method based on an edge computing framework. A first edge node obtains subscription information from a second edge node (as a data subscriber) from the cloud; the second edge node obtains the address information of the first edge node (as a data pusher) from the cloud; when the second edge node moves into the communication coverage area of the first edge node, its data communication component sends online information to the first edge node based on the address information; when the first edge node receives the online information, it retrieves the telemetry data corresponding to the subscription information from the pending data topic of the local message queue telemetry transmission (MQTT); the first edge node's data communication component directly pushes the telemetry data corresponding to the subscription information to the second edge node. Under cloud management, data subscription and push services between the first and second edge nodes are realized, effectively alleviating the pressure on cloud data processing, reducing data transmission redundancy, and lowering latency. When a new edge node connects to the cloud, data subscription and push services can be quickly implemented under cloud management, demonstrating flexible scalability for subscription and push.
[0117] Example 2
[0118] Figure 2 This is a flowchart illustrating a node-to-node data communication method based on an edge computing framework, as provided in another embodiment of the present invention. It should be noted that due to the mobility of the second edge node, it may move out of the communication coverage area of the first edge node, or the wireless communication network between the first and second edge nodes may fail. These situations will lead to network interruption between the first and second edge nodes. To improve the reliability of data subscription and push services between the first and second edge nodes, such as... Figure 2 As shown, the inter-node data communication method based on an edge computing framework provided in this embodiment, in Figure 1 Based on the illustrated embodiment, it may also include:
[0119] S201. When the network between the first edge node and the second edge node is interrupted, the health check component of the first edge node detects the network interruption and removes the online information of the second edge node.
[0120] Network interruption may be due to the second edge node moving out of the communication coverage area of the first edge node, or it may be due to a failure in the wireless communication network between the first and second edge nodes. This embodiment does not limit the cause of network interruption. When the health check component responsible for node components and network connection health checks detects a network interruption, it removes the online information of the second edge node.
[0121] S202, The edge routing component of the first edge node caches the telemetry data that needs to be pushed to the second edge node locally.
[0122] Due to a network outage, the first edge node is unable to push subscribed telemetry data to the second edge node. To ensure data integrity and improve the reliability of data subscription and push services, in this embodiment, the edge routing component of the first edge node can cache the telemetry data that needs to be pushed to the second edge node locally.
[0123] It is understandable that the local cache resources of the first edge node are limited. In order to improve the utilization of cache resources, only the telemetry data within the most recent preset time period can be cached, such as the telemetry data within the most recent 24 hours; or a preset size of cache resources can be reserved for each data subscription edge node, and when the cached data exceeds the preset size, the oldest telemetry data is discarded.
[0124] S203. When the network between the first edge node and the second edge node is restored, the health check component of the first edge node detects the network restoration and identifies the second edge node as online.
[0125] When the second edge node moves back into the communication coverage area of the first edge node, or when the wireless communication network failure between the first and second edge nodes is resolved, the network between the first and second edge nodes will be restored. This embodiment does not limit the reasons for network restoration. When the health check component responsible for node components and network connection health checks detects network restoration, it indicates that the second edge node is online.
[0126] S204. The edge routing component of the first edge node distributes the locally cached telemetry data that needs to be pushed to the second edge node to the MQTT topic for inter-node communication.
[0127] S205, The data communication component of the first edge node obtains telemetry data from the MQTT topic of inter-node communication and pushes the obtained telemetry data to the second edge node.
[0128] The inter-node data communication method based on the edge computing framework provided in this embodiment, based on the above embodiment, further caches the telemetry data that needs to be pushed to the second edge node locally when the network between the first edge node and the second edge node is interrupted. When the network between the first edge node and the second edge node is restored, the data is retrieved from the local cache and pushed to the second edge node. The local cache enables the resumption of transmission after disconnection, which improves the reliability of data subscription and push services between the first edge node and the second edge node.
[0129] Example 3
[0130] Based on any of the above embodiments, to further improve the security of data subscription and push services, the inter-node data communication method based on an edge computing framework provided in this embodiment verifies the identity information of the data subscriber before pushing data. Pushing data only to legitimate users effectively prevents malicious users from stealing data, improving data security and privacy. Specifically, the online information includes the identification information of the second edge node. Before the data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node, the method further includes: matching the identification information of the second edge node with the whitelist of the first edge node; if the match is successful, the data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node; if the match fails, the network connection between the first edge node and the second edge node is disconnected.
[0131] Example 4
[0132] Figure 3 This is a schematic diagram of an inter-node data communication system based on an edge computing framework, provided in an embodiment of the present invention. Figure 3 As shown, the inter-node data communication system based on the edge computing framework provided in this embodiment includes at least one first edge node 301 as a data pusher, at least one second edge node 302 as a data subscriber, and a cloud 303 for managing the first edge node and the second edge node.
[0133] The first edge node 301 connects to the cloud 303 based on the service orchestration and metadata configuration of the cloud 303. Specifically, the cloud configures the metadata of the first edge node, including device protocols, connection information, device telemetry points, and telemetry data distribution settings. The cloud orchestrates the protocol parsing component corresponding to the device protocol running on the first edge node. The data communication component of the first edge node synchronizes the cloud metadata and publishes the metadata to the local MQTT topic. The edge routing component of the first edge node distributes the metadata from the local MQTT topic to the metadata management component. The metadata management component of the first edge node saves the metadata. The protocol parsing component of the first edge node reads the connection information from the metadata management component, communicates with the device telemetry points according to the connection information, obtains telemetry data, and publishes the obtained telemetry data to the local MQTT topic to be distributed. The edge routing component of the first edge node distributes the data to the corresponding MQTT topic according to the telemetry data distribution settings. The data communication component of the first edge node obtains the telemetry data from the MQTT topic and pushes it.
[0134] The first edge node 301 obtains the subscription information of the second edge node 302, which is a data subscriber, from the cloud 303;
[0135] The second edge node 302 accesses the cloud 303 based on the service orchestration and metadata configuration of the cloud 303. Specifically, the cloud configures the metadata of the second edge node, which includes application algorithm components and subscription information for subscribing to telemetry data from the first edge node. The cloud orchestrates the second edge node to run the application algorithm components. The data communication component of the second edge node synchronizes the cloud metadata and publishes the metadata to the local MQTT topic. The edge routing component of the second edge node distributes the metadata from the local MQTT topic to the metadata management component. The metadata management component of the second edge node stores the metadata.
[0136] The second edge node 302 obtains the address information of the first edge node 301, which is the data pusher, from the cloud 303;
[0137] When the second edge node 302 moves into the communication coverage area of the first edge node 301, the data communication component of the second edge node 302 sends online information to the first edge node 301 according to the address information;
[0138] When the first edge node 301 receives online information, the first edge node 301 obtains the telemetry data corresponding to the subscription information from the pending data topic of the MQTT telemetry transmission in the local message queue.
[0139] The data communication component of the first edge node 301 directly pushes the telemetry data corresponding to the subscription information to the second edge node 302.
[0140] The inter-node data communication system based on an edge computing framework provided in this embodiment is
[0141] Example 5
[0142] In one optional implementation, when the network between the first edge node and the second edge node is interrupted, the health check component of the first edge node detects the network interruption and removes the online information of the second edge node;
[0143] The edge routing component of the first edge node caches the telemetry data that needs to be pushed to the second edge node locally;
[0144] When the network between the first edge node and the second edge node is restored, the health check component of the first edge node detects the network restoration and identifies the second edge node as online.
[0145] The edge routing component of the first edge node distributes the locally cached telemetry data that needs to be pushed to the second edge node to the MQTT topic for inter-node communication;
[0146] The data communication component of the first edge node obtains telemetry data from the MQTT topic for inter-node communication and pushes the obtained telemetry data to the second edge node.
[0147] Example 6
[0148] In one optional implementation, the online information includes the identification information of the second edge node, and the data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node. The method further includes:
[0149] Match the identifier information of the second edge node with the whitelist of the first edge node;
[0150] If the match is successful, the data communication component of the first edge node will directly push the telemetry data corresponding to the subscription information to the second edge node;
[0151] If a match fails, the network connection between the first edge node and the second edge node is disconnected.
[0152] This invention also provides a computer-readable storage medium storing a computer program thereon, which is executed by a processor to implement the technical solutions of any of the above method embodiments.
[0153] The various embodiments in this disclosure are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.
[0154] The scope of protection of this disclosure is not limited to the embodiments described above. Obviously, those skilled in the art can make various modifications and variations to this disclosure without departing from its scope and spirit. If such modifications and variations fall within the scope of the claims of this disclosure and their equivalents, then the intent of this disclosure also includes such modifications and variations.
Claims
1. A method for inter-node data communication based on an edge computing framework, characterized in that, include: The first edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the first edge node; The first edge node obtains subscription information from the cloud from the second edge node, which is the data subscriber; The second edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the second edge node; The second edge node obtains the address information of the first edge node, which is the data pusher, from the cloud; When the second edge node moves into the communication coverage area of the first edge node, the data communication component of the second edge node sends online information to the first edge node according to the address information; When the first edge node receives the online information, the first edge node obtains the telemetry data corresponding to the subscription information from the undistributed data topic of the local message queue telemetry transmission MQTT. The data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node.
2. The method according to claim 1, characterized in that, The method further includes: When the network between the first edge node and the second edge node is interrupted, the health check component of the first edge node detects the network interruption and removes the online information of the second edge node; The edge routing component of the first edge node caches the telemetry data that needs to be pushed to the second edge node locally; When the network between the first edge node and the second edge node is restored, the health check component of the first edge node detects the network restoration and identifies the second edge node as online. The edge routing component of the first edge node distributes the locally cached telemetry data that needs to be pushed to the second edge node to the MQTT topic for inter-node communication; The data communication component of the first edge node obtains telemetry data from the MQTT topic of inter-node communication and pushes the obtained telemetry data to the second edge node.
3. The method according to claim 1, characterized in that, The first edge node accesses the cloud based on the cloud's service orchestration and metadata configuration, including: The cloud configures the metadata of the first edge node, including device protocol, connection information, device telemetry points, and telemetry data distribution settings; The cloud orchestrates the first edge node to run the protocol parsing component corresponding to the device protocol; The data communication component of the first edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic; The edge routing component of the first edge node distributes metadata from the local MQTT topic to the metadata management component; The metadata management component of the first edge node stores metadata; The protocol parsing component of the first edge node reads the connection information from the metadata management component, communicates with the device telemetry point according to the connection information, obtains telemetry data, and publishes the obtained telemetry data to the local MQTT data topic to be distributed. The edge routing component of the first edge node distributes data to the corresponding MQTT topic according to the telemetry data distribution settings; The data communication component of the first edge node obtains telemetry data from the MQTT topic and pushes it.
4. The method according to claim 1, characterized in that, The second edge node connects to the cloud based on the cloud's service orchestration and metadata configuration, including: The cloud configures the metadata of the second edge node, which includes application algorithm components and subscription information for subscribing to the telemetry data of the first edge node; The cloud orchestrates the application algorithm components running on the second edge node; The data communication component of the second edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic; The edge routing component of the second edge node distributes metadata from the local MQTT topic to the metadata management component; The metadata management component of the second edge node stores metadata.
5. The method according to any one of claims 1-4, characterized in that, The online information includes the identification information of the second edge node. Before the data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node, the method further includes: The identification information of the second edge node is matched with the whitelist of the first edge node; If the match is successful, the data communication component of the first edge node will directly push the telemetry data corresponding to the subscription information to the second edge node; If a match fails, the network connection between the first edge node and the second edge node is disconnected.
6. A node-to-node data communication system based on an edge computing framework, characterized in that, It includes at least one first edge node as a data pusher, at least one second edge node as a data subscriber, and a cloud for managing the first edge node and the second edge node; The first edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the first edge node; The first edge node obtains subscription information from the cloud from the second edge node, which is the data subscriber; The second edge node connects to the cloud based on the cloud's service orchestration and metadata configuration for the second edge node; The second edge node obtains the address information of the first edge node, which is the data pusher, from the cloud; When the second edge node moves into the communication coverage area of the first edge node, the data communication component of the second edge node sends online information to the first edge node according to the address information; When the first edge node receives the online information, the first edge node obtains the telemetry data corresponding to the subscription information from the undistributed data topic of the local message queue telemetry transmission MQTT. The data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node.
7. The system according to claim 6, characterized in that, When the network between the first edge node and the second edge node is interrupted, the health check component of the first edge node detects the network interruption and removes the online information of the second edge node; The edge routing component of the first edge node caches the telemetry data that needs to be pushed to the second edge node locally; When the network between the first edge node and the second edge node is restored, the health check component of the first edge node detects the network restoration and identifies the second edge node as online. The edge routing component of the first edge node distributes the locally cached telemetry data that needs to be pushed to the second edge node to the MQTT topic for inter-node communication; The data communication component of the first edge node obtains telemetry data from the MQTT topic of inter-node communication and pushes the obtained telemetry data to the second edge node.
8. The system according to claim 6, characterized in that, The first edge node accesses the cloud based on the cloud's service orchestration and metadata configuration, including: The cloud configures the metadata of the first edge node, including device protocol, connection information, device telemetry points, and telemetry data distribution settings; The cloud orchestrates the first edge node to run the protocol parsing component corresponding to the device protocol; The data communication component of the first edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic; The edge routing component of the first edge node distributes metadata from the local MQTT topic to the metadata management component; The metadata management component of the first edge node stores metadata; The protocol parsing component of the first edge node reads the connection information from the metadata management component, communicates with the device telemetry point according to the connection information, obtains telemetry data, and publishes the obtained telemetry data to the local MQTT data topic to be distributed. The edge routing component of the first edge node distributes data to the corresponding MQTT topic according to the telemetry data distribution settings; The data communication component of the first edge node obtains telemetry data from the MQTT topic and pushes it.
9. The system according to claim 6, characterized in that, The second edge node connects to the cloud based on the cloud's service orchestration and metadata configuration, including: The cloud configures the metadata of the second edge node, which includes application algorithm components and subscription information for subscribing to the telemetry data of the first edge node; The cloud orchestrates the application algorithm components running on the second edge node; The data communication component of the second edge node synchronizes cloud metadata and publishes the metadata to the local MQTT topic; The edge routing component of the second edge node distributes metadata from the local MQTT topic to the metadata management component; The metadata management component of the second edge node stores metadata.
10. The system according to claim 6, characterized in that, The online information includes the identification information of the second edge node. Before the data communication component of the first edge node directly pushes the telemetry data corresponding to the subscription information to the second edge node, the system also includes: The identification information of the second edge node is matched with the whitelist of the first edge node; If the match is successful, the data communication component of the first edge node will directly push the telemetry data corresponding to the subscription information to the second edge node; If a match fails, the network connection between the first edge node and the second edge node is disconnected.
Citation Information
Patent Citations
Cloud service-based message transmission system
CN109151043A
Method and device for obtaining edge service
CN113840293A