Interface configuration method and device of simulation model and network data simulation model

By acquiring the network data interface table and automatically configuring the network data interface and packet processing model, the problem of high complexity and error-proneness in building network data simulation models in existing technologies is solved, and efficient and accurate simulation model building is achieved.

CN115935621BActive Publication Date: 2026-04-28BEIJING RUNKE GENERAL TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING RUNKE GENERAL TECH
Filing Date
2022-11-24
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing technologies require manual processing of a large number of different types of network data interfaces when building network data simulation models, resulting in high complexity, error-proneness, and tediousness in model building.

Method used

By obtaining the network data interface table, using the network data interface identifier and the corresponding send/receive parameters and data packet configuration parameters, the network data interface and data packet processing model are automatically configured, and the target network data interface, data packet processing model and data processing interface are connected in sequence to realize the automated construction of the network data simulation model.

Benefits of technology

It simplifies the process of building network data simulation models, improves building efficiency, reduces human error, and ensures the accuracy and reliability of the models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115935621B_ABST
    Figure CN115935621B_ABST
Patent Text Reader

Abstract

The application discloses an interface configuration method and device of a simulation model and a network data simulation model. The interface configuration method of the simulation model comprises the following steps: obtaining a network data interface table, configuring a network data interface corresponding to a network data interface identifier according to network transceiving parameters corresponding to the network data interface identifier, obtaining a target network data interface, configuring a data packet processing model corresponding to the network data interface identifier according to data packet configuration parameters corresponding to the network data interface identifier, and obtaining a target data packet processing model, searching for a data processing interface corresponding to the network data interface identifier in the target network data processing model, connecting the target network data interface, the target data packet processing model and the data processing interface in sequence according to the same network data interface identifier, and obtaining a target network data simulation model. According to the embodiment of the application, the building process of the network data simulation model can be simplified, and the building efficiency of the network data simulation model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of model simulation technology, and in particular relates to an interface configuration method, device and network data simulation model for a simulation model. Background Technology

[0002] By establishing a network data simulation model to simulate the process of receiving, processing, and sending network data, it is easier to understand how the network data model interacts with actual network data, and this facilitates the analysis of the network data model's interaction with actual network data.

[0003] Currently, building a network data simulation model requires manually establishing connections between the network data processing model and network data interfaces, such as input and output interfaces. Since network data interfaces differ across different types of networks, building a network data simulation model necessitates handling a large number of these interfaces. For example, during the building process, it's highly prone to repeatedly referencing network data interfaces, rendering the simulation model unusable. Especially with a large number of interfaces to process, the simulation model building process is extremely error-prone, resulting in high complexity and cumbersome procedures. Summary of the Invention

[0004] This application provides an interface configuration method, apparatus, and network data simulation model for a simulation model, which can simplify the construction process of the network data simulation model and improve the construction efficiency of the network data simulation model.

[0005] In a first aspect, embodiments of this application provide an interface configuration method for a simulation model, the method comprising:

[0006] Obtain the network data interface table, which includes at least one network data interface identifier, network transmit / receive parameters corresponding to each network data interface identifier, and data packet configuration parameters corresponding to each network data interface identifier. The network data interface identifier is used to identify the network data interface.

[0007] Based on the network transmit / receive parameters corresponding to the network data interface identifier, configure the network data interface corresponding to the network data interface identifier to obtain the target network data interface, and...

[0008] Based on the packet configuration parameters corresponding to the network data interface identifier, configure the packet processing model corresponding to the network data interface identifier to obtain the target packet processing model.

[0009] Locate the data processing interface in the target network data processing model that corresponds to the network data interface identifier.

[0010] By sequentially connecting the target network data interface, the target data packet processing model, and the data processing interface, corresponding to the same network data interface identifier, a target network data simulation model is obtained.

[0011] In some possible implementations of the first aspect, the network transmit / receive parameters corresponding to the network data interface identifier include network transmit / receive parameters corresponding to a preset network, wherein the preset network includes at least one of the following networks: Reflective Memory Network (RFM), Data Distribution Network (DDS), and Ethernet Network (UDP).

[0012] In some possible implementations of the first aspect, the network data interface table also includes a preset network simulation mode corresponding to the network data interface identifier, which, for the same network data interface identifier, is sequentially connected to the target network data interface, the target data packet processing model, and the data processing interface, including:

[0013] Obtain the preset network selection model.

[0014] Configure the preset network selection model according to the preset network simulation mode corresponding to the network data interface identifier to obtain the target network selection model.

[0015] When the network data interface identifier is the same as the network data receiving interface identifier, a connection is established between the target network selection model and the data processing interface. Additionally, for the same network data interface identifier, a connection is established between the target network data interface and the target data packet processing model.

[0016] Integrate the target data packet processing model into the target network selection model.

[0017] In some possible implementations of the first aspect, the packet configuration parameters corresponding to the network data interface identifier include data type and data offset.

[0018] In some possible implementations of the first aspect, when the network data interface identifier is a network data receiving interface identifier, the packet processing model includes a data unpacking model. Based on the packet configuration parameters corresponding to the network data interface identifier, the packet processing model corresponding to the network data interface identifier is configured to obtain the target packet processing model, including:

[0019] Based on the data type and data offset, configure the data unpacking model corresponding to the network data interface identifier to obtain the target data unpacking model, so that the target data unpacking model can parse data packets according to the data type and data offset.

[0020] In some possible implementations of the first aspect, when the network data interface identifier is a network data sending interface identifier, the packet processing model includes a data packaging model. Based on the packet configuration parameters corresponding to the network data interface identifier, the packet processing model corresponding to the network data interface identifier is configured to obtain the target packet processing model, which includes:

