Network layer protocol conformance testing methods, systems, computers, and storage media

By adjusting device connections using a logical topology diagram in an emergency command wireless broadband self-organizing network and performing network layer protocol consistency tests, the problem of interconnection between devices from different manufacturers was solved, and network layer protocol consistency verification was achieved.

CN116599876BActive Publication Date: 2026-04-03HUNAN KEAYSHARE COMM TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

The lack of a consistency testing scheme for network layer protocols in emergency command wireless broadband self-organizing networks in the existing technology makes it difficult to guarantee the interoperability of emergency command wireless broadband self-organizing network equipment from different manufacturers.

Method used

The device under test (DUT) and test equipment are connected to the wireless channel simulator via an RF feeder. The connection relationship between the devices is adjusted using a logical topology diagram, and network layer protocol consistency tests are performed, including link maintenance, routing management, and data processing function tests, to ensure consistent test results.

Benefits of technology

Interoperability of emergency command wireless broadband self-organizing network equipment was achieved, ensuring the consistency testing of network layer protocols of equipment from different manufacturers and verifying the interoperability of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116599876B_ABST
    Figure CN116599876B_ABST
Patent Text Reader

Abstract

This application discloses a conformance testing method, system, computer, and storage medium for network layer protocols, belonging to the technical field of conformance testing technology. The conformance testing method for network layer protocols includes: determining multiple test items of the network layer protocol under test based on network layer functions, and setting corresponding logical topology diagrams for the test items; performing test operations corresponding to the test items on the test equipment and the device under test based on the logical topology diagrams; if the test result of a test item is "failed," the network layer protocol under test is determined to have failed the conformance test; if the test results of all test items are "passed," the network layer protocol under test is determined to have passed the conformance test. This application can perform conformance testing on network layer protocols in emergency command wireless broadband self-organizing networks, ensuring the interoperability of emergency command wireless broadband self-organizing network equipment from different manufacturers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of conformance testing technology, and in particular to a conformance testing method, system, computer, and storage medium for a network layer protocol. Background Technology

[0002] Wireless broadband ad hoc networks are one of the main technical means to build dedicated emergency command and communication networks at emergency rescue sites, and are of great significance for rapidly establishing such networks under extreme conditions. Relevant standards and specifications for emergency command wireless broadband ad hoc networks can define the standards adopted for network layer protocols, including network layer protocol architecture and functions, routing management, message and message field definitions, etc. Currently, there is no conformance testing scheme for network layer protocols in emergency command wireless broadband ad hoc networks.

[0003] Therefore, how to conduct consistency testing on the network layer protocol in the emergency command wireless broadband self-organizing network and ensure the interoperability of emergency command wireless broadband self-organizing network equipment from different manufacturers is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention

[0004] The purpose of this application is to provide a method, system, computer, and storage medium for testing the consistency of network layer protocols, which can perform consistency testing on network layer protocols in emergency command wireless broadband self-organizing networks, and ensure the interoperability of emergency command wireless broadband self-organizing network equipment from different manufacturers.

[0005] To address the aforementioned technical problems, this application provides a conformance testing method for network layer protocols, applied to a computer connected to a device under test (DUT) and a test device. The DUT and the test device are respectively connected to a wireless channel emulator via RF feed lines. The protocol stack running on the test device contains a preset network layer protocol that has passed conformance testing, and the protocol stack running on the DUT contains the network layer protocol under test. The conformance testing method for the network layer protocol includes:

[0006] Based on the network layer function, determine multiple test items of the network layer protocol under test, and set corresponding logical topology diagrams for the test items;

[0007] According to the logical topology diagram, control commands are sent to the wireless channel simulator to enable the wireless channel simulator to adjust the logical connection relationship between the test equipment and the device under test.

[0008] Based on the logical topology diagram, the test operation corresponding to the test item is performed on the test equipment and the device under test;

[0009] If the test result of the item to be tested is that the test fails, then the network layer protocol under test is determined to have failed the consistency test.

[0010] If all the test results for the items to be tested are passed, then the network layer protocol under test is determined to have passed the consistency test.

[0011] Optionally, before setting the corresponding logical topology diagram for the item to be tested, the method further includes:

[0012] Count the number of devices connected to the computer in the test equipment;

[0013] Multiple logical topology diagrams are generated based on the number of devices.

[0014] Optionally, if the number of devices is 3 and the test devices include a first test device, a second test device, and a third test device, then multiple logical topology diagrams are generated based on the number of devices, including:

[0015] Set the first logical topology diagram, the second logical topology diagram, the third logical topology diagram, and the fourth logical topology diagram according to preset rules;

[0016] In the first logical topology diagram, the first test device, the second test device, the third test device, and the device under test are sequentially connected in a chain-like topology. In the second logical topology diagram, the first test device, the second test device, the device under test, and the third test device are sequentially connected in a chain-like topology. In the third logical topology diagram, there is a topology connection between any two devices among the first test device, the second test device, the third test device, and the device under test. In the fourth logical topology diagram, the first test device, the second test device, the third test device, and the device under test are sequentially connected in a ring-like topology.

[0017] Optionally, a corresponding logical topology diagram is set for the item to be tested, including:

[0018] If the test item is a link maintenance function test, then the first logical topology diagram is set as the logical topology diagram corresponding to the link maintenance function test; wherein, the test sub-items of the link maintenance function test include a link layer detection link maintenance function sub-test and a network layer detection link maintenance function sub-test.

[0019] Optionally, a corresponding logical topology diagram is set for the item to be tested, including:

[0020] If the item to be tested is a route management function test, then set the logical topology diagram corresponding to each test sub-item of the route management function test; wherein, the test sub-items of the route management function test include route item creation function sub-test, route item update function sub-test, and route item deletion function sub-test;

[0021] Accordingly, based on the logical topology diagram, the test operation corresponding to the test item is performed on the test device and the device under test, including:

[0022] Based on the logical topology diagram corresponding to the test sub-item of the routing management function test, the test operation of the test sub-item of the routing management function test is performed on the test device and the device under test.

[0023] Optionally, a corresponding logical topology diagram is set for the item to be tested, including:

[0024] If the item to be tested is a data processing function test, then the first logical topology diagram is set as the logical topology diagram corresponding to the link maintenance function test; wherein, the test sub-items of the data processing function test include unicast service transmission function sub-test, unicast service reception function sub-test, multicast service transmission function sub-test, multicast service reception function sub-test, multicast service transmission function sub-test, and multicast service reception function sub-test.

[0025] This application also provides a network layer protocol conformance testing system, applied to a computer connected to a device under test (DUT) and a test device. The DUT and the test device are respectively connected to a wireless channel emulator via RF feed lines. The protocol stack running on the test device includes a preset network layer protocol that has passed conformance testing. The protocol stack running on the DUT includes the network layer protocol under test. The network layer protocol conformance testing system includes:

[0026] The logical topology setting module is used to determine multiple test items of the network layer protocol under test based on the network layer function, and to set the corresponding logical topology diagram for the test items.

[0027] The logical connection adjustment module is used to send control commands to the wireless channel simulator according to the logical topology diagram, so that the wireless channel simulator adjusts the logical connection relationship between the test equipment and the device under test.

