An edge computing gateway microservice architecture for ubiquitous heterogeneous access

By designing a microservice architecture on the edge computing gateway, the problem of the lack of edge computing capabilities and complexity of heterogeneous equipment configuration in the existing technology is solved, efficient communication and configuration services between heterogeneous equipment are realized, and the protocol is simplified Adaptation and configuration process.

CN115086403BActive Publication Date: 2024-12-24SHANGHAI INST OF MICROSYSTEM & INFORMATION TECH CHINESE ACAD OF SCI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210453690.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2024-12-24
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

Existing gateways lack edge computing capabilities and are unable to implement protocol adaptation and heterogeneous network device configuration services, resulting in complex communication between heterogeneous devices and difficult to achieve cross-platform configuration.

Method used

A microservice architecture for edge computing gateway for ubiquitous heterogeneous access was designed, and the microservice software architecture was deployed using Docker container technology, including protocol adaptation layer, configuration microservice module, data storage layer, policy execution layer, and policy With the alarm layer and the message publishing layer, protocol adaptation and configuration services are implemented through interface communication and publish/subscribe between microservice units.

Benefits of technology

Simplifies the design of protocol adaptation software, reduces the complexity of heterogeneous device configuration services and the difficulty of cross-platform configuration establishment, realizes real-time data processing and intelligent decision-making on edge computing platforms, and improves communication between heterogeneous devices. Reliability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086403B_ABST
    Figure CN115086403B_ABST
Patent Text Reader

Abstract

The present invention relates to an edge computing gateway microservice architecture for ubiquitous heterogeneous access, including an edge computing gateway, the edge computing gateway has built a microservice software architecture, and is deployed and operated using Docker container technology; the overall software structure of the edge computing gateway includes: a protocol adaptation layer, which is used to parse the received message message, find the priority and data content of the message data according to the parsing result, and complete the conversion of the data format; a configuration microservice module, which is used to decompose the configuration service into a combination of different functional microservice units, and each different functional microservice unit communicates through a given interface, and transmits messages in a publish / subscribe manner. The present invention can realize the functional design and implementation of key modules such as protocol adaptation microservices and heterogeneous network device configuration microservices on the edge computing gateway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of edge computing information technology and Internet of Things communication technology, and in particular to an edge computing gateway microservice architecture for ubiquitous heterogeneous access. Background Art

[0002] The existing gateways are neither integrated with cloud computing nor implement data processing locally. They only implement functions such as data forwarding, protocol conversion, routing configuration, and communication resource configuration. Therefore, the existing gateways do not have edge computing capabilities and are not integrated with cloud computing. The existing gateways are more complex in implementing heterogeneous device communications and providing heterogeneous device configuration services, and there are fewer feasible solutions for providing configuration services for heterogeneous network access. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide an edge computing gateway microservice architecture for ubiquitous heterogeneous access, which can realize the functional design and implementation of key modules such as protocol adaptation microservices and heterogeneous network device configuration microservices on the edge computing gateway.

[0004] The technical solution adopted by the present invention to solve its technical problem is: to provide an edge computing gateway microservice architecture for ubiquitous heterogeneous access, including an edge computing gateway, the edge computing gateway builds a microservice software architecture, and adopts Docker container technology for deployment and operation;

[0005] The overall software structure of the edge computing gateway includes: a protocol adaptation layer, which is used to parse the received message packets, find the priority and data content of the message data according to the parsing results, and complete the data format conversion; a configuration microservice module, which is used to decompose the configuration service into a combination of different functional microservice units. The different functional microservice units communicate with each other through a given interface and transmit messages in a publish / subscribe manner.

[0006] The configuration microservice module includes:

[0007] The unified configuration layer includes a device metadata microservice unit and a microservice unit configuration microservice unit. The device metadata microservice unit is used to provide a device registration function and generate a unique ID corresponding to the device. The microservice unit configuration microservice unit is responsible for initializing other microservice units and starting configuration management.