[0021] Based on the data type and data offset, configure the data packaging model corresponding to the network data interface identifier to obtain the target data packaging model, so that the target data packaging model can package the received data according to the data type and data offset.

[0022] Among the possible implementations of the first aspect, the method also includes:

[0023] Obtain the data package generated by the target data packaging model.

[0024] If the detection data includes preset default values, cancel sending data packets.

[0025] Among the possible implementations of the first aspect, finding the data processing interface in the target network data processing model corresponding to the network data interface identifier includes:

[0026] When the data processing interface corresponding to the network data interface identifier is connected to the historical network data interface, the path information between the historical network data interface and the data processing interface is obtained. Among them, the historical network data interface is different from the target network data interface.

[0027] Delete the connection between the data processing interface and the historical network data interface, and delete the path information.

[0028] In some possible implementations of the first aspect, when the network data interface identifier is a network data receiving interface identifier, the data processing interface is the data receiving interface of the target network data processing model.

[0029] When the network data interface identifier is a network data sending interface identifier, the data processing interface is the data sending interface of the target network data processing model.

[0030] Thirdly, this application provides a network data simulation model, which is configured according to the interface configuration method of the simulation model in the first aspect or any implementable embodiment of the first aspect.

[0031] The network data simulation model includes at least one network data interface, a packet processing model, and a target network data processing model. The target network data processing model includes data processing interfaces that correspond one-to-one with the network data interface identifiers.

[0032] The data processing interfaces in the network data interface, packet processing model, and target network data processing model are connected sequentially, corresponding to the same network data interface identifier.

[0033] In some possible implementations of the second aspect, the network data simulation model also includes a target network selection model, the packet processing model includes a data unpacking model and a data packing model, and the data processing interface includes a data receiving interface and a data sending interface.

[0034] Specifically, corresponding to the same network data interface identifier, the data receiving interface and the data unpacking model are connected. The data unpacking model is accessed by the target network data processing model through the target network selection model.

[0035] The data packaging model is connected to the data sending interface, corresponding to the same network data interface identifier.

[0036] In some possible implementations of the second aspect, the network transmit / receive parameters corresponding to the network data interface identifier include network transmit / receive parameters corresponding to a preset network, wherein the preset network includes at least one of the following networks: a reflective memory network, a data distribution network, and an Ethernet network.

[0037] Thirdly, embodiments of this application provide an interface configuration device for a simulation model, the device comprising:

[0038] The acquisition module is used to acquire a network data interface table, wherein the network data interface table includes at least one network data interface identifier and network transmit / receive parameters corresponding to each network data interface identifier. The network data interface identifier is used to identify the network data interface.

[0039] The processing module is used to configure the network data interface corresponding to the network data interface identifier based on the network transmit / receive parameters corresponding to the network data interface identifier, thereby obtaining the target network data interface, and...

[0040] The processing module is also used to configure the packet processing model corresponding to the network data interface identifier based on the packet configuration parameters corresponding to the network data interface identifier, thereby obtaining the target packet processing model.

[0041] The processing module is also used to locate the data processing interface in the target network data processing model that corresponds to the network data interface identifier.

[0042] The processing module is also used to connect the target network data interface, the target data packet processing model, and the data processing interface in sequence to the same network data interface identifier to obtain the target network data simulation model.

[0043] Fourthly, this application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions; and an interface configuration method for the processor to implement the simulation model in the first aspect or any implementable mode of the first aspect when executing the computer program instructions.

[0044] Fifthly, this application provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the interface configuration method of the simulation model described in the first aspect or any implementable mode of the first aspect.

[0045] In a sixth aspect, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform an interface configuration method for a simulation model as described in the first aspect or any implementable embodiment of the first aspect.

[0046] The simulation model interface configuration method, apparatus, and network data simulation model of this application embodiment obtain a network data interface table, wherein the network data interface table includes at least one network data interface identifier and network transmit / receive parameters corresponding to each network data interface identifier, and the network data interface identifier is used to identify the network data interface. Next, based on the network transmit / receive parameters corresponding to the network data interface identifier, the network data interface corresponding to the network data interface identifier is automatically configured to obtain the target network data interface. Furthermore, based on the data packet configuration parameters corresponding to the network data interface identifier, the data packet processing model corresponding to the network data interface identifier is automatically configured to obtain the target data packet processing model. Finally, the data processing interface corresponding to the network data interface identifier in the target network data processing model is automatically found, and corresponding to the same network data interface identifier, the target network data interface, the target data packet processing model, and the data processing interface are sequentially connected to obtain the target network data simulation model. Therefore, the construction of the network data simulation model can be automated, thereby improving the efficiency of network data simulation model construction. Attached Figure Description

[0047] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 This is a flowchart illustrating an interface configuration method for a simulation model provided in an embodiment of this application.

[0049] Figure 2 This is a schematic diagram of the structure of a target network data simulation model provided in an embodiment of this application;

[0050] Figure 3 This is a flowchart illustrating another simulation model interface configuration method provided in this application embodiment;

[0051] Figure 4 This is a schematic diagram of the structure of an interface configuration device for a simulation model provided in an embodiment of this application;

[0052] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0053] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0054] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0055] By establishing a network data simulation model to simulate the process of receiving, processing, and sending network data, it is easier to understand how the network data model interacts with actual network data, and this facilitates the analysis of the network data model's interaction with actual network data.

[0056] Currently, building a network data simulation model requires manually establishing connections between the network data processing model and network data interfaces, such as input and output interfaces. Since network data interfaces differ across different types of networks, building a network data simulation model necessitates handling a large number of these interfaces. For example, during the building process, it's highly prone to repeatedly referencing network data interfaces, rendering the simulation model unusable. Especially with a large number of interfaces to process, the simulation model building process is extremely error-prone, resulting in high complexity and cumbersome procedures.

