A protocol test system for space network protocols

The protocol testing system for space network protocols integrates functions such as test scenario modeling and environment simulation, solving the problem of poor portability of test environments in space networks, realizing flexible and rapid protocol testing, and meeting the testing needs of different protocols.

CN116418718BActive Publication Date: 2026-07-03NANJING UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NANJING UNIV
Filing Date
2022-12-27
Publication Date
2026-07-03

Smart Images

  • Figure CN116418718B_ABST
    Figure CN116418718B_ABST
Patent Text Reader

Abstract

A protocol testing system for space network protocols is disclosed. The system comprises a logical control plane and a protocol testing plane. The logical control plane consists of a main controller and test function modules connected to the main controller, forming a tester, database, and protocol implementation MIB information management library. The main controller interacts with the protocol under test through an interactive interface, including the input steps of the test system and the selection steps of the test function modules: 1) Input to the test system, including input during the test preparation phase and input during the test process; 2) Selection of test function modules. The protocol testing plane implements: 1) Construction of conformance testing and interoperability testing scenarios; 2) Monitoring and data storage of protocol response and interaction processes, making space network protocol testing flexible, convenient, simple, and fast.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of protocol testing, and more specifically to a protocol testing system for space network protocols. Background Technology

[0002] Space networks are a crucial component of the integrated space-ground system, serving as vital information links between orbiting satellites, space stations, ground stations, and end users. However, the unique characteristics of space transmission, such as high channel loss, prolonged propagation time, and susceptibility to link interruptions, present numerous challenges to space network construction. Terrestrial network protocols cannot be directly applied to space networks; therefore, specialized network protocols tailored to the space networking environment and communication / transmission conditions must be developed. Currently, various network communication protocols have been established for space networks. With the advancement of space exploration and technology, even more space network protocol standards will be developed. Different implementers often employ different code implementations for the same protocol standard. To ensure that protocol implementations conform to the standard, it is necessary to test specific implementations and verify their consistency with the standard.

[0003] Protocol testing is mainly divided into conformance testing and interoperability testing. Conformance testing aims to determine whether the protocol implementation under test conforms to the protocol standard. Interoperability testing aims to check whether the protocol implementation under test can interact correctly with another protocol implementation that follows the same protocol standard. Before interoperability testing, the protocol implementation under test must first pass conformance testing. Protocol implementations developed in accordance with network protocol standards need to have a corresponding test environment or tester built in advance according to the specific test requirements of the protocol implementation under test when conducting conformance testing or interoperability testing. Since network protocol standards are specifications for transmitting and managing information based on different scenarios and application requirements, different network protocols usually have different communication interaction modes. These test requirements vary, making the portability of the constructed test environment relatively poor. It is difficult to apply a test environment for testing one protocol to testing other network protocols.

[0004] Furthermore, since space network protocols are generally used under harsh space transmission conditions, protocol testing may require building simulated space transmission scenarios that meet the characteristics of high bit error rates, long latency, and susceptibility to interruption, in order to provide better support for space network protocol testing. This study summarizes the common and specific testing requirements of different space network protocols, aiming to develop a centralized protocol testing system. This system should be able to conveniently and on-demand construct suitable testing environments and testers based on the testing requirements of different protocols in space networks, accurately and quickly completing consistency or interoperability testing of the space network protocol implementation under test. Summary of the Invention

[0005] The technical problem solved by this invention is to provide a portable, on-demand, flexible, and scalable protocol testing system for space network protocols. This system integrates functions such as test scenario modeling, test environment simulation, test parameter configuration, test command operation, protocol response, and interaction process monitoring. It can conveniently and quickly build compliant protocol testing environments and testers according to the differentiated testing requirements of different protocols in space networks. It can support consistency testing of single protocol implementations, such as basic connection testing, behavioral capability testing, and consistency decomposition testing, as well as interoperability testing between different protocol implementations under the same protocol standard, making space network protocol testing flexible, convenient, simple, and fast.

[0006] The technical solution of this invention is: a protocol testing system for space network protocols. It constructs test scenarios that meet the specific protocol testing requirements of space networks, conforming to consistency testing or interoperability testing. Based on the specific testing requirements of the protocol implementation under test, it autonomously selects and configures different test function modules to construct a test environment and tester that meet the testing requirements. This enables parameter configuration of node testers, protocol parameter configuration, test environment parameter configuration, protocol implementation test operations, and collection and analysis of protocol response and interaction process data. By autonomously selecting and configuring different test function modules to construct a test environment and tester that meet the testing requirements according to different protocol testing needs, different protocol tests can be completed.