[0008] The data storage layer includes a data persistence microservice unit and a data clearing microservice unit. The data persistence microservice unit is used to store device data and provide a unique access point for other microservice units to access data. The data clearing microservice unit is used to regularly clear stored data.

[0009] The policy execution layer includes a command operation microservice unit and a policy triggering microservice unit. The command operation microservice unit is used to execute commands issued by other microservice units, and the policy triggering microservice unit is responsible for controlling the execution of policies.

[0010] The strategy and alarm layer includes an alarm and notification microservice unit and a strategy control microservice unit. The alarm and notification microservice unit is used to provide alarm and notification services, and the strategy control microservice unit is used to edit and generate control strategy files.

[0011] The message publishing layer includes a message publishing microservice unit and a message subscription microservice unit. The message publishing microservice unit is responsible for sending messages to other microservice units, and the message subscription microservice is used to provide message subscription functions for other microservice units.

[0012] When adapting the microservice, the protocol adaptation layer specifically performs the following steps: parsing the network layer data packet header of the received message message to obtain the priority type of the data packet in the message message; parsing the network layer payload of the received message message to obtain the transmission content of the data packet in the message message; and reorganizing the obtained priority type and transmission content into a unified data format.

[0013] The parsing of the network layer data packet header of the received message message, before obtaining the priority type of the data packet in the message message also includes: determining whether the data packet in the message message is an aggregated packet, if so, deaggregating the data packet, otherwise determining whether the data packet in the message message is a segmented packet, if so, reassembling the data packet, otherwise parsing the network layer data packet header of the received message message.

[0014] When parsing the network layer load of the received message message, it also includes determining whether the network layer load is a command line load. If so, the corresponding action is executed according to the command load, otherwise the transmission content of the data packet in the message message is obtained.

[0015] The configuration microservice module is specifically as follows when implementing the process: the message subscription microservice unit monitors the protocol converted by the protocol adaptation layer in real time; the policy control microservice unit edits and generates policy control files, and dynamically configures control policies; pre-configures control policies or sets condition thresholds for the policy triggering microservice unit; subscribed messages are judged in real time according to the control policies; if the triggering conditions are met, the command operation microservice unit issues an execution command; and the corresponding network access device is driven through the protocol adaptation layer to perform corresponding actions.

[0016] The configuration microservice module is specifically as follows when implementing the establishment of inter-device configuration service: the device metadata microservice unit obtains the information data of the device from the corresponding protocol adaptation layer, registers the device in the device metadata microservice unit and generates a unique device ID associated with the device; the data persistence microservice unit receives the information data and the device ID of the device uploaded from the device metadata microservice unit, each of which corresponds to the information data of a device and is persistently stored; the policy triggering microservice unit monitors the transmitted data in real time through the message subscription microservice unit, and then determines whether the data is directly processed locally or transmitted to the cloud through the message publishing layer for processing according to the pre-configured control strategy; if processed in the cloud, the historical data of the device is stored and analyzed, and the result is returned, and the processing result is returned to the corresponding microservice unit through the message publishing layer; if processed locally, the policy triggering microservice unit monitors the device data in real time by subscribing to the message of the corresponding microservice, and if the pre-configured control strategy is met, the policy triggering microservice unit monitors the device data in real time by subscribing to the message of the corresponding microservice. If the control policy requirements are configured first, the policy triggering microservice unit will trigger the corresponding action, issue a command to the command operation microservice unit, and then start the establishment of the inter-device configuration service, otherwise continue to monitor the data, and the policy control microservice unit configures the control policy in the policy triggering microservice unit and takes effect immediately; the message publishing microservice unit judges the received message, and if there is an exception, it will trigger the alarm and notification microservice unit, so that the message publishing microservice unit returns an exception message for notification, otherwise the command operation microservice unit will take corresponding actions according to the received command; the command operation microservice unit searches the data persistence microservice unit for the information data of the given device, and if not, returns a message that the device does not exist, otherwise returns the device ID; the command operation microservice unit sends the command to be executed to the protocol adaptation layer, converts it into the communication data format used by the corresponding device, and then drives the device to perform the corresponding action, completes the establishment of the inter-device configuration service, and starts communication between heterogeneous network devices.