[0057] In response to this, embodiments of this application provide an interface configuration method and apparatus for a simulation model, as well as a network data simulation model, which can simplify the construction process of a network data simulation model and improve the construction efficiency of a network data simulation model.

[0058] The interface configuration method of the simulation model provided in the embodiments of this application is described below with reference to the accompanying drawings. Figure 1 A flowchart illustrating an interface configuration method for a simulation model provided in one embodiment of this application is shown. Figure 1 As shown, the method may include steps 110 to 150.

[0059] Step 110: Obtain the network data interface table.

[0060] The network data interface table includes at least one network data interface identifier, network transmit / receive parameters corresponding to each network data interface identifier, and data packet configuration parameters corresponding to each network data interface identifier. The network data interface identifier is used to identify the network data interface.

[0061] For example, in the network data interface table, the network data interface identifier is used to identify the network data interface. The network data interface identifier can be directly used as the name of the network data interface, and the corresponding network data interface can be found based on the network data interface identifier. There is a one-to-one correspondence between the network data interface identifier and the network data interface, and the network data interface identifier is a unique identifier for that network data interface, thereby improving the accuracy of finding the network data interface.

[0062] In some embodiments, the network transmit / receive parameters corresponding to the network data interface identifier include network transmit / receive parameters corresponding to a preset network, wherein the preset network includes at least one of the following networks: a reflective memory network, a data distribution network, and an Ethernet network.

[0063] For example, when the network data interface is identified as a network data receiving interface, the network transmit / receive parameters corresponding to the Reflective Memory Network (RFM) may include the receiving board of the Reflective Memory Network and the receiving address of the Reflective Memory Network. The network transmit / receive parameters corresponding to the Data Distribution Service (DDS) may include the receiving logical partition of the Data Distribution Service and the data receiving length of the Data Distribution Service; the network transmit / receive parameters corresponding to the User Datagram Protocol (UDP) may include the receiving port of the Ethernet network and the data receiving length of the Ethernet network.

[0064] When the network data interface is identified as a network data transmission interface, the network transmit / receive parameters corresponding to the reflective memory network may include the transmission board and transmission address of the reflective memory network. The network transmit / receive parameters corresponding to the data distribution network may include the transmission logical partition of the data distribution network; the network transmit / receive parameters corresponding to the Ethernet network may include the transmission port and data transmission length of the Ethernet network.

[0065] According to the embodiments of this application, by providing network transmission and reception parameters with a preset network in the network data interface table, a multi-network data simulation model can be easily established.

[0066] In some embodiments, the packet configuration parameters corresponding to the network data interface identifier can be used as the basis for configuring the packet processing model. For example, in some embodiments, the packet configuration parameters corresponding to the network data interface identifier include data type and data offset.

[0067] The data types include "double", "int32", "bool", "float", "int8", "int16", "uint32", "uint8", and "uint16", etc., which will not be listed here. The configured data packet processing model can parse the received data packets or package the data to be sent according to the data type and data offset.

[0068] Optionally, the network data interface table can be managed in the form of an Excel spreadsheet; no specific restrictions are imposed here.

[0069] According to the embodiments of this application, the network data interface identifier, the network transmit and receive parameters corresponding to each network data interface identifier, and the data packet configuration parameters corresponding to each network data interface identifier are managed through the network data interface table, which facilitates the maintenance or iterative update of the network data interface.

[0070] After obtaining the network data interface table, the following steps can be performed based on the network data interface table.

[0071] Step 120: Configure the network data interface corresponding to the network data interface identifier according to the network transmit and receive parameters corresponding to the network data interface identifier to obtain the target network data interface.

[0072] Step 130: Configure the packet processing model corresponding to the network data interface identifier according to the packet configuration parameters corresponding to the network data interface identifier, and obtain the target packet processing model.

[0073] For example, when the network data interface identifier is a network data receiving interface identifier, the data packet processing model includes a data unpacking model. When configuring the data unpacking model, specifically, the data unpacking model corresponding to the network data interface identifier can be configured according to the data type and data offset to obtain the target data unpacking model, so that the target data unpacking model can parse the data packet according to the data type and data offset.

[0074] Optionally, when the simulation mode is a reflective memory network, the data offset in the corresponding target data unpacking model can be set to 0. In this embodiment, the target data unpacking model can parse the data packets received by the network data receiving interface based on the data offset and data type.

[0075] In some embodiments, when the network data interface identifier is a network data sending interface identifier, the data packet processing model includes a data packaging model. When configuring the data packaging model, specifically, the data packaging model corresponding to the network data interface identifier can be configured according to the data type and data offset to obtain a target data packaging model, so that the target data packaging model packages the received data according to the data type and data offset.

[0076] Optionally, when the simulation mode is a reflective memory network, the data offset in the corresponding target data packaging model can be set to 0. In the embodiments of this application, the target data packaging model can package the data output by the target network data processing model according to the data offset and data type.

[0077] In some embodiments, the integrity of the data packet generated by the target data packaging model can be checked before it is sent through the network data transmission interface. Specifically, the data packet generated by the target data packaging model is obtained, and if the detected data includes preset default values, the transmission of the data packet is canceled.

[0078] For example, if the target data packaging model fails to obtain the network parameters corresponding to the data during the data packaging process, it can add preset default values ​​to the data filling positions corresponding to the network parameters before generating the data packet. According to the embodiments of this application, by detecting whether the data packet includes preset default values, invalid data packets can be effectively avoided. In some embodiments, during the data packaging process, the target data packaging model can fill the unfilled fields in the data packet with preset filling values. Optionally, the preset filling value can be 0 to avoid the receiver being unable to parse the data packet after receiving it, resulting in the sending of invalid data packets.