[0007] A protocol testing system for space network protocols includes a logical control plane and a protocol test plane; schematic diagrams of the logical control plane and protocol test plane are shown below. Figure 1 As shown, this protocol testing system can construct test scenarios that meet the requirements of consistency testing or interoperability testing based on the specific protocol testing requirements of space networks.

[0008] The logic control plane consists of a tester based on a main controller and test function modules connected to the main controller, a database, and a MIB information management library implementing the protocol. The main controller interacts with the protocol under test through an interactive interface. The system includes input steps for the test system and steps for selecting test function modules.

[0009] (1) Inputs to the test system: The inputs to the protocol test system include inputs during the test preparation phase and inputs during the test process. The inputs during the test preparation phase include test requirements, the implementation of the protocol under test, the test environment, and the tester parameters. The inputs during the test process include the operation inputs on the protocol entities during the test. During the test preparation phase, test requirements are obtained based on the specific test needs of the space network protocol. The main controller performs test modeling based on the different input test requirements, selects different functional modules to input test environment parameters, such as latency, rate, bandwidth, and bit error rate information, inputs the configuration parameters of the tester, and establishes the required space network protocol test environment and tester. During the test process, the operation inputs on the implementation of the protocol entities include protocol parameter inputs, test command inputs, and transmission object inputs.

[0010] (2) Selection of test function modules: Based on the specific test scenarios of consistency testing and interoperability testing, the test function modules selected are node topology management module, parameter configuration module, data acquisition module, environment simulation module, and verification control module; different function modules are configured with test environments and testers with different functions to fully meet the common test requirements and individual special test requirements of different protocols in space networks;

[0011] The protocol test plane implementation takes the following steps:

[0012] (1) Construction of consistency test and interoperability test scenarios: The main controller constructs specific consistency test or interoperability test scenarios in the protocol test plane by configuring test function modules, including three scenarios: end test, multi-point test and interoperability test; through the configuration of the protocol tester, access of the protocol implementation, simulation of the test communication environment, selection of verification type and protocol test operation, the specific configuration is completed to construct the spatial network protocol test scenario and specific test environment and tester.

[0013] (2) Protocol response and interaction process monitoring: The main controller is configured with a data acquisition module to collect the interaction data and protocol communication information generated during the protocol test at the node tester port. It can decode the test data stream into the corresponding test protocol structure and transmit it to the logic control plane UI interface to display the test data structure in a static form and the interaction process of the test data in a dynamic form, which facilitates the analysis of test results.

[0014] (3) Storage of test data. The storage of test data includes the database of the protocol test system and the MIB information management library of the protocol implementation. The database of the protocol test system is used to store the configuration information of the test environment and tester, all test data collected during the test, and communication link traffic information, etc.; the MIB information management library is used to store the configuration information of the protocol implementation.

[0015] This invention constructs test scenarios that meet the specific protocol testing requirements of space networks, conforming to consistency testing or interoperability testing. Based on the specific testing requirements of the protocol implementation under test, it autonomously selects and configures different test function modules to construct a test environment and tester that meet the testing requirements. This enables the configuration of node tester parameters, protocol parameters, test environment parameters, protocol implementation test operations, and the collection and analysis of protocol response and interaction process data. By autonomously selecting and configuring different test function modules according to different protocol testing needs, it constructs a test environment and tester that meet the testing requirements to complete different protocol tests.

[0016] The above protocol testing system is implemented using the following method for specific configuration:

[0017] 1) Main Controller and Functional Modules. The main controller is the core of the entire protocol testing system. It interacts with technicians through a UI interface and with the implementation and functional modules of the protocol under test through interactive interfaces. During the test preparation phase, test modeling is performed according to the specific test requirements of conformance testing or interoperability testing. The main controller configures the tester parameters, protocol parameters, simulation environment parameters, and verification type parameters in the specific test scenario of the space network by calling various functional modules through interfaces. During the test implementation phase, test primitive commands are issued to the implementation of the protocol under test according to the protocol standard. At the same time, the main controller receives the configuration information and test data generated during the test through the data acquisition module, and displays them in real time on the UI interface and stores them in the database, allowing technicians to control the entire test process in real time.