[0028] The testing module is used to perform test operations corresponding to the test items on the test equipment and the device under test based on the logical topology diagram.

[0029] The result output module is used to determine that the network layer protocol under test has failed the consistency test if the test result of the item to be tested is "test failed"; it is also used to determine that the network layer protocol under test has passed the consistency test if the test results of all the items to be tested are "test passed".

[0030] This application also provides a storage medium on which a computer program is stored, wherein the computer program, when executed, implements the steps of the above-described network layer protocol consistency test method.

[0031] This application also provides a computer, with a device under test (DUT) and a test device respectively connected to the computer. The DUT and the test device are respectively connected to a wireless channel emulator via RF feed lines. The protocol stack running on the test device includes a preset network layer protocol that has passed conformance testing. The protocol stack running on the DUT includes the network layer protocol under test. The computer runs host computer software, and the host computer software implements the steps of the conformance testing method for the network layer protocol as described above when it runs.

[0032] Furthermore, the computer is connected to the device under test and the testing equipment via a switch.

[0033] This application also provides a storage medium on which a computer program is stored, wherein the computer program, when executed, implements the steps of the above-described network layer protocol consistency test method.

[0034] This application provides a conformance testing method for a network layer protocol, applied to a computer connected to a device under test (DUT) and a test device. The DUT and the test device are respectively connected to a wireless channel emulator via RF feed lines. The protocol stack running on the test device contains a preset network layer protocol that has passed conformance testing, and the protocol stack running on the DUT contains the network layer protocol under test. The conformance testing method for the network layer protocol includes: determining multiple test items of the network layer protocol under test based on network layer functions, and setting corresponding logical topology diagrams for the test items; sending control commands to the wireless channel emulator according to the logical topology diagrams to cause the wireless channel emulator to adjust the logical connection relationship between the test device and the DUT; performing test operations corresponding to the test items on the test device and the DUT based on the logical topology diagrams; if the test result of the test item is a failure, the network layer protocol under test is determined to have failed the conformance test; if the test results of all the test items are successful, the network layer protocol under test is determined to have passed the conformance test.

[0035] In the solution provided in this application, both the device under test (DUT) and the testing equipment are connected to a computer, and both are connected to a wireless channel emulator via RF feeders. This application determines multiple test items for the network layer protocol under test based on the functions of the network layer, and sends control commands to the wireless channel emulator before testing each test item to adjust the logical connection between the testing equipment and the DUT. After the test operation, if the test result is a failure, the network layer protocol under test is deemed to have failed the conformance test; if all test items pass, the network layer protocol under test is deemed to have passed the conformance test. This application can perform conformance testing on network layer protocols in emergency command wireless broadband self-organizing networks, ensuring interoperability between emergency command wireless broadband self-organizing network equipment from different manufacturers. This application also provides a network layer protocol conformance testing system, a computer, and a storage medium, which have the aforementioned beneficial effects, and will not be elaborated further here. Attached Figure Description

[0036] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 A flowchart illustrating a conformance testing method for a network layer protocol provided in an embodiment of this application;

[0038] Figure 2 This application provides a network layer architecture diagram for an emergency command wireless broadband self-organizing network.

[0039] Figure 3 A flowchart illustrating the conformance test of a network layer protocol for an emergency command wireless broadband self-organizing network, provided as an embodiment of this application.

[0040] Figure 4 The physical topology diagram of the test environment constructed for conformance testing of the network layer protocol of emergency communication wireless broadband self-organizing network provided in the embodiments of this application;

[0041] Figure 5 This is a first logical topology diagram provided in the embodiments of this application;

[0042] Figure 6 This is a second logical topology diagram provided in the embodiments of this application;

[0043] Figure 7 This is a third logical topology diagram provided in the embodiments of this application;

[0044] Figure 8This is a fourth logical topology diagram provided for an embodiment of this application. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0046] Please see below. Figure 1 , Figure 1 This is a flowchart illustrating a conformance testing method for a network layer protocol provided in an embodiment of this application.

[0047] Specific steps may include:

[0048] S101: Determine multiple test items of the network layer protocol under test based on the network layer function, and set a corresponding logical topology diagram for the test items;

[0049] This embodiment can be applied to a computer connected to the device under test and the testing equipment. The computer runs host computer software, which can implement the consistency testing scheme provided in this embodiment.

[0050] The device under test and the test equipment are connected to the wireless channel simulator via RF feed lines. The protocol stack running on the test equipment contains a preset network layer protocol that has passed the conformance test, and the protocol stack running on the device under test contains the network layer protocol under test.

[0051] The aforementioned test equipment and the device under test are both wireless broadband self-organizing network devices used for emergency command (i.e., emergency command wireless broadband self-organizing network devices). Both the preset network layer protocol and the network layer protocol under test are protocols used in wireless broadband self-organizing networks for emergency command. Prior to this step, the relevant standards for the aforementioned wireless broadband self-organizing network used for emergency command (i.e., emergency command wireless broadband self-organizing network standards) can be determined. The preset network layer protocol is a network layer protocol that conforms to the aforementioned relevant standards, and the network layer protocol under test is the network layer protocol set by the manufacturer of the device under test according to the aforementioned relevant standards.

[0052] This embodiment can determine multiple test items of the network layer protocol under test based on the network layer functions, which are as follows:

[0053] Link maintenance function: The network layer needs to monitor the link status between this node and its neighboring nodes in real time, determine the link availability (connected or disconnected), update the routes in a timely manner, and keep the routing information of the entire network valid in real time.

[0054] Routing management function: In order to achieve end-to-end communication between all nodes in an ad hoc network, the routing function needs to be performed by ordinary nodes in the network, rather than by a separate dedicated routing device (such as a router). Therefore, each network node is required to have the ad hoc network multi-hop routing forwarding function, which is implemented by the network layer.

[0055] Data processing functions: Data processing at the network layer mainly includes two parts: data routing and data encapsulation / decapsulation. The network layer receives multiple data streams from the local application or other application nodes. The next-hop transmission paths for different unicast and broadcast / multicast data streams are different. Unicast data streams confirm the next-hop node by querying the routing table, while multicast and broadcast data use flooding protocols to broadcast data in order to avoid broadcast storms.

[0056] Each test item can include multiple test sub-items, and each test item or test sub-item can have its corresponding logical topology diagram. The logical topology diagram described above is used to describe the logical connection relationship between the test equipment and the device under test.

[0057] S102: Send a control command to the wireless channel simulator according to the logical topology diagram, so that the wireless channel simulator adjusts the logical connection relationship between the test device and the device under test;

[0058] Prior to this step, there may be an operation to determine the test item that needs to be executed, and then a control command is sent to the wireless channel simulator according to the logical topology diagram of the test item to be executed, so as to establish a logical connection relationship that conforms to the test item to be executed.

[0059] S103: Based on the logical topology diagram, perform the test operation corresponding to the test item on the test equipment and the device under test;

[0060] After setting up the logical connection relationships, the test operation corresponding to the test item to be executed can be performed on the test device and the device under test based on the logical connection relationships of the logical topology diagram of the test item to be executed.

[0061] The test result of the above test operation can be either a pass or a fail. If the test result is a fail, proceed to S104. If the test result is a pass, it can be determined whether all test items have been tested. If all have been tested, proceed to S105. If not all have been tested, repeat the operations of S102 and S103.