[0079] Step 140: Locate the data processing interface in the target network data processing model that corresponds to the network data interface identifier.

[0080] It is understood that the execution order of steps 120, 130 and 140 is only exemplary. There are multiple ways to execute steps 120, 130 and 140. For example, steps 120, 130 and 140 can be executed simultaneously, or steps 130 and 140 can be executed first, and then step 120 can be executed. The execution order of steps 120, 130 and 140 will not be listed one by one here.

[0081] Step 150: For the same network data interface identifier, connect the target network data interface, the target data packet processing model, and the data processing interface in sequence to obtain the target network data simulation model.

[0082] Alternatively, the input and output attributes of the network data interface can also be reflected in the network data interface identifier corresponding to the network data interface. For example, in the network data interface table, the network data interface identifier is named "INPUT_01", "INPUT_02", "INPUT_03", "ONPUT_01", "ONPUT_02", and "ONPUT_03", which is not specifically limited here.

[0083] In another example, the network data interface table may also include attribute information of the network data interface. For example, the attribute information may include the input and output attributes of the network data interface. Specifically, in the network data interface table, the input attribute may be represented as "input" and the output attribute may be represented as "output".

[0084] Therefore, by sequentially connecting the target network data interface, the target data packet processing model, and the data processing interface to the same network data interface identifier, an accurate target network data simulation model can be obtained.

[0085] According to the embodiments of this application, after obtaining the network data interface table, the network data interface corresponding to the network data interface identifier can be automatically configured according to the network transmit / receive parameters corresponding to the network data interface identifier to obtain the target network data interface. Furthermore, the data packet processing model corresponding to the network data interface identifier can be automatically configured according to the data packet configuration parameters corresponding to the network data interface identifier to obtain the target data packet processing model. Additionally, the data processing interface corresponding to the network data interface identifier in the target network data processing model is automatically searched, and for the same network data interface identifier, the target network data interface, the target data packet processing model, and the data processing interface are sequentially connected to obtain the target network data simulation model. This enables automated construction of the network data simulation model, thereby improving the efficiency of network data simulation model construction. Moreover, since the data in the network data interface table can be easily managed, it is beneficial to conveniently and accurately control the parameters corresponding to each network data interface, reducing the impact of manual referencing of network data interfaces, thereby achieving accurate construction of the target network data simulation model.

[0086] In some embodiments, step 140 described above may specifically include: when the data processing interface corresponding to the network data interface identifier is connected to a historical network data interface, obtaining path information between the historical network data interface and the data processing interface, wherein the historical network data interface is a network data interface different from the target network data interface; deleting the connection relationship between the data processing interface and the historical network data interface, and deleting the path information.

[0087] Specifically, based on the network data interface identifier, the data processing interface that needs to be connected to the network data interface can be found in the target network data processing model. For example, when the network data interface identifier is a network data receiving interface, the data processing interface is the data receiving interface of the target network data processing model. When the network data interface identifier is a network data sending interface identifier, the data processing interface is the data sending interface of the target network data processing model.

[0088] For example, the target network data processing model can be reused. When building different target network data processing models, the network data interfaces connected to the data processing interface may differ. To avoid redundant network data interfaces being connected to the target network data processing model, or to avoid incorrect network data interfaces being connected to the target network data processing model, when the network data interface identifier corresponds to a data processing interface connected to a historical network data interface, the connection relationship between the data processing interface and the historical network data interface is deleted, as well as the path information, to improve the accuracy of the target network data simulation model.

[0089] In some embodiments, a network selection model can also be added to the target network data simulation model. Specifically, the network data interface table also includes preset network simulation modes corresponding to the network data interface identifier. For example, the preset network simulation modes corresponding to the network data interface identifier include RFM network simulation mode, DDS network simulation mode, and UDP network simulation mode, etc., which will not be listed here.

[0090] For details regarding step 150 above, please refer to steps 151 to 154.

[0091] Step 151: Obtain the preset network selection model.

[0092] Step 152: Configure the preset network selection model according to the preset network simulation mode corresponding to the network data interface identifier to obtain the target network selection model.

[0093] Step 153: When the network data interface identifier is the network data receiving interface identifier, establish a connection between the target network selection model and the data processing interface, and establish a connection between the target network data interface and the target data packet processing model corresponding to the same network data interface identifier.

[0094] Step 154: Connect the target data packet processing model to the target network selection model to obtain the target network data simulation model.

[0095] For example, the preset network selection model can use commonly used selection models from the preset model library. After obtaining the preset network selection model, the simulation network can be configured for the preset network selection model according to the preset network simulation mode corresponding to each network data interface identifier.

[0096] For example, when the preset network simulation mode corresponding to the network data interface identifier in the network data interface table includes three network simulation modes: RFM network simulation mode, DDS network simulation mode, and UDP network simulation mode, the input port of the preset network selection model can be set to 3, and each input segment of the preset network selection model can be set to correspond to a preset network to obtain the target network selection model. Based on the 3 input ports of the target network selection model, network data sent from different networks can be received respectively.

[0097] Next, when the network data interface identifier is the same as the network data receiving interface identifier, a connection is established between the target network selection model and the data processing interface. Also, for the same network data interface identifier, a connection is established between the target network data interface and the target data packet processing model. The target data packet processing model is then integrated into the target network selection model to obtain the target network data simulation model.

[0098] For example, Table 1 shows the parameter information corresponding to some network data interface identifiers in the network data interface table of a target network data simulation model provided in this application embodiment, as shown in Table 1.

[0099] Table 1

[0100]

[0101] According to the interface configuration method of the simulation model provided in the embodiments of this application, the embodiments of this application also provide a network data simulation model.

[0102] The network data simulation model includes at least one network data interface, a packet processing model, and a target network data processing model. The target network data processing model includes data processing interfaces that correspond one-to-one with the network data interface identifiers.

