Modeling and testing method of data link system based on DEVS
Through DEVS hierarchical modeling and mirroring technology, the automation and intelligence challenges of data link system modeling and interoperability testing are solved, accurate simulation and testing of the data link system is achieved, and a real-time distributed simulation test environment is provided.
Patent Information
- Application Number
- CN202110734471.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-06-30
AI Technical Summary
There are huge challenges in automation and intelligence in the modeling and interoperability testing of data link systems. Especially in the face of changing testing requirements, existing technologies are difficult to effectively solve this problem.
Use the discrete event system paradigm (DEVS) for hierarchical modeling, establish a test model through mirroring, use the DEVS atomic model, coupling model and simulation environment for testing, generate the system under test model and test model, and realize the data link system Simulation and testing.
It achieves accurate simulation and testing of the target data link system, can correctly judge the correctness of the system model under test, and provides error levels and error items, supporting a real-time distributed simulation test environment.
Smart Images

Figure CN113536551B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of system modeling. For a target data link system, a discrete event system paradigm (DEVS) is used to perform hierarchical modeling on it, and a test model is obtained by mirroring, so as to perform a test method. Background Art
[0002] The data link system is an information system in which formatted data that conforms to the specified format and communication protocol can be automatically sent and received between participating units such as sensors, weapon platforms, control (C2) units, and non-control units (NC2). As a special link information system, data links are mainly used between military platforms to ensure information sharing and confidentiality. Compared with traditional communication systems, data link systems have better interoperability. Interoperability is the purpose of achieving tactical functions based on the exchange and utilization of data by system participating units. The modeling and interoperability testing of data link systems has always been a huge challenge. In particular, with the development of testing requirements, in order to cope with the ever-changing testing requirements, we need to continuously automate and intelligentize the modeling and interoperability testing of data link systems. This is a task that is very worthy of research and challenge.
[0003] The concept of Discrete Event System Paradigm (DEVS) formalism was first introduced by Bernard Zeigler, which provides a method for modeling discrete event systems in a hierarchical and modular manner. DEVS presents the concepts of system theory and modeling in a special form. It supports capturing system behavior from both physical and behavioral perspectives. DEVS can be used not only for discrete event models, but also as a computational basis for implementing other system formalisms. The atomic model structure of the ported parallel discrete event system specification (DEVS) can be represented by an octet, as shown in the following formula:
[0004] M= <X,S,Y,δ int ,δ ext ,δ con ,λ,ta> (1)
[0005] Among them, X represents the input value set, S represents the state set, Y represents the output value set, δ int represents the internal state transition function, δ ext represents the external state transfer function, δ con represents the emergency state processing function, λ represents the output function, and ta represents the time advancement function.
[0006] The coupled model structure of the ported parallel discrete event system specification (DEVS) can be represented by a six-tuple as follows:
[0007] N= <X,Y,D,M d ,I d ,Z i,d > (2)
[0008] X represents the input set, Y represents the output set, D represents the DEVS atomic model name set, M d represents the DEVS atomic model set, I d represents the set of influencer models of model d, Z i,d Represents the output conversion function from model i to model d. Summary of the invention
[0009] The present invention proposes a modeling and testing method for a data link system based on a discrete event system paradigm (DEVS). DEVS is used to perform hierarchical modeling on a target data link system, and a corresponding test model is established. The test is performed and the test result is given.
[0010] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0011] (1) Establish an input / output behavior model: Use the DEVS atomic model to establish a model of the input / output behavior represented in the target data link system message standard as the basic atomic model;
[0012] (2) Establishing a minimum testable input / output pair model: Based on the input / output behavior model established in step (1), according to the time sequence of the input / output behavior, using the DEVS coupling model, establish a minimum testable input / output pair model as the first-level coupling model;
[0013] (3) Establishing a rule behavior model: Based on the minimum testable input / output pair model established in step (2), according to its dependency relationship, use the DEVS coupling model to establish a single rule behavior model as the second-level coupling model;
[0014] (4) Establishing a scenario behavior model: Based on the rule behavior model established in step (3), according to the dependencies between the rules, a multi-rule scenario behavior model is established using the DEVS coupling model as the third-level coupling model;
[0015] (5) Establishing the system under test model: Based on the scenario behavior model generated in step (4), the ADEVS framework is combined with the network module and the time management module to enable the simulation to communicate using the UDP protocol to support a real-time distributed simulation test environment. Finally, the system under test model is generated using the C++ language.
[0016] (6) Establishing a test model: Mirroring the input / output behavior of the system under test model generated in step (5) to generate a test model;
[0017] (7) Test execution: Run the system model and test model generated in step (5) and step (6). The test model can correctly determine whether the system model correctly implements the rules or tasks in the message standard based on the input / output behavior of the system model. If it is not correctly implemented, the test model gives an error level and an error item.
[0018] (8) Starting with the new rule or task in the standard text of the data link message, repeat steps (1) to (8) to establish the system under test model and test model for all rules.
[0019] Furthermore, the input / output behavior model established in step (1) is specifically:
[0020] 1-1. Analyze the target data link system message standard and extract the input / output behaviors, state transition conditions and actions required for modeling expressed in the text;
[0021] 1-2. Use the DEVS atomic model paradigm to build the HoldSend atomic model to represent the output behavior; the HoldSend atomic model will start the send primitive after waiting for a period of time and send a J series message to the target;
[0022] 1-3. Use the DEVS atomic model paradigm to establish the WaitRecv atomic model to represent the input behavior; the WaitRecv atomic model will keep starting the receive primitive for a period of time, waiting to receive the target message.
[0023] Furthermore, the minimum testable input / output pair model established in step (2) is specifically:
[0024] 2-1. Analyze the time sequence of input / output behaviors in each minimum testable input / output pair in the target data link system message standard;
[0025] 2-2. According to the occurrence order of each input / output behavior in each minimum testable input / output pair, combined with the DEVS coupling model paradigm, the HoldSend atom and WaitRecv atom generated in step (1) are combined to generate an I / ODigraph coupling model as the first-level coupling model.
[0026] Furthermore, the rule behavior model established in step (3) is specifically:
[0027] 3-1. Analyze the dependency relationship between each minimum testable input / output pair in the target rule;
[0028] 3-2. According to the dependency relationship between each minimum testable input / output pair in the target rule, the I / ODigraph coupling models generated in step (2) are combined to generate a RuleDigraph coupling model as the second-level coupling model.
[0029] Furthermore, the scene behavior model is established in step (4) as follows:
[0030] 4-1. Analyze the dependencies between various rules in the target scenario;
[0031] 4-2. According to the dependency relationship between the various rules in the target scene, the various RuleDigraph coupling models generated in step (3) are combined to generate a SceneDigraph coupling model as the third-level coupling model.
[0032] Furthermore, the establishment of the system under test model in step (5) is specifically:
[0033] 5-1. Based on the ADEVS framework, convert the SceneDigraph coupling model generated in step (4) into a C++ language program;
[0034] 5-2. Combine the time management module and the network module to enable the entire simulation system to advance in real time and use the UDP protocol for communication, thereby supporting a real-time distributed simulation test environment.
[0035] Furthermore, the test model is established in step (6) as follows:
[0036] 6-1. Based on the system under test model generated in step (5), mirror its input / output behavior, that is, convert the HoldSend atom into the WaitRecv atom, and convert the WaitRecv atom into the HoldSend atom, thereby obtaining the input / output behavior of the test model;
[0037] 6-2. Similar to establishing the model under test, use the ADEVS framework and combine it with corresponding sub-modules to make the test model support the real-time distributed simulation test environment.
[0038] Furthermore, the test execution in step (7) is specifically:
[0039] 7-1. Run the system model and test model generated in step (5) and step (6) to enable input / output message interaction;
[0040] 7-2. The test model uses the input / output messages of the system model to diagnose whether the system model under test correctly implements the target scenario; if the input / output behavior of the system model under test is correct, the test model output is correct; if the input / output behavior of the system model under test is wrong, the test model output is wrong; and the error level and error item are given;
[0041] 7-3. Error levels are divided into rule level, message level and element level;
[0042] Rule level: used to indicate that the system model under test does not correctly implement the rules in the target scenario;
[0043] Message level: used to indicate that the system model under test does not correctly send the expected message;
[0044] Element level: used to indicate that an element error occurs in the message sent by the system model under test, such as when the element value is not within the correct range specified in the message standard.
[0045] After testing, the present invention has the following beneficial effects:
[0046] 1. For the target data link system, a simulation model was established using the discrete event system paradigm (DEVS), and a corresponding test model was established by means of mirror input / output pairs.
[0047] 2. The test model generated finally can correctly judge the correctness of the system under test model through the input / output behavior of the system under test model. If the system under test model has an error, the test model can correctly give its error level and error items. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 Framework diagram for data link system modeling and testing.
[0049] Figure 2 Flow chart of the method of the present invention.
[0050] Figure 3 Simulation system framework class diagram.
[0051] Specific implementation method (detailed description of the method proposed in the present invention)
[0052] The specific implementation scheme of the present invention will be further described below in conjunction with the accompanying drawings.
[0053] like Figure 1 and 2 As shown, the present invention is specifically implemented as follows:
[0054] Step 1: Establish an I / O behavior model. According to the input / output behavior represented in the target data link message standard, establish the HoldSend and WaitRecv atomic models. Both atomic models are DEVS atomic models.
[0055] Step 2 establishes a minimum testable I / O pair model. Based on the I / O behavior model established in step (1) and its temporal order, an I / O Digraph coupling model is established as the first-level coupling model.
[0056] Step 3 establishes a rule behavior model. Based on the minimum testable I / O pair model established in step (2), combined with the dependency relationship of each minimum testable I / O pair, a RuleDigraph coupling model is established as the second-level coupling model.
[0057] Step 4 establishes a scene behavior model. Based on the rule behavior model established in step (3) and the dependency relationship between the rules, a SceneDigraph coupling model is established as the third-level coupling model.
[0058] Step 5: Establish the model of the system under test, such as Figure 3 As shown, based on the scenario behavior model established in step (4), the ADEVS framework is used to write C++ programming language to implement the scenario behavior model. The time management module is combined to make it transfer states according to real time, and the network communication module is combined to make it support UDP network protocol communication. Finally, a system under test model that supports real-time distributed simulation test environment is generated.
[0059] Step 6 builds a test model to mirror each input / output behavior in the system under test model, that is, converts the HoldSend atomic model in the system under test model into the WaitRecv atomic model, and converts the WaitRecv atomic model into the HoldSend atomic model, and uses the same method to generate the final test model.
[0060] Step 7: Test execution. Run the generated system model and test model. The test model can correctly determine whether the system model correctly implements the elements under test in the target message standard based on the input / output behavior of the system model. If the system model under test is not correctly implemented, the test model will give an error level and error item.
Claims
1. The modeling and testing method of the data link system based on DEVS is characterized by The following steps are involved: (1) Establish an input / output behavior model: Use the DEVS atomic model to establish a model of the input / output behavior represented in the target data link system message standard as the basic atomic model; (2) Establishing a minimum testable input / output pair model: Based on the input / output behavior model established in step (1), according to the time sequence of the input / output behavior, using the DEVS coupling model, establish a minimum testable input / output pair model as the first-level coupling model; (3) Establishing a rule behavior model: Based on the minimum testable input / output pair model established in step (2), according to its dependency relationship, use the DEVS coupling model to establish a single rule behavior model as the second-level coupling model; (4) Establishing a scenario behavior model: Based on the rule behavior model established in step (3), according to the dependencies between the rules, a multi-rule scenario behavior model is established using the DEVS coupling model as the third-level coupling model; (5) Establishing the system under test model: Based on the scenario behavior model generated in step (4), the ADEVS framework is combined with the network module and the time management module to enable the simulation to communicate using the UDP protocol to support a real-time distributed simulation test environment. Finally, the system under test model is generated using the C++ language. (6) Establishing a test model: Mirroring the input / output behavior of the system under test model generated in step (5) to generate a test model; (7) Test execution: Run the system model and test model generated in step (5) and step (6). The test model can correctly determine whether the system model correctly implements the rules or tasks in the message standard based on the input / output behavior of the system model. If it is not correctly implemented, the test model gives an error level and an error item. (8) Starting with the new rule or task in the standard text of the data link message, repeat steps (1) to (8) to establish the system under test model and test model for all rules; The specific steps of establishing the input / output behavior model in step (1) are: 1-1. Analyze the target data link system message standard and extract the input / output behaviors, state transition conditions and actions required for modeling expressed in the text; 1-2. Use the DEVS atomic model paradigm to build the HoldSend atomic model to represent the output behavior; the HoldSend atomic model will start the send primitive after waiting for a period of time and send a J series message to the target; 1-3. Use the DEVS atomic model paradigm to establish the WaitRecv atomic model to represent the input behavior; the WaitRecv atomic model will keep starting the receive primitive for a period of time, waiting to receive the target message; The specific steps of establishing the minimum testable input / output pair model in step (2) are: 2-1. Analyze the time sequence of input / output behaviors in each minimum testable input / output pair in the target data link system message standard; 2-2. According to the occurrence order of each input / output behavior in each minimum testable input / output pair, combined with the DEVS coupling model paradigm, the HoldSend atom and the WaitRecv atom generated in step (1) are combined to generate an I / O Digraph coupling model as the first-level coupling model; The specific steps of establishing the rule behavior model in step (3) are: 3-1. Analyze the dependency relationship between each minimum testable input / output pair in the target rule; 3-2. According to the dependency relationship between each minimum testable input / output pair in the target rule, the I / O Digraph coupling models generated in step (2) are combined to generate a RuleDigraph coupling model as the second-level coupling model; The specific steps of establishing the scene behavior model in step (4) are: 4-1. Analyze the dependencies between various rules in the target scenario; 4-2. According to the dependency relationship between the various rules in the target scene, the various RuleDigraph coupling models generated in step (3) are combined to generate a SceneDigraph coupling model as the third-level coupling model; The specific steps of establishing the system under test model in step (5) are: 5-1. Based on the ADEVS framework, convert the SceneDigraph coupling model generated in step (4) into a C++ language program; 5-2. Combine the time management module and the network module to enable the entire simulation system to advance in real time and use the UDP protocol for communication, thereby supporting a real-time distributed simulation test environment; The specific steps of establishing the test model in step (6) are: 6-1. Based on the system under test model generated in step (5), mirror its input / output behavior, that is, convert the HoldSend atom into the WaitRecv atom, and convert the WaitRecv atom into the HoldSend atom, thereby obtaining the input / output behavior of the test model; 6-2. Similar to establishing the model under test, use the ADEVS framework and combine it with corresponding sub-modules to make the test model support the real-time distributed simulation test environment.
2. The method for modeling and testing a data link system based on DEVS according to claim 1, characterized in that The test execution in step (7) is as follows: 7-1. Run the system model and test model generated in step (5) and step (6) to enable input / output message interaction; 7-2. The test model diagnoses whether the system model under test correctly implements the target scenario through the input / output messages of the system model under test; If the input / output behavior of the SUT model is correct, then the test model output is correct; If the input / output behavior of the SUT model is wrong, the test model output is wrong; And give the error level and error item; 7-3. Error levels are divided into rule level, message level and element level; Rule level: used to indicate that the system model under test does not correctly implement the rules in the target scenario; Message level: used to indicate that the system model under test does not correctly send the expected message; Element level: used to indicate that an element error occurs in the message sent by the system under test model.