[0018] 2) Tester Node Deployment. Technicians conduct protocol testing requirements analysis, selecting either consistency testing with one protocol implementation or interoperability testing involving two protocol implementations under the same standard. The main controller creates the tester node topology based on the testing requirements. Possible test topology scenarios include... Figure 2 As shown, for the specific requirements of the protocol, select end-to-end testing, multi-point testing, and interoperability testing, configure specific parameters such as the interface port number and node ID of each tester node, and each tester node receives test command information issued by the main controller.

[0019] 3) Protocol Implementation Access. The main controller interacts with the protocol implementation under test through the tester's interface. The main controller can query the connection information between the protocol implementation under test and the tester in real time, issue protocol configuration parameters and test operation commands to the protocol implementation under test, and store the parameter configuration information of the protocol implementation in the MIB information management database.

[0020] 4) Space Network Environment Simulation. The environment simulation control provides a selection of preset lower-layer communication protocols, such as TCP, UDP, and AOS, which can meet the general test communication link settings in space network protocol testing. At the same time, it can independently set the actual parameters of the simulated channel, such as space network link latency, packet loss, bit error rate, bandwidth, and speed, to meet the special test links in protocol testing. Furthermore, it can actively discard a specific PDU data packet according to the selected discarding strategy during testing.

[0021] 5) Data verification control. When transmitting data streams in the underlying communication link, different verification types, such as modular and proximity-1, can be selected according to specific test needs. This facilitates the verification of the correctness and integrity of data transmission, improves the accuracy and reliability of test results, and also enables the assessment of the link's communication performance.

[0022] 6) Protocol Testing Operations. Protocol testing primitive command input can be performed through two methods: human-computer interaction command line and automatic script. The human-computer interaction command line allows technicians to directly input commands for testing, facilitating extended testing and handling of test items requiring manual intervention or external triggering. Automatic script control allows importing test scripts and automatically performing tests based on the script file.

[0023] 7) Protocol response and interaction process monitoring. The main controller is configured with a data acquisition module that sets specific data acquisition methods at the tester node port. Based on the set filtering conditions, specific data frames are captured and filtered. The captured data frame format can be converted and decoded, and the data stream of the data frame is decoded into the format of a specific protocol. At the same time, it is transmitted to the logic control plane and the database for data output, display, storage and export.

[0024] 8) Test Result Analysis and Display. During the test, the collected data is displayed through a UI interface, showing the data stream format of each data entry, the specific protocol decoding method, and the dynamic interaction process of the test data. It also displays the current protocol configuration information and link traffic information.

[0025] In a further embodiment, the underlying communication protocol includes, but is not limited to, TCP / IP, UDP / IP, SCPS, CCSDS, TM / TC, and AOS.

[0026] In a further embodiment, the verification type includes, but is not limited to, NULL null check, modular, proximity-1, CRC-16, and CRC-32.

[0027] Based on the specific testing requirements of the protocol under test, select between consistency testing and interoperability testing. Configure the specific parameters of different test function modules to build a test environment and tester that meet the testing requirements. Implement parameter configuration for node testers, protocol parameters, test environment parameters, test operations for protocol implementation, and collection and analysis of protocol response and interaction process data. Different protocol tests can be completed by independently selecting and configuring different test function modules according to different protocol testing needs to build a test environment and tester that meet the testing requirements.

[0028] Beneficial Effects: This invention provides a portable, on-demand, flexible, and scalable testing system and implementation method for space network protocols (especially network communication, including IoT communication protocols). This protocol testing system integrates various testing requirements in space network protocol testing into different functional modules within a single system. Technicians can select and configure different functional modules to build conformance testing or interoperability testing scenarios and testers to complete the testing of different protocols according to different testing needs. The testing process simulates real space network environments, resulting in accurate and reliable test results. Various parameters in the test support self-configuration, demonstrating excellent openness and scalability.

[0029] This invention's protocol testing system integrates functions such as test scenario modeling, test environment simulation, test parameter configuration, test command operation, protocol response, and interaction process monitoring. It can select and configure different test function modules according to the differentiated testing requirements of different protocols in space networks, conveniently and quickly constructing a compliant protocol testing environment and tester. It supports consistency testing of single protocol implementations, such as basic connection testing, behavioral capability testing, and consistency decomposition testing, and also supports interoperability testing between different protocol implementations under the same protocol standard, making space network protocol testing flexible, convenient, simple, and fast. Attached Figure Description

[0030] Figure 1 This is a schematic diagram of the planar principle of the protocol testing system of the present invention;