[0103] The data processing interfaces in the network data interface, packet processing model, and target network data processing model are connected sequentially, corresponding to the same network data interface identifier.

[0104] In some embodiments, the network data simulation model further includes a target network selection model, the packet processing model includes a data unpacking model and a data packing model, and the data processing interface includes a data receiving interface and a data sending interface.

[0105] Specifically, corresponding to the same network data interface identifier, the data receiving interface and the data unpacking model are connected. The data unpacking model is accessed by the target network data processing model through the target network selection model.

[0106] The data packaging model is connected to the data sending interface, corresponding to the same network data interface identifier.

[0107] In some embodiments, the network transmit / receive parameters corresponding to the network data interface identifier include network transmit / receive parameters corresponding to a preset network, wherein the preset network includes at least one of the following networks: a reflective memory network, a data distribution network, and an Ethernet network.

[0108] For example, Figure 2 This is a schematic diagram of the structure of a target network data simulation model provided in an embodiment of this application. For simplicity, in... Figure 2 The target network simulation model shown only shows the network interface access to the target network data processing model corresponding to some of the network data interface identifiers.

[0109] Taking the network data interface identifier INPUT_01 in Table 1 as an example, the simulation mode corresponding to the network data interface identifier INPUT_01 is RFM. Combined with... Figure 2As shown, the network data interface 211 corresponding to the network data interface identifier INPUT_01 is connected to the data unpacking model. The output of the data unpacking model 221 is connected to the input of the network selection model 240. The output of the network selection model 240 is connected to the input of the target network data processing model 230. The output of the target network data processing model 230 is connected to the input of the data packing model 222. The output of the data packing model 222 is connected to the RFM sending interface 212.

[0110] According to the embodiments of this application, by adding a target network selection model between the target network data module and the data unpacking module, it is convenient to select the input network data to the target network data module under different simulation modes. Furthermore, different simulation modes can be easily adjusted during the simulation process.

[0111] To provide a clearer picture of this application, the following describes the interface configuration method for the simulation model provided in this application embodiment using a specific example. Figure 3 This is a flowchart illustrating another simulation model interface configuration method provided in this application embodiment, combined with... Figure 3 As shown.

[0112] Step 301: Traverse the folder and obtain the N network data interface table.

[0113] Within a folder, there may be one or more network data interface tables, and each network data interface table corresponds to a target network data simulation model.

[0114] Step 302: Read the (n+1)th network data interface table.

[0115] Step 303: Obtain the total number of rows M in the network data interface table.

[0116] Step 304: Traverse the network data interface table and read the (m+1)th row.

[0117] Step 305: Open the network data processing model.

[0118] Step 306: Obtain the network data interface identifier in the (m+1)th row.

[0119] The network data interface table includes at least one network data interface identifier. Optionally, each network data interface identifier corresponds to one row. The network data interface table also includes network transmit / receive parameters and packet configuration parameters corresponding to each network data interface identifier.

[0120] If the network data interface identifier is a network data receiving interface identifier, proceed to step 311; if the network data interface identifier is a network data sending interface identifier, proceed to step 331.

[0121] Step 311: Determine whether the network data interface module corresponding to the network data receiving interface identifier has been added to the network data processing model. If it has been added, proceed to step 318; otherwise, proceed to step 312.

[0122] Step 312: Create the network data interface corresponding to the network data receiving interface identifier.

[0123] When creating a network data interface module, network transmit and receive parameters need to be configured for the network data interface to obtain the target network data interface. When the network data receiving interface identifier corresponds to an RFM receiving interface, proceed to step 313. When the network data receiving interface identifier corresponds to a DDS receiving interface, proceed to step 314. When the network data receiving interface identifier corresponds to a UDP receiving interface, proceed to step 315.

[0124] Step 313: Fill in the receiving board of the reflective memory network and the receiving address of the reflective memory network.

[0125] Step 314: Fill in the receiving logical partition of the data distribution network and the data receiving length of the data distribution network.

[0126] Step 315: Fill in the Ethernet network's receive port and the Ethernet network's data receive length.

[0127] Step 316: Configure the data unpacking model.

[0128] When the network data interface is identified as the network data receiving interface, the data packet processing model includes the data unpacking model.

[0129] Step 317: Set the data type and data offset.

[0130] By setting the data type and data offset in the data unpacking model, the target data packet processing model can be obtained. Specifically, when configuring the data unpacking model, the network data interface identifier can be configured with the data unpacking model corresponding to the data type and data offset to obtain the target data unpacking model, enabling the target data unpacking model to parse data packets according to the data type and data offset.

[0131] Step 318, variable lookup.

[0132] The variable can be the network data interface identifier in the network data interface table. By looking up the variable, the path information corresponding to the network data interface identifier can be determined. Path information includes, for example, the target network data interface, the target packet processing model, and the data processing interface that need to be connected sequentially.

[0133] Step 319, add network selection model.

[0134] The network selection model can be a preset network selection model.

[0135] Step 320: Fill in the simulation mode.

[0136] The network data interface table also includes preset network simulation modes corresponding to the network data interface identifier. Based on the preset network simulation mode corresponding to the network data interface identifier, a preset network selection model is configured to obtain the target network selection model.

[0137] Step 321, connect the module.

[0138] The connection module can use the path information obtained from variable lookup to sequentially connect to the target network data interface, target data packet processing model, and data processing interface according to the corresponding network data interface identifier. After each connection is completed, step 341 can be executed.

[0139] Step 331: Determine whether the network data sending module corresponding to the network data sending interface identifier has been added.

[0140] If it has already been added, proceed to step 338; otherwise, proceed to step 332.

[0141] Step 332: Create the network data interface corresponding to the network data sending interface identifier.

