Dynamic mesh data transmission system and method based on agency-free message passing library

By adopting a dynamic mesh data transmission system without an agent messaging library in the remote sensing satellite ground system, the problems of complex configuration, synchronization blocking and complex interfaces of data transmission between microservices are solved, and efficient and monitorable data transmission is achieved, improving Improve system processing efficiency.

CN118740906APending Publication Date: 2024-10-01CHINA ACADEMY OF SPACE TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410615454.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing remote sensing satellite ground system, data transmission between microservices using TCP sockets has problems such as complex configuration, transmission synchronization and blocking, unbounded data, complex interfaces, single mode and lack of monitoring, which limits system performance and development. complexity.

Method used

Adopts a dynamic mesh data transmission system based on the agentless messaging library, including service configuration module, service discovery module, service communication module and service monitoring module. It implements interface simplification, automatic configuration of dynamic connections, and asynchronous through UDP broadcast and ZeroMQ messaging library. Non-blocking, multi-mode and unified message encapsulation provide a monitorable transmission method.

Benefits of technology

It realizes interface simplification, automatic configuration, asynchronous non-blocking, multi-mode and monitorable data transmission between microservices, improves system processing efficiency, solves the problems of transmission synchronization and blocking, data without boundaries and single mode, and satisfies the requirements of remote sensing satellites. Data processing needs of ground systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740906A_ABST
    Figure CN118740906A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of remote sensing satellite ground system data processing, in particular to a dynamic mesh data transmission system and method based on an agency-free message passing library. The invention establishes a transmission system which is simplified in interface, capable of automatically configuring dynamic connection, asynchronous, non-blocking, multi-mode, uniform in message packaging and monitorable, realizes data transmission among processing software of a remote sensing satellite ground system, and is a dynamic net-shaped data transmission system based on an agency-free message passing library. The problems of complex data transmission configuration, transmission synchronization and blockage, no data boundary, complex interface, single mode and lack of monitoring among micro-services are solved, the data transmission requirement of a remote sensing satellite ground system data processing system can be met, and the system processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of remote sensing satellite ground system data processing, and in particular to a dynamic mesh data transmission system and method based on a non-agent message transfer library. Background Art

[0002] The remote sensing satellite payload data processing system adopts a microservice architecture, which divides the data processing process into multiple independent services such as channel splitting, decompression, data parsing and interpretation. Each service is responsible for a function, and data is transmitted unidirectionally between services through the network. Using TCP sockets for data transmission between microservices to improve the low latency and high throughput of data transmission between services is one of the key technologies for optimizing system performance. However, the existing transmission methods have the following problems: (1) Complex configuration: Each service needs to configure address port information according to the data source and destination to form a network topology. For systems with changed network addresses or a large number of microservices, the configuration process is cumbersome and needs to be reconfigured after changes. (2) Transmission synchronization and blocking: TCP sockets are a stream-based communication method that needs to wait for the other party to respond, resulting in a high degree of coupling between services and affecting system performance. For example, when the decompression service sends data, it needs to wait for the parsing and interpretation service to respond and cannot continue to process data. It also affects the reception of data from the upper-level channel splitting service, which may cause system blocking and data loss. (3) Data without boundaries: TCP sockets are byte-oriented communication methods that do not define message boundaries. Services are required to divide and splice messages themselves, which increases the complexity and difficulty of development and joint debugging; (4) Complex interfaces: TCP sockets need to handle many underlying network communication details, such as connection, disconnection, reconnection, buffers, multiplexing, etc.; (5) Single mode: TCP sockets can only implement one-to-one communication mode. If other communication modes are to be implemented, such as publishing or subscribing, push / pull, broadcast, multicast, etc., additional logic and components are required, which limits the construction of system sharding processing functions; (6) Lack of monitoring: TCP sockets do not provide monitoring functions for the connection status and data flow between services, which is not conducive to viewing the system operation status and troubleshooting.