[0031] Figure 2 All of these are test scenario diagrams of the protocol test plane of the protocol test system of this invention; wherein Figure 2 (a) is a scenario diagram for basic connectivity testing and behavioral capability testing in consistency testing. Figure 2 (b) is a diagram of the consistency decomposition test scenario in consistency testing; Figure 2 (c) is a diagram of an interoperability test scenario;

[0032] Figure 3 This is a layered service architecture diagram of the protocol testing system of the present invention. Detailed Implementation

[0033] To better understand the technical content of this invention, its specific embodiments are described below in conjunction with the accompanying drawings.

[0034] Combination Figures 1-3 As shown, this invention proposes a space network protocol testing system and its implementation method. The protocol testing system is divided into a logical control plane and a protocol testing plane. It can perform consistency testing on a single protocol implementation or interoperability testing on different protocol implementations under the same standard within a single testing system. For protocol testing, it can flexibly construct test scenarios as needed, independently configure the test environment and various parameters of the tester, simulate links to provide verification settings and channel traffic display, and display test data in both static and dynamic formats. It can also store and export all information of the test operation in real time, which facilitates the analysis of test results.

[0035] The logic control plane consists of a tester based on the main controller and test function modules connected to the main controller. It also includes a database and a MIB (Management Information Base) implementing the protocol (a standard for network management data, specifying the data items and data types that network agent devices must store). The main controller interacts with the protocol under test through an interactive interface. The system includes steps for inputting the test system and selecting test function modules.

[0036] (1) Inputs to the test system: The inputs to the protocol test system include inputs during the test preparation phase and inputs during the test process. The inputs during the test preparation phase include test requirements, the implementation of the protocol under test, the test environment, and the tester parameters. The inputs during the test process include the operation inputs on the protocol entities during the test. During the test preparation phase, test requirements are obtained based on the specific test needs of the space network protocol. The main controller performs test modeling based on the different input test requirements, selects different functional modules to input test environment parameters, such as latency, rate, bandwidth, and bit error rate information, inputs the configuration parameters of the tester, and establishes the required space network protocol test environment and tester. During the test process, the operation inputs on the implementation of the protocol entities include protocol parameter inputs, test command inputs, and transmission object inputs.

[0037] (2) Selection of test function modules: Based on the specific test scenarios of consistency testing and interoperability testing, the test function modules selected are node topology management module, parameter configuration module, data acquisition module, environment simulation module, and verification control module; different function modules are configured with test environments and testers with different functions to fully meet the common test requirements and individual special test requirements of different protocols in space networks;

[0038] The protocol test plane implementation takes the following steps:

[0039] (1) Construction of consistency test and interoperability test scenarios: The main controller constructs specific consistency test or interoperability test scenarios in the protocol test plane by configuring test function modules, including three scenarios: end test, multi-point test and interoperability test; through the configuration of the protocol tester, access of the protocol implementation, simulation of the test communication environment, selection of verification type and protocol test operation, the specific configuration is completed to construct the spatial network protocol test scenario and specific test environment and tester.

[0040] (2) Protocol response and interaction process monitoring: The main controller is configured with a data acquisition module to collect the interaction data and protocol communication information generated during the protocol test at the node tester port. It can decode the test data stream into the corresponding test protocol structure and transmit it to the logic control plane UI interface to display the test data structure in a static form and the interaction process of the test data in a dynamic form, which facilitates the analysis of test results.

[0041] (3) Storage of test data. The storage of test data includes the database of the protocol test system and the MIB information management library of the protocol implementation. The database of the protocol test system is used to store the configuration information of the test environment and tester, all test data collected during the test, and communication link traffic information, etc.; the MIB information management library is used to store the configuration information of the protocol implementation.

[0042] Combination Figures 1-3 As shown below, the specific implementation steps of the aforementioned space network protocol testing system are illustrated in more detail, including:

[0043] Step 1: Test Requirements Analysis. Based on the specific protocol standards of the space network protocol, the test items for the protocol to be tested are classified, mainly into protocol consistency testing and interoperability testing. Consistency testing is further divided into basic connectivity testing, behavioral capability testing, and consistency decomposition testing. Interoperability testing is further divided into static consistency testing and interoperability testing. The different test requirements of different test requirements are analyzed and summarized.