[0142] When creating a network data interface module, network send / receive parameters need to be configured for the network data interface to obtain the target network data interface. When the network data sending interface identifier corresponds to an RFM sending interface, proceed to step 333. When the network data sending interface identifier corresponds to a DDS sending interface, proceed to step 334. When the network data sending interface identifier corresponds to a UDP sending interface, proceed to step 335.

[0143] Step 333: Fill in the receiving board of the reflective memory network and the receiving address of the reflective memory network.

[0144] Step 334: Fill in the receiving logical partition of the data distribution network and the data receiving length of the data distribution network.

[0145] Step 335: Fill in the Ethernet network's receive port and the Ethernet network's data receive length.

[0146] Step 336: Configure the data packaging model.

[0147] When the network data interface is identified as the network data receiving interface, the data packet processing model includes the data packaging model.

[0148] Step 337: Set the data type and data offset.

[0149] By setting the data type and data offset in the data packaging model, the target data packet processing model can be obtained. Specifically, when configuring the data packaging model, the network data interface identifier can be configured with the corresponding data packaging model based on the data type and data offset to obtain the target data packaging model, enabling the target data packaging model to parse data packets according to the data type and data offset.

[0150] Step 338, variable lookup.

[0151] The variable can be the network data interface identifier in the network data interface table. By looking up the variable, the path information corresponding to the network data interface identifier can be determined. Path information includes, for example, the target network data interface, the target packet processing model, and the data processing interface that need to be connected sequentially.

[0152] Step 339: Fill in the blanks.

[0153] By setting a padding value, when the target data packaging model fails to obtain the network parameters corresponding to the data during the data packaging process, a preset default value can be added to the data padding position corresponding to the network parameters. Optionally, the preset padding value can be 0.

[0154] Step 340, connect the module.

[0155] The connection module can use the path information obtained from variable lookup to sequentially connect to the target network data interface, target data packet processing model, and data processing interface according to the corresponding network data interface identifier. After each connection is completed, step 341 can be executed.

[0156] Step 341, m < M.

[0157] If yes, return to step 304. If no, proceed to step 342.

[0158] Step 342, save the model.

[0159] When m is not less than M, it means that the target network data simulation model has been configured for each network data interface identifier in the network data interface table, and the target network data simulation model can be saved.

[0160] Step 343, n < N.

[0161] If yes, return to step 302. If no, then the target network data simulation model has been established for each network data interface table in this folder.

[0162] The process is complete.

[0163] Based on the same inventive concept, this application also provides an interface configuration device 400 for a simulation model corresponding to the interface configuration method of the above-mentioned simulation model. Specifically, in conjunction with... Figure 4 Please provide a detailed explanation.

[0164] Figure 4 This is a schematic diagram of the structure of an interface configuration device for a simulation model provided in an embodiment of this application, as shown below. Figure 4 As shown, the interface configuration device 300 of the simulation model may include: an acquisition module 410 and a processing module 420.

[0165] Specifically, the acquisition module 410 is used to acquire a network data interface table, wherein the network data interface table includes at least one network data interface identifier and network transmit / receive parameters corresponding to each network data interface identifier, and the network data interface identifier is used to identify the network data interface.

[0166] Processing module 420 further configures the network data interface corresponding to the network data interface identifier according to the network transmit / receive parameters corresponding to the network data interface identifier, thereby obtaining the target network data interface, and...

[0167] Processing module 420 is also used to configure the packet processing model corresponding to the network data interface identifier according to the packet configuration parameters corresponding to the network data interface identifier, so as to obtain the target packet processing model.

[0168] Processing module 420 is also used to locate the data processing interface in the target network data processing model that corresponds to the network data interface identifier.

[0169] The processing module 420 is also used to connect the target network data interface, the target data packet processing model and the data processing interface in sequence to the same network data interface identifier to obtain the target network data simulation model.

[0170] In some embodiments, the network transmit / receive parameters corresponding to the network data interface identifier include network transmit / receive parameters corresponding to a preset network, wherein the preset network includes at least one of the following networks: Reflective Memory Network (RFM), Data Distribution Network (DDS), and Ethernet Network (UDP).

[0171] In some embodiments, the network data interface table may also include a preset network simulation mode corresponding to the network data interface identifier.

[0172] The acquisition module 410 is also used to acquire a preset network selection model.

[0173] The processing module 420 is also used to configure a preset network selection model according to the preset network simulation mode corresponding to the network data interface identifier, so as to obtain the target network selection model.

[0174] The processing module 420 is also used to establish a connection between the target network selection model and the data processing interface when the network data interface identifier is the network data receiving interface identifier, and to establish a connection between the target network data interface and the target data packet processing model corresponding to the same network data interface identifier.

[0175] The processing module 420 is also used to connect the target data packet processing model to the target network selection model.

[0176] In some embodiments, the packet configuration parameters corresponding to the network data interface identifier include data type and data offset.

[0177] In some embodiments, when the network data interface identifier is a network data receiving interface identifier, the packet processing model includes a data unpacking model.

[0178] The processing module 420 is also used to configure the data unpacking model corresponding to the network data interface identifier according to the data type and data offset, so as to obtain the target data unpacking model, so that the target data unpacking model can parse the data packet according to the data type and data offset.

[0179] In some embodiments, when the network data interface identifier is the network data receiving interface identifier, the data processing interface is the data receiving interface of the target network data processing model.

[0180] When the network data interface identifier is the network data sending interface identifier, the data processing interface is the data sending interface of the target network data processing model.

[0181] In some embodiments, when the network data interface identifier is a network data sending interface identifier, the data packet processing model includes a data packaging model.