[0017] Beneficial Effects

[0018] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art: the present invention adopts the microservice design mode, and in the case of complex heterogeneous communication protocol equipment access, it simplifies the modularization of the protocol adaptation microservice, simplifies the complexity of the protocol adaptation software design, and can design the protocol parsing module according to the specific protocol type on site, and the microservice module can achieve plug-and-play. The present invention is based on the edge computing heterogeneous network device configuration microservice method, which reduces the complexity of implementing heterogeneous device configuration services, reduces the difficulty of establishing cross-platform and heterogeneous network device configurations, and simplifies the configuration service process. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a structural diagram of an edge computing gateway according to an embodiment of the present invention;

[0020] Figure 2 It is a general structural diagram of the edge computing gateway software part of an embodiment of the present invention;

[0021] Figure 3 is a flowchart of the implementation of the adaptation layer in an embodiment of the present invention;

[0022] Figure 4 is a protocol adaptation flow chart of the adaptation layer in an embodiment of the present invention;

[0023] Figure 5 is a flowchart of the implementation of the configuration microservice module in the embodiment of the present invention;

[0024] Figure 6 It is a flow chart for establishing a configuration service between devices by a configuration microservice module in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.

[0026] The embodiments of the present invention relate to an edge computing gateway microservice architecture for ubiquitous heterogeneous access, which can be divided into three levels, namely, the on-site heterogeneous device access network layer, the edge computing gateway and the cloud service layer. Figure 1 As shown, the edge computing gateway structure adopts a modular design, and its main functions are divided into a protocol conversion module, a local data storage module, a local data processing module, an edge-cloud interaction module, and a device management module, and corresponding interfaces are reserved for functional modules that need to be added in the future. In addition to the protocol conversion, data forwarding, and routing selection capabilities of traditional gateways, the structure of the edge computing gateway in this embodiment also has computing, storage, and management capabilities. Depending on the different situations of receiving data, the data can be processed directly at the edge gateway or transmitted to the cloud for processing.

[0027] The edge computing gateway has built a microservice software architecture based on the complex and heterogeneous characteristics of ubiquitous access gateway equipment types, making the service componentized and flexibly constructed according to the actual deployment situation to adapt to the complex and diverse characteristics of access networks and services. It uses Docker container technology for deployment and operation, which can not only improve the deployment efficiency of microservice modules, but also provide an isolated environment for the operation of each microservice module, reduce the impact of interference and improve reliability in complex and harsh environments.

[0028] like Figure 2 As shown, the overall software structure of the edge computing gateway includes: a protocol adaptation layer, including a protocol adaptation microservice unit, which is used to complete the conversion of data formats; a configuration microservice module, which is used to decompose the configuration service into a combination of different functional microservice units. The different functional microservice units communicate with each other through a given interface and transmit messages in a publish / subscribe manner.

[0029] Among them, the configuration microservice module includes:

[0030] The unified configuration layer includes a device metadata microservice unit and a microservice unit configuration microservice unit. The device metadata microservice unit is used to provide a device registration function and generate a unique ID corresponding to the device. The microservice unit configuration microservice unit is responsible for initializing other microservice units and starting configuration management.

[0031] The data storage layer includes a data persistence microservice unit and a data clearing microservice unit. The data persistence microservice unit is used to store device data and provide a unique access point for other microservice units to access data. The data clearing microservice unit is used to regularly clear stored data.

[0032] The policy execution layer includes a command operation microservice unit and a policy triggering microservice unit. The command operation microservice unit is used to execute commands issued by other microservice units, and the policy triggering microservice unit is responsible for controlling the execution of policies.

[0033] The strategy and alarm layer includes an alarm and notification microservice unit and a strategy control microservice unit. The alarm and notification microservice unit is used to provide alarm and notification services, and the strategy control microservice unit is used to edit and generate control strategy files.