[0044] Step 2: Test Scenario Modeling. For the tester node scenario of space network protocol testing, based on specific test requirements, configure test function modules, select suitable test scenarios, configure node tester parameters, and construct test scenarios for consistency testing or interoperability testing. Consistency testing is categorized into basic connectivity testing, capability / behavioral testing, and consistency decomposition testing. The test scenario diagrams for basic connectivity testing and capability / behavioral testing are shown below. Figure 2 As shown in (a), the test scenario diagram for performing point-to-point protocol feature testing and consistency decomposition testing is as follows. Figure 2(b) Capable of performing protocol feature tests including relay forwarding; interoperability testing is classified into static consistency testing and interoperability testing, with scenarios for static consistency testing and interoperability testing as follows: Figure 2 As shown in (c), it is possible to perform interoperability tests of different protocols under the same protocol standard. For the underlying communication configuration of the test scenario, the appropriate transmission environment parameters of the space network are required. The appropriate underlying communication protocol is selected, and the specific channel parameters such as simulated space network link delay, packet loss, and bit error rate are configured. The data verification type is selected, and a complete test scenario, test environment, and tester are constructed.

[0045] Step 3: Testing Operation. The main controller of the protocol testing system interacts with the protocol through an interactive interface. It configures specific parameters such as entity ID, remote entity ID, and protocol standard characteristics for the protocol under test. Two testing methods are available: human-machine interactive command line or automatic script. The human-machine interactive command line allows technicians to directly input protocol transmission commands into the test terminal window. The automatic script control allows pre-written test scripts to be imported into the protocol testing system, which then automatically performs the tests based on the command line commands in the script file.

[0046] Step 4: Monitor and analyze test data. The data acquisition module collects data generated during test data interaction and response information of the protocol implementation during the test through port Pcap, and transmits it to the UI interface to display the test data frame content in static form and the test data interaction process in dynamic form. At the same time, it displays the specific parameter configuration of the protocol implementation, response information, and traffic information of the underlying communication link.

[0047] The above protocol testing system is implemented using the following method for specific configuration:

[0048] 1) Main Controller and Functional Modules. The main controller is the core of the entire protocol testing system. It interacts with technicians through a UI interface and with the implementation and functional modules of the protocol under test through interactive interfaces. During the test preparation phase, test modeling is performed according to the specific test requirements of conformance testing or interoperability testing. The main controller reads the test requirement parameters and generates corresponding instructions. Through interfaces, it calls various functional modules to configure tester parameters, protocol parameters, simulation environment parameters, and verification type parameters in the specific test scenario of the space network. During the test implementation phase, test primitive instructions are issued to the implementation of the protocol under test according to the protocol standard. At the same time, the main controller receives configuration information and test data generated by the data acquisition module during the test through ports, and displays the data in real time on the UI interface and stores it in the database, allowing technicians to control the entire test process in real time.

[0049] 2) Tester Node Deployment. Technicians conduct protocol testing requirements analysis, selecting either consistency testing with one protocol implementation or interoperability testing involving two protocol implementations under the same standard. The main controller creates the tester node topology based on the testing requirements. Possible test topology scenarios include... Figure 2 As shown, for the specific requirements of the protocol, select end-to-end testing, multi-point testing, and interoperability testing, configure specific parameters such as the interface port number and node ID of each tester node, and each tester node receives test command information issued by the main controller.

[0050] 3) Protocol Implementation Access. The main controller interacts with the protocol implementation under test through the tester's interface. The main controller can query the connection information between the protocol implementation under test and the tester in real time, issue protocol configuration parameters and test operation commands to the protocol implementation under test, and store the parameter configuration information of the protocol implementation in the MIB information management database.

[0051] 4) Space Network Environment Simulation. The environment simulation control provides several preset lower-layer communication protocols for selection, such as TCP, UDP, and AOS, which can meet the general test communication link settings in space network protocol testing. At the same time, it can independently set the actual parameters of the simulated channel, such as space network link latency, packet loss, bit error rate, bandwidth, and speed, to meet the special test links in protocol testing. After receiving the space network environment simulation command, the main controller calls the Traffic Controller (TC) to divide the data into different traffic control sub-queues. The protocol testing system retrieves data from the queues and sets the specific parameters of the space network link. At the same time, during the test, a dropping policy can be set to actively drop a specific PDU data packet during link data transmission.

[0052] 5) Data verification control. When transmitting data streams in the underlying communication link, different verification types, such as modular and proximity-1, can be selected according to specific test needs. This facilitates the verification of the correctness and integrity of data transmission, improves the accuracy and reliability of test results, and also enables the assessment of the link's communication performance.