[0062] S104: The tested network layer protocol is determined to have failed the consistency test;

[0063] S105: If the test results of all the items to be tested are all passed, then the network layer protocol under test is determined to have passed the consistency test.

[0064] If all test items are completed and all test results are passed, it can be determined that the network layer protocol in the device under test conforms to the relevant standards for wireless broadband self-organizing networks used for emergency command and has passed the conformity test.

[0065] In this embodiment, both the device under test (DUT) and the testing device are connected to a computer, and both are connected to a wireless channel emulator via RF feeders. This embodiment determines multiple test items for the network layer protocol under test based on the network layer's functionality, and sends control commands to the wireless channel emulator before testing each test item to adjust the logical connection between the testing device and the DUT. After the test operation, if the test result is a failure, the network layer protocol under test is deemed to have failed the conformance test; if all test items pass, the network layer protocol under test is deemed to have passed the conformance test. This embodiment can perform conformance testing on the network layer protocol in an emergency command wireless broadband self-organizing network, ensuring interoperability between emergency command wireless broadband self-organizing network devices from different manufacturers.

[0066] The process described in the above embodiments is illustrated below through examples in practical applications.

[0067] This embodiment discloses a consistency testing method for network layer protocols in emergency command wireless broadband self-organizing networks. It can test the consistency of network layer protocols developed by different manufacturers according to the "Emergency Command Wireless Broadband Self-Organizing Network Standard Specification - Network Layer" standard, and verify whether the network layer protocol implementations of different manufacturers are consistent with the standard specifications. This plays a very important role in ensuring the interconnection and interoperability of emergency command communication wireless broadband self-organizing network equipment independently developed by different manufacturers.

[0068] This embodiment discloses a conformance testing method for network layer protocols of wireless broadband ad hoc networks for emergency command communication. It covers all functional tests of network layer protocols and does not require any modification to the device under test, making it convenient and feasible.

[0069] The items to be tested may include link maintenance function testing, routing management function testing, and data processing function testing.

[0070] The link maintenance function test includes the following sub-items: link layer detection link maintenance function sub-test and network layer detection link maintenance function sub-test. The routing management function test includes the following sub-items: route entry creation function sub-test, route entry update function sub-test-1, route entry update function sub-test-2, route entry update function sub-test-3, route entry update function sub-test-4, route entry update function sub-test-5, route entry deletion function sub-test-1, and route entry deletion function sub-test-2. The data processing function test includes the following sub-items: unicast service transmission function sub-test, unicast service reception function sub-test, multicast service transmission function sub-test, multicast service reception function sub-test, multicast service transmission function sub-test, and multicast service reception function sub-test. After all the above tests are completed, the test results can be checked. If any sub-test fails, the tested network layer protocol is deemed to have failed the test. In this case, the vendor under test is notified to rectify the issues based on the test results, and then all tests are re-executed. Only when all tests pass can the conclusion be drawn that the tested network layer protocol has passed the conformance test.

[0071] The detailed test results and conclusions generated during the testing process are summarized into a test report for easy reference.

[0072] Please see Figure 2 , Figure 2 This application provides an embodiment of an emergency command wireless broadband self-organizing network layer architecture diagram. The network layer is located between the upper application layer and the link layer, and mainly consists of three parts: link maintenance, routing management, and data processing. Link maintenance is mainly responsible for maintaining the link status, routing management is mainly responsible for maintaining the routing table, and data processing is mainly responsible for processing data transmission and reception. The network layer service interface can transmit different data flows, and the link layer service interface can interact with the network layer. Figure 2 The diagram also shows the network layer PDU (Protocol Data Unit) and the link layer PDU.

[0073] Please see Figure 3 , Figure 3 The following is a flowchart of the conformance test of the network layer protocol of an emergency command wireless broadband self-organizing network provided in the embodiments of this application. The specific process is as follows: After the test starts, the link maintenance function test, the routing management function test, and the data processing function process are performed. If all tests pass, the conformance test is deemed to have passed. If any test fails, the non-conformance item is rectified.

[0074] Please see Figure 4 , Figure 4 This is a physical topology diagram of the test environment constructed for conformance testing of the network layer protocol of emergency communication wireless broadband ad hoc networks, as provided in this application embodiment. The test environment includes hardware devices such as a computer, a first test device, a second test device, a third test device, the device under test, and a wireless channel simulator.

[0075] The computer establishes Ethernet connections with the first test device, the second test device, the third test device, and the device under test (DUT) via a network switch. The first test device, the second test device, the third test device, and the DUT are each connected to the RF interface of the wireless channel emulator via RF cables. The wireless channel emulator can flexibly establish logical topology relationships between the connected devices according to user settings, thereby meeting the needs of different test items.

[0076] The computer runs host computer software, which provides testers with an interface to perform conformance tests, enabling functions such as configuring test parameters, issuing test commands, and recording and displaying test results. The host computer software directly interacts with the corresponding test equipment or the device under test via a network switch to issue test commands and retrieve test results.

[0077] The first, second, and third test devices each run a standard emergency command wireless broadband self-organizing network protocol stack, which, together with the host computer software, performs tests on the device under test. The protocol stack, from bottom to top, includes the physical layer, data link layer, and network layer.

[0078] The first, second, and third test devices are identical. Their function is to connect directly to the host computer software via a network switch, receive test commands issued by the host computer software through the network port, parse the commands, convert them into a series of test messages, and send them to other test devices or the device under test through the radio frequency interface. When a feedback message is received, the feedback message is parsed to form a test result, and finally the test result is reported to the host computer test software through the network port.

[0079] The device under test runs an emergency command wireless broadband self-organizing network protocol stack developed by the manufacturer under test. The network layer protocol on this protocol stack is the object being tested.

[0080] As for Figure 1 In a further description of the corresponding embodiment, before setting the corresponding logical topology diagram for the item to be tested, the number of test devices connected to the computer can be counted, and then multiple logical topology diagrams can be generated based on the number of devices.

[0081] If the number of devices is 3 and the test devices include a first test device, a second test device, and a third test device, then the first logical topology diagram, the second logical topology diagram, the third logical topology diagram, and the fourth logical topology diagram can be set according to preset rules.

[0082] The above preset rules are:

[0083] In the first logical topology diagram, the first test device, the second test device, the third test device, and the device under test are sequentially connected in a chain-like topology.

[0084] In the second logical topology diagram, the first test device, the second test device, the device under test, and the third test device are connected in a chain-like topology in sequence;

[0085] In the third logical topology diagram, there is a topological connection between any two devices among the first test device, the second test device, the third test device and the device under test;

[0086] In the fourth logical topology diagram, the first test device, the second test device, the third test device, and the device under test are connected in a ring topology.