[0182] The processing module 420 is also used to configure the data packaging model corresponding to the network data interface identifier according to the data type and data offset, so as to obtain the target data packaging model, so that the target data packaging model can package the received data according to the data type and data offset.

[0183] In some embodiments, the acquisition module 410 is further configured to acquire the data packet generated by the target data packaging model.

[0184] The processing module 420 is also used to cancel sending data packets when the detection data includes preset default values.

[0185] In some embodiments, the processing module 420 is further configured to obtain path information between the historical network data interface and the data processing interface when the data processing interface corresponding to the network data interface identifier is connected to the historical network data interface, wherein the historical network data interface is a network data interface that is different from the target network data interface.

[0186] The processing module 420 is also used to delete the connection relationship between the data processing interface and the historical network data interface, as well as to delete path information.

[0187] It is understood that the simulation model interface configuration device 400 in this application embodiment can correspond to the execution subject of the simulation model interface configuration method in this application embodiment. The specific details of the operation and / or function of each module / unit of the simulation model interface configuration device 400 can be found in the description of the corresponding part in the simulation model interface configuration method in the above application embodiment. For the sake of brevity, it will not be repeated here.

[0188] The interface configuration device for the simulation model in this embodiment acquires a network data interface table, wherein the network data interface table includes at least one network data interface identifier and network transmit / receive parameters corresponding to each network data interface identifier, and the network data interface identifier is used to identify the network data interface. Next, based on the network transmit / receive parameters corresponding to the network data interface identifier, the network data interface corresponding to the network data interface identifier is automatically configured to obtain the target network data interface. Furthermore, based on the data packet configuration parameters corresponding to the network data interface identifier, the data packet processing model corresponding to the network data interface identifier is automatically configured to obtain the target data packet processing model. Additionally, the data processing interface corresponding to the network data interface identifier in the target network data processing model is automatically searched, and for the same network data interface identifier, the target network data interface, the target data packet processing model, and the data processing interface are sequentially connected to obtain the target network data simulation model. Therefore, the automated construction of the network data simulation model can be achieved, thereby improving the efficiency of network data simulation model construction.

[0189] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of this application is shown. Figure 5 As shown, the device may include a processor 501 and a memory 502 storing computer program instructions.

[0190] Specifically, the processor 501 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0191] Memory 502 may include mass storage for information or instructions. For example, and not limitingly, memory 502 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. In one instance, memory 502 may include removable or non-removable (or fixed) media, or memory 502 may be a non-volatile solid-state memory. Memory 502 may be internal or external to an electronic device.

[0192] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to one aspect of this disclosure.

[0193] The processor 501 reads and executes the computer program instructions stored in the memory 502 to implement the method described in the embodiments of this application and achieve the corresponding technical effects achieved by executing the method in the embodiments of this application. For the sake of brevity, it will not be described in detail here.

[0194] In one example, the electronic device may also include a communication interface 503 and a bus 510. Wherein, as... Figure 5 As shown, the processor 501, memory 502, and communication interface 503 are connected through bus 510 and complete communication with each other.

[0195] The communication interface 503 is mainly used to realize communication between various modules, devices, models and / or equipment in the embodiments of this application.

[0196] Bus 510 includes hardware, software, or both, that couples components of an online information flow metering device together. For example, and not as a limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 510 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.

[0197] The electronic device can execute the interface configuration method of the simulation model in the embodiments of this application, thereby achieving the corresponding technical effects of the interface configuration method of the simulation model described in the embodiments of this application.

[0198] Furthermore, in conjunction with the interface configuration method of the simulation model in the above embodiments, this application embodiment can provide a readable storage medium for implementation. This readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement the interface configuration method of any of the simulation models in the above embodiments. Examples of readable storage media can be non-transitory machine-readable media, such as electronic circuits, semiconductor memory devices, read-only memory (ROM), floppy disks, compact disc read-only memory (CD-ROM), optical discs, hard disks, etc.

[0199] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0200] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (ROM), flash memory, erasable read-only memory (EROM), floppy disks, compact disc read-only memory (CD-ROM), optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0201] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0202] This application also provides a computer-readable storage medium storing computer program instructions; when executed by a processor, the computer program instructions implement the interface configuration method of the simulation model provided in this application.

[0203] Furthermore, by combining the interface configuration method and apparatus for the simulation model in the above embodiments, as well as the readable storage medium, this application embodiment can provide a computer program product for implementation. When the instructions in the computer program product are executed by the processor of an electronic device, the electronic device causes the electronic device to execute any of the interface configuration methods for the simulation model in the above embodiments.

[0204] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0205] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A method for configuring the interface of a simulation model, characterized in that, include: A network data interface table is obtained, wherein the network data interface table includes at least one network data interface identifier, network transmit / receive parameters corresponding to each network data interface identifier, and data packet configuration parameters corresponding to each network data interface identifier. The network data interface identifier is used to identify the network data interface. The network data interface table also includes a preset network simulation mode corresponding to the network data interface identifier. The data packet configuration parameters corresponding to the network data interface identifier include data type and data offset. Based on the network transmit / receive parameters corresponding to the network data interface identifier, configure the network data interface corresponding to the network data interface identifier to obtain the target network data interface, and, Based on the packet configuration parameters corresponding to the network data interface identifier, a packet processing model corresponding to the network data interface identifier is configured to obtain a target packet processing model. When the network data interface identifier is a network data receiving interface identifier, the packet processing model includes a data unpacking model. The step of configuring the packet processing model corresponding to the network data interface identifier based on the packet configuration parameters to obtain the target packet processing model includes: configuring the data unpacking model corresponding to the network data interface identifier based on the data type and the data offset to obtain a target data unpacking model, so that the target data unpacking model parses the packet according to the data type and the data offset. Locate the data processing interface in the target network data processing model that corresponds to the network data interface identifier. By sequentially connecting the target network data interface, the target data packet processing model, and the data processing interface, corresponding to the same network data interface identifier, a target network data simulation model is obtained. The target network data simulation model is obtained by sequentially connecting the target network data interface, the target data packet processing model, and the data processing interface, corresponding to the same network data interface identifier, including: Obtain the preset network selection model. Configure the preset network selection model according to the preset network simulation mode corresponding to the network data interface identifier to obtain the target network selection model. When the network data interface identifier is a network data receiving interface identifier, a connection is established between the target network selection model and the data processing interface; and, corresponding to the same network data interface identifier, a connection is established between the target network data interface and the target data packet processing model. The target data packet processing model is connected to the target network selection model to obtain the target network data simulation model.