[0053] 6) Protocol Testing Operations. Protocol testing primitive command input can be performed through two methods: human-computer interaction command line and automatic script. The human-computer interaction command line allows technicians to directly input commands for testing, facilitating extended testing and handling of test items requiring manual intervention or external triggering. Automatic script control allows importing test scripts and automatically performing tests based on the script file.

[0054] 7) Protocol Response and Interaction Process Monitoring. The main controller is configured with a data acquisition module that sets specific data acquisition methods on the tester node port. Based on the set filtering conditions, specific data frames are captured and filtered. The captured data frame format can be converted and decoded, converting the data stream into a specific protocol format. Simultaneously, the data is transmitted to the main controller and database for output display and storage export. Considering the large amount of data stored during testing and the need for data querying and retrieval, a non-relational index database (such as ElasticSearch) is selected for convenient data analysis.

[0055] 8) Test Result Analysis and Display. During the test, the collected data is displayed through a UI interface, showing the data stream format of each data entry, the specific protocol decoding method, and the dynamic interaction process of the test data. It also displays the current protocol configuration information and link traffic information.

[0056] In a further embodiment, the underlying communication protocol includes, but is not limited to, TCP / IP, UDP / IP, SCPS, CCSDS, TM / TC, and AOS.

[0057] In a further embodiment, the verification type includes, but is not limited to, NULL null check, modular, proximity-1, CRC-16, and CRC-32.

[0058] Combination Figure 2 This invention can satisfy protocol consistency testing and protocol interoperability testing by accessing both the same protocol implementation and different protocol implementations of the same protocol standard. Taking the CFDP protocol for space networks as an example, the protocol testing system is used to perform consistency testing on protocol implementations based on the CFDP protocol standard, including the following process:

[0059] Step 1: Preparation for Testing

[0060] During the test preparation phase, specific test scenarios for consistency testing are constructed for the spatial network protocols to be tested. The test requirements of the CFDP protocol standard are categorized, and the corresponding test items are divided into basic connectivity tests, behavioral capability tests, and consistency decomposition tests according to specific test requirements. For basic connectivity tests and behavioral capability tests, specific tests are selected within the protocol test plane. Figure 2 (a) test scenario is used, and for consistency decomposition testing, the following is selected: Figure 2 (b) Test the test scenario.

[0061] Technicians control the main controller via the UI to model the test requirements corresponding to each test category, call the node topology management module to build network node tester scenarios, create two or more tester nodes, and configure specific parameters of the node testers, such as IP and routing. The protocol testing system interacts with the interface of the protocol under test through the access Socket interface, connects to the protocol implementation, and returns access information to the main controller. It can query the access status of the protocol entity in real time and configure the required protocol test parameters, such as entity ID, request or send / receive indication flags, etc. The environment simulation module is called to simulate the environment configuration, select the required lower-layer communication protocol, such as reliable TCP protocol, unreliable UDP protocol, etc., and configure link characteristics such as spatial network latency, packet loss, and bit error rate. The data acquisition module is configured to set the filtering condition to the destination IP address for packet capture and set the data stream transcoding format to CFDP format. Finally, the main controller imports the protocol implementation access information and various parameter configuration information into the MIB information management database and displays it in real time, completing the test preparation phase.

[0062] Step 2: Testing Implementation Phase

[0063] The testing operations are divided into automated script and human-computer interactive command line methods. The appropriate testing method should be selected according to the needs. When selecting the automated script method, a self-edited bash script file can be imported into the protocol testing system, and the system will automatically execute the script file for testing. When selecting the human-computer interactive command line method, technicians can input test operation information in the command line, such as request transmission primitives (Put.request), cancel session primitives (cancel.request), etc. They can also perform extended tests through the human-computer interactive command line and manually intervene in the transmission process, transmission link, packet loss policy (such as setting to drop a specific file data packet), and externally triggered transmission responses (such as generating a Prompt NAK packet to obtain the current file reception status). Simultaneously, the test command information and test data are stored in the database.

[0064] The main controller calls the data acquisition module to collect data during the test, including actively collecting link traffic information and capturing data packets. It can be configured to capture data packets using pcap based on the IP addresses of two nodes as filtering conditions. The data acquisition module calls pcap to configure filtering conditions, obtains and opens the underlying transmission network port eth0, captures PDU data packets generated during protocol transmission, extracts the captured data, decodes the packet header data stream according to the CFDP protocol standard, decodes it into a text form of CFDP protocol packet format, and transmits it to the main controller along with the original data stream for display on the UI interface. At the same time, the test data is stored in the database.