[0087] Please see Figure 5 , Figure 5 The first logical topology diagram provided in this application illustrates the connection relationship of radio frequency signals between four devices: a first test device, a second test device, a third test device, and a device under test (DUT). This connection relationship is formed by configuring a wireless channel simulator according to the needs of specific test cases. In the first logical topology diagram, the four devices form a chain-like topology connection, that is, the radio frequency signal emitted by the first test device can only be received by the second test device, the radio frequency signal emitted by the second test device can only be received by the first and third test devices, the device signal emitted by the third test device can only be received by the second test device and the DUT, and the signal emitted by the DUT can only be received by the third test device. Simultaneously, due to the multi-hop routing forwarding function inherent in the network layer protocol of the ad hoc network device, devices without direct connections can communicate with each other through the forwarding of intermediate devices. For example, the radio frequency signal emitted by the first test device can sequentially pass through the routing forwarding of the second and third test devices, ultimately reaching the DUT.

[0088] Please see Figure 6 , Figure 6 The second logical topology diagram provided in this embodiment of the application is also formed by configuring a wireless channel simulator. Figure 5 compared to, Figure 6The difference is that the third testing device and the device under test have been swapped.

[0089] Please see Figure 7 , Figure 7 The third logical topology diagram provided in this application embodiment is also formed by configuring a wireless channel simulator. In this logical topology diagram, the four devices form a topology that is directly connected to each other, that is, the radio frequency signal emitted by each device can be directly received by other devices.

[0090] Please see Figure 8 , Figure 8 The fourth logical topology diagram provided in this application embodiment is also formed by configuring a wireless channel simulator. In this logical topology diagram, the four devices form a ring-shaped topology. For example, the radio frequency signal emitted by the first test device can be received directly by the device under test, or it can be received by the device under test after being forwarded by the second and third test devices.

[0091] For the conformance testing of network layer protocols in wireless broadband ad hoc networks for emergency command communications, link maintenance function testing, routing management function testing, and data management function testing are conducted. The test sub-items and specific test operations for each test are as follows:

[0092] A. Link maintenance function test;

[0093] If the test item is a link maintenance function test, then the first logical topology diagram is set as the logical topology diagram corresponding to the link maintenance function test; wherein, the test sub-items of the link maintenance function test include a link layer detection link maintenance function sub-test and a network layer detection link maintenance function sub-test.

[0094] A1. The link layer detection and link maintenance function is explained as follows:

[0095] Test objective: To verify that the network layer protocol under test can update the routing status in the local routing table accordingly based on the link layer's detection of link establishment, disconnection, and restoration information between the local node and its neighboring nodes.

[0096] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0097] The testing steps are as follows:

[0098] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0099] 2) The device under test is powered on first. After 10 seconds of power-on, the local routing table of the device under test is queried.

[0100] 3) The third test device is powered on, and its network layer protocol is not working during the initial configuration of the third test device. After 6 seconds, the local routing table of the device under test is queried.

[0101] 4) Configure the wireless channel emulator, disconnect the connection between the third test device and the device under test, and query the local routing table of the device under test after 6 seconds;

[0102] 5) Configure the wireless channel emulator, restore the connection between the third test device and the device under test, and query the local routing table of the device under test after 6 seconds.

[0103] The expected results are as follows:

[0104] 1) After executing the above test step 2), the local routing table of the device under test should be found to be empty;

[0105] 2) After executing the above test step 3), a route entry with the destination node of the third test device should be found in the local routing table of the device under test;

[0106] 3) After executing the above test step 4), the local routing table of the device under test should be found to be empty;

[0107] 4) After executing the above test step 5), a route entry with the destination node of the third test device should be found in the local routing table of the device under test.

[0108] If the above expected result is achieved, the subtest result of the link layer detection link maintenance function subtest is "test passed"; if the above expected result is not achieved, the subtest result of the link layer detection link maintenance function subtest is "test failed".

[0109] A2. The description of the sub-test for network layer link maintenance function is as follows:

[0110] Test objective: To verify that the network layer protocol under test can detect the establishment, disconnection, and restoration of links between the local node and neighboring nodes based on the route advertisement broadcast messages, and thus update the routing status in the local routing table accordingly.

[0111] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0112] The testing steps are as follows:

[0113] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0114] 2) The device under test is powered on first. After 10 seconds of power-on, the local routing table of the device under test is queried.

[0115] 3) The third test device is powered on, the second test device is powered on 10 seconds later, and the local routing table of the device under test is queried 6 seconds later;

[0116] 4) Configure the wireless channel emulator, disconnect the connection between the second and third test devices, and query the local routing table of the device under test after 6 seconds;

[0117] 5) Configure the wireless channel emulator, restore the connection between the second and third test devices, and query the local routing table of the device under test after 6 seconds.

[0118] The expected results are as follows:

[0119] 1) After executing the above test step 2), the local routing table of the device under test should be found to be empty;

[0120] 2) After executing the above test step 3), two routing entries with the destination node being the third test device and the second test device should be found in the local routing table of the device under test;

[0121] 3) After executing the test step 4), the test device's local routing table should show only one routing entry with the destination node being the second test device.

[0122] 4) After executing the above test step 5), two routing entries should be found in the local routing table of the device under test, with the destination node being the third test device and the second test device.

[0123] If the above expected results are achieved, the subtest result of the network layer detection link maintenance function subtest is "test passed"; if the above expected results are not achieved, the subtest result of the network layer detection link maintenance function subtest is "test failed".

[0124] This embodiment can also determine whether the sub-test results of the link layer detection link maintenance function sub-test and the network layer detection link maintenance function sub-test are both passed. If so, the test result of the link maintenance function test is determined to be passed; otherwise, the test result of the link maintenance function test is determined to be failed.

[0125] B. Routing management function test;

[0126] If the item to be tested is a routing management function test, then a logical topology diagram corresponding to each test sub-item of the routing management function test is set; wherein, the test sub-items of the routing management function test include a route item creation function sub-test, a route item update function sub-test, and a route item deletion function sub-test; accordingly, the test operations of the test sub-items of the routing management function test can be performed on the test device and the device under test based on the logical topology diagram corresponding to the test sub-items of the routing management function test.

[0127] B1. The description of the sub-test for the route item creation function is as follows:

[0128] Test objective: To verify that the network layer protocol under test can detect the routing entries of new nodes through the received routing advertisements, and at the same time verify that the network layer protocol under test can periodically broadcast the correct routing advertisements.

[0129] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0130] The testing steps are as follows:

[0131] 1) Configure a wireless channel simulator to form a structure as follows: Figure 6 The chain-like logic topology shown;

[0132] 2) The device under test, the first test device, the second test device, and the third test device are powered on sequentially;

[0133] 3) After 30 seconds, query the local routing table of the device under test;

[0134] 4) Query the routing advertisement messages received on the second test device.

[0135] The expected results are as follows:

[0136] 1) After executing the above test step 3), three routing entries with the destination nodes of the first test device, the second test device, and the third test device should be found in the local routing table of the device under test;

[0137] 2) After the above test step 4) is executed, it should be found that the second test device receives the routing announcement broadcast by the device under test every 3 seconds, and the routing announcement should contain three routing entries with the destination nodes being the first test device, the second test device, and the third test device.

[0138] If the above expected results are achieved, the subtest result of the routing item establishment function subtest is "test passed"; if the above expected results are not achieved, the subtest result of the routing item establishment function subtest is "test failed".

[0139] B2. The description of the route entry update function sub-test-1 is as follows:

[0140] Test objective: To verify that when a new neighboring node is detected at the link layer and a routing entry for that node exists locally, the network layer protocol under test can correctly update this routing entry and broadcast the corresponding routing advertisement.

