A container network communication system and method based on digital twins
By introducing data declaration module and data request module into the container network communication system, combined with the daemon design of the data management module, the connection interruption caused by obtaining specified data and migration in the digital twin scenario is solved, and efficient and convenient data transmission and reliable mobility are achieved.
Patent Information
- Application Number
- CN202211020030.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-24
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-08-24
Smart Images

Figure CN115580629B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of container network communication, and specifically relates to a container network communication system and method based on digital twins. Background Art
[0002] Digital twin technology uses a variety of information technologies such as sensor perception and model building to map physical entities to digital twins one-to-one, and has a wide range of applications in digital simulation, autonomous driving and other fields. Twins are usually deployed in containers for easy migration, deployment, orchestration and management.
[0003] The existing container network communication method takes point-to-point data transmission as its core function, and completes data transmission between containers by assigning IP addresses to containers. In the digital twin scenario, the core requirement of the twin is to obtain the specified named data, and the existing container network communication method is difficult to complete this function. In addition, when the twin moves in position, the IP address of the container where the twin is located will become invalid due to the change in the container position, resulting in a disconnection of the connection. The point-to-point data transmission and communication method based on the IP address will also be interrupted, which has major defects in mobility and flexibility. Summary of the invention
[0004] The purpose of the present invention is to propose a container network communication system and method based on digital twins with efficient, convenient and reliable data transmission.
[0005] The existing container network communication system is centered on IP address and uses the IP address of the container for communication; the container network communication system based on digital twin proposed in the present invention is centered on data. In the process of obtaining and requesting data, it is not necessary to use the IP address of the container. The twin only needs to provide the specific name of the data (such as the file name) to obtain the corresponding data in the system; the system of the present invention includes: a twin, a data declaration module, and a data request module, which are located inside the container, and the container and the data management module are located on their respective physical machines; multiple physical machines form a cluster; the present invention is compatible with the existing container network communication system; see Figure 1 As shown, where:
[0006] The data declaration module is deployed in the container in the form of a plug-in; it listens to the data declaration of the twin in the container and sends the declared data to the data management module;
[0007] The data request module is deployed in the container in the form of a plug-in; it monitors the data request of the twin in the container and sends the request to the data management module; it monitors the specific data returned by the data management module for use or consumption by the twin;
[0008] The data management module is deployed on the physical machine in the form of a daemon process. The data management module listens to three types of messages: data declaration, data request, and data. When receiving a data declaration sent by the data declaration module, the module registers the data name and saves the data. When receiving a data request sent by the data request module, or a data request forwarded from a data management module on another physical machine in the cluster, the module searches whether there is corresponding data locally. If not, the module records the source of the data request and forwards the data request. If so, the module retrieves the data and forwards it to the data management module on the physical machine where the request source is located. When receiving data sent by data management modules on other physical machines in the cluster, the module forwards the data to the data management module on the physical machine where the request source is located based on the previously recorded request source. See Figure 4 shown.
[0009] The present invention also proposes a container network communication method based on digital twins based on the above system, including: a data declaration method and a data request method; the twin declares the data that it can provide through the data declaration method so that other twins can obtain the data; the twin requests the specified named data through the data request method to obtain the data; wherein:
[0010] (I) The data declaration method is a way for twins to provide declaration data; twins do not need to communicate with other twins to provide data for other twins; see Figure 2 As shown, the specific steps are:
[0011] Step 1: The twin sends the data declaration to the data declaration module of the container where the twin is located. The data declaration includes the name of the data to be declared and the specific data corresponding to the name;
[0012] Step 2: The data declaration module on the container receives the data declaration sent by the twin and forwards the data declaration to the data management module on the physical machine where the container is located;
[0013] Step 3: The data management module receives the data declaration forwarded by the data declaration module, registers the data name in the module, and saves the specific data.
[0014] (ii) The data request method is a way for the twin to request data; the twin does not need to know which twin in which container provides the data, nor does it need to communicate with other twins. It only needs to provide the data name to obtain the data; see Figure 3 As shown, the specific steps are:
[0015] Step 1: The twin sends a data request to the data request module of the container where the twin is located. The data request contains the name of the data to be requested;
[0016] Step 2: The data request module on the container receives the data request sent by the twin and forwards the data request to the data management module on the physical machine where the container is located;
[0017] Step 3: The data management module receives the data request forwarded by the data request module, and forwards the data request to the data management modules on other physical machines in the cluster in a broadcast manner;
[0018] Step 4: If the data management module on other physical machines in the cluster receives the forwarded data request, it checks whether the data name contained in the data request has been registered in the module. If it has been registered, it retrieves the corresponding data and returns the data according to the source of the data request. If it has not been registered, it continues to forward the request to the data management module on other physical machines.
[0019] Step 5: After receiving the corresponding data, the data management module on the physical machine where the data twin is located forwards the data to the data request module of the container where the data twin is located;
[0020] Step 6: The data request module of the container where the twin is located receives the data and forwards the data to the twin.
[0021] The container network communication system and method based on digital twins of the present invention takes data as the core, and provides an efficient data transmission method for twins in the container in the digital twin scenario. When the twin declares data, it does not need to communicate with other twins to provide data; when the twin requests data, it does not need to know which twin provides the data, nor does it need to communicate with other twins. It only needs to provide data naming to obtain data. Compared with the existing container network communication method, this method does not rely on the IP address of the container, is more efficient and convenient than the existing container network communication method, and can maintain the reliability of data transmission in mobile scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a framework diagram of the container network communication system and method based on digital twins of the present invention.
[0023] Figure 2 It is a flowchart of the data declaration method in the present invention.
[0024] Figure 3 It is a flowchart of the data request method in the present invention.
[0025] Figure 4 It is a structural diagram of the data management module in the present invention. DETAILED DESCRIPTION
[0026] The high-performance system and method proposed by the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0027] Figure 1 This is a block diagram of the container network communication method and system based on digital twins of the present invention. The data declaration module and the data request module are deployed in the container as plug-ins, which are compatible with existing container network plug-ins; the data management module is deployed on the physical machine as a daemon process to monitor the messages sent by each module. The combination of the plug-in in the container and the daemon process outside the container can realize the data transmission function without relying on the container IP address.
[0028] Figure 2 It is a flowchart illustration of the data declaration method described in the present invention. Twin a and data declaration module a are located in container a, and container a and data management module a are located on the same physical machine. Twin a needs to declare data named abc.txt, so it sends a data declaration containing the data named abc.txt and the corresponding data to the data declaration module a on container a. The data declaration module a receives the data declaration and forwards it to the data management module a on the physical machine where container a is located. The data management module a receives the data declaration, registers abc.txt, and saves the corresponding data. After the above steps, twin a completes the data declaration for abc.txt.
[0029] Figure 3 It is a flowchart illustration of the data request method described in the present invention. Twin b and data request module b are located in container b, container b and data management module b are located on the same physical machine, and data management module a is located on another physical machine in the cluster. Twin b needs to request data named abc.txt, so it sends a data request containing the data named abc.txt to the data request module b on container b. Data request module b receives the data request and forwards it to data management module b on the physical machine where container b is located. Data management module b receives the data declaration, searches for whether the data name of abc.txt has been registered in the module, and after finding that it has not been registered, forwards the data request to data management module a on another physical machine in the cluster. Data management module a receives the data declaration, searches for whether the data name of abc.txt has been registered in the module, and after finding that it has been registered, takes out the data and sends the data to data management module b according to the source of the data request. Data management module b receives the data and forwards it to data request module b on container b. Data request module b receives the data and forwards it to twin b. After the above steps, twin b completes the data request for abc.txt.
[0030] In summary, combining the data declaration method and the data request method, when there is no communication between twin a and twin b, twin b obtains the data named abc.txt provided by twin a. In this process, twin a only declares the data and does not know which twin consumes the data, while twin b only requests the data and does not know which twin the data comes from. This container network communication method provides a more efficient and convenient way for data transmission between twins in the container.
[0031] It should be understood that the multiple modules listed in the above embodiments are only for the convenience of description, and other modules may be included, or some modules may be combined. The multiple modules may be distributed in multiple systems and may be implemented by software or by a combination of software and hardware.
Claims
1. A container network communication system based on digital twins, characterized in that: With data as the core, in the process of obtaining and requesting data, the IP address of the container is not used. The twin only needs to provide the specific name of the data to obtain the corresponding data in the system; the container includes: twin, data declaration module, data request module; the container and data management module are located on their own physical machines; multiple physical machines form a cluster; where: The data declaration module is deployed in the container in the form of a plug-in; it listens to the data declaration of the twin in the container and sends the declared data to the data management module; The data request module is deployed in the container in the form of a plug-in; it monitors the data request of the twin in the container and sends the request to the data management module; it monitors the specific data returned by the data management module for use or consumption by the twin; The data management module is deployed on the physical machine in the form of a daemon process; the data management module listens to three types of messages: data declaration, data request, and data; upon receiving a data declaration sent by the data declaration module, the data is registered and named and the data is saved; upon receiving a data request sent by the data request module, or a data request forwarded from a data management module on another physical machine in the cluster, it searches whether there is corresponding data locally; if not, the source of the data request is recorded and the data request is forwarded; if so, the data is retrieved and forwarded to the data management module on the physical machine where the request source is located; upon receiving data sent by a data management module on another physical machine in the cluster, the data is forwarded to the data management module on the physical machine where the request source is located according to the previously recorded request source; The data declaration method is a way for the twin to provide declaration data; the specific steps are: Step 1: The twin sends the data declaration to the data declaration module of the container where the twin is located. The data declaration includes the name of the data to be declared and the specific data corresponding to the name; Step 2: The data declaration module on the container receives the data declaration sent by the twin and forwards the data declaration to the data management module on the physical machine where the container is located; Step 3: The data management module receives the data declaration forwarded by the data declaration module, registers the data name in the module, and saves the specific data; The data request method is a way for the twin to provide request data; the specific steps are: Step 1: The twin sends a data request to the data request module of the container where the twin is located. The data request contains the name of the data to be requested; Step 2: The data request module on the container receives the data request sent by the twin and forwards the data request to the data management module on the physical machine where the container is located; Step 3: The data management module receives the data request forwarded by the data request module, and forwards the data request to the data management modules on other physical machines in the cluster in a broadcast manner; Step 4: If the data management module on other physical machines in the cluster receives the forwarded data request, it checks whether the data name contained in the data request has been registered in the module. If it has been registered, it retrieves the corresponding data and returns the data according to the source of the data request. If it has not been registered, it continues to forward the request to the data management module on other physical machines. Step 5: After receiving the corresponding data, the data management module on the physical machine where the data twin is located forwards the data to the data request module of the container where the data twin is located; Step 6: The data request module of the container where the twin is located receives the data and forwards the data to the twin.
2. A container network communication method based on digital twins based on the system of claim 1, characterized in that: include: Data declaration method and data request method; The twin declares the data it can provide through the data declaration method so that other twins can obtain the data; The twin requests the specified named data through the data request method to obtain the data; among them: (I) The data declaration method is a method for a twin to provide declaration data; the specific steps are: Step 1: The twin sends the data declaration to the data declaration module of the container where the twin is located. The data declaration includes the name of the data to be declared and the specific data corresponding to the name; Step 2: The data declaration module on the container receives the data declaration sent by the twin and forwards the data declaration to the data management module on the physical machine where the container is located; Step 3: The data management module receives the data declaration forwarded by the data declaration module, registers the data name in the module, and saves the specific data; (ii) The data request method is a method for a twin to provide request data; the specific steps are: Step 1: The twin sends a data request to the data request module of the container where the twin is located. The data request contains the name of the data to be requested; Step 2: The data request module on the container receives the data request sent by the twin and forwards the data request to the data management module on the physical machine where the container is located; Step 3: The data management module receives the data request forwarded by the data request module, and forwards the data request to the data management modules on other physical machines in the cluster in a broadcast manner; Step 4: If the data management module on other physical machines in the cluster receives the forwarded data request, it checks whether the data name contained in the data request has been registered in the module. If it has been registered, it retrieves the corresponding data and returns the data according to the source of the data request. If it has not been registered, it continues to forward the request to the data management module on other physical machines. Step 5: After receiving the corresponding data, the data management module on the physical machine where the data twin is located forwards the data to the data request module of the container where the data twin is located; Step 6: The data request module of the container where the twin is located receives the data and forwards the data to the twin.
Citation Information
Patent Citations
Satellite communication simulation method and system based on container technology and digital twin technology
CN113343489A
Digital twinning method and system for edge calculation
CN114792045A