[0065] Depending on the selected check type, the captured data packet will decode the corresponding check flag and checksum in the data stream bits. The check flag is used to determine whether a check has been added to the data, and the checksum is used to determine whether the added check is correct. This makes it easy to judge the communication performance of the link and the correctness of the transmitted data.

[0066] Step 3: Test Analysis Phase

[0067] The test data captured by pcap during the protocol testing phase is transmitted to the main controller for analysis and display. The data transmission and interaction process is displayed dynamically, and each data point can be displayed as a data stream or decoded into CFDP protocol packet format for easy analysis of test results. After each transmission, the main controller displays and exports the data information of that communication process, including checksum, link throughput, latency, packet loss rate, and other link traffic information, monitoring the data flow between nodes in real time and providing a basis for performance analysis.

[0068] Combination Figure 2 When using this protocol testing system for interoperability testing, the process is similar to the consistency testing process described above, aiming to test the correct interaction between the implementation of the recognized protocol and the implementation of the protocol under test. During the test preparation phase, interoperability testing requires selecting... Figure 2 (c) serves as the test scenario for interoperability testing. Technicians control the main controller via the UI to perform test modeling and call the node topology management module to build a system such as... Figure 2 (c) In the network node tester scenario, two tester nodes are created, and specific parameters such as the IP address of the node testers are configured. The protocol testing system interacts with the protocol implementation through two Socket interfaces. The recognized protocol implementation is connected to the recognized tester, and the protocol implementation under test is connected to the tester under test. The protocol implementation returns access information to the main controller, that is, the main controller can query the access status of the protocol entity in real time, configure the required protocol test parameters such as the entity ID, call the environment simulation module to simulate the environment configuration, select the required lower-layer communication protocol, such as reliable TCP protocol, unreliable UDP protocol, etc., and configure the link characteristics such as spatial network latency, packet loss, and bit error rate. The data acquisition module is configured to set the filtering condition to the destination IP address for packet capture, and the data stream transcoding format is set to the corresponding protocol format. Finally, the main controller imports the protocol implementation access information and various parameter configuration information into the MIB information management library and displays it in real time, completing the test preparation stage.

[0069] Data acquisition and analysis are implemented in accordance with the consistency test. The main controller calls the data acquisition module to collect data in the test, including actively collecting link traffic information and packet capture. It can be configured to capture packets using pcap based on the IP addresses of the two nodes as filtering conditions. The captured data is extracted, the packet header data stream is decoded according to the protocol standard, and transmitted to the main controller along with the original data stream for display on the UI interface. At the same time, the test data is stored in the database.

[0070] The testing operation is the same as the consistency testing operation. You can choose to perform the test using automatic scripts or human-computer interactive command line methods. The specific test operation is performed according to the specific interoperability test situation. After each test operation, the main controller displays and exports the data information captured in this communication process, including data packets, checksums, link throughput, latency, packet loss rate and other link traffic information during transmission. The test results are analyzed to complete the interoperability test of the space network protocol.

[0071] In summary, the protocol testing system constructed using the above-described embodiments of this invention builds a space network test node tester topology according to the test requirements of protocol testing. Different functional modules are selected and configured according to test needs, and suitable test scenarios are constructed as required, fully satisfying the consistency and interoperability testing of different protocols in space networks. It allows for the self-configuration of environmental link parameters to simulate the real link state of space networks, approximating the real environment of protocol testing to the greatest extent possible. It provides two testing methods: direct command input for testing, facilitating extended testing and testing items requiring manual intervention or external triggering during the testing process; and automatic script control allows for the import of test scripts for automatic testing. It provides various traffic information, data verification, and test data collection and display for link channels, facilitating the analysis of test results. This protocol testing system features realistic testing, a flexible and scalable system architecture, and diverse test types, making space network protocol testing more convenient, flexible, and accurate.

[0072] While the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the invention. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention shall be determined by the claims.

Claims