[0034] The message publishing layer includes a message publishing microservice unit and a message subscription microservice unit. The message publishing microservice unit is responsible for sending messages to other microservice units, and the message subscription microservice is used to provide message subscription functions for other microservice units.

[0035] When adapting the microservice, the protocol adaptation layer specifically performs the following steps: parsing the network layer data packet header of the received message message to obtain the priority type of the data packet in the message message; parsing the network layer payload of the received message message to obtain the transmission content of the data packet in the message message; and reorganizing the obtained priority type and transmission content into a unified data format.

[0036] The parsing of the network layer data packet header of the received message message, before obtaining the priority type of the data packet in the message message also includes: determining whether the data packet in the message message is an aggregated packet, if so, deaggregating the data packet, otherwise determining whether the data packet in the message message is a segmented packet, if so, reassembling the data packet, otherwise parsing the network layer data packet header of the received message message.

[0037] When parsing the network layer load of the received message message, it also includes determining whether the network layer load is a command line load. If so, the corresponding action is executed according to the command load, otherwise the transmission content of the data packet in the message message is obtained.

[0038] The edge computing gateway needs to be able to parse and convert the data format of data transmitted by heterogeneous network devices to prepare for the next step of data processing. Figure 3 As shown, the protocol adaptation layer is to parse the packet header and payload in the message message after receiving the message message sent by the device, find the priority and data content of the message data, and complete the data format conversion.

[0039] like Figure 4 As shown, the steps to implement the functions of the protocol adaptation microservice unit are as follows:

[0040] (1) If the device has been connected to the network and can send data normally, the edge gateway starts to receive the data sent by the device, and the protocol adaptation microservice unit starts to parse the header and payload of the message network layer;

[0041] (2) The protocol adaptation microservice unit parses the network layer packet header of the message and determines if the packet is an aggregated packet. It then deaggregates the packet and proceeds to the next step.

[0042] (3) If the data packet is a segmented packet, the segmented data packet is reassembled first;

[0043] (4) Continue parsing the data packet header, extract the priority of the data packet, and return the priority result of the data packet;

[0044] (5) Identify the load of the network layer. If it is a command data packet, execute the corresponding action according to the parsed command; otherwise, proceed to the next step.

[0045] (6) Extract the data in the network layer packet payload and the parsed priority results, reassemble them into a new packet, and then send it to the microservice unit that needs the data.

[0046] By utilizing the service componentization and platform independence of microservices, the configuration service is decomposed into a combination of microservice units with different functions. Microservice units communicate with each other through given interfaces and transmit messages in a publish / subscribe manner. This implementation method can reduce bandwidth resource consumption, shorten response time, reduce the complexity of implementing communication between heterogeneous devices, and provide configuration services for heterogeneous devices.

[0047] The overall process of the configuration microservice module includes many sub-processes, mainly including the protocol conversion process of the protocol adaptation microservice, the device registration and information storage process, the control strategy execution process, the message publishing / subscription process, and the cloud data interaction process. Figure 5 As shown, specifically: the message subscription microservice unit monitors the protocol converted by the protocol adaptation layer in real time; the policy control microservice unit edits and generates policy control files, and dynamically configures control policies; pre-configures control policies or sets condition thresholds for the policy trigger microservice unit; subscribed messages are judged in real time according to the control policies; if the triggering conditions are met, the command operation microservice unit issues an execution command; and the corresponding network access device is driven by the protocol adaptation layer to perform corresponding actions.

[0048] like Figure 6 As shown, the configuration microservice module specifically includes the following steps when implementing the establishment of the inter-device configuration service:

[0049] (1) The data transmitted by the device is converted into a unified data format within the system through the corresponding protocol adaptation microservice unit in the protocol adaptation layer;

[0050] (2) The device metadata microservice unit obtains device information data from the corresponding protocol adaptation microservice unit, registers the device in the device metadata microservice unit, and generates a unique device ID associated with the device;

[0051] (3) The data persistence microservice unit receives the device information and device ID uploaded by the device metadata microservice unit. Each device ID corresponds to a piece of device information and is persistently stored. The received data is also processed in real time and persistently stored, and a unique data access entry is provided for other microservice units.