[0003] Therefore, the data transmission method using TCP sockets limits the system's functional performance, and the development and debugging is complex, the configuration process is cumbersome, and there is a lack of monitoring functions. Summary of the invention

[0004] In view of this, the present invention provides a dynamic mesh data transmission system and method based on an agentless message passing library, which can achieve interface simplification, automatic configuration of dynamic connections, asynchronous non-blocking, multi-mode, unified message encapsulation, and monitorable transmission, meet the data transmission requirements of the remote sensing satellite ground system data processing system, and improve the system processing efficiency.

[0005] To achieve the above purpose, the technical solution of the present invention is as follows:

[0006] A dynamic mesh data transmission system based on an agentless message delivery library, comprising a service configuration module, a service discovery module, a service communication module and a service monitoring module;

[0007] Among them, the service configuration module is used to edit and configure microservice software information, save the configuration information in a local file, and send it to the service discovery module regularly to dynamically generate its own data interface address and port information; the service discovery module is used to realize dynamic discovery and connection between services; the service communication module is used to use the messaging library to realize data transmission between software, including data caching and sharding; the service monitoring module is used to display the connection status and data traffic between services.

[0008] The microservice software information includes the software's own data interface name, the data receiving source data interface name, and the data sending destination data interface name.

[0009] The service configuration module uses XML or JSON format to store configuration information.

[0010] Among them, in the service monitoring module, each microservice software feeds back the connection status to the module, and the module uses a graphical interface to display the connection relationship and connection completion status, and provides a traffic statistics function.

[0011] The service discovery module realizes dynamic discovery and connection between services by publishing or subscribing to sockets through UDP broadcast and message passing library. The specific implementation steps are as follows:

[0012] Step 1: Each service creates a UDP socket and binds it to a fixed port;

[0013] Step 2: Each service creates a thread, uses the created UDP socket to periodically send its own configuration information to the broadcast address in the LAN, and listens to the broadcast information of other services;

[0014] Step 3: Each service creates a corresponding messaging library publishing or subscribing socket according to the configuration information. The specific process is to obtain the required data sending interface and data receiving interface specified address and port from the configuration information, and use the method provided by the messaging library to bind the created socket to the corresponding address and port;

[0015] Step 4: When a service receives a broadcast message from another service, it decides whether to establish a connection based on its own configuration information and the other party's configuration information, and uses the method provided by the messaging library to connect to the other party's address and port;

[0016] Step 5: Once a service has established a connection with another service, it can use the messaging library to publish or subscribe to the socket for one-way data transfer.

[0017] Among them, the service communication module realizes asynchronous non-blocking transmission through a caching mechanism; each messaging library publishes or subscribes to a socket and maintains a send or receive buffer inside to temporarily store sent or received data; the data boundary is defined through the serialization protocol or frame structure of the messaging library, and the data is uniformly encapsulated to realize data boundary transmission.

[0018] Among them, the ZMTP protocol of ZeroMQ is used to implement data boundary transmission, each data is divided into one or more frames, and a flag bit and a length field are added to the header of each frame. The flag bit is used to indicate whether the frame is the last frame or whether it is a long frame, and the length field is used to indicate the size of the valid data content of the frame; the sender and the receiver determine the boundary of the data based on the flag bit and the length field, and realize one-to-many data segmentation transmission through the polling algorithm. The data sender distributes the data to different receivers in a cyclic order.

[0019] The present invention also provides a dynamic mesh data transmission method based on a proxy-free message passing library, comprising:

[0020] Step 1: System initialization: After each microservice software is started, load the local configuration file, create a socket, and bind it to the corresponding address and port dynamically generated by the service configuration module;

[0021] Step 2: Service discovery: Each microservice software sends its own configuration information and listens to the broadcast information of other services, and decides whether to establish a connection with other services based on the configuration information;