1. A protocol test system for a spatial network protocol, characterized by A protocol testing system for space network protocols includes a logical control plane and a protocol testing plane. The logical control plane includes a main controller and test function modules connected to the main controller. The protocol testing plane includes a tester, a database, and a protocol implementation MIB information management library. The main controller interacts with the protocol implementation under test through an interactive interface, including steps for inputting the test system and selecting test function modules. (1) Inputs to the test system: The inputs to the protocol test system include inputs during the test preparation phase and inputs during the test process. The inputs during the test preparation phase are the test requirements, the implementation of the protocol under test, the test environment, and the tester parameters. The inputs during the test process are the operation inputs on the protocol entities during the test. During the test preparation phase, test requirements are obtained based on the specific test needs of the space network protocol. The main controller performs test modeling based on the different input test requirements, selects different functional modules to input test environment parameters, including latency, rate, bandwidth, and bit error rate information, inputs the configuration parameters of the tester, and establishes the required space network protocol test environment and tester. During the test process, the operation inputs on the implementation of the protocol entities are the protocol parameter inputs, test command inputs, and transmission object inputs. (2) Selection of test function modules: Based on the specific test scenarios of consistency testing and interoperability testing, the test function modules selected are node topology management module, parameter configuration module, data acquisition module, environment simulation module, and verification control module; different function modules are configured with test environments and testers with different functions to fully meet the common test requirements and individual special test requirements of different protocols in space networks; The protocol test plane implementation takes the following steps: (1) Construction of consistency test and interoperability test scenarios: The main controller constructs specific consistency test and interoperability test scenarios in the protocol test plane by configuring test function modules, including three scenarios: end test, multi-point test and interoperability test; through the configuration of the protocol tester, access of the protocol implementation, simulation of the test communication environment, selection of verification type and protocol test operation, the specific configuration is completed to construct the spatial network protocol test scenario and specific test environment and tester. (2) Protocol response and interaction process monitoring: The main controller is configured with a data acquisition module to collect the interaction data and protocol communication interaction information generated during the protocol test at the node tester port. It can decode the test data stream into the corresponding test protocol structure and transmit it to the logic control plane UI interface to display the test data structure in a static form and the interaction process of the test data in a dynamic form, which facilitates the analysis of test results. (3) Storage of test data. The storage of test data includes the database of the protocol test system and the MIB information management library of the protocol implementation. The database of the protocol test system is used to store the configuration information of the test environment and tester, all test data collected during the test, and communication link traffic information; the MIB information management library is used to store the configuration information of the protocol implementation.

2. The spatially network protocol oriented protocol test system according to claim 1, characterized in that, During the test preparation phase, test modeling is performed based on the specific test requirements of spatial network protocol conformance testing and interoperability testing. Various functional modules are called to configure the tester parameters, protocol parameters, simulation environment parameters, and verification types in specific test instances. During the test implementation phase, test primitive commands are issued to the protocol implementation according to the protocol standard. At the same time, the main controller receives the configuration information and test data generated during the test process and displays and stores them in the database in real time.

3. The spatially network protocol oriented protocol test system according to claim 1, characterized in that, The protocol testing system offers a selection of preset lower-layer communication protocols and allows users to independently set actual parameters for simulating channels, including spatial network link latency, packet loss, bit error rate, bandwidth, and speed. During testing, it can actively discard a specific PDU data packet according to a discarding policy.

4. The spatially network protocol oriented protocol test system according to claim 1, characterized in that, The testing of the protocol implementation is carried out through two methods: command line and automatic script. The command line opens the test command window for technicians to directly enter commands for testing. It also facilitates technicians to carry out extended testing and test items that require manual intervention or external triggering during the testing process. The test script is imported and the test is automatically performed according to the script file.

5. The spatially network protocol oriented protocol test system according to claim 1, characterized in that, The protocol testing system interacts with the protocol under test through an interface, sends protocol configuration parameters and test operation commands to the protocol under test, and stores the configuration information in the MIB information management library.

6. The spatially network protocol oriented protocol test system according to claim 1, characterized in that, The data acquisition module captures data frames according to the set filtering conditions, converts and decodes the captured data stream, and displays the data stream format, protocol decoding form, and dynamic interaction process of test data during the test for each individual data packet. It also displays the protocol configuration information and link traffic information of the current test.

7. The protocol testing system for space network protocols according to claim 2, characterized in that, The check types include NULL check, modular, proximity-1, CRC-16, and CRC-32.

8. The spatially network protocol oriented protocol test system according to claim 3, c h a r a c t e r i z e d b y The underlying communication protocols include TCP / IP, UDP / IP, SCPS, CCSDS, TM / TC, and AOS.