[0141] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0142] The testing steps include:

[0143] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0144] 2) The device under test, the third testing device, and the second testing device are powered on sequentially;

[0145] 3) After 30 seconds, query the local routing table of the device under test;

[0146] 4) Reconfigure the wireless channel emulator to form a configuration as follows: Figure 6 The chain-like logic topology shown;

[0147] 5) Query the local routing table of the device under test;

[0148] 6) Query the routing advertisement messages received on the second test device.

[0149] Expected results:

[0150] 1) After executing the above test step 3), the local routing table of the device under test should be checked to find a route entry with the destination node being the second test device and the path metric (Metric) equal to 2. At the same time, the sequence number of the route entry should be recorded.

[0151] 2) After the above test step 5) is executed, a route entry with the destination node of the second test device should be found in the local routing table of the device under test. The metric of the route entry is equal to 1, and the sequence number of the route entry is a multiple of 2 greater than the sequence number found in test step 3).

[0152] 3) After the above test step 6) is executed, the routing announcement broadcast by the device under test received by the second test device should be found. The routing announcement should contain a routing entry with the destination node being the second test device, and the Metric and sequence number of the routing entry should be the same as the values ​​found in test step 5).

[0153] If the expected result is achieved, the subtest result of the routing item update function subtest-1 is "test passed"; if the expected result is not achieved, the subtest result of the routing item update function subtest-1 is "test failed".

[0154] B3, the description of the route entry update function sub-test-2 is as follows:

[0155] Test objective: To verify that when the link layer detects that the link of an existing neighboring node has been disconnected, and there is a routing entry for that node locally, the network layer protocol under test can correctly update this routing entry and broadcast the corresponding routing advertisement.

[0156] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0157] The testing steps include:

[0158] 1) Configure a wireless channel simulator to form a structure as follows: Figure 7 The chain-like logic topology shown;

[0159] 2) The device under test, the third testing device, and the second testing device are powered on sequentially;

[0160] 3) After 30 seconds, query the local routing table of the device under test;

[0161] 4) Turn off the third test equipment;

[0162] 5) Immediately query the local routing table of the device under test;

[0163] 6) Simultaneously query the routing advertisement messages received on the second test device.

[0164] Expected results include:

[0165] 1) After executing the above test step 3), it should be found that there is a route entry in the local routing table of the device under test with the destination node being the third test device and the Metric equal to 1. At the same time, the sequence number of the route entry should be recorded.

[0166] 2) After the above test step 5) is executed, within 1 to 2 seconds after the node is powered off, the metric of the route entry with the destination node of the third test device in the local routing table of the device under test should be found to be infinite, and the sequence number of the route entry should be the sequence number found in test step 3) plus 1.

[0167] 3) After the above test step 6) is executed, the routing announcement broadcast by the device under test received by the second test device should be found. The routing announcement should contain a routing entry with the destination node being the third test device, and the Metric and sequence number of the routing entry should be the same as the values ​​found in test step 5).

[0168] If the expected result is achieved, the subtest result of the routing item update function subtest-2 is "test passed"; if the expected result is not achieved, the subtest result of the routing item update function subtest-2 is "test failed".

[0169] B4: The description of sub-test-3 for the route entry update function is as follows:

[0170] Test objective: To verify that when the network layer receives a route advertisement broadcast, and the sequence number of a route entry for a destination node in the route advertisement is a multiple of 2 greater than the local sequence number, the network layer protocol under test can correctly update this route entry and broadcast the corresponding route advertisement.

[0171] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0172] The testing steps include:

[0173] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0174] 2) The device under test, the third test device, the second test device, and the first test device are powered on in sequence;

[0175] 3) After 30 seconds, query the local routing table of the device under test;

[0176] 4) Reconfigure the wireless channel emulator to form a configuration as follows: Figure 6 The chain-like logic topology shown;

[0177] 5) Query the local routing table of the device under test;

[0178] 6) Simultaneously query the routing announcement messages received on the third test device.

[0179] Expected results include:

[0180] 1) After executing the above test step 3), it should be found that there is a route entry in the local routing table of the device under test with the destination node being the first test device and the Metric equal to 3. At the same time, the sequence number of the route entry should be recorded.

[0181] 2) After the above test step 5) is executed, it should be found that the metric of the route entry with the destination node of the first test device in the local routing table of the device under test is equal to 2, and the sequence number of the route entry is a multiple of 2 greater than the sequence number found in test step 3).

[0182] 3) After the above test step 6) is executed, the routing announcement broadcast by the device under test received by the third test device should be found. The routing announcement should contain a routing entry with the destination node being the first test device, and the Metric and sequence number of the routing entry should be the same as the values ​​found in test step 5).

[0183] If the expected results are achieved, the subtest result of the routing entry update function subtest-3 is "test passed"; if the expected results are not achieved, the subtest result of the routing entry update function subtest-3 is "test failed".

[0184] B5. The description of the route entry update function sub-test-4 is as follows:

[0185] Test objective: To verify that when a routing advertisement broadcast is received at the network layer, and the sequence number of a routing entry for a destination node in the routing advertisement is an odd number greater than the local sequence number, the network layer protocol under test can correctly update this routing entry and broadcast the corresponding routing advertisement.

[0186] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0187] The testing steps include:

[0188] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0189] 2) The device under test, the third test device, the second test device, and the first test device are powered on in sequence;

[0190] 3) After 30 seconds, the first test device will be powered off;

[0191] 4) Query the local routing table of the device under test;

[0192] 5) Reboot the first test device. After 10 seconds, query the local routing table of the device under test again.

[0193] 6) Simultaneously query the routing announcement messages received on the third test device.

[0194] Expected results include:

[0195] 1) After executing the above test step 4), it should be found that there is a route entry in the local routing table of the device under test with the destination node being the first test device, and the Metric is equal to infinity, and the sequence number of the route entry is an odd number;

[0196] 2) After executing the above test step 5), it should be found that the metric of the route entry with the destination node of the first test device in the local routing table of the device under test is equal to 3, and the sequence number of the route entry is even.

[0197] 3) After the above test step 6) is executed, the routing announcement broadcast by the device under test received by the third test device should be found. The routing announcement should contain a routing entry with the destination node being the first test device, and the Metric and sequence number of the routing entry should be the same as the values ​​found in test step 5).

[0198] If the expected result is achieved, the subtest result of subtest-4 of the routing item update function is "test passed"; if the expected result is not achieved, the subtest result of subtest-4 of the routing item update function is "test failed".

[0199] B6. The description of the route entry update function sub-test-5 is as follows:

[0200] Test objective: To verify that when a route advertisement broadcast is received at the network layer, and the sequence number of the route entry for a destination node in the route advertisement is the same as the local sequence number, the network layer protocol under test should select the one with the smaller metric as the metric value of the local routing table.

[0201] Test environment: Setting up the test environment as follows Figure 3 The physical topology diagram is shown.

[0202] The testing steps include:

[0203] 1) Configure a wireless channel simulator to form a structure as follows: Figure 8 The ring logic topology shown;

[0204] 2) The device under test, the third test device, the second test device, and the first test device are powered on in sequence;