[0052] (4) The policy triggering microservice unit monitors the transmitted data in real time through the message subscription microservice unit, and then determines whether the data is directly processed locally or transmitted to the cloud for processing through the message publishing layer according to the pre-configured control policy;

[0053] (5) If the processing is done in the cloud, the historical data of the device is stored and analyzed, and the results are returned. The processing results are returned to the corresponding microservice unit through the message publishing layer;

[0054] (6) The policy triggering microservice unit monitors the device data in real time by subscribing to the messages of the corresponding microservice unit. If the pre-configured control policy requirements are met, the corresponding action will be triggered and a command will be issued to start the establishment of the inter-device configuration service. Otherwise, the data will continue to be monitored. The policy control microservice unit configures the control policy in the policy triggering microservice unit and takes effect immediately.

[0055] (7) The message publishing microservice unit judges the received message. If there is an exception, it will trigger the alarm and notification microservice unit, so that the message publishing microservice unit returns the exception message for notification. Otherwise, the command operation microservice unit will take corresponding actions according to the received command.

[0056] (8) The command operation microservice unit searches the data persistence microservice unit for the given device information. If it does not exist, it returns a message indicating that the device does not exist. Otherwise, it returns the device ID.

[0057] (9) The command operation microservice unit sends the command to be executed to the protocol adaptation layer, converts it into the communication data format used by the corresponding device, and then drives the device to perform the corresponding action, completes the establishment of the inter-device configuration service, and starts communication between heterogeneous network devices.

[0058] It is not difficult to find that, according to the characteristics of edge computing, the present invention realizes real-time data processing and analysis, threshold judgment and control at the local gateway with the support of the edge computing platform (framework), and realizes local timely processing and partial intelligent decision-making. The present invention adopts the mode of microservice design. In the case of complex heterogeneous communication protocol equipment access, it simplifies the complexity of protocol adaptation software design by modularizing the protocol adaptation microservice. The protocol parsing module can be designed according to the specific protocol type on site, and the microservice module can realize plug-and-play. The present invention is based on the heterogeneous network device configuration microservice method of edge computing, which reduces the complexity of realizing heterogeneous device configuration services, reduces the difficulty of realizing cross-platform and heterogeneous network device configuration establishment, and simplifies the configuration service process.

Claims

1. An edge computing gateway microservice architecture for ubiquitous heterogeneous access, characterized in that: Including an edge computing gateway, which builds a microservice software architecture and uses Docker container technology for deployment and operation; The overall software structure of the edge computing gateway includes: a protocol adaptation layer, which is used to parse the received message message, find the priority and data content of the message data according to the parsing result, and complete the data format conversion; a configuration microservice module, which is used to decompose the configuration service into a combination of different functional microservice units, and the different functional microservice units communicate through a given interface to transmit messages in a publish / subscribe manner; when adapting the microservice, the protocol adaptation layer specifically parses the network layer data packet header of the received message message to obtain the priority type of the data packet in the message message; parses the network layer load of the received message message to obtain the transmission type of the data packet in the message message; content; reorganizing the acquired priority type and transmission content into a unified data format; the parsing of the network layer data packet header of the received message message, before obtaining the priority type of the data packet in the message message, also includes: judging whether the data packet in the message message is an aggregated packet, if so, deaggregating the data packet, otherwise judging whether the data packet in the message message is a segmented packet, if so, reorganizing the data packet, otherwise parsing the network layer data packet header of the received message message; when parsing the network layer load of the received message message, it also includes judging whether the network layer load is a command line load, if so, executing the corresponding action according to the command load, otherwise obtaining the transmission content of the data packet in the message message.

