An intelligent internet of things gateway system and method supporting edge computing deployment
By designing an intelligent IoT gateway system that supports edge computing deployment, the problems of IoT gateways being unable to form networks and having a single deployment mode are solved. It achieves adaptability to various application scenarios and flexible integration of data processing, providing high flexibility and security.
Patent Information
- Application Number
- CN202311540986.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2026-07-24
- Estimated Expiration
- 2043-11-20
AI Technical Summary
Existing IoT gateways cannot achieve networking between IoT gateways, cannot implement different gateway deployment modes, cannot support edge computing modes for IoT functions, and have limited functionality and cannot be deployed flexibly.
Design an intelligent IoT gateway system that supports edge computing deployment, including a demand input module, a status acquisition module, a deployment processing module, a southbound interface proxy layer, and a gateway layer. The system deploys edge computing functions on the gateway through an edge deployment location decision algorithm, providing multiple deployment methods and flexible access methods to achieve flexible integration of data transmission and processing.
It achieves broad adaptability of IoT gateways, supports multiple application scenarios, provides end-to-end data processing capabilities, ensures data independence and security, supports unified access of heterogeneous devices, provides multiple deployment modes, and realizes flexible integration of data transmission and processing.
Smart Images

Figure CN117424810B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet of Things (IoT) application technology, and in particular to an intelligent IoT gateway system and method that supports edge computing deployment. Background Technology
[0002] The Internet of Things (IoT) aims to achieve the interconnection of everything, and IoT gateways are key devices for realizing this vision. Different IoT application scenarios require different IoT gateways to enable the development of various IoT applications. Currently, different IoT gateways have been designed for different application scenarios, such as gateways for smart agriculture, gateways for industrial application environments, and smart IoT gateways based on SDN technology.
[0003] These IoT gateways primarily perform functions such as data acquisition, data transmission, protocol conversion, and management control, and are designed with multiple application modules in a hierarchical manner. However, these IoT gateways suffer from the following problems: they cannot achieve networking between IoT gateways, they cannot support different gateway deployment modes, and they cannot support edge computing modes for IoT functions. Summary of the Invention
[0004] Given that existing IoT gateways mainly focus on providing access to various heterogeneous devices, their functions are often relatively simple, and they cannot flexibly deploy applications dynamically to the edge gateway, this invention is proposed.
[0005] Therefore, the problem to be solved by this invention is how to design an IoT gateway with richer functions, greater flexibility, and adaptive dynamic deployment of edge computing capabilities to meet the needs of different application scenarios and promote the development and application of IoT technology.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution:
[0007] In a first aspect, embodiments of the present invention provide an intelligent IoT gateway system supporting edge computing deployment, comprising an interconnection module for transmitting information between a demand input module, a status acquisition module, and a deployment processing module; a demand input module for acquiring deployment requirements for edge computing functions from users or IoT applications and transmitting these requirements to the deployment processing module via the interconnection module; a status acquisition module for monitoring and acquiring gateway status information and transmitting this status information to the deployment processing module via the interconnection module; a deployment processing module for receiving the deployment requirements and the status information, executing an intelligent edge deployment location decision algorithm, and deploying edge computing functions on selected gateways based on the decision results of the intelligent edge deployment location decision algorithm; a southbound interface proxy layer for identifying and processing communication between different network devices and transmitting processed data and information to the gateway layer; and a gateway layer for receiving and processing data sent by the southbound interface proxy layer and performing data processing, service management, and / or routing management operations based on the decision results.
[0008] As a preferred embodiment of the intelligent IoT gateway system supporting edge computing deployment described in this invention, the execution of the edge deployment location decision algorithm includes the following: obtaining relevant inputs including the deployed function code f, the required set of sensing resources R = {r1, r2, r3, ...}, the available gateway list GW = {gw1, gw2, gw3, ...}, time constraints (including transmission delay T and processing delay P), geographical location constraints D, and priority parameters α, β, and γ; and calculating the evaluation value Score. i The process involves evaluating how well the gateway meets the functional requirements of the deployment under specific constraints; ranking the gateways from highest to lowest score to identify the gateway that best meets the user's requirements for deployment; and selecting the gateway (GW) based on the ranking results. i The system determines whether the IoT resources provided by the gateway can fully meet the resource requirements of the service function. If they do, it selects this gateway as the deployment gateway, returns it, and terminates the operation. If the requirements cannot be fully met, it selects S1+S2+...+S from the remaining gateways. n =Whether R holds true; if true, then find the condition S1+S2+...+S n =R's several gateways GW i The common ancestor node GWdep is used as the deployment node and returned; otherwise, an empty string is returned.
[0009] As a preferred embodiment of the intelligent IoT gateway system supporting edge computing deployment described in this invention, the evaluation value Score i The specific formula is as follows:
[0010]
[0011] Where α, β, and γ all represent priority parameters, CPU i B represents the CPU capacity of the i-th gateway. i Represents the network bandwidth capacity of the i-th gateway, Distance() represents the distance function, Request Resource This indicates the sensing resources required by the deployed functionality, GW. i Let N represent the i-th gateway and N represent the total number of gateways.
[0012] As a preferred embodiment of the intelligent IoT gateway system supporting edge computing deployment described in this invention, the southbound interface proxy layer includes the following: The southbound interface proxy layer provides multiple deployment methods for gateway access, including internal deployment, dedicated hardware device deployment, and PC deployment; ABOVE analysis is performed based on the actual system situation to select the most suitable deployment method; when the system assessment determines that the current architecture is complex or the processing efficiency is low, the internal deployment method is selected to ensure powerful system functionality and excellent performance while simplifying configuration and management; when the system faces increased security threats, more complex attack behaviors, or more software and hardware vulnerabilities, the dedicated hardware device deployment method is selected to avoid the risk of network attacks and data leakage to the deployed processing module; when the system needs to support diverse services, be compatible with multiple devices, or utilize existing computing resources to process big data, the PC deployment method is selected to achieve data acquisition and gateway communication; the deployment effect is continuously monitored and evaluated after implementation.
[0013] As a preferred embodiment of the intelligent IoT gateway system supporting edge computing deployment described in this invention, the system comprises: an application layer for implementing various IoT application services and interacting with the gateway layer through an interface; a perception layer including multiple sensing devices for collecting external environmental information and transmitting the collected information to the southbound interface proxy layer; the southbound interface proxy layer including an identifier management module, a terminal management module, a status management module, and a configuration management module, wherein the identifier management module provides authentication, the terminal management module verifies the legitimacy of the terminal through the identifier management module, the status management module monitors and manages the operating status of each module, and the configuration management module configures and manages the behavior of each module as needed; and a gateway layer including a data and protocol conversion module, a device management module, a data processing module, a service management module, an intelligent decision management module, a routing management module, a security authentication management module, and an embeddable gateway server module.
[0014] As a preferred embodiment of the intelligent IoT gateway system supporting edge computing deployment described in this invention, the workflow of the southbound interface proxy layer is as follows: The identifier generation module generates a unique identifier when a sensing device connects and stores the generated identifier in the identifier storage module; the terminal management module authenticates the connected sensing device to determine its legitimacy; if authentication is successful, a connection is established between the sensing device and the southbound interface proxy layer, and the device status information is reported upwards through the interface; the sensing device periodically sends heartbeat messages to the southbound interface proxy layer via a heartbeat mechanism, and the status management module receives and obtains the latest status information of the device; when the sensing device starts up, it reads configuration information from the gateway, server, or local storage, and performs corresponding configuration based on the configuration information; the southbound interface proxy layer transmits the received data to the application service of the application layer according to the agreed data format; the application service processes and analyzes the received data and sends instructions to the sensing device to achieve control and management of the sensing device.
[0015] As a preferred embodiment of the intelligent IoT gateway system supporting edge computing deployment described in this invention, the specific process of the deployment processing module is as follows: The server actively collects the dynamic status parameters of the connected gateways and aggregates the dynamic status parameters into a shared status database of the server cluster; based on the static attributes and dynamic status parameters of all gateways, a real-time global network status graph is constructed using relational graph database technology; when a user or application inputs a functional deployment requirement, the required functional attributes, resource requirements, and time constraints are described; based on the user's deployment requirements and global status information, an intelligent edge deployment location decision algorithm is executed to determine the optimal deployment scheme; the server issues a deployment command, the selected gateway downloads and executes the functional code, and provides feedback on the status after deployment is completed.
[0016] Secondly, embodiments of the present invention provide an intelligent IoT gateway method supporting edge computing deployment, comprising: powering on and starting a southbound interface proxy program (SIP) of the southbound interface proxy layer; the SIP automatically scanning the gateway through a configuration file of a configuration management module and connecting to the gateway to read the configuration information of sensing devices; the SIP initializing the access sensing devices according to the configuration information; the SIP sending heartbeat messages to the gateway layer through a status management module, the gateway layer forwarding them to a server program, and the server program generating a data forwarding routing table using the intelligent decision control module of the gateway layer; the sensing devices sending sensing data to the southbound interface proxy program (SIP), the SIP forwarding the data to the gateway layer; the gateway layer processing the data and forwarding it to the IoT application of the application layer according to the routing table information; the IoT application of the application layer sending control commands to the gateway layer, the gateway layer forwarding them according to its own routing information until the access gateway of the target sensing device; and the gateway's SIP forwarding the control commands to the corresponding sensing devices for execution according to the DeviceID and physical interface.
[0017] Thirdly, embodiments of the present invention provide a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program instructions are executed by the processor, they implement the steps of the intelligent Internet of Things gateway system supporting edge computing deployment as described in the first aspect of the present invention.
[0018] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program instructions are executed by a processor, they implement the steps of the intelligent IoT gateway system supporting edge computing deployment as described in the first aspect of the present invention.
[0019] The beneficial effects of this invention are as follows: The gateway of this invention has wide adaptability and can be applied to various application scenarios such as smart factories, smart homes, and smart agriculture, realizing end-to-end capabilities from sensing devices to applications and ensuring data independence and security; it can flexibly deploy functions on gateways of different levels according to needs, providing edge computing capabilities, supporting unified access of heterogeneous devices, providing multiple deployment modes, and offering high flexibility; it dynamically establishes routes between data and applications, realizing flexible integration of data transmission and processing, and achieving loose coupling between IoT applications and between IoT applications and gateways. Attached Figure Description
[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0021] Figure 1 An edge-computing-oriented IoT gateway architecture for intelligent IoT gateway systems that support edge computing deployment.
[0022] Figure 2 The edge deployment process of an intelligent IoT gateway system to support edge computing deployment.
[0023] Figure 3 An edge deployment location decision algorithm for intelligent IoT gateway systems that support edge computing deployment.
[0024] Figure 4 Explanation of edge deployment gateway selection scenarios for intelligent IoT gateway systems that support edge computing deployment.
[0025] Figure 5 Gateway system architecture and deployment mode for intelligent IoT gateway systems that support edge computing deployment.
[0026] Figure 6 The implementation process of an intelligent IoT gateway system to support edge computing deployment.
[0027] Figure 7 A southbound interface system functional module for intelligent IoT gateway systems that support edge computing deployment.
[0028] Figure 8 Intelligent decision-making routing control module for intelligent IoT gateway systems that support edge computing deployment.
[0029] Figure 9 This module sends control commands to IoT applications within an intelligent IoT gateway system that supports edge computing deployment.
[0030] Figure 10 The sensing devices of the intelligent IoT gateway system supporting edge computing deployment send data forwarding modules to applications.
[0031] Figure 11 Real-world application scenarios of IoT gateways to support intelligent IoT gateway systems deployed at the edge computing level. Detailed Implementation
[0032] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0033] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0034] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0035] Example 1
[0036] Reference Figures 1-10 This is the first embodiment of the present invention, which provides an intelligent IoT gateway system supporting edge computing deployment, including:
[0037] Preferred, Figure 1This is an IoT gateway architecture with intelligent edge computing deployment capabilities. The architecture includes a demand input module, a deployment processing module, a status acquisition module, and an interconnection module. The specific implementation process of edge capability deployment is as follows: Figure 2 As shown.
[0038] Specifically, the requirement input module is used to obtain the specific requirements of users or IoT applications (such as service capabilities, types of IoT resources required, location, and response time), and input the requirement information to the deployment processing module; the status acquisition module is used to obtain the status information of gateways in various geographical locations (such as CPU load, memory consumption, bandwidth consumption, geographical location, and latency), and transmit the status information to the deployment processing module through the interconnection module.
[0039] Furthermore, the deployment processing module includes multiple servers that share their respective gateway status information to obtain global status information of the entire IoT network; it executes an intelligent edge deployment location decision algorithm based on the user's deployment requirements and global status information to obtain the optimal deployment location information; and based on the optimal deployment location, it deploys the corresponding service capabilities on the selected gateway and starts execution.
[0040] Furthermore, the execution of the intelligent edge deployment location decision algorithm includes the following: obtaining relevant inputs including the deployed function code f, the required set of sensing resources R = {r1, r2, r3, ...}, the list of available gateways GW = {gw1, gw2, gw3, ...}, time constraints (including transmission delay T and processing delay P, where transmission delay can be represented by bandwidth and processing delay by CPU processing power), geographical location constraints D, and priority parameters α, β, and γ; and calculating the evaluation value Score. i The following formula is used to evaluate how well the gateway meets the functional requirements under specific constraints:
[0041]
[0042] Where α, β, and γ all represent priority parameters, CPU i B represents the CPU capacity of the i-th gateway. i Represents the network bandwidth capacity of the i-th gateway, Distance() represents the distance function, Request Resource This indicates the sensing resources required by the deployed functionality, GW. i Let N represent the i-th gateway and N represent the total number of gateways.
[0043] It should be noted that the priority parameters satisfy α+β+γ=1 (these three parameters can be set according to the user's needs and the importance of each indicator). α represents the importance of CPU capability, β represents the importance of bandwidth, and γ represents the importance of the distance between the IoT resources required by the function and the gateway.
[0044] Furthermore, gateways are sorted from highest to lowest based on their ratings to find the gateway that best meets the user's requirements (the optimal gateway) for deployment; the gateway (GW) is then selected based on the sorting results. i The system determines whether the IoT resources provided by the gateway can fully meet the resource requirements of the service function. If they can, this gateway is selected as the deployment gateway and returned, while the operation ends. If the requirements cannot be fully met, S1+S2+...+S is selected from the remaining gateways. n =Whether R is true (i.e., whether the sum of resources owned by some of the gateways can meet the demand for resources R); if true, then find the resource S1+S2+...+S that satisfies the condition. n =R's several gateways GW i The common ancestor node GWdep is used as the deployment node and returned; otherwise, an empty string is returned.
[0045] It should be noted that the process involves evaluating the score of each gateway and selecting the gateway with the highest score as the initial choice. A comparison is made between the application requirements and the gateway's available sensing resources to determine if the gateway meets the application requirements. If the gateway's resources meet the application requirements, it is directly selected for deployment, and the process ends. If the resources of the gateway with the highest score do not meet the application requirements, it is necessary to check whether other gateways possess the resources that the gateway with the highest score lacks. If no other gateway possesses the required resources, the process ends directly without deployment. If other gateways possess the required resources, the deployment algorithm is used to find the common parent node network of the gateways possessing the resources that the gateway with the highest score lacks.
[0046] Furthermore, such as Figure 4 In the scenario shown, if the resources required for the function are deployed in environments such as GW2, GW3, and GW5, the common ancestor gateway node of these gateways is selected as the service function deployment node. Based on the simplified algorithm, the total transmission of related data in the network can be reduced. When the resources required for the deployed function are deployed in GW2 or GW3, their parent node GW1 is selected as the deployment node. If the required resources only require the data provided by GW5, and GW5 meets the corresponding constraints, then GW5 is selected as the deployment node.
[0047] Preferably, after the intelligent decision-making algorithm returns the deployed nodes, the deployment processing module will add the corresponding routing table information to the selected gateway nodes to realize data forwarding of related resources. The gateway routing table consists of device description, device ID, data source, next-hop address, and validity period. The device description describes the functional information of the access sensing device or gateway, the device ID describes the ID of the sensing device (this information is globally unique), the data source is the port from which the data is input from this gateway, the next-hop address is the address information of the next gateway for data forwarding, and the validity period refers to the effective time of the routing information.
[0048] Furthermore, the gateway implementation includes a southbound interface proxy layer, a gateway layer, an application layer, and a perception layer.
[0049] Specifically, the perception layer is the foundation and starting point of an IoT system. It includes at least one sensing device for collecting information about the external environment. These sensing devices can sense and collect various data and signals from the real world (such as temperature, humidity, light intensity, sound, and images). The main task of the perception layer is to transmit the collected data to the gateway layer for processing and analysis, providing the system with real-time environmental awareness and a data foundation.
[0050] Furthermore, the southbound interface proxy layer provides three flexible deployment methods for gateway access, allowing users to choose and deploy the gateway's hardware and software environment according to their needs. These deployment methods include deploying the southbound interface proxy function inside the gateway (Deployment Method 1), using dedicated hardware devices (Deployment Method 2), and deploying the southbound interface proxy function on a PC (Deployment Method 3). Through these three deployment methods, users can achieve data acquisition from various sensors to meet the needs of different application scenarios. For example, when the gateway is powerful or for ease of operation and management, Deployment Method 1 can be used to achieve terminal data acquisition and control; when secure management and control are required, Deployment Method 2 can be used (Deployment Method 2 uses dedicated hardware devices to achieve secure control of gateway access). Deployment Method 3 can fully utilize existing computing resources (such as PCs, Wi-Fi communication, etc.) to achieve communication between data acquisition and the gateway.
[0051] It should be noted that if the modules are highly coupled, lack consistency and standardization, have unclear responsibilities, or have highly complex dependencies, the architecture is considered complex; if the system performs poorly in terms of performance, response time, throughput, resource consumption, and user experience, it is considered inefficient.
[0052] Preferably, each of these three deployment methods has its own characteristics. Deployment method one integrates the southbound device access function with other functions, which has the advantages of high efficiency and simplified management; deployment method two provides flexibility for the secure access and security management of the IoT gateway, enabling managers to control the access of sensing devices; deployment method three provides flexibility, allowing the southbound interface access module to be deployed remotely via WIFI or Ethernet, enabling the access function to be deployed in areas with harsh environments.
[0053] Furthermore, the southbound interface proxy layer includes an identifier management module, a terminal management module, a status management module, and a configuration management module. The module functions are as follows: Figure 7 As shown.
[0054] Specifically, the identifier management module includes an identifier generation module and an identifier storage module, used to assign and store unique identifiers for various access sensing devices. The identifier generation module uses a specific algorithm to generate unique IDs for the IoT gateway and the devices it manages; the identifier storage module is responsible for storing the generated identifiers and having developers write them into the hardware environment to prevent unauthorized modification and corruption of the ID information.
[0055] Furthermore, for sensor resources, their ID is composed of both the gateway ID and the sensor's own ID. For example, the ID of a temperature and humidity sensor on a ZigBee backplane is GWID+TID or GWID+HID, and the application service can accurately locate a specific resource based on its ID.
[0056] Specifically, the status management module includes a heartbeat management module and a status information maintenance module, which are used to report the status of the access devices to the gateway. The heartbeat management module generates heartbeat messages in the appropriate format according to the connection interface type and sends the heartbeat messages to the gateway periodically; the status information maintenance module is responsible for storing the latest status of the sensing devices (such as start-up, running, stopping, restart, etc.).
[0057] It should be noted that the heartbeat message contains information about the access device itself and its current status. If some protocols (such as ZigBee) have a built-in hardware periodic heartbeat function, the access device will send the heartbeat message directly. If the protocol cannot implement hardware periodic heartbeat (such as ModBus), then the periodic sending of the heartbeat message needs to be implemented through the southbound interface proxy layer.
[0058] Specifically, the configuration management module is used to read configuration information (such as network settings, sensor parameters, data upload frequency, etc.) from the gateway, server, or local device when the sensing device is started, and to configure the relevant parameters of the device. Through the configuration management module, the administrator can flexibly configure the sensing device to meet the requirements of different needs and scenarios. The terminal management module is used to automatically configure the hardware or protocol of the proxy. This module can automatically identify the terminal devices or devices connected to the gateway and automatically configure them according to predefined rules or configuration files.
[0059] The gateway layer includes a data and protocol conversion module, a device management module, a data processing module, a service management module, an intelligent decision management module, a routing management module, a security authentication management module, and an embeddable gateway server module;
[0060] Specifically, the gateway layer includes a data and protocol conversion module, a device management module, a data processing module, a service management module, an intelligent decision management module, a routing management module, a security authentication management module, and an embeddable gateway server module. The data and protocol conversion module converts data formats from different protocols into a unified format and outputs the converted data to the device management module. The device management module manages and controls the lifecycle of access devices. The data processing module processes the data output from the device management module and outputs the processing results to the service management module. The service management module calls the output of the data processing module to monitor, configure, and maintain various services deployed on the gateway. The intelligent decision management module automatically obtains routing information from IoT applications and underlying devices based on the initial data transmission of sensing or control commands, and automatically configures the data flow tables of each IoT gateway to implement routing configuration and forwarding rules for the process of applications sending control commands to underlying sensing devices and the process of underlying devices forwarding data to IoT applications, ensuring that data is transmitted along the expected path.
[0061] The routing management module is used to forward data according to the routing configuration and forwarding rules generated by the intelligent decision management module to ensure that data is transmitted along the expected path; the security authentication module is used to manage the security of data and devices; the embeddable gateway server module embeds multiple interaction interfaces for integration with various services and to achieve interaction with various types of services.
[0062] It's worth noting that the gateway server module offers a variety of interface options, including WebSocket, RESTful, data stream, and publish / subscribe interfaces, providing flexible interface choices for IoT applications to meet the needs of different application scenarios. Through the gateway server module, users can easily integrate and communicate with different services to achieve various functions and applications. This integration capability provides greater flexibility and scalability for the development and deployment of IoT applications.
[0063] Furthermore, the application layer mainly consists of various IoT applications implemented through interfaces, such as smart factory monitoring systems, smart city street light management systems, smart city manhole cover management systems, and digital twin systems in intelligent manufacturing.
[0064] Preferably, the system implementation process includes an initialization phase and a running phase. In the initialization phase, before the program starts, the southbound interface agent program needs to determine the DeviceID (which is globally unique) based on the type of IoT device being connected, and the DeviceID can be written into the agent program or the hardware.
[0065] Specifically, upon power-on, the southbound interface proxy program (SIP) starts. SIP automatically scans for gateways based on its configuration file; if a gateway is found, it automatically connects and reads the configuration information of the sensing device via serial port / network. SIP initializes the connected sensing device based on the configuration information. SIP sends a heartbeat message to the gateway, which forwards it to the server program. The server obtains the device's status information and DeviceID from the heartbeat message and generates a data forwarding routing table using the intelligent decision control module. The sensing device sends sensing data, which SIP forwards to the gateway. The gateway processes the data (e.g., format conversion) and forwards it to the corresponding IoT application based on the routing table information. The IoT application sends control information to the server program, which determines which gateway to send it to by querying the routing table. Upon receiving the control command, the gateway queries its local device routing table, selects the appropriate sensing device, sends the control command, and then sends the control command to SIP, which in turn forwards the control command to the device.
[0066] Preferably, the intelligent routing decision model is as follows: Figure 8 As shown, the Intelligent Decision Control Module (IDCM) is used to generate routing tables and select routes. The IDCM is also used to obtain gateway status information (such as CPU load, network bandwidth consumption, memory usage, network latency, etc.), device information (such as DeviceID, device status, connection interface, etc.) and IoT application information (such as detailed function description, application interface, application protocol used, etc.).
[0067] Furthermore, based on gateway status information, device information, and IoT application information, the IDCM module constructs a server-side application routing table and a gateway-side device routing table. The server-side application routing table includes the device ID, application reference, application interface information, and timestamp. The gateway-side device routing table includes the device ID, interface ID, southbound interface information, and timestamp. The device ID corresponds to the device to which the application's data is sent. The application reference refers to a specific IoT application. The application interface information describes the communication method with the application through which interface. The interface ID information is the physical interface information on the sensing device that communicates with the southbound interface proxy. The southbound interface information includes which gateway and which southbound interface.
[0068] like Figure 9 As shown, the southbound interface proxy supports IoT protocols such as Modbus, ZigBee, and LoRA. When devices connected to these interfaces send data to IoT applications, they first send it to the IoT gateway. The gateway server module then performs data forwarding by checking the gateway routing information. The gateway server queries the routing table based on information such as the device ID, gateway ID, and application reference to obtain forwarding information and forwards this information to the corresponding application.
[0069] like Figure 10 As shown, the IoT application sends control commands to the IoT gateway. The data forwarding module in the gateway server looks up the routing table based on information such as application reference, device ID, and gateway ID to determine the data forwarding target. When control data is forwarded to the last gateway, the gateway queries its local device routing information, determines the forwarding interface type and interface based on the device ID, application reference, and other information, and forwards the control commands to that interface.
[0070] Furthermore, this embodiment also provides an intelligent IoT gateway method supporting edge computing deployment, including: starting the southbound interface proxy program (SIP) upon power-on; automatically scanning the gateway according to the configuration file and connecting to the gateway to read the configuration information of the sensing devices; initializing the connected sensing devices according to the configuration information; sending heartbeat messages to the gateway, which forwards them to the server program; the server program using the intelligent decision control module to generate a data forwarding routing table; the sensing devices sending sensing data, which SIP forwards to the gateway; the gateway processing the data and forwarding it to the corresponding IoT application according to the routing table information; and the IoT application sending control commands, which SIP forwards to the corresponding sensing devices for execution.
[0071] This embodiment also provides a computer device suitable for intelligent IoT gateway systems that support edge computing deployment, including a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to realize the intelligent IoT gateway system supporting edge computing deployment as proposed in the above embodiment.
[0072] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0073] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, it implements an intelligent IoT gateway system that supports edge computing deployment as proposed in the above embodiments.
[0074] In summary, this IoT gateway system offers users greater applicability, flexibility, and scalability through its design that supports multiple application scenarios, provides edge computing capabilities, enables flexible deployment, and allows for loosely coupled application integration. The system can be deployed at the network edge or server side as needed, enabling local computing to provide diverse access modes for heterogeneous terminals and improving the access convenience of IoT terminals. Furthermore, the system achieves loose coupling between applications and the network, obtaining sensor data through an intelligent routing mechanism and forwarding it to different applications, achieving efficient integration and enhancing the system's scalability and adaptability.
[0075] Example 2
[0076] Reference Figure 11 This is the second embodiment of the present invention, which provides an intelligent IoT gateway system that supports edge computing deployment.
[0077] Preferably, Table 1 provides information such as the CPU capacity, bandwidth capacity, and distance (in hop count) of the three gateways to the requested sensor resources, and also provides the evaluation score. iThe calculated score information. If the distance factor is more important than other factors, then the three weighting coefficients are set to 0.2, 0.2, and 0.6 respectively.
[0078] Table 1 Gateway Evaluation Examples
[0079] CPU Bandwidth Distance Score 1 100 300 1 3.71 2 300 200 2 1.93 3 500 200 3 1.37
[0080] Furthermore, as can be seen from Table 1, when distance is the priority factor, gateways with shorter distances have higher evaluation values and can be selected first.
[0081] Furthermore, such as Figure 4 In the scenario shown, if the resources required for a function are deployed in environments such as GW2, GW3, and GW5, the common ancestor gateway node of these gateways is selected as the service function deployment node. This simplifies the algorithm and reduces the total data transmission in the network. When the resources required for the deployed function are deployed in GW2 or GW3, their parent node GW1 can be selected as the deployment node. If the required resources only require data provided by GW5, and GW5 meets the corresponding constraints, then GW5 is selected as the deployment node.
[0082] Preferably, after the intelligent decision-making algorithm returns the deployed nodes, the deployment processing module will add the corresponding routing table information to the selected gateway nodes to realize data forwarding of related resources. The device description in the table describes the functional information of the access sensing device or gateway, and the device ID describes the ID of the sensing device, which is globally unique. The data source is input from any port of this gateway, the next address is the address information of the next gateway for data forwarding, and the validity period refers to the effective time of the routing information.
[0083] Furthermore, according to Figure 4 Taking a scenario as an example, describe the structure of the routing table. Figure 4 In this system, GW2 is responsible for accessing local sensing resources and acquiring sensor data. For example, GW2 connects to a ZigBee module via a serial port to collect local temperature and humidity information, and its routing information is shown in Table 3. GW1 is responsible for forwarding the temperature and humidity data collected by GW2 to GW0, and its routing table information is shown in Table 4.
[0084] Table 3 GW2 Routing Table Information
[0085]
[0086] Table 4 GW1 Routing Table Information
[0087]
[0088] Preferred, Figure 11The diagram presents a practical application scenario for this IoT gateway. The left side of the diagram shows the physical gateway, while the right side shows the connection of the Modbus sensor.
[0089] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. An intelligent IoT gateway system supporting edge computing deployment, characterized in that: include, The interconnection module is used to transmit information between the demand input module, the status acquisition module, and the deployment processing module; The requirement input module is used to obtain the deployment requirements of users or IoT applications for edge computing functions, and transmit the deployment requirements to the deployment processing module through the interconnection module. The status acquisition module is used to monitor and collect the status information of the gateway, and transmit the status information to the deployment processing module through the interconnection module; The deployment processing module is used to receive the deployment requirements and the status information, execute the intelligent edge deployment location decision algorithm, and deploy edge computing functions on the selected gateway according to the decision result of the intelligent edge deployment location decision algorithm. The southbound interface proxy layer is used to identify and process communications between different network devices, and to transmit the processed data and information to the gateway layer. The gateway layer is used to receive and process the data sent by the southbound interface proxy layer, and perform data processing, service management and / or routing management operations based on the decision results; The algorithm for determining the location of intelligent edge deployment includes the following: The relevant inputs include the deployed feature code. Required set of sensory resources Available gateway list Time constraints and geographical location constraints and priority parameters ; By calculating the evaluation value Evaluate the degree to which the gateway meets the functional requirements of the deployment under specific constraints; The gateways are sorted from highest to lowest based on their ratings to find the gateway that best meets the user's requirements for deployment. Select gateway based on sorting results And determine whether the IoT resources provided by the gateway can fully meet the resource requirements of the service functions; If the conditions are met, select this gateway as the deployment gateway, return it, and then terminate the operation. If it cannot be fully satisfied or cannot be satisfied at all, then it will be determined from the remaining gateways. Is it valid? If true, then search for conditions that satisfy the criteria. Several gateways Common ancestor node Returns the node as a deployment node; otherwise, returns an empty string.
2. The intelligent IoT gateway system supporting edge computing deployment as described in claim 1, characterized in that: The evaluation value The specific formula is as follows: in, Both represent priority parameters. Represents the i-th gateway ability, This represents the network bandwidth capacity of the i-th gateway. Represents the distance function. This indicates the sensing resources required by the deployed functionality. This represents the i-th gateway. This indicates the total number of gateways.
3. The intelligent IoT gateway system supporting edge computing deployment as described in claim 1, characterized in that: The southbound interface proxy layer includes the following: The southbound interface proxy layer provides multiple deployment methods for gateway access, including internal deployment, dedicated hardware device deployment, and... Computer deployment; Based on the actual situation of the system Analyze and select the most suitable deployment method; When system assessment determines that the current architecture is complex or inefficient, choose an on-premises deployment approach to ensure powerful system functionality and excellent performance while simplifying configuration and management. When the system faces increasing security threats, more complex attack behaviors, or more software and hardware vulnerabilities, choose a dedicated hardware device deployment method to avoid the risk of network attacks and data leakage to the deployed processing modules; When a system needs to support diverse business operations, be compatible with multiple devices, or utilize existing computing resources to process big data, choose... A computer deployment method is used to enable communication between data acquisition and the gateway; Continuously monitor and evaluate the deployment effect after implementation.
4. The intelligent IoT gateway system supporting edge computing deployment as described in claim 1, characterized in that: It also includes, The application layer is used to implement various IoT application services and interacts with the gateway layer through interfaces; The perception layer includes multiple sensing devices used to collect information about the external environment and transmit the collected information to the southbound interface proxy layer. The southbound interface proxy layer includes an identifier management module, a terminal management module, a status management module, and a configuration management module. The identifier management module is used to provide authentication. The terminal management module verifies the legitimacy of the terminal through the identifier management module. The status management module is used to monitor and manage the operating status of each module. The configuration management module is used to configure and manage the behavior of each module as needed. The gateway layer includes a data and protocol conversion module, a device management module, a data processing module, a service management module, an intelligent decision management module, a routing management module, a security authentication management module, and an embeddable gateway server module.
5. The intelligent IoT gateway system supporting edge computing deployment as described in claim 4, characterized in that: The workflow of the southbound interface proxy layer is as follows: The identifier management module generates a unique identifier when a sensing device is connected and stores the generated identifier in the identifier storage module; The terminal management module verifies the identity of the access sensing devices to determine whether the sensing devices are legitimate. If authentication is successful, the sensing device will establish a connection with the southbound interface proxy layer and report the device status information to the upper layer through the interface. The sensing device periodically sends heartbeat messages to the southbound interface proxy layer through a heartbeat mechanism, and the status management module receives and obtains the latest status information of the device. When the sensing device starts up, it reads configuration information from the gateway, server, or local machine, and performs corresponding configuration based on the configuration information. The southbound interface proxy layer transmits the received data to the application service of the application layer according to the agreed data format. The application service processes and analyzes the received data and sends instructions to the sensing devices to control and manage them.
6. The intelligent IoT gateway system supporting edge computing deployment as described in claim 1, characterized in that: The specific process of the deployment processing module is as follows: The server actively collects the dynamic status parameters of the connected gateways and aggregates these parameters into a shared status database within the server cluster. Based on the static attributes and dynamic status parameters of all gateways, a real-time global network status graph is constructed using relational graph database technology. When users or applications input feature deployment requirements, describe the feature attributes, resource requirements, and time constraints to be deployed. Based on the user's deployment requirements and global status information, an intelligent edge deployment location decision algorithm is executed to determine the optimal deployment scheme; The server issues deployment instructions, the selected gateway downloads and executes the functional code, and returns the status after deployment is complete.
7. A method for an intelligent IoT gateway supporting edge computing deployment, based on the intelligent IoT gateway system supporting edge computing deployment as described in any one of claims 1 to 6, characterized in that: It also includes, Start the southbound interface proxy program of the southbound interface proxy layer upon boot. ; The configuration management module automatically scans the gateway and connects to the gateway to read the configuration information of the sensing device. Initialize the connected sensing devices according to the configuration information; The status management module sends heartbeat messages to the gateway layer, which forwards them to the server program. The server program then uses the intelligent decision control module of the gateway layer to generate a data forwarding routing table. The sensing device sends the sensing data to the southbound interface agent. , Forward the data to the gateway layer; The gateway layer processes the data and forwards it to the IoT application in the application layer according to the routing table information. The IoT application in the application layer sends control commands to the gateway layer, which forwards them according to its own routing information until they reach the access gateway of the target sensing device. gateway according to The physical interface forwards control commands to the corresponding sensing devices for execution.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the intelligent IoT gateway method supporting edge computing deployment as described in claim 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the intelligent IoT gateway method supporting edge computing deployment as described in claim 7.
Citation Information
Patent Citations
Service scheduling deployment method for edge computing node resources of Internet of Things
CN114077485A