[0205] 3) After 30 seconds, query the local routing table of the device under test, once every 3 seconds, for a total of 20 queries;

[0206] 4) Simultaneously query the routing announcement messages received on the third test device, querying once every 3 seconds for a total of 20 times.

[0207] Expected results include:

[0208] 1) After the above test step 3) is executed, it should be found that the local routing table of the device under test has a route entry with the destination node of the first test device and the metric is always equal to 1, and the next hop node of the route entry is always the first test device.

[0209] 2) After the above test step 4) is executed, the third test device should be able to query the routing announcement broadcast by the device under test in each test. Each routing announcement should contain a routing entry with the destination node being the first test device. The Metric and next-hop node of the routing entry should be the same as the values ​​queried in test step 3).

[0210] If the expected result is achieved, the subtest result of the routing entry update function subtest-5 is "test passed"; if the expected result is not achieved, the subtest result of the routing entry update function subtest-5 is "test failed".

[0211] B7. The description of the route entry deletion function sub-test-1 is as follows:

[0212] Test objective: To verify that the network layer protocol under test can learn from the received routing advertisement that the metric of the destination node is infinite, and thus delete the routing entry corresponding to that node.

[0213] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0214] Test steps:

[0215] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0216] 2) The device under test, the third testing device, and the second testing device are powered on sequentially;

[0217] 3) After 30 seconds, query the local routing table of the device under test;

[0218] 4) Power off the second test device and query the local routing table of the device under test again after 10 seconds.

[0219] Expected results include:

[0220] 1) After executing the above test step 3), a route entry with the destination node of the second test device should be found in the local routing table of the device under test;

[0221] 2) After executing the above test step 4), it should be found that there is no route entry in the local routing table of the device under test with the destination node being the second test device.

[0222] If the expected result is achieved, the subtest result of the route item deletion function subtest-1 is "test passed"; if the expected result is not achieved, the subtest result of the route item deletion function subtest-1 is "test failed".

[0223] B8. The description of the route entry deletion function sub-test-2 is as follows:

[0224] Test objective: To verify that the network layer protocol under test can detect when a destination node is not on the network by using the neighbor node route advertisement maintenance timer timeout mechanism, and thus delete the routing entry corresponding to that node.

[0225] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0226] The testing steps include:

[0227] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0228] 2) The device under test and the third testing device are powered on sequentially;

[0229] 3) After 30 seconds, query the local routing table of the device under test;

[0230] 4) Power off the third test device and query the local routing table of the device under test again after 30 seconds.

[0231] Expected results include:

[0232] 1) After executing the above test step 3), a route entry with the destination node of the third test device should be found in the local routing table of the device under test;

[0233] 2) After executing the above test step 4), it should be found that there is no route entry in the local routing table of the device under test with the destination node being the third test device.

[0234] If the expected result is achieved, the subtest result of the route item deletion function subtest-2 is "test passed"; if the expected result is not achieved, the subtest result of the route item deletion function subtest-2 is "test failed".

[0235] This embodiment can also determine whether the test results of the route item creation function sub-test, the route item update function sub-test-1, the route item update function sub-test-2, the route item update function sub-test-3, the route item update function sub-test-4, the route item update function sub-test-5, the route item deletion function sub-test-1, and the route item deletion function sub-test-2 are all passed. If so, the test result of the route management function test is determined to be passed; otherwise, the test result of the route management function test is determined to be failed.

[0236] C. Data processing function test;

[0237] If the item to be tested is a data processing function test, then the first logical topology diagram is set as the logical topology diagram corresponding to the link maintenance function test; wherein, the test sub-items of the data processing function test include unicast service transmission function sub-test, unicast service reception function sub-test, multicast service transmission function sub-test, multicast service reception function sub-test, multicast service transmission function sub-test, and multicast service reception function sub-test.

[0238] C1. The description of the unicast service sending function sub-test is as follows:

[0239] Test objective: To verify that the network layer protocol under test has the function of sending unicast services.

[0240] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0241] The testing steps include:

[0242] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0243] 2) Power on each device (the first test device and the device under test) in sequence;

[0244] 3) After 30 seconds, unicast test data is sent from the device under test, with the destination node being the first test device;

[0245] 4) Check whether the first test device has received unicast test data and verify the correctness of the test data.

[0246] The expected result is that the first test device should be able to detect that it has received the unicast test data sent by the device under test, and that all the data content is correct.

[0247] If the above expected results are achieved, the sub-test result of the unicast service transmission function sub-test is "test passed"; if the above expected results are not achieved, the sub-test result of the unicast service transmission function sub-test is "test failed".

[0248] C2. The description of the unicast service reception function sub-test is as follows:

[0249] Test objective: To verify that the network layer protocol under test has unicast service reception capability.

[0250] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0251] The testing steps include:

[0252] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0253] 2) Power on each device (the first test device and the device under test) in sequence;

[0254] 3) After 30 seconds, unicast test data is sent from the first test device to the device under test.

[0255] 4) Check whether the device under test has received unicast test data and verify the correctness of the test data.

[0256] The expected results include: the device under test should be able to receive the unicast test data sent by the first test device, and the data content should be completely correct.

[0257] If the above expected results are achieved, the subtest result of the unicast service reception function subtest is "test passed"; if the above expected results are not achieved, the subtest result of the unicast service reception function subtest is "test failed".

[0258] C3. The description of the multicast service sending function sub-test is as follows:

[0259] Test objective: To verify that the network layer protocol under test has the function of sending multicast services.

[0260] Test environment: Setting up the test environment as follows Figure 4The physical topology diagram is shown.

[0261] The testing steps include:

[0262] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0263] 2) Each device (first test device, second test device, third test device, and device under test) is powered on sequentially;

[0264] 3) After 30 seconds, multicast test data is sent from the device under test;

[0265] 4) Check whether the first test device, the second test device, and the third test device have all received the multicast test data, and verify the correctness of the test data.

[0266] The expected result is that the first test device, the second test device, and the third test device should all receive the multicast test data sent by the device under test, and the data content received by each device should be correct.

[0267] If the above expected results are achieved, the sub-test result of the multicast service sending function sub-test is "test passed"; if the above expected results are not achieved, the sub-test result of the multicast service sending function sub-test is "test failed".

[0268] C4. The description of the multicast service receiving function sub-test is as follows:

[0269] Test objective: To verify that the network layer protocol under test has the function of receiving multicast services.

[0270] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0271] The testing steps include:

[0272] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0273] 2) Power on each device (the first test device and the device under test) in sequence;

[0274] 3) After 30 seconds, multicast test data is sent from the first test device;

[0275] 4) Check whether the device under test has received the multicast test data and verify the correctness of the test data.

[0276] The expected result is that the device under test should be found to have received multicast test data, and all the received data content should be correct.

[0277] If the above expected results are achieved, the subtest result of the multicast service receiving function subtest is "test passed"; if the above expected results are not achieved, the subtest result of the multicast service receiving function subtest is "test failed".

[0278] C5. The description of the multicast service sending function sub-test is as follows:

[0279] Test objective: To verify that the network layer protocol under test has the function of sending multicast services.

[0280] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0281] The testing steps include:

[0282] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0283] 2) Power on each device in sequence, and configure the device under test, the first test device, and the third test device into a multicast group;

