Heterogeneous simulation environment protocol interconnection and intercommunication method and heterogeneous simulation system
By using simulation routing middleware and time series prediction mechanism in heterogeneous simulation environment, the problem of data communication performance bottleneck in traditional simulation systems is solved, and efficient data interaction and timing stability are achieved.
Patent Information
- Application Number
- CN202411611963.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-11-13
AI Technical Summary
There are performance bottlenecks in data communication between traditional simulation systems, especially when the simulation objects increase and configuration complexity increase, resulting in data interaction delay and slowing down.
By introducing simulation routing middleware and time series prediction mechanism in a heterogeneous simulation environment, data interaction without configuring simulation data forms is realized, and time series prediction completes the timing gap of the simulation model to ensure the stability of the data interaction timing.
This method reduces the performance problems caused by the increase in simulation model, ensures the stability of data interaction timing, and is not affected by the number of simulation objects and the number of simulation system access.
Smart Images

Figure CN119603374A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data simulation technology, and in particular to a heterogeneous simulation environment protocol interconnection method and a heterogeneous simulation system. Background Art
[0002] There are three main ways of data communication between traditional simulation systems. The first is to develop a dedicated protocol gateway, that is, for two specified systems, such as HLA-DIS, HLA-DDS, DDS-DIS, etc., develop dedicated protocol conversion software to convert data to achieve intercommunication. The second is to develop a general gateway for data exchange and use configuration mapping tables for intermediate escape. The third is to use the characteristics of the protocol itself to directly translate data, simplify the data configuration process and improve data interaction efficiency.
[0003] The common simulation architectures in the field of simulation include DIS, ALSP, HLA, TENA, DDS, etc. To support distributed joint simulation technology, DDS, DIS, HLA and TENA have different characteristics and advantages, and require protocol conversion and mapping. Usually, one protocol is used as the basis for other protocols to complete data interoperability through mapping relationships.
[0004] like Figure 1 As shown, the gateway technology extracts the simulation system information table, the simulation system publishes the data table, the simulation system orders the data table by receiving the configuration information and saves it in the gateway operation process in the form of data according to each access simulation system.
[0005] After the gateway operation process receives the data, Figure 2 As shown, form data (FOM) for exchange is formed by published and subscribed data, the exchange form data is updated according to the data transmitted in the gateway, and then the simulation system is searched for in the simulation system information table according to the published data and subscribed data and transmitted according to the transmission protocol specified by the simulation system.
[0006] The problems with the gateway approach are as follows:
[0007] (1) The system needs to maintain a simulation data table. As nonlinear events occur and the number of simulation objects increases, the data table will grow exponentially, resulting in problems such as slowing down the running speed.
[0008] (2) Although the data gateway method solves the problem of asynchronous simulation data interaction, it cannot guarantee the time series problem generated by multiple simulation sources. As the number of simulation objects increases and the configuration complexity increases, delays are common. Summary of the invention
[0009] The embodiments of the present application provide a heterogeneous simulation environment protocol interconnection method and a heterogeneous simulation system, which can achieve the goal of not configuring simulation data forms and reduce performance problems caused by the increase in simulation models; through time series prediction, it can ensure that the data interaction timing is not affected by the number of simulation objects and the number of simulation system accesses.
[0010] The embodiment of the present application provides a heterogeneous simulation environment protocol interconnection method, which is applied to a heterogeneous simulation environment under a simulation system of multiple different simulation protocols, including:
[0011] Initializing the simulation routing middleware in the heterogeneous simulation environment and loading the routing mapping table;
[0012] Configure the routing configuration relationship and event distribution rules of each simulation system, wherein the routing configuration relationship includes the system name and data transmission protocol;
[0013] After receiving any simulation system protocol connection request, the simulation routing middleware searches for the corresponding protocol adapter component according to the existing data transmission protocol;
[0014] Establishing a mapping connection between simulation systems according to the found protocol adapter component;
[0015] Perform time prediction on the simulation model running data of the simulation system to fill the timing gap of the minimum advancement time of the simulation model;
[0016] Execute simulation and distribute simulation data to corresponding addresses according to routing configuration relationships.
[0017] Optionally, the K-means algorithm is used to realize dynamic loading of the routing policy table during the process of initializing the simulation routing middleware and loading the routing mapping table.
[0018] Optionally, the configured routing configuration relationship also includes: system IP, exposed port, and the configured routing information is loaded into the running memory.
[0019] Optionally, when a corresponding protocol adapter component cannot be found according to an existing data transmission protocol, the method further includes:
[0020] The connected simulation system protocol is parsed and the entity code of the simulation object is generated. The corresponding interactive object mapping is generated by compiling, so as to encapsulate and distribute the data in the mapping connection of the interactive data based on the interactive object mapping.
[0021] Optionally, only normal events in the simulation process are recorded, and intervention is performed on abnormal events.
[0022] Optional interventions for abnormal events include:
[0023] The simulation model running data of the simulation system is time-predicted. The LSTM model is introduced into the time prediction. The LSTM model is used to predict the time series gaps to complete the minimum advancement time of the simulation model and fill in the abnormal data.
[0024] Optionally, the method further includes: pausing or destroying the route without performing simulation event processing, and destroying the route configuration information from the memory when the route is destroyed.
[0025] An embodiment of the present application also proposes a heterogeneous simulation system, which is applied to a heterogeneous simulation environment under a simulation system with multiple different simulation protocols, including a processor and a memory, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the steps of the heterogeneous simulation environment protocol interconnection method as described above are implemented.
[0026] The method of the embodiment of the present application does not need to configure the simulation data form, reducing the performance problems caused by the increase in simulation models; through time series prediction, it ensures that the data interaction timing is not affected by the number of simulation objects and the number of simulation system accesses.
[0027] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0029] Figure 1 It is a schematic diagram of the access method of the simulation system in the prior art;
[0030] Figure 2 It is a schematic diagram of the simulation data interaction of the prior art;
[0031] Figure 3 The overall process diagram of the heterogeneous simulation environment protocol interconnection method of the embodiment of the present application is shown;
[0032] Figure 4 This is a schematic diagram of the routing registration configuration binding relationship of the heterogeneous simulation environment protocol interconnection method of the embodiment of the present application;
[0033] Figure 5 A schematic diagram of the binding mapping of the heterogeneous simulation environment protocol interconnection method according to an embodiment of the present application;
[0034] Figure 6 This is a schematic diagram of the data mapping conversion relationship of the heterogeneous simulation environment protocol interconnection method according to an embodiment of the present application;
[0035] Figure 7 This is an illustration of linear time sequence event processing of the heterogeneous simulation environment protocol interconnection method according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0037] An embodiment of the present application provides a method for interconnecting and communicating protocols in a heterogeneous simulation environment, which is applied to a heterogeneous simulation environment under a simulation system with multiple different simulation protocols. The present application aims to solve the data interconnection and communication problem in a heterogeneous simulation environment with different simulation protocols. The method of the present application utilizes adaptive simulation protocol middleware technology to effectively connect simulation environments of different protocols, combines time series prediction methods to correct data, and effectively supervises and controls the interaction process.
[0038] Specifically, Figure 3 As shown, the method of the embodiment of the present application includes the following steps:
[0039] In step S101, the simulation routing middleware is initialized in the heterogeneous simulation environment and the routing mapping table is loaded. Figure 3 In some embodiments, the simulation system 1 to the system N included in the simulation system 1 initializes the simulation routing middleware, and uses the K-means algorithm to dynamically load the routing strategy table during the process of loading the routing mapping table. The K-means algorithm can reduce the complexity of multiple routing protocols.
[0040] In step S102, the routing configuration relationship and event distribution rules of each simulation system are configured, and the routing configuration relationship includes the system name and data transmission protocol. In some embodiments, the configured routing configuration relationship also includes: system IP, port, in a specific example, Figure 4 As shown, one-to-one routing or one-to-many routing configuration can be performed, and the configured routing information is loaded into the runtime memory.
[0041] In step S103, after receiving any simulation system protocol connection request, the simulation routing middleware searches for a corresponding protocol adapter component according to an existing data transmission protocol.
[0042] In step S104, Figure 5 As shown, a mapping connection between simulation systems is established according to the protocol adapter component found. In some examples, after determining the protocol adapter component, such as Figure 6 As shown, binding mapping is performed, and the protocol adapter component dll in different simulation system protocols is attempted to perform data parsing in combination with the routing configuration relationship. When the simulation protocol is successfully parsed, the object data transmitted in the protocol is further mapped to complete the data format conversion, and an independent mapping connection is established. Through binding mapping, the supply and demand requirements of business data can be solved in a targeted and fine-grained manner, which can be fine-grained to the required simulation object attributes and data type conversion requirements, as well as the preconditions such as under what events can be triggered.
[0043] In step S105, time prediction is performed on the simulation model running data of the simulation system to fill in the timing gap of the minimum advancement time of the simulation model. The prediction and completion can ensure that the simulation process is continuous and there will be no delays or freezes.
[0044] In step S106, simulation is performed, and simulation data is distributed to corresponding addresses according to the routing configuration relationship, that is, simulation events are performed, and after orderly event processing, simulation data is effectively encapsulated with protocols according to the binding mapping relationship and distributed to the specified IP address and port.
[0045] The method of the embodiment of the present application can guide the development and implementation of DDS, DIS, HLA, TENA and custom protocols in the LVC joint test, so that the logical structure of each simulation object is symmetrical, the data mapping is clear, and the data is reasonable. The method of the embodiment of the present application does not need to configure the simulation data form, reducing the performance problems caused by the increase of simulation models; through time series prediction, it is ensured that the data interaction timing is not affected by the number of simulation objects and the number of simulation system accesses.
[0046] In some embodiments, when the corresponding protocol adapter component cannot be found according to the existing data transmission protocol, it also includes: parsing the connected simulation system protocol and generating the entity code of the simulation object, generating the corresponding interaction object mapping through compilation, for example, the interaction object mapping can be a dll, so as to encapsulate and distribute the data in the mapping connection of the interaction data based on the interaction object mapping.
[0047] In some embodiments, only normal events in the simulation process are recorded, and intervention is required for abnormal events. Intervention of abnormal events requires time prediction of the simulation model running data of the simulation system. A mature LSTM model is introduced during prediction. The model predicts the time gap, so as to achieve the minimum advancement time of the simulation model, complete the abnormal data, and proceed to the next step of request event advancement. Figure 7As shown, the prominent problem in heterogeneous simulation environments is linear time series processing. In heterogeneous simulation environments, it is the task of the adaptive simulation protocol middleware to quickly process the messy data interactions according to different protocols and time events. In the embodiment of the present application, the simulation protocol middleware uses time prediction, such as the LSTM model, to predict and improve the simulation model operation data, such as Figure 7 T3 and T6 are the missing data to be completed. After completion, orderly linear timing management can be achieved, so that the entire simulation process is coherent without any delay or jamming.
[0048] In some embodiments, it also includes: pausing or destroying the route without the need for simulation event processing, and destroying the route configuration information from the memory when the route is destroyed, such as the route configuration of the cut-off event, and the configuration information is destroyed from the memory.
[0049] The present application provides an adaptive middleware for interconnection of simulation protocols, which not only realizes the data communication of DIS, HLA, TENA, DDS and custom simulation protocols, but also the simulation environment accessed does not need code modification. The middleware of the embodiment of the present application can automatically analyze the simulation protocol, generate the framework code of the corresponding protocol, and encapsulate the data required by the simulation system into the corresponding protocol and push it to the target system. The method of the embodiment of the present application designs a time series prediction mechanism to correct the null value, jump value and other situations within the unit time step to ensure the integrity of the simulation environment data.
[0050] An embodiment of the present application also proposes a heterogeneous simulation system, which is applied to a heterogeneous simulation environment under a simulation system with multiple different simulation protocols, including a processor and a memory, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the steps of the heterogeneous simulation environment protocol interconnection method as described above are implemented.
[0051] It should be noted that in the various embodiments of the present application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0052] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0053] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0054] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A heterogeneous simulation environment protocol interconnection method, characterized in that: Heterogeneous simulation environments under simulation systems with multiple different simulation protocols, including: Initializing the simulation routing middleware in the heterogeneous simulation environment and loading the routing mapping table; Configure the routing configuration relationship and event distribution rules of each simulation system, wherein the routing configuration relationship includes the system name and data transmission protocol; After receiving any simulation system protocol connection request, the simulation routing middleware searches for the corresponding protocol adapter component according to the existing data transmission protocol; Establishing a mapping connection between simulation systems according to the found protocol adapter component; Perform time prediction on the simulation model running data of the simulation system to fill the timing gap of the minimum advancement time of the simulation model; Execute simulation and distribute simulation data to corresponding addresses according to routing configuration relationships.
2. The heterogeneous simulation environment protocol interconnection method according to claim 1, characterized in that: Initialize the simulation routing middleware, and use the K-means algorithm to dynamically load the routing strategy table during the process of loading the routing mapping table.
3. The heterogeneous simulation environment protocol interconnection method according to claim 1, characterized in that: The configured routing configuration relationship also includes: system IP, port, and the configured routing information is loaded into the running memory.
4. The heterogeneous simulation environment protocol interconnection method according to claim 3, characterized in that: In the case where the corresponding protocol adapter component cannot be found according to the existing data transmission protocol, it also includes: The connected simulation system protocol is parsed and the entity code of the simulation object is generated. The corresponding interactive object mapping is generated by compiling, so as to encapsulate and distribute the data in the mapping connection of the interactive data based on the interactive object mapping.
5. The heterogeneous simulation environment protocol interconnection method according to claim 1, characterized in that: Only normal events in the simulation process are recorded, and intervention is carried out on abnormal events.
6. The heterogeneous simulation environment protocol interconnection method according to claim 5, characterized in that: Also includes: Interventions for abnormal events include: The simulation model running data of the simulation system is predicted in time, where the LSTM model is introduced into the time prediction. The LSTM model is used to predict the timing gaps to complete the minimum advancement time of the simulation model and fill in the abnormal data.
7. The heterogeneous simulation environment protocol interconnection method according to claim 6, characterized in that: Also includes: When there is no need to process simulation events, the route is paused or destroyed, and when the route is destroyed, the route configuration information is destroyed from the memory.
8. A heterogeneous simulation system, characterized in that: A heterogeneous simulation environment under a simulation system applied to multiple different simulation protocols includes a processor and a memory, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the steps of the heterogeneous simulation environment protocol interconnection method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Software / hardware joint simulation system based on OPC-UA and self-adaptive collaboration method thereof
CN111897300A
Inter-model heterogeneous interconnection system and method of low-orbit constellation system simulation system
CN115766896A
Collaborative simulation method and system for heterogeneous system
CN116956557A
Simulation task scheduling method, device, equipment and system
CN118916128A
Extensible hybrid simulation system for combining heterogeneous simulation Models
KR102660041B1