[0022] Step 3: Data transmission: Each microservice software performs unidirectional data transmission, divides the data into frame structures, and uses a cache mechanism and polling algorithm to achieve asynchronous non-blocking and fragmented transmission;

[0023] Step 4: Service monitoring: Each microservice software will provide feedback and display the connection status, display the connection relationship and connection completion status, and provide traffic statistics function.

[0024] Among them, in the step three, the specific data flow is: the channel splitting service sends the split payload channel data to the decompression service; the decompression service sends the decompressed data to the data analysis and interpretation service.

[0025] Among them, in the step one, a UDP socket and a ZeroMQ publish or subscribe socket are created; in the step two, each microservice software sends its own configuration information via UDP broadcast; in the step three, each microservice software performs unidirectional data transmission through a ZeroMQ publish or subscribe socket.

[0026] Beneficial effects:

[0027] 1. The present invention establishes a transmission system with simplified interface, automatic configuration of dynamic connection, asynchronous non-blocking, multi-mode, unified message encapsulation, and monitorability, so as to realize data transmission between various processing software of remote sensing satellite ground system. It is a dynamic mesh data transmission system based on agentless message passing library, which solves the problems of complex data transmission configuration, transmission synchronization and blocking, data without boundaries, complex interface, single mode, and lack of monitoring between microservices, and can meet the data transmission requirements of remote sensing satellite ground system data processing system and improve system processing efficiency.

[0028] 2. The service configuration module of the present invention uses XML or JSON format to store configuration information, which is easy to promote and apply.

[0029] 3. The service discovery module of the present invention realizes dynamic discovery and connection between services by publishing or subscribing to sockets through UDP broadcast and message passing library, with stable transmission and high efficiency.

[0030] 4. The agentless message library used in the present invention is ZeroMQ, and agentless message libraries such as Nanomsg, Pragmatic General Multicast, and Envelop may also be used, which have a wide range of applications.

[0031] 5. The method of the present invention solves the problems of complex data transmission configuration between microservices, transmission synchronization and blocking, data without boundaries, complex interfaces, single mode, and lack of monitoring. It can meet the data transmission requirements of the remote sensing satellite ground system data processing system and improve the system processing efficiency.

[0032] 6. In the method of the present invention, the specific data flow is: the channel splitting service sends the split payload channel data to the decompression service; the decompression service sends the decompressed data to the data analysis and interpretation service, thereby realizing interface simplification, automatic configuration of dynamic connections, asynchronous non-blocking, multi-mode, unified message encapsulation, and monitorable transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic diagram of a dynamic mesh data transmission system based on an agentless message passing library of the present invention.

[0034] Figure 2 It is a schematic diagram of the operation of the dynamic mesh data transmission system based on the agentless message passing library of the present invention. DETAILED DESCRIPTION

[0035] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0036] The present invention provides a dynamic mesh data transmission system based on a proxy-free message passing library, such as Figure 1 As shown, it includes: a service configuration module, a service discovery module, a service communication module and a service monitoring module. Each module is relatively independent, wherein the service configuration module is used to edit and configure microservice software information, save the configuration information in a local file, send it to the service discovery module regularly, and dynamically generate its own data interface address and port information. The microservice software information includes the software's own data interface name, the data receiving source data interface name, and the data sending destination data interface name, etc. In this embodiment, the service configuration module can use XML or JSON and other formats to store configuration information, as shown below:

[0037] <service>

[0038] <name> ChannelSplit< / name>

[0039] <send>

[0040] <interface> ChannelSplit-Send1< / interface>

[0041] <address>192.168.1.101< / address>

[0042] <port> 5555< / port>

[0043] <destination> Decompress-Recv1< / destination>

[0044] < / send>

[0045] <recv>

[0046] <interface> ChannelSplit-Recv1< / interface>

[0047] <address>192.168.1.101< / address>

[0048] <port> 5556< / port>

[0049] <source> HDR-Send1

[0050] < / recv>

[0051] < / service>