[0284] 3) After 30 seconds, multicast test data is sent from the device under test;

[0285] 4) Check whether the first test device, the second test device, and the third test device have received the multicast test data, and verify the correctness of the test data.

[0286] The expected results are: the first and third test devices should be able to receive the multicast test data sent by the device under test, and the data content received by each device should be correct; at the same time, the second test device should not receive any multicast test data sent by the device under test.

[0287] If the above expected results are achieved, the subtest result of the multicast service transmission function subtest is "test passed"; if the above expected results are not achieved, the subtest result of the multicast service transmission function subtest is "test failed".

[0288] C6. The description of the multicast service receiving function sub-test is as follows:

[0289] Test objective: To verify that the network layer protocol under test has the function of receiving multicast services.

[0290] Test environment: Setting up the test environment as follows Figure 4 The physical topology diagram is shown.

[0291] The testing steps include:

[0292] 1) Configure a wireless channel simulator to form a structure as follows: Figure 5 The chain-like logic topology shown;

[0293] 2) Power on each device in sequence, and configure the device under test, the first test device, and the third test device into a multicast group;

[0294] 3) After 30 seconds, multicast test data is sent from the first test device;

[0295] 4) Check whether the device under test has received the multicast test data and verify the correctness of the test data.

[0296] The expected result is that the device under test should be found to have received multicast test data, and all the received data content should be correct.

[0297] If the above expected results are achieved, the subtest result of the multicast service receiving function subtest is "test passed"; if the above expected results are not achieved, the subtest result of the multicast service receiving function subtest is "test failed".

[0298] This embodiment can also determine whether the test results of the unicast service sending function sub-test, the unicast service receiving function sub-test, the multicast service sending function sub-test, the multicast service receiving function sub-test, the multicast service sending function sub-test, and the multicast service receiving function sub-test are all passed. If so, the test result of the data processing function test is determined to be passed; otherwise, the test result of the data processing function test is determined to be failed.

[0299] This embodiment can also determine whether the test results of the link maintenance function test, the routing management function test, and the data processing function test are all passed. If they are, the network layer protocol under test is determined to have passed the consistency test; otherwise, the network layer protocol under test is determined to have failed the consistency test.

[0300] This application provides a network layer protocol conformance testing system, applied to a computer connected to a device under test (DUT) and a test device. The DUT and the test device are respectively connected to a wireless channel emulator via RF feed lines. The protocol stack running on the test device includes a preset network layer protocol that has passed conformance testing. The protocol stack running on the DUT includes the network layer protocol under test. The network layer protocol conformance testing system includes:

[0301] The logical topology setting module is used to determine multiple test items of the network layer protocol under test based on the network layer function, and to set the corresponding logical topology diagram for the test items.

[0302] The logical connection adjustment module is used to send control commands to the wireless channel simulator according to the logical topology diagram, so that the wireless channel simulator adjusts the logical connection relationship between the test equipment and the device under test.

[0303] The testing module is used to perform test operations corresponding to the test items on the test equipment and the device under test based on the logical topology diagram.

[0304] The result output module is used to determine that the network layer protocol under test has failed the consistency test if the test result of the item to be tested is "test failed"; it is also used to determine that the network layer protocol under test has passed the consistency test if the test results of all the items to be tested are "test passed".

[0305] In this embodiment, both the device under test (DUT) and the testing device are connected to a computer, and both are connected to a wireless channel emulator via RF feeders. This embodiment determines multiple test items for the network layer protocol under test based on the network layer's functionality, and sends control commands to the wireless channel emulator before testing each test item to adjust the logical connection between the testing device and the DUT. After the test operation, if the test result is a failure, the network layer protocol under test is deemed to have failed the conformance test; if all test items pass, the network layer protocol under test is deemed to have passed the conformance test. This embodiment can perform conformance testing on the network layer protocol in an emergency command wireless broadband self-organizing network, ensuring interoperability between emergency command wireless broadband self-organizing network devices from different manufacturers.

[0306] Furthermore, it also includes:

[0307] The topology planning module is used to count the number of test devices connected to the computer before setting the corresponding logical topology for the test item; it is also used to generate multiple logical topology diagrams based on the number of devices.

[0308] Furthermore, if the number of devices is 3 and the test devices include a first test device, a second test device, and a third test device, then the topology planning module is used to set the first logical topology diagram, the second logical topology diagram, the third logical topology diagram, and the fourth logical topology diagram according to preset rules;

[0309] In the first logical topology diagram, the first test device, the second test device, the third test device, and the device under test are sequentially connected in a chain-like topology. In the second logical topology diagram, the first test device, the second test device, the device under test, and the third test device are sequentially connected in a chain-like topology. In the third logical topology diagram, there is a topology connection between any two devices among the first test device, the second test device, the third test device, and the device under test. In the fourth logical topology diagram, the first test device, the second test device, the third test device, and the device under test are sequentially connected in a ring-like topology.

[0310] Furthermore, if the test item is a link maintenance function test, the process of the logical topology setting module setting the corresponding logical topology diagram for the test item includes: setting the first logical topology diagram as the logical topology diagram corresponding to the link maintenance function test; wherein, the test sub-items of the link maintenance function test include the link layer detection link maintenance function sub-test and the network layer detection link maintenance function sub-test.

[0311] Furthermore, if the item to be tested is a route management function test, the process of the logical topology setting module setting the corresponding logical topology diagram for the item to be tested includes: setting the logical topology diagram corresponding to each test sub-item of the route management function test; wherein, the test sub-items of the route management function test include route item creation function sub-test, route item update function sub-test, and route item deletion function sub-test;

[0312] Accordingly, the process by which the test module performs the test operation corresponding to the test item on the test device and the device under test based on the logical topology diagram includes: performing the test operation of the test sub-item of the routing management function test on the test device and the device under test based on the logical topology diagram corresponding to the test sub-item of the routing management function test.

[0313] Furthermore, if the test item is a data processing function test, the process of the logical topology setting module setting the corresponding logical topology diagram for the test item includes: setting the first logical topology diagram as the logical topology diagram corresponding to the link maintenance function test; wherein, the test sub-items of the data processing function test include unicast service transmission function sub-test, unicast service reception function sub-test, multicast service transmission function sub-test, multicast service reception function sub-test, multicast service transmission function sub-test, and multicast service reception function sub-test.

[0314] Since the embodiments of the system part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the system part, and they will not be repeated here.

[0315] This application also provides a storage medium on which a computer program is stored, which, when executed, can perform the steps provided in the above embodiments. The storage medium may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0316] This application also provides a computer, to which a device under test (DUT) and a test device are respectively connected. The DUT and the test device are respectively connected to a wireless channel emulator via RF feed lines. The protocol stack running on the test device includes a preset network layer protocol that has passed conformance testing. The protocol stack running on the DUT includes the network layer protocol under test. The computer runs host computer software that implements the steps of the above embodiments. The computer is connected to the DUT and the test device via a switch.

[0317] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