2. The method according to claim 1, characterized in that, The network transmit / receive parameters corresponding to the network data interface identifier include network transmit / receive parameters corresponding to a preset network, wherein the preset network includes at least one of the following networks: a reflective memory network, a data distribution network, and an Ethernet network.

3. The method according to claim 1, characterized in that, When the network data interface identifier is a network data sending interface identifier, the packet processing model includes a data packetization model. The step of configuring the packet processing model corresponding to the network data interface identifier according to the packet configuration parameters corresponding to the network data interface identifier to obtain the target packet processing model includes: Based on the data type and the data offset, configure the data packaging model corresponding to the network data interface identifier to obtain the target data packaging model, so that the target data packaging model can package the received data according to the data type and the data offset.

4. The method according to claim 3, characterized in that, The method further includes: Obtain the data packet generated by the target data packaging model. If the data includes a preset default value, the data packet is canceled from being sent.

5. The method according to claim 1, characterized in that, The method for finding the data processing interface in the target network data processing model that corresponds to the network data interface identifier includes: When the data processing interface corresponding to the network data interface identifier is connected to the historical network data interface, the path information between the historical network data interface and the data processing interface is obtained, wherein the historical network data interface is a network data interface that is different from the target network data interface. Delete the connection between the data processing interface and the historical network data interface, and delete the path information.

6. The method according to claim 5, characterized in that, When the network data interface identifier is a network data receiving interface identifier, the data processing interface is the data receiving interface of the target network data processing model. When the network data interface identifier is a network data sending interface identifier, the data processing interface is the data sending interface of the target network data processing model.

7. A network data simulation system, characterized in that, The network data simulation system is configured using the interface configuration method of the simulation model according to any one of claims 1 to 6. The network data simulation system includes at least one network data interface, a packet processing model, and a target network data processing model, wherein the target network data processing model includes data processing interfaces that correspond one-to-one with the network data interface identifiers. Corresponding to the same network data interface identifier, the network data interface, the data packet processing model, and the data processing interface in the target network data processing model are connected sequentially.

8. The network data simulation system according to claim 7, characterized in that, The network data simulation system also includes a target network selection model, the data packet processing model includes a data unpacking model and a data packing model, and the data processing interface includes a data receiving interface and a data sending interface. Specifically, corresponding to the same network data interface identifier, the data receiving interface and the data unpacking model are connected, and the data unpacking model is accessed by the target network data processing model through the target network selection model. The data packaging model is connected to the data sending interface, corresponding to the same network data interface identifier.

9. The network data simulation system according to claim 7, characterized in that, The network transmit / receive parameters corresponding to the network data interface identifier include network transmit / receive parameters corresponding to a preset network, wherein the preset network includes at least one of the following networks: a reflective memory network, a data distribution network, and an Ethernet network.

10. An interface configuration device for a simulation model, characterized in that, The device includes: The acquisition module is used to acquire a network data interface table, wherein the network data interface table includes at least one network data interface identifier, network transmit / receive parameters corresponding to each network data interface identifier, and data packet configuration parameters corresponding to each network data interface identifier. The network data interface identifier is used to identify the network data interface. The network data interface table also includes a preset network simulation mode corresponding to the network data interface identifier. The data packet configuration parameters corresponding to the network data interface identifier include data type and data offset. The processing module further configures the network data interface corresponding to the network data interface identifier according to the network transmit / receive parameters corresponding to the network data interface identifier, thereby obtaining the target network data interface, and... The processing module is further configured to configure a data packet processing model corresponding to the network data interface identifier based on the data packet configuration parameters corresponding to the network data interface identifier, thereby obtaining a target data packet processing model. When the network data interface identifier is a network data receiving interface identifier, the data packet processing model includes a data unpacking model. Configuring the data packet processing model corresponding to the network data interface identifier based on the data packet configuration parameters to obtain the target data packet processing model includes: configuring a data unpacking model corresponding to the network data interface identifier based on the data type and the data offset, thereby obtaining a target data unpacking model, so that the target data unpacking model parses data packets according to the data type and the data offset. The processing module is also used to locate the data processing interface in the target network data processing model that corresponds to the network data interface identifier. The processing module is further configured to sequentially connect the target network data interface, the target data packet processing model, and the data processing interface to obtain a target network data simulation model, corresponding to the same network data interface identifier. This step of sequentially connecting the target network data interface, the target data packet processing model, and the data processing interface to obtain the target network data simulation model includes: acquiring a preset network selection model; configuring the preset network selection model according to the preset network simulation mode corresponding to the network data interface identifier to obtain a target network selection model; establishing a connection between the target network selection model and the data processing interface when the network data interface identifier is a network data receiving interface identifier; and establishing a connection between the target network data interface and the target data packet processing model to connect the target data packet processing model to the target network selection model to obtain the target network data simulation model.

Citation Information

Patent Citations

  • Method for constructing spacecraft system simulation model framework of expandable data protocol

    CN112836286A

  • Method and device for optimizing simulation data, and computer-readable storage medium

    US20200082250A1