2. The edge computing gateway microservice architecture for ubiquitous heterogeneous access according to claim 1, characterized in that: The configuration microservice module includes: The unified configuration layer includes a device metadata microservice unit and a microservice unit configuration microservice unit. The device metadata microservice unit is used to provide a device registration function and generate a unique ID corresponding to the device. The microservice unit configuration microservice unit is responsible for initializing other microservice units and starting configuration management. The data storage layer includes a data persistence microservice unit and a data clearing microservice unit. The data persistence microservice unit is used to store device data and provide a unique access point for other microservice units to access data. The data clearing microservice unit is used to regularly clear stored data. The policy execution layer includes a command operation microservice unit and a policy triggering microservice unit. The command operation microservice unit is used to execute commands issued by other microservice units, and the policy triggering microservice unit is responsible for controlling the execution of policies. The strategy and alarm layer includes an alarm and notification microservice unit and a strategy control microservice unit. The alarm and notification microservice unit is used to provide alarm and notification services, and the strategy control microservice unit is used to edit and generate control strategy files. The message publishing layer includes a message publishing microservice unit and a message subscription microservice unit. The message publishing microservice unit is responsible for sending messages to other microservice units, and the message subscription microservice is used to provide message subscription functions for other microservice units.

3. The edge computing gateway microservice architecture for ubiquitous heterogeneous access according to claim 2, characterized in that: The configuration microservice module implements the process as follows: the message subscription microservice unit monitors the protocol converted by the protocol adaptation layer in real time; the policy control microservice unit edits and generates policy control files and dynamically configures control policies; and pre-configures control policies or sets conditional thresholds for the policy triggering microservice unit; Determine subscribed messages in real time according to the control strategy; If the trigger condition is met, the command operation microservice unit issues an execution command; The protocol adaptation layer drives the corresponding network access device to perform corresponding actions.

4. The edge computing gateway microservice architecture for ubiquitous heterogeneous access according to claim 2, characterized in that: The configuration microservice module implements the establishment of the inter-device configuration service as follows: the device metadata microservice unit obtains the information data of the device from the corresponding protocol adaptation layer, registers the device in the device metadata microservice unit, and generates a unique device ID associated with the device; The data persistence microservice unit receives the information data of the device and the device ID uploaded from the device metadata microservice unit, and each device ID corresponds to the information data of a device and is persistently stored; the policy triggering microservice unit monitors the transmitted data in real time through the message subscription microservice unit, and then determines whether the data is directly processed locally or transmitted to the cloud for processing through the message publishing layer according to the pre-configured control strategy; If the processing is done in the cloud, the historical data of the device is stored and analyzed, and the results are returned, and the processing results are returned to the corresponding microservice unit through the message publishing layer; If the processing is done locally, the policy triggering microservice unit monitors the device data in real time by subscribing to the messages of the corresponding microservice. If the pre-configured control policy requirements are met, the policy triggering microservice unit triggers the corresponding action and issues a command to the command operation microservice unit, thereby starting the establishment of the inter-device configuration service. Otherwise, the data continues to be monitored, and the policy control microservice unit configures the control policy in the policy triggering microservice unit and takes effect immediately. The message publishing microservice unit judges the received message, and if there is an exception, it will trigger the alarm and notification microservice unit, so that the message publishing microservice unit returns an exception message for notification, otherwise the command operation microservice unit will take corresponding actions according to the received command; The command operation microservice unit searches the data persistence microservice unit for information data of a given device, and if not, returns a message indicating that the device does not exist; otherwise, returns the device ID; The command operation microservice unit sends the command to be executed to the protocol adaptation layer, converts it into the communication data format used by the corresponding device, and then drives the device to perform the corresponding action, completes the establishment of the inter-device configuration service, and starts communication between heterogeneous network devices.

Citation Information

Patent Citations

  • Message transmission device based on hardware

    CN101133380A

  • Heterogeneous industrial network equipment configuration micro-service method based on edge computing

    CN110022349A

  • Electric power Internet of Things sensing equipment configuration micro-service system and method based on edge computing

    CN112764835A

  • Using anycast as an abstract next hop (ANH) to reduce information related to border gateway protocl (BGP) next hops received by autonomous system border routers (ASBRs) and / or to improve BGP path convergence

    US11277328B1