[0318] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only 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 one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A consistency testing method for a network layer protocol, characterized in that, This is applied to a computer connected to a device under test (DUT) and a test device. The DUT and the test device are respectively connected to a wireless channel emulator via RF feed lines. The protocol stack running on the test device includes a preset network layer protocol that has passed conformance testing. This preset network layer protocol conforms to the emergency command wireless broadband self-organizing network standard. The protocol stack running on the DUT includes the network layer protocol under test. The conformance testing method for this network layer protocol includes: Based on the network layer functions, multiple test items of the network layer protocol under test are determined, and corresponding logical topology diagrams are set for the test items. The test items include link maintenance function testing, route management function testing, and data processing function testing. The link maintenance function testing sub-items include link layer detection link maintenance function sub-tests and network layer detection link maintenance function sub-tests. The route management function testing sub-items include route entry establishment function sub-tests, route entry update function sub-tests, and route entry deletion function sub-tests. The data processing function testing sub-items include unicast service transmission function sub-tests, unicast service reception function sub-tests, multicast service transmission function sub-tests, multicast service reception function sub-tests, and multicast service transmission function sub-tests. According to the logical topology diagram, control commands are sent to the wireless channel simulator to enable the wireless channel simulator to adjust the logical connection relationship between the test equipment and the device under test. Based on the logical topology diagram, the test operation corresponding to the test item is performed on the test equipment and the device under test; If the test result of the item to be tested is that the test fails, then the network layer protocol under test is determined to have failed the consistency test. If all the test results of the items to be tested are passed, then the network layer protocol under test is determined to have passed the consistency test. The testing equipment includes a first testing device, a second testing device, and a third testing device, and also includes: Set the first logical topology diagram, the second logical topology diagram, the third logical topology diagram, and the fourth logical topology diagram according to preset rules; In the first logical topology diagram, the first test device, the second test device, the third test device, and the device under test are sequentially connected in a chain-like topology; in the second logical topology diagram, the first test device, the second test device, the device under test, and the third test device are sequentially connected in a chain-like topology; in the third logical topology diagram, there is a topology connection between any two devices among the first test device, the second test device, the third test device, and the device under test; in the fourth logical topology diagram, the first test device, the second test device, the third test device, and the device under test are sequentially connected in a ring-like topology. The testing process for the routing item update function sub-test includes: Configure the wireless channel emulator to form a chain-like logical topology corresponding to the first logical topology diagram; power on the device under test, the third test device, the second test device, and the first test device in sequence; after 30 seconds, query the local routing table of the device under test; reconfigure the wireless channel emulator to form a chain-like logical topology corresponding to the second logical topology diagram; query the local routing table of the device under test; and simultaneously query the routing advertisement message received by the third test device.

2. The conformance testing method for network layer protocols according to claim 1, characterized in that, Before setting the corresponding logical topology diagram for the item to be tested, the following steps are also included: Count the number of devices connected to the computer in the test equipment; Multiple logical topology diagrams are generated based on the number of devices.

3. The consistency testing method for network layer protocols according to claim 1, characterized in that, To set the corresponding logical topology diagram for the item to be tested, including: If the item to be tested is a link maintenance function test, then the first logical topology diagram is set as the logical topology diagram corresponding to the link maintenance function test.

4. The conformance testing method for the network layer protocol according to claim 1, characterized in that, To set the corresponding logical topology diagram for the item to be tested, including: If the item to be tested is a routing management function test, then set the logical topology diagram corresponding to each test sub-item of the routing management function test; Accordingly, based on the logical topology diagram, the test operation corresponding to the test item is performed on the test device and the device under test, including: Based on the logical topology diagram corresponding to the test sub-item of the routing management function test, the test operation of the test sub-item of the routing management function test is performed on the test device and the device under test.

5. The conformance testing method for network layer protocols according to claim 1, characterized in that, To set the corresponding logical topology diagram for the item to be tested, including: If the item to be tested is a data processing function test, then the first logical topology diagram is set as the logical topology diagram corresponding to the data processing function test.

6. A consistency testing system for a network layer protocol, characterized in that, A computer connected to the device under test (DUT) and a test device, wherein the DUT and the test device are respectively connected to a wireless channel emulator via RF feed lines, the protocol stack running on the test device includes a preset network layer protocol that has passed conformance testing, the preset network layer protocol being a network layer protocol conforming to the emergency command wireless broadband self-organizing network standard, and the protocol stack running on the DUT including the network layer protocol under test, the conformance testing system for the network layer protocol comprising: The logical topology setting module is used to determine multiple test items of the network layer protocol under test based on the network layer functions, and to set corresponding logical topology diagrams for the test items. The test items include link maintenance function testing, route management function testing, and data processing function testing. The link maintenance function testing includes sub-tests for link layer detection of link maintenance function and network layer detection of link maintenance function. The route management function testing includes sub-tests for route item establishment, route item update, and route item deletion. The data processing function testing includes sub-tests for unicast service transmission, unicast service reception, multicast service transmission, multicast service reception, and multicast service transmission and reception. The logical connection adjustment module is used to send control commands to the wireless channel simulator according to the logical topology diagram, so that the wireless channel simulator adjusts the logical connection relationship between the test equipment and the device under test. The testing module is used to perform test operations corresponding to the test items on the test equipment and the device under test based on the logical topology diagram. The result output module is used to determine that the network layer protocol under test has failed the consistency test if the test result of the test item is "test failed"; it is also used to determine that the network layer protocol under test has passed the consistency test if the test results of all the test items are "test passed". The testing equipment includes a first testing device, a second testing device, and a third testing device, and also includes: The topology planning module is used to set up the first logical topology, the second logical topology, the third logical topology, and the fourth logical topology according to preset rules. In the first logical topology diagram, the first test device, the second test device, the third test device, and the device under test are sequentially connected in a chain-like topology; in the second logical topology diagram, the first test device, the second test device, the device under test, and the third test device are sequentially connected in a chain-like topology; in the third logical topology diagram, there is a topology connection between any two devices among the first test device, the second test device, the third test device, and the device under test; in the fourth logical topology diagram, the first test device, the second test device, the third test device, and the device under test are sequentially connected in a ring-like topology. The testing process for the routing item update function sub-test includes: Configure the wireless channel emulator to form a chain-like logical topology corresponding to the first logical topology diagram; power on the device under test, the third test device, the second test device, and the first test device in sequence; after 30 seconds, query the local routing table of the device under test; reconfigure the wireless channel emulator to form a chain-like logical topology corresponding to the second logical topology diagram; query the local routing table of the device under test; and simultaneously query the routing advertisement message received by the third test device.

7. A computer, characterized in that, The device under test (DUT) and the test device are respectively connected to the computer. The DUT and the test device are respectively connected to the wireless channel simulator via RF feed lines. The protocol stack running on the test device includes a preset network layer protocol that has passed the conformance test. The preset network layer protocol is a network layer protocol that conforms to the emergency command wireless broadband self-organizing network standard. The protocol stack running on the DUT includes the network layer protocol under test. The computer runs host computer software. When the host computer software runs, it implements the steps of the conformance test method for the network layer protocol as described in any one of claims 1 to 5.

8. The computer according to claim 7, characterized in that, The computer is connected to the device under test and the testing equipment via a switch.

9. A storage medium, characterized in that, The storage medium stores computer-executable instructions, which, when loaded and executed by a processor, implement the steps of the conformance testing method for the network layer protocol as described in any one of claims 1 to 5.