[0052] The service discovery module is used to realize dynamic discovery and connection between services, which is realized by publishing or subscribing sockets through UDP broadcast and messaging library. The specific implementation steps are:

[0053] Step 1: Each service creates a UDP socket and binds it to a fixed port;

[0054] Step 2: Each service creates a thread, uses the created UDP socket to periodically send its own configuration information to the broadcast address in the LAN, and listens to the broadcast information of other services;

[0055] Step 3: Each service creates a corresponding messaging library publishing or subscribing socket according to the configuration information. The specific process is to obtain the required data sending interface and data receiving interface specified address and port from the configuration information, and use the method provided by the messaging library to bind the created socket to the corresponding address and port;

[0056] Step 4: When a service receives a broadcast message from another service, it decides whether to establish a connection based on its own configuration information and the other party's configuration information, and uses the method provided by the messaging library to connect to the other party's address and port;

[0057] Step 5: Once a service has established a connection with another service, it can use the messaging library to publish or subscribe to the socket for one-way data transfer.

[0058] The service communication module is used to use the messaging library (ZeroMQ) to implement data transmission between software, including data caching and slicing. In this embodiment, it is specifically implemented as follows: asynchronous non-blocking transmission is realized through a caching mechanism. Each messaging library publishes or subscribes to a socket and maintains a send or receive buffer to temporarily store the sent or received data. This can alleviate the speed difference and traffic fluctuation between the sender and the receiver, and avoid dependence and waiting between services. The data boundary is defined by the serialization protocol or frame structure of the messaging library, and the data is uniformly encapsulated to realize data boundary transmission. In this embodiment, the ZMTP protocol of ZeroMQ is used to realize data boundary transmission, and each piece of data is divided into one or more frames, and a flag bit and a length field are added to the header of each frame. The flag bit is used to indicate whether the frame is the last frame, whether it is a long frame, etc., and the length field is used to indicate the effective data content size of the frame. The sender and the receiver can determine the boundary of the data according to the flag bit and the length field, and realize one-to-many slicing of data through a polling algorithm. The data sender distributes the data to different receivers in a cyclic order.

[0059] The service monitoring module is used to display the connection status and data flow between services. The specific implementation is: each microservice software feeds back the connection status to the module, and the module uses a graphical interface to display the connection relationship and connection completion status, and provides a flow statistics function.

[0060] The agentless message library used in this embodiment is to realize data communication through the agentless message transmission library. The agentless message library used in this embodiment is ZeroMQ, and agentless message libraries such as Nanomsg, Pragmatic General Multicast, and Envelop may also be used.

[0061] The present invention also provides a dynamic mesh data transmission method based on a proxy-free message transfer library, the process is as follows: Figure 2 As shown, taking the load data processing system as an example, the specific steps are as follows:

[0062] Step 1: System initialization: After each microservice software is started, load the local configuration file, create a UDP socket and a ZeroMQ publish or subscribe socket, and bind them to the corresponding address and port dynamically generated by the service configuration module.

[0063] Step 2: Service discovery: Each microservice software sends its own configuration information through UDP broadcast, listens to the broadcast information of other services, and decides whether to establish a connection with other services based on the configuration information.

[0064] Step 3, Data transmission: Each microservice software uses ZeroMQ to publish or subscribe to sockets for one-way data transmission, divides the data into frame structures, and uses a cache mechanism and polling algorithm to achieve asynchronous non-blocking and fragmented transmission. The specific data flow is: the channel splitting service sends the split payload channel data to the decompression service; the decompression service sends the decompressed data to the data parsing and interpretation service.

[0065] Step 4: Service monitoring: Each microservice software will feed back the connection status to the service monitoring module. The service monitoring module displays the connection relationship and connection completion status, and provides traffic statistics function.

[0066] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A dynamic mesh data transmission system based on an agentless message passing library, characterized in that: Including service configuration module, service discovery module, service communication module and service monitoring module; Among them, the service configuration module is used to edit and configure microservice software information, save the configuration information in a local file, and send it to the service discovery module regularly to dynamically generate its own data interface address and port information; the service discovery module is used to realize dynamic discovery and connection between services; the service communication module is used to use the messaging library to realize data transmission between software, including data caching and sharding; the service monitoring module is used to display the connection status and data traffic between services.

2. The system according to claim 1, characterized in that The microservice software information includes the software's own data interface name, the data receiving source data interface name, and the data sending destination data interface name.

3. The system according to claim 1, characterized in that The service configuration module uses XML or JSON format to store configuration information.

4. The system according to claim 1, characterized in that In the service monitoring module, each microservice software feeds back the connection status to the module, and the module uses a graphical interface to display the connection relationship and connection completion status, and provides a traffic statistics function.

5. The system according to any one of claims 1 to 4, characterized in that: The service discovery module realizes dynamic discovery and connection between services by publishing or subscribing to sockets through UDP broadcast and message passing library. The specific implementation steps are as follows: Step 1: Each service creates a UDP socket and binds it to a fixed port; Step 2: Each service creates a thread, uses the created UDP socket to periodically send its own configuration information to the broadcast address in the LAN, and listens to the broadcast information of other services; Step 3: Each service creates a corresponding messaging library publishing or subscribing socket according to the configuration information. The specific process is to obtain the required data sending interface and data receiving interface specified address and port from the configuration information, and use the method provided by the messaging library to bind the created socket to the corresponding address and port; Step 4: When a service receives a broadcast message from another service, it decides whether to establish a connection based on its own configuration information and the other party's configuration information, and uses the method provided by the messaging library to connect to the other party's address and port; Step 5: Once a service has established a connection with another service, it can use the messaging library to publish or subscribe to the socket for one-way data transfer.

6. The system according to claim 5, characterized in that The service communication module realizes asynchronous non-blocking transmission through a caching mechanism; each messaging library publishes or subscribes to a socket and maintains a sending or receiving buffer to temporarily store sent or received data; the data boundary is defined through the serialization protocol or frame structure of the messaging library, and the data is uniformly encapsulated to realize data boundary transmission.

7. The system according to claim 6, characterized in that Use ZeroMQ's ZMTP protocol to implement data boundary transmission, divide each piece of data into one or more frames, and add a flag and a length field to the header of each frame. The flag is used to indicate whether the frame is the last frame or a long frame, and the length field is used to indicate the size of the valid data content of the frame. The sender and receiver determine the data boundary based on the flag and length field, and implement one-to-many data segmentation transmission through a polling algorithm. The data sender distributes the data to different receivers in a cyclic order.

8. A dynamic mesh data transmission method based on an agentless message passing library, characterized in that: include: Step 1: System initialization: After each microservice software is started, load the local configuration file, create a socket, and bind it to the corresponding address and port dynamically generated by the service configuration module; Step 2: Service discovery: Each microservice software sends its own configuration information and listens to the broadcast information of other services, and decides whether to establish a connection with other services based on the configuration information; Step 3: Data transmission: Each microservice software performs unidirectional data transmission, divides the data into frame structures, and uses a cache mechanism and polling algorithm to achieve asynchronous non-blocking and fragmented transmission; Step 4: Service monitoring: Each microservice software will provide feedback and display of the connection status, display the connection relationship and connection completion status, and provide traffic statistics function.

9. The method according to claim 8, characterized in that In the step three, the specific data flow is: the channel splitting service sends the split payload channel data to the decompression service; the decompression service sends the decompressed data to the data analysis and interpretation service.

10. The method according to claim 8 or 9, characterized in that In the step 1, a UDP socket and a ZeroMQ publish or subscribe socket are created; in the step 2, each microservice software sends its own configuration information via UDP broadcast; in the step 3, each microservice software performs unidirectional data transmission via a ZeroMQ publish or subscribe socket.