Ad hoc network routing component consistency test method, system, device and storage medium

By conducting consistency tests on the ad hoc network routing components, including adjacency formation, link state announcement, link quality calculation, and flooding protocol testing, the gap in the functional testing of the BATMAN-adv protocol of the ad hoc network routing components was filled, ensuring its compatibility and interoperability in the SCA standard system.

CN116346664BActive Publication Date: 2026-03-27HUNAN KEAYSHARE COMM TECH CO LTD +2
View PDF 3 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-03-27

AI Technical Summary

Technical Problem

Existing technologies lack a consistency testing scheme for ad hoc network routing components, especially a testing method for the functional requirements of the BATMAN-adv protocol.

Method used

A consistency testing method for ad hoc network routing components is provided. By determining the consistency testing process and executing test items such as adjacency formation, link state announcement, link quality calculation, routing table function, and flooding protocol, the method can detect whether the ad hoc network routing components meet the functional requirements of the BATMAN-adv protocol.

Benefits of technology

Comprehensive conformance testing of the self-organizing network routing components was implemented to ensure that they meet the functional requirements of the BATMAN-adv protocol and support normal loading and interconnection with standard network nodes in the SCA standard system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116346664B_ABST
    Figure CN116346664B_ABST
Patent Text Reader

Abstract

The application discloses a self-organizing network routing component consistency test method, system, device and storage medium, and belongs to the technical field of consistency test technology. The self-organizing network routing component consistency test method comprises the following steps: determining a consistency test procedure of a to-be-tested self-organizing network routing component, and determining a current test item according to the consistency test procedure; performing a test operation corresponding to the current test item on a first radio platform and a second radio platform to obtain a test result of the current test item; if the test result of the current test item is test failure, it is determined that the to-be-tested self-organizing network routing component fails the consistency test; and if the test results of all test items in the consistency test procedure are test success, it is determined that the to-be-tested self-organizing network routing component passes the consistency test. The application can perform consistency test on the self-organizing network routing component, and detect whether the self-organizing network routing component meets the functional requirements of the BATMAN-adv protocol.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of consistency testing, in particular to a self-organizing network routing component consistency testing method, system, device and storage medium. BACKGROUND

[0002] BATMAN-adv (Better Approach To Mobile Ad-hoc Networking advanced) is a self-organizing network routing protocol working in the second layer (data link layer) of the OSI model, which uses Ethernet frames for communication. The BATMAN-adv protocol supports any interface capable of sending Ethernet frames, whether the interface is wired, wireless or virtual. BATMAN-adv declares node information by periodically sending Originator Messages (OGM) and builds multi-hop routing in the self-organizing network. Each node generates its own OGM message and broadcasts it to the entire network, and the receiving node calculates the path information of the source node according to the received OGM message. There is currently no solution for consistency testing of self-organizing network routing components.

[0003] Therefore, how to test the consistency of the self-organizing network routing component and detect whether the self-organizing network routing component meets the functional requirements of the BATMAN-adv protocol is an important problem to be solved in the technical field at present. SUMMARY

[0004] The purpose of the present application is to provide a self-organizing network routing component consistency testing method, system, device and storage medium, which can test the consistency of the self-organizing network routing component and detect whether the self-organizing network routing component meets the functional requirements of the BATMAN-adv protocol.

[0005] To solve the above technical problems, the present application provides a self-organizing network routing component consistency testing method applied to a test device connected with a first radio platform and a second radio platform respectively, wherein the first radio platform runs a test self-organizing network routing component that has passed a consistency test, the second radio platform runs a measured self-organizing network routing component, and the test self-organizing network routing component and the measured self-organizing network routing component are routing components based on the BATMAN-adv protocol. The self-organizing network routing component consistency testing method comprises:

[0006] determining a consistency testing process of the measured self-organizing network routing component, and determining a current test item according to the consistency testing process; wherein the test items in the consistency testing process include adjacency relationship formation testing, link state advertisement testing, link quality calculation testing, routing table function testing and flooding protocol testing;

[0007] performing a test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain a test result of the current test item;

[0008] if the test result of the current test item is test pass, determining a new current test item according to the consistency test procedure, so as to perform a test operation corresponding to the new current test item on the first radio platform and the second radio platform;

[0009] if the test result of the current test item is test fail, determining that the measured ad hoc network routing component fails the consistency test;

[0010] if the test result of all test items in the consistency test procedure is test pass, determining that the measured ad hoc network routing component passes the consistency test.

[0011] Optionally, if the current test item is the adjacency relationship formation test, performing a test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain a test result of the current test item, comprising:

[0012] issuing an ELP packet sending function test instruction to the first radio platform and the second radio platform, so as to verify whether the ELP packet sent by the measured ad hoc network routing component conforms to the BATMAN-adv protocol requirement, to obtain a first ELP packet test result;

[0013] issuing an ELP packet type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives an ELP packet with an abnormal packet type field, to obtain a second ELP packet test result;

[0014] issuing an ELP packet version type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives an ELP packet with an abnormal packet version type field, to obtain a third ELP packet test result;

[0015] issuing an ELP packet receiving test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives an ELP packet conforming to the BATMAN-adv protocol, to obtain a fourth ELP packet test result;

[0016] issuing an adjacency relationship establishment instruction to the first radio platform and the second radio platform, and verifying whether an adjacency relationship is established between the measured ad hoc network routing component and the test ad hoc network routing component, to obtain an adjacency relationship establishment sub-test result;

[0017] determining whether the first ELP packet test result, the second ELP packet test result, the third ELP packet test result, the fourth ELP packet test result and the adjacency relationship establishment sub-test result are all test passed;

[0018] if yes, determining that the test result of the adjacency relationship formation test is test passed;

[0019] if no, determining that the test result of the adjacency relationship formation test is test failed.

[0020] Optionally, if the current test item is the link state advertisement test, performing a test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain a test result of the current test item, including:

[0021] issuing an OGM packet sending function test instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component sends an OGM packet conforming to the BATMAN-adv protocol to obtain a first OGM packet test result;

[0022] issuing an OGM packet type field test instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component receives and forwards an OGM packet with an abnormal packet type field to obtain a second OGM packet test result;

[0023] issuing an OGM packet version type field test instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component receives and forwards an OGM packet with an abnormal packet version type field to obtain a third OGM packet test result;

[0024] issuing an unknown OGM packet test instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component receives an OGM packet from an unknown one-hop neighbor node to obtain a fourth OGM packet test result;

[0025] issuing a known OGM packet test instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component receives an OGM packet from a known one-hop neighbor node to obtain a fifth OGM packet test result;

[0026] determining whether the first OGM packet test result, the second OGM packet test result, the third OGM packet test result, the fourth OGM packet test result and the fifth OGM packet test result are all test passed;

[0027] If yes, it is determined that the test result of the link state advertisement test is test passed;

[0028] If no, it is determined that the test result of the link state advertisement test is test failed.

[0029] Optionally, if the current test item is the link quality calculation test, the first radio platform and the second radio platform are subjected to a test operation corresponding to the current test item, so as to obtain a test result of the current test item, including:

[0030] A link quality calculation instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component calculates link quality according to the BATMAN-adv protocol, and a first quality test result is obtained;

[0031] A link quality exception test instruction is issued to the first radio platform and the second radio platform, so as to verify whether a situation of link quality being 0 is processed according to a preset processing mode, and a second quality test result is obtained;

[0032] It is determined whether the first quality test result and the second quality test result are both test passed;

[0033] If yes, it is determined that the test result of the link quality calculation test is test passed;

[0034] If no, it is determined that the test result of the link quality calculation test is test failed.

[0035] Optionally, if the current test item is the routing table function test, the first radio platform and the second radio platform are subjected to a test operation corresponding to the current test item, so as to obtain a test result of the current test item, including:

[0036] A directional message sending instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component sends a directional message conforming to the BATMAN-adv protocol, and a directional message sending flow test result is obtained;

[0037] A directional message receiving instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives a directional message conforming to the BATMAN-adv protocol, and a first directional message receiving flow test result is obtained;

[0038] A directional message type field test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a directional message with an abnormal message type field, and a second directional message receiving flow test result is obtained;

[0039] issuing a directed packet version type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a directed packet with an abnormal packet version type field, to obtain a third directed packet receiving flow test result;

[0040] judging whether the directed packet sending flow test result, the first directed packet receiving flow test result, the second directed packet receiving flow test result and the third directed packet receiving flow test result are all test passed;

[0041] if yes, determining that the test result of the routing table function test is test passed;

[0042] if no, determining that the test result of the routing table function test is test failed.

[0043] Optionally, if the current test item is the flooding protocol test, performing a test operation corresponding to the current test item on the first radio platform and the second radio platform, to obtain a test result of the current test item, including:

[0044] issuing a broadcast packet type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a broadcast packet with an abnormal packet type field, to obtain a first broadcast packet receiving flow test result;

[0045] issuing a broadcast packet version type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a broadcast packet with an abnormal packet version type field, to obtain a second broadcast packet receiving flow test result;

[0046] issuing a first broadcast packet test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a broadcast packet with a time to live (ttl) of 1, to obtain a third broadcast packet receiving flow test result;

[0047] issuing a second broadcast packet test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a processed broadcast packet, to obtain a fourth broadcast packet receiving flow test result;

[0048] issuing a third broadcast packet test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a broadcast packet conforming to a BATMAN-adv protocol, to obtain a fifth broadcast packet receiving flow test result;

[0049] determining whether the first broadcast packet receiving procedure test result, the second broadcast packet receiving procedure test result, the third broadcast packet receiving procedure test result, the fourth broadcast packet receiving procedure test result and the fifth broadcast packet receiving procedure test result are all test passed;

[0050] if yes, determining that the test result of the flooding protocol test is test passed;

[0051] if no, determining that the test result of the flooding protocol test is test failed.

[0052] The application further provides a self-organizing network routing component consistency test system, which is applied to a test device connected with a first radio platform and a second radio platform respectively, the first radio platform runs a test self-organizing network routing component which has passed a consistency test, the second radio platform runs a to-be-tested self-organizing network routing component, the test self-organizing network routing component and the to-be-tested self-organizing network routing component are routing components based on a BATMAN-adv protocol, and the self-organizing network routing component consistency test system comprises:

[0053] a test item determination module, used for determining a consistency test procedure of the to-be-tested self-organizing network routing component and determining a current test item according to the consistency test procedure; wherein the test items in the consistency test procedure comprise an adjacency relationship formation test, a link state advertisement test, a link quality calculation test, a routing table function test and a flooding protocol test;

[0054] a test execution module, used for performing a test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain a test result of the current test item;

[0055] a test item switching module, used for determining a new current test item according to the consistency test procedure if the test result of the current test item is test passed, so as to perform a test operation corresponding to the new current test item on the first radio platform and the second radio platform;

[0056] a result output module, used for determining that the to-be-tested self-organizing network routing component fails in the consistency test if the test result of the current test item is test failed, and used for determining that the to-be-tested self-organizing network routing component passes the consistency test if the test results of all the test items in the consistency test procedure are test passed.

[0057] The application further provides a storage medium, which stores a computer program, and the computer program is used to implement the steps of the self-organizing network routing component consistency test method.

[0058] The application further provides a test device connected with a first radio platform and a second radio platform respectively, the first radio platform running a test ad hoc network routing component which has passed a consistency test, the second radio platform running a measured ad hoc network routing component, the test device running host computer software, the test ad hoc network routing component and the measured ad hoc network routing component being routing components based on the BATMAN-adv protocol, and the host computer software realizing the steps of the ad hoc network routing component consistency test method when running.

[0059] Optionally, the test device is connected with n first radio platforms, and the test device is connected with m second radio platforms, 1≤n≤m.

[0060] The application provides an ad hoc network routing component consistency test method, which comprises the following steps: determining a consistency test procedure of the measured ad hoc network routing component, and determining a current test item according to the consistency test procedure; wherein the test items in the consistency test procedure comprise an adjacency relationship formation test, a link state advertisement test, a link quality calculation test, a routing table function test and a flooding protocol test; performing a test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain a test result of the current test item; if the test result of the current test item is test passed, determining a new current test item according to the consistency test procedure, so as to perform a test operation corresponding to the new current test item on the first radio platform and the second radio platform; if the test result of the current test item is test failed, determining that the measured ad hoc network routing component fails to pass the consistency test; and if the test results of all the test items in the consistency test procedure are test passed, determining that the measured ad hoc network routing component passes the consistency test.

[0061] The application utilizes test equipment connected with the first radio platform and the second radio platform respectively to perform consistency test on the measured ad hoc network routing component running in the second radio platform. Specifically, the application can determine a consistency test procedure of the measured ad hoc network routing component, and then execute each test item according to the consistency test procedure, so as to determine that the measured ad hoc network routing component passes the consistency test when the test results of all test items are not passed. Specifically, the test items in the consistency test procedure include adjacency relationship formation test, link state advertisement test, link quality calculation test, routing table function test and flooding protocol test, and the test result of any test item is not passed, so as to determine that the measured ad hoc network routing component does not pass the consistency test. The application can perform consistency test on the ad hoc network routing component, and detect whether the ad hoc network routing component meets the functional requirements of the BATMAN-adv protocol. The application also provides an ad hoc network routing component consistency test system, a storage medium and a test equipment, which have the above beneficial effects, and will not be described here. BRIEF DESCRIPTION OF DRAWINGS

[0062] In order to more clearly illustrate the embodiments of the application, the drawings needed in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.

[0063] Figure 1 A flow chart of an ad hoc network routing component consistency test method provided by an embodiment of the application;

[0064] Figure 2 A flow chart of an ad hoc network routing component consistency test method provided by an embodiment of the application;

[0065] Figure 3 A first ad hoc network routing component consistency test environment topology graph based on the SCA standard provided by an embodiment of the application;

[0066] Figure 4 A second ad hoc network routing component consistency test environment topology graph based on the SCA standard provided by an embodiment of the application;

[0067] Figure 5 A structure schematic diagram of an ad hoc network routing component consistency test system provided by an embodiment of the application. DETAILED DESCRIPTION

[0068] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0069] BATMAN-adv is an open source routing protocol, which has been widely concerned, researched, tested and optimized since it was launched. New versions are iterated rapidly on this basis, and it shows excellent performance in work efficiency, energy consumption, flexibility and expansibility, and is widely used in ad hoc networks, unmanned aerial vehicle swarm ad hoc networks, unmanned vehicle ad hoc networks and other self-organizing networks.

[0070] Please see the following Figure 1 , Figure 1 The flowchart of the self-organizing network routing component consistency test method provided by the embodiments of the present application is shown in the following figure.

[0071] The specific steps can include:

[0072] S101: Determine the consistency test flow of the measured self-organizing network routing component, and determine the current test item according to the consistency test flow;

[0073] In the embodiments of the present application, the test device can be connected to the first radio platform and the second radio platform respectively, the test self-organizing network routing component running in the first radio platform has passed the consistency test, and the measured self-organizing network routing component running in the second radio platform. The test self-organizing network routing component and the measured self-organizing network routing component are routing components based on the BATMAN-adv protocol.

[0074] The test self-organizing network routing component and the measured self-organizing network routing component can be self-organizing network routing components applied to the software communication architecture (SCA) standard. Before the step, there can be an operation of performing the interface compliance test of the measured self-organizing network routing component according to the SCA standard. If the measured self-organizing network routing component passes the interface compliance test according to the SCA standard, the consistency test operation of the self-organizing network routing component in the embodiments of the present application can be continued. If the measured self-organizing network routing component does not pass the interface compliance test according to the SCA standard, the test flow is exited and the test items that do not pass the test are rectified.

[0075] The test items in the consistency test procedure include adjacency relationship formation test, link state advertisement test, link quality calculation test, routing table function test and flooding protocol test. The embodiment does not limit the execution order of the test items in the consistency test procedure. The embodiment determines the current test item according to the consistency test procedure, and executes the test procedure of the next test item after the test procedure of the current test item is executed.

[0076] S102: performing a test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain a test result of the current test item;

[0077] The test result can be test pass or test fail.

[0078] S103: if the test result of the current test item is test pass, determining a new current test item according to the consistency test procedure, so as to perform a test operation corresponding to the new current test item on the first radio platform and the second radio platform;

[0079] The operation of determining whether all test items in the consistency test procedure are tested can be performed before the step. If all test items are tested, the operation process of S105 can be entered. If all test items are not tested, the operation process of S103 can be entered. Specifically, if the test result of the current test item is test pass, the next test item in the consistency test procedure can be taken as the new current test item, and then the operation process of S102 is performed on the first radio platform and the second radio platform to perform a test operation corresponding to the new current test item.

[0080] S104: if the test result of the current test item is test fail, determining that the measured ad hoc network routing component fails the consistency test;

[0081] After S102 is executed, if the test result of the current test item is test fail, the test procedure can be exited, and it is determined that the measured ad hoc network routing component fails the consistency test.

[0082] S105: if the test result of all test items in the consistency test procedure is test pass, determining that the measured ad hoc network routing component passes the consistency test.

[0083] If all the test results of the measured ad hoc network routing component in the consistency test procedure are test passed, it is indicated that the measured ad hoc network routing component running in the second radio platform passes the consistency test and meets the functional requirements of the BATMAN-adv protocol.

[0084] The embodiment performs the consistency test on the measured ad hoc network routing component running in the second radio platform by using the test equipment connected with the first radio platform and the second radio platform respectively. Specifically, the embodiment can determine the consistency test procedure of the measured ad hoc network routing component, and then execute each test item according to the consistency test procedure, so as to determine that the measured ad hoc network routing component passes the consistency test when the test results of all the test items are not test passed. Specifically, the test items in the consistency test procedure include the adjacency relationship formation test, the link state advertisement test, the link quality calculation test, the routing table function test and the flooding protocol test, and the test result of any test item is test not passed, which indicates that the measured ad hoc network routing component does not pass the consistency test. The embodiment can perform the consistency test on the ad hoc network routing component and detect whether the ad hoc network routing component meets the functional requirements of the BATMAN-adv protocol.

[0085] The above-described procedure is described in the embodiment below. The embodiment discloses a consistency test scheme, which can test the interface compliance of the routing component compatible with the SCA standard and the functional compliance of the routing component compatible with the BATMAN-adv ad hoc network routing protocol at the same time. The test scheme can obtain a clear conclusion that whether a specific routing component can be compatible with the SCA standard, can be normally loaded and run in the SCA system, can implement the functions specified in the BATMAN-adv protocol, and then realize interconnection and intercommunication with the standard BATMAN-adv network node. The embodiment includes two parts of the interface compliance test of the ad hoc network routing component according to the SCA standard and the functional compliance test of the routing component according to the BATMAN-adv protocol.

[0086] Please refer to Figure 2 , Figure 2 The embodiment provided by the present application is a consistency test procedure of an ad hoc network routing component based on the SCA standard. Figure 2 The scheme includes the following test steps:

[0087] Step 1: performing the interface compliance test of the ad hoc network routing component according to the SCA standard;

[0088] This step is mainly to check whether the tested Ad Hoc network routing component implements the core framework basic application interface defined by the SCA specification, whether the interface function is correct, whether the calling form is standard, whether the routing component can accept the control of the SCA core framework, and whether it can accept a series of necessary operations such as loading / unloading, parameter query configuration, port connection, start / stop, etc.

[0089] The SCA standard interface compliance test content includes ControllableInterface interface test, ComponentIdentifier interface test, TestableInterface interface test, PropertySet interface test, PortAccessor interface test and LifeCycle interface test. When all tests are completed, check the test results. As long as one test fails, the test is immediately interrupted, the submitting test unit is notified to make rectification on the corresponding non-compliance items, and then the test is re-performed. If all tests pass, it means that the tested Ad Hoc network routing component can be normally loaded and run in the SCA system, and has the prerequisite for performing functional test, so the next step of BATMAN-adv protocol functional compliance test is entered.

[0090] Step 2: Perform BATMAN-adv protocol functional compliance test on the Ad Hoc network routing component.

[0091] This step is mainly to check whether the tested Ad Hoc network routing component implements the frame format and basic functions specified by the BATMAN-adv protocol, and whether it can interconnect with the standard BATMAN-adv protocol component. The BATMAN-adv protocol functional compliance test content includes adjacent relationship formation test, link state advertisement test, link quality calculation test, routing table function test and flooding protocol test. Each test further contains several sub-tests. When all functional tests are completed, check the test results. As long as one test fails, the test is immediately interrupted, the submitting test unit is notified to make rectification on the corresponding non-compliance items, and then the functional test is re-performed. If all tests pass, it means that the tested routing component passes the BATMAN-adv protocol functional compliance test, and at the same time, the consistency test passes.

[0092] All test results generated in the above test process, including test failure conclusion, specific description of non-compliance items, and test pass conclusion, are all generated into a standard WORD document for easy reference.

[0093] The specific content of the interface compliance test of the SCA standard for the ad hoc network routing component includes: Controllable Interface interface test, ComponentIdentifier interface test, Testable Interface interface test, PropertySet interface test, PortAccessor interface test and LifeCycle interface test. The specific method and steps of the above interface compliance test can be executed according to the SCA standard compliance test specification. If the test results of all test items of the interface compliance test of the SCA standard are all test passed, the operation of the function compliance test of the BATMAN-adv protocol can be entered. If there is a case of unqualified test item, the non-compliant item is rectified.

[0094] The specific content of the function compliance test of the BATMAN-adv protocol for the routing component includes: adjacent relationship formation test, link state advertisement test, link quality calculation test, routing table function test and flooding protocol test. If the test results of all test items of the function compliance test of the BATMAN-adv protocol are all test passed, it can be determined that the consistency test is passed. If there is a case of unqualified test item, the non-compliant item is rectified.

[0095] Please refer to Figure 3 , Figure 3 The first ad hoc network routing component consistency test environment topology provided by the embodiment of the application is based on the SCA standard. From the hardware division, it includes one test computer and two SCA software radio platforms. The test computer (i.e. the test device in the above) is connected between the SCA software radio platform-A (i.e. the first radio platform in the above) and the SCA software radio platform-B (i.e. the second radio platform in the above) through an Ethernet switch.

[0096] On the SCA software radio platform-A, a test routing component (i.e. the test ad hoc network routing component in the above), a test PHY component and a test MAC component are run. The test routing component refers to a standard routing component that has passed the SCA standard interface compliance test and the BATMAN-adv protocol function compliance test, and the function of the test routing component is to directly test the function compliance of the measured routing component. The functions of the test PHY component and the test MAC component are to provide wireless transceiving physical link support and MAC layer protocol support for the test routing component, respectively, to assist the test routing component to complete the test.

[0097] On the SCA software radio platform-B, a measured routing component (i.e. the measured ad hoc network routing component above), a measured PHY component and a measured MAC component are run. The measured routing component is a waveform component developed by the waveform component research unit and submitted for consistency test. The measured PHY component and the measured MAC component on this platform provide wireless transceiving physical link support and MAC layer protocol support for the measured routing component respectively, and assist the measured routing component to complete the test. The measured PHY component, the measured MAC component and the measured routing component can be implemented based on CPU, DSP or FPGA.

[0098] The SCA-based routing component consistency test software is run on the test computer, which includes an SCA standard interface compliance test unit for the routing component, a BATMAN-adv protocol function compliance test unit for the routing component, an upper test unit and a lower test unit.

[0099] The role of the SCA standard interface compliance test unit is to test the SCA standard interface compliance of the measured routing component. The SCA standard interface compliance test unit sends a series of SCA standard interface compliance test commands to the measured routing component through the upper test unit, and then obtains the corresponding test results from the measured routing component through the lower test unit.

[0100] The role of the BATMAN-adv protocol function compliance test unit is to test the function compliance of the BATMAN-adv protocol of the measured routing component. Generally, for each function compliance test item, the BATMAN-adv protocol function compliance test unit may need to send a series of different test commands to the test routing component and the measured routing component through the upper test unit, and then obtain the corresponding test results from the test routing component and the measured routing component through the lower test unit, in order to complete a function test.

[0101] The role of the upper test unit is to establish a standard connection based on the CORBA (Common Object Request Broker Architecture) soft bus with the test routing component and the measured routing component respectively through the Ethernet interface between the test computer and the two SCA software radio platforms according to the requirements of the SCA specification. Based on this standard connection mode, the upper test unit can send the SCA standard interface compliance test commands directly to the measured routing component. At the same time, based on the standard connection mode of the CORBA soft bus, the upper test unit also sends the BATMAN-adv protocol function compliance test commands to the measured routing component and the test routing component respectively.

[0102] The lower test unit is used to test the Ethernet interface between the test computer and two SCA software radio platforms, and to establish a standard connection based on the CORBA software bus with the test component and the measured component according to the requirements of the SCA specification. Based on this standard connection mode, the lower test unit can feed back the test results of the measured routing component executing the SCA standard interface compliance test command to the SCA standard interface compliance test unit. At the same time, based on the standard connection mode of the CORBA software bus, the lower test unit also feeds back the test results of the measured routing component and the test routing component executing the functional compliance test command of the BATMAN-adv protocol to the BATMAN-adv protocol functional compliance test unit.

[0103] Figure 3 The test environment topology diagram shown only contains two SCA software radio test platforms, and can only run one test routing component and one measured routing component respectively. In order to meet the needs of some functional compliance tests of the BATMAN-adv protocol for a multi-node test environment, a plurality of SCA software radio platforms can also be added. Please refer to Figure 4 , Figure 4 The second SCA standard-based routing component consistency test environment topology diagram provided by the embodiment of the present application. As shown in Figure 4 , m test routing components are run on the SCA software radio platforms A1-Am, and n measured routing components are run on the SCA software radio platforms B1-Bn, and all the SCA software radio platforms are connected with the test computer through the Ethernet switch, thereby constructing a multi-node test environment to support the multi-node test case requirements.

[0104] The functional compliance test of the BATMAN-adv protocol for the SCA standard ad hoc routing component includes five tests, i.e. the adjacency relationship formation test, the link state advertisement test, the link quality calculation test, the routing table function test and the flooding protocol test, and each test contains sub-test contents and specific test operations as described below.

[0105] 1. The adjacency relationship formation test contains sub-test items A1-A5, and the specific test operations are as follows:

[0106] The sub-test item A1 (correctness of sending ELP packet sub-test-1) is described as follows: the ELP packet sending function test instruction is issued to the SCA software radio platform-A (the first radio platform) and the SCA software radio platform-B (the second radio platform) to verify whether the ELP packet sent by the measured ad hoc routing component conforms to the requirements of the BATMAN-adv protocol, and the first ELP packet test result is obtained.

[0107] The purpose of the sub-test item A1 is to verify whether the measured routing component can send the ELP packet meeting the requirements of the BATMAN-adv protocol.

[0108] The steps of the sub-test item A1 include:

[0109] 1) Firstly, load and run the test routing component, the accompanying PHY component and the accompanying MAC component on the SCA software radio platform-A;

[0110] 2) The test computer sends a one-hop neighbor information query command to the test routing component to obtain the one-hop neighbor information table of the test routing component;

[0111] 3) Load and run the measured routing component, the accompanying PHY component and the accompanying MAC component on the SCA software radio platform-B, and after a delay of 3s, the test computer sends a one-hop neighbor information query command to the test routing component to obtain the one-hop neighbor information table of the test routing component.

[0112] The expected results of the sub-test item A1 include:

[0113] 1) After the completion of the above test step 2), the test computer queries the one-hop neighbor information table of the test routing component, and the query result should be empty;

[0114] 2) After the completion of the above test step 3), the test computer queries the one-hop neighbor information table of the test routing component, and the query result should show the information of the measured routing component.

[0115] If the above expected results are achieved, the first ELP packet test result is test passed; if the above expected results are not achieved, the first ELP packet test result is test failed.

[0116] The sub-test item A2 (correctness sub-test-2 of sending ELP packet) is explained as follows: issue an ELP packet type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives the ELP packet with an abnormal packet type field, and obtain a second ELP packet test result.

[0117] The test purpose of the sub-test item A2 includes verifying that the measured routing component does not receive the ELP packet with a packet type field packet_type that does not match.

[0118] The test steps of the sub-test item A2 include:

[0119] 1) The test computer controls the test routing component to continuously send the ELP packet (Echo Location Packet) with a packet type field packet_type that does not match to the measured routing component for 3 times;

[0120] 2) After 3s delay, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit of the tested routing component.

[0121] The expected result of the sub-test item A2 includes: the test computer queries the one-hop neighbor information table of the test routing component, and it should be confirmed that the information of the tested routing component exists, but the symmetric link flag bit of the tested routing component should be FALSE.

[0122] If the above expected result is reached, the second ELP packet test result is test passed; if the above expected result is not reached, the second ELP packet test result is test failed.

[0123] The sub-test item A3 (correctness sub-test of sending ELP packet-3) is explained as follows: the ELP packet version type field test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the tested ad hoc network routing component receives the ELP packet with abnormal message version type field, and the third ELP packet test result is obtained.

[0124] The test purpose of the sub-test item A3 is to verify that the tested routing component does not receive the ELP packet with version mismatch of the message version type field.

[0125] The test steps of the sub-test item A3 include:

[0126] 1) The test computer controls the test routing component to continuously send 3 times the ELP packet with version mismatch of the message version type field to the tested routing component;

[0127] 2) After 3s delay, the test computer obtains the symmetric link flag bit of the tested routing component in the one-hop neighbor information table of the test routing component.

[0128] The expected result of the sub-test item A3 is that the test computer tests the one-hop neighbor information table of the test routing component, and it should be confirmed that the information of the tested routing component exists, but the symmetric link flag bit of the tested routing component should be FALSE.

[0129] If the above expected result is reached, the third ELP packet test result is test passed; if the above expected result is not reached, the third ELP packet test result is test failed.

[0130] The sub-test item A4 (correctness sub-test of sending ELP packet-4) is described as follows: the ELP packet receiving test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives the ELP packet conforming to the BATMAN-adv protocol, and the fourth ELP packet test result is obtained. The ELP packet conforming to the BATMAN-adv protocol is the ELP packet whose packet type field and packet version type field conform to the preset requirements.

[0131] The test purpose of the sub-test item A4 is to verify that the measured routing component can receive the matched ELP packet.

[0132] The test steps of the sub-test item A4 include:

[0133] 1) The test computer controls the test routing component to continuously send the ELP packet conforming to the BATMAN-adv protocol standard to the measured routing component for 3 times;

[0134] 2) After delaying for 3 s, the test computer queries the symmetric link flag bit of the measured component in the one-hop neighbor information table of the test routing component.

[0135] The expected result of the sub-test item A4 is that the test computer queries the one-hop neighbor information table of the test routing component, and it is confirmed that the information of the measured routing component exists, and the symmetric link flag bit of the measured routing component should be TRUE.

[0136] If the above expected result is reached, the fourth ELP packet test result is that the test passes; if the above expected result is not reached, the fourth ELP packet test result is that the test fails.

[0137] The sub-test item A5 (inter-device adjacent relationship establishment sub-test) is described as follows: the adjacent relationship establishment instruction is issued to the first radio platform and the second radio platform, and it is verified whether the adjacent relationship is established between the measured ad hoc network routing component and the test ad hoc network routing component, and the adjacent relationship establishment sub-test result is obtained.

[0138] The test purpose of the sub-test item A5 is to verify that the adjacent relationship can be established between the measured routing component and the test routing component.

[0139] The test steps of the sub-test item A5 include:

[0140] 1) The test computer controls the test routing component to periodically send the ELP packet conforming to the BATMAN-adv protocol standard to the measured routing component;

[0141] 2) After delaying for 3 s for the first time, the test computer queries the symmetric link flag bit of the measured routing component in the one-hop neighbor information table of the test routing component;

[0142] 3) After the second 3s delay, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit of the measured routing component;

[0143] 4) After the third 3s delay, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit of the measured routing component;

[0144] 5) The test computer controls the test routing component to stop sending ELP packets conforming to the BATMAN-adv protocol standard to the measured routing component periodically;

[0145] 6) After the first 5s delay, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit of the measured routing component;

[0146] 7) After the second 5s delay, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit of the measured routing component.

[0147] The expected results of the sub-test item A5 include:

[0148] 1) The query results of the above test steps 2), 3), 4), 6) should be that the test computer should be able to query the one-hop neighbor information table of the test routing component to find the information of the measured routing component, and the symmetric link flag bit of the measured routing component should be TRUE;

[0149] 2) The query result of the above test step 7) should be that the test computer should be able to query the one-hop neighbor information table of the test routing component to find the information of the measured routing component, but the symmetric link flag bit of the measured routing component should be FALSE.

[0150] If the above expected results are achieved, the adjacency relationship establishment sub-test result is test passed; if the above expected results are not achieved, the adjacency relationship establishment sub-test result is test failed.

[0151] Determine whether the first ELP packet test result, the second ELP packet test result, the third ELP packet test result, the fourth ELP packet test result and the adjacency relationship establishment sub-test result are all test passed; if so, it is determined that the test result of the adjacency relationship formation test is test passed; if not, it is determined that the test result of the adjacency relationship formation test is test failed.

[0152] 2. The link state advertisement test includes sub-test items B1-B5, and the specific test operations are as follows:

[0153] The sub-test item B1 (correctness sub-test-1 of sending OGM packet) is explained as follows: the OGM packet sending function test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component sends the OGM packet conforming to the BATMAN-adv protocol, and the first OGM packet test result is obtained.

[0154] The test purpose of the sub-test item B1 is to verify that the measured routing component can send the OGM packet conforming to the BATMAN-adv protocol standard.

[0155] The test steps of the sub-test item B1 include:

[0156] 1) First, the test computer queries the source node information table of the test routing component on the SCA software radio platform-A loaded with the test routing component, the accompanying PHY component and the accompanying MAC component, and then the test computer queries the one-hop neighbor information table of the test routing component.

[0157] 2) The test computer queries the one-hop neighbor information table of the test routing component on the SCA software radio platform-B loaded with the measured routing component, the accompanying PHY component and the accompanying MAC component, and then the test computer queries the source node information table of the test routing component.

[0158] The expected results of the sub-test item B1 include:

[0159] 1) After the above test step 1) is completed, the test computer should query the source node information table of the test routing component to be empty;

[0160] 2) After the above test step 2) is completed, the test computer should query the one-hop neighbor information table of the test routing component to exist the information of the measured routing component;

[0161] 3) After the above test step 2) is completed, the test computer should query the source node information table of the test routing component to exist the information of the measured routing component.

[0162] If the above expected results are achieved, the first OGM packet test result is that the test is passed; if the above expected results are not achieved, the first OGM packet test result is that the test is failed.

[0163] The sub-test item B2 (correctness sub-test-2 of sending OGM packet) is explained as follows: the OGM packet type field test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards the OGM packet with abnormal packet type field, and the second OGM packet test result is obtained.

[0164] The test purpose of the sub-test item B2 is to verify that the measured routing component does not receive and forward the OGM packet with the packet type field packet_type not matching.

[0165] The test steps of the sub-test item B2 include:

[0166] 1) The test computer controls the test routing component to periodically send ELP packets conforming to the BATMAN-adv protocol standard to the measured routing component;

[0167] 2) After a delay of 3s, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit of the measured routing component;

[0168] 3) The test computer controls the test routing component to continuously send 3 times OGM packets with packet_type field not matching to the measured routing component;

[0169] 4) After a delay of 3s, the test computer queries the one-hop neighbor information table of the test routing component for the received and forwarded OGM packet statistical value revert_ogm_count of the measured routing component;

[0170] 5) The test computer controls the test routing component to stop periodically sending ELP packets conforming to the BATMAN-adv protocol standard to the measured routing component.

[0171] The expected results of the sub-test item B2 include:

[0172] 1) After the completion of the above test step 2), the test computer queries the one-hop neighbor information table of the test routing component, and should be able to confirm the existence of the information of the measured routing component, and the symmetric link flag bit of the measured routing component should be TRUE;

[0173] 2) After the completion of the above test step 4), the test computer should be able to query the received and forwarded OGM packet statistical value revert_ogm_count of the measured routing component in the one-hop neighbor information table of the test routing component.

[0174] If the above expected results are reached, the second OGM packet test result is test passed; if the above expected results are not reached, the second OGM packet test result is test failed.

[0175] The sub-test item B3 (correctness sub-test of sending OGM packet-3) is described as follows: the OGM packet version type field test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards OGM packets with abnormal packet version type field, and the third OGM packet test result is obtained.

[0176] The test purpose of sub-test item B3 is to verify that the measured routing component does not receive OGM packets with a version field version that does not match the forwarded packet version.

[0177] The test steps of sub-test item B3 include:

[0178] 1) The test computer controls the test routing component to periodically send ELP packets compliant with the BATMAN-adv protocol standard to the measured routing component;

[0179] 2) After a delay of 3 s, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag for the measured routing component;

[0180] 3) The test computer controls the test routing component to continuously send 3 times OGM packets with a version field version that does not match the forwarded packet version to the measured routing component;

[0181] 4) After a delay of 3 s, the test computer queries the one-hop neighbor information table of the test routing component for the received and forwarded OGM packet statistics revert_ogm_count for the measured routing component;

[0182] 5) The test computer controls the test routing component to stop periodically sending ELP packets compliant with the BATMAN-adv protocol standard to the measured routing component.

[0183] The expected results of sub-test item B3 include:

[0184] 1) After the completion of the above test step 2), the test computer queries the one-hop neighbor information table of the test routing component and should be able to confirm the presence of information for the measured routing component, and the symmetric link flag for the measured routing component should be TRUE;

[0185] 2. After the completion of the above test step 4), the test computer should be able to query the received and forwarded OGM packet statistics revert_ogm_count for the measured routing component in the one-hop neighbor information table of the test routing component to be 0.

[0186] If the above expected results are achieved, the third OGM packet test result is test passed; if the above expected results are not achieved, the third OGM packet test result is test failed.

[0187] Sub-test item B4 (correctness of sending OGM packets - 4) is described as follows: unknown OGM packet test instructions are issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives OGM packets from unknown one-hop neighbor nodes, and a fourth OGM packet test result is obtained.

[0188] The test purpose of the sub-test item B4 is to verify that the tested routing component does not receive OGM packets from unknown one-hop neighbor nodes.

[0189] The test steps of the sub-test item B4 include:

[0190] 1) The test computer queries the one-hop neighbor information table of the test routing component about the symmetric link flag bit of the tested routing component;

[0191] 2) The test computer controls the test routing component to continuously send 3 times OGM packets conforming to the BATMAN-adv protocol standard to the tested routing component;

[0192] 3) After a delay of 3s, the test computer queries the one-hop neighbor information table of the test routing component about the received and forwarded OGM packet statistical value revert_ogm_count of the tested routing component.

[0193] The expected results of the sub-test item B4 include:

[0194] 1) After the above test step 1) is completed, the test computer queries the one-hop neighbor information table of the test routing component, and it should be able to confirm the existence of the information of the tested routing component, and the symmetric link flag bit about the tested routing component should be FALSE;

[0195] 2) After the above test step 3) is completed, the test computer should be able to query the one-hop neighbor information table of the test routing component about the received and forwarded OGM packet statistical value revert_ogm_count of the tested routing component, which is 0.

[0196] If the above expected results are reached, the fourth OGM packet test result is test passed; if the above expected results are not reached, the fourth OGM packet test result is test failed.

[0197] The sub-test item B5 (correctness sub-test of sending OGM packet-5) is explained as follows: the known OGM packet test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the tested ad hoc network routing component receives OGM packets from known one-hop neighbor nodes, and the fifth OGM packet test result is obtained.

[0198] The test purpose of the sub-test item B5 is to verify that the tested routing component receives matching OGM packets from known one-hop neighbor nodes.

[0199] The test steps of the sub-test item B5 include:

[0200] 1) The test computer controls the test routing component to continuously send 3 times ELP packets conforming to the BATMAN-adv protocol standard to the tested routing component;

[0201] 2) After 3s delay, the test computer queries the one-hop neighbor information table of the test routing component about the symmetric link flag bit of the measured routing component;

[0202] 3) The test computer controls the test routing component to continuously send 3 times OGM packets conforming to the standard of BATMAN-adv protocol to the measured routing component;

[0203] 4) After 3s delay, the test computer queries the one-hop neighbor information table of the test routing component about the statistical value revert_ogm_count of receiving and forwarding OGM packets of the measured routing component.

[0204] The expected results of the sub-test item B5 include:

[0205] 1) After the completion of the above test step 2), the test computer queries the one-hop neighbor information table of the test routing component, and it should be able to confirm the existence of the information of the measured routing component, and the symmetric link flag bit about the measured routing component should be TRUE;

[0206] 2) After the completion of the above test step 4), the test computer should be able to query the one-hop neighbor information table of the test routing component about the statistical value revert_ogm_count of receiving and forwarding OGM packets of the measured routing component is 3.

[0207] If the above expected results are reached, the test result of the fifth OGM packet is test passed; if the above expected results are not reached, the test result of the fifth OGM packet is test failed.

[0208] Determine whether the first OGM packet test result, the second OGM packet test result, the third OGM packet test result, the fourth OGM packet test result and the fifth OGM packet test result are all test passed; if yes, it is determined that the test result of the link state advertisement test is test passed; if no, it is determined that the test result of the link state advertisement test is test failed.

[0209] 3, the link quality calculation test includes sub-test items C1-C3, and the specific test operations are as follows:

[0210] The sub-test item C1 (correctness of link quality calculation sub-test-1) is explained as follows: the first link quality calculation instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component calculates the link quality according to the provisions of the BATMAN-adv protocol, and obtain the first sub-result of the first quality test result.

[0211] The test purpose of the sub-test item C1 is to verify that the measured routing component can correctly calculate the link quality according to the provisions of the BATMAN-adv protocol.

[0212] The test steps of the sub-test item C1 include:

[0213] 1) The test computer controls the test routing component to periodically send ELP packets conforming to the BATMAN-adv protocol standard to the measured routing component;

[0214] 2) After a delay of 3s, the test computer queries the symmetric link flag bit about the measured routing component in the one-hop neighbor information table of the test routing component;

[0215] 3) The test computer controls the test routing component to periodically send OGM packets conforming to the BATMAN-adv protocol standard to the measured routing component;

[0216] 4) After a delay of 3s, the test computer queries the following parameter values:

[0217] (a) The test computer queries the received and forwarded OGM packet statistical value revert_ogm_count about the measured routing component in the one-hop neighbor information table of the test routing component;

[0218] (b) The test computer queries the link quality value revert_ogm_tq calculated about the measured routing component in the one-hop neighbor information table of the test routing component;

[0219] (c) The test computer queries the link quality value tq calculated about the measured routing component in the one-hop neighbor information table of the test routing component;

[0220] 5) The test computer controls the test routing component to stop periodically sending ELP packets conforming to the BATMAN-adv protocol standard to the measured routing component;

[0221] 6) The test computer controls the test routing component to stop periodically sending OGM packets conforming to the BATMAN-adv protocol standard to the measured routing component.

[0222] The expected results of the sub-test item C1 include:

[0223] 1) After the completion of the above test step 2), the test computer queries the one-hop neighbor information table of the test routing component, and it should be able to confirm the existence of the information of the measured routing component, and the symmetric link flag bit about the measured routing component should be TRUE;

[0224] 2) After the completion of the above test step 4)-(a), the test computer queries the one-hop neighbor information table of the test routing component, and the received and forwarded OGM packet statistical count value revert_ogm_count about the measured routing component in the table should be 3±1;

[0225] 3) After step 4)-(b) and 4)-(c) are completed, the host computer software queries the one-hop neighbor information table of the test routing component, and the revert_ogm_tq and tq of the test routing component in the table should be approximately equal.

[0226] If the above expected result is achieved, the first sub-result of the first quality test result is test passed; if the above expected result is not achieved, the first sub-result of the first quality test result is test failed.

[0227] The sub-test item C2 (correctness of link quality calculation sub-test-2) is described as follows: the second link quality calculation instruction is issued to the first radio platform and the second radio platform, so as to verify whether the test self-organizing network routing component calculates the link quality according to the provisions of the BATMAN-adv protocol, to obtain the second sub-result of the first quality test result.

[0228] The test purpose of the sub-test item C2 is to verify that the test routing component can correctly calculate the link quality according to the provisions of the BATMAN-adv protocol.

[0229] The test steps of the sub-test item C2 include:

[0230] 1) The test computer controls the test routing component to periodically send ELP packets conforming to the BATMAN-adv protocol standard to the test routing component;

[0231] 2) After a delay of 3s, the test computer queries the symmetric link flag bit of the test routing component in the one-hop neighbor information table about the test routing component;

[0232] 3) The test computer controls the test routing component to periodically send OGM packets conforming to the BATMAN-adv protocol standard to the test routing component, wherein the throughput field of the OGM packet is assigned a value of 2;

[0233] 4) After a delay of 3s, the test computer queries the following parameter values:

[0234] (a) Query the received and forwarded OGM packet statistical value revert_ogm_count of the test routing component in the one-hop neighbor information table about the test routing component;

[0235] (b) Query the link quality value revert_ogm_tq calculated by the test routing component in the one-hop neighbor information table about the test routing component;

[0236] (c) Query the link quality value tq calculated by the test routing component in the one-hop neighbor information table about the test routing component.

[0237] 5) the test computer controls the test routing component to stop sending ELP packets periodically to the measured routing component, which comply with the BATMAN-adv protocol standard;

[0238] 6) the test computer controls the test routing component to stop sending OGM packets periodically to the measured routing component, which comply with the BATMAN-adv protocol standard.

[0239] The expected results of the sub-test C2 include:

[0240] 1) after the above test step 2) is completed, the test computer queries the one-hop neighbor information table of the test routing component, and should be able to confirm that there is information about the measured routing component, and the symmetric link flag bit about the measured routing component should be TRUE;

[0241] 2) after the above test step 4)-(a) is completed, the test computer queries the one-hop neighbor information table of the test routing component, and should be able to confirm that the revert_ogm_count statistical count value about the measured routing component in the table is 3±1;

[0242] 3) after the above test steps (4)-(b), (4)-(c) are completed, the test computer queries the one-hop neighbor information table of the test routing component, and should be able to confirm that the revert_ogm_tq and tq in the table about the measured routing component are not equal, and the revert_ogm_tq value should be fixed at 2.

[0243] If the above expected results are reached, the second sub-result of the first quality test result is that the test is passed; if the above expected results are not reached, the second sub-result of the first quality test result is that the test is failed.

[0244] The sub-test C3 (correctness of link quality calculation sub-test-3) is described as follows: the test instruction of link quality exception is issued to the first radio platform and the second radio platform, so as to verify whether the case of link quality being 0 is processed according to the preset processing mode, and a second quality test result is obtained.

[0245] The test purpose of the sub-test C3 is to verify that the measured routing component can correctly process the case of link quality being 0.

[0246] The test steps of the sub-test C3 include:

[0247] 1) the test computer controls the test routing component to periodically send ELP packets to the measured routing component, which comply with the BATMAN-adv protocol standard;

[0248] 2) after a delay of 3s, the test computer queries the symmetric link flag bit about the measured routing component in the one-hop neighbor information table of the test routing component;

[0249] 3) The test computer controls the test router to periodically send OGM packets to the measured router, wherein the OGM packets have a through put field set to 0, in accordance with the BATMAN-adv protocol standard;

[0250] 4) After a delay of 3s, the test computer queries the following parameter values:

[0251] (a) The test computer queries the one-hop neighbor information table of the test router for the number of received and forwarded OGM packets, revert_ogm_count, for the measured router;

[0252] (b) The test computer queries the one-hop neighbor information table of the test router for the link quality value, revert_ogm_tq, calculated by the test router for the measured router;

[0253] (c) The test computer queries the one-hop neighbor information table of the test router for the link quality value, tq, calculated by the test router for the measured router;

[0254] 5) The test computer controls the test router to stop periodically sending ELP packets to the measured router, in accordance with the BATMAN-adv protocol standard;

[0255] 6) The test computer controls the test router to stop periodically sending OGM packets to the measured router, in accordance with the BATMAN-adv protocol standard.

[0256] The expected results of sub-test C3 include:

[0257] 1) After the completion of test step 2) above, the test computer queries the one-hop neighbor information table of the test router and should be able to confirm the presence of information for the measured router, and the symmetric link flag for the measured router should be TRUE;

[0258] 2) After the completion of test step 4)-(a) above, the test computer queries the one-hop neighbor information table of the test router and should be able to confirm that the number of received and forwarded OGM packets, revert_ogm_count, for the measured router in the table is 0;

[0259] 3) After the completion of test steps 4)-(b) and (4)-(c) above, the test computer queries the one-hop neighbor information table of the test router and should be able to confirm that revert_ogm_tq and tq for the measured router in the table are not equal, and that revert_ogm_tq is fixed at 255.

[0260] If the above expected result is achieved, the second quality test result is test pass; if the above expected result is not achieved, the second quality test result is test fail.

[0261] It is judged whether the first sub-result of the first quality test result, the second sub-result of the first quality test result and the second quality test result are all test pass; if yes, it is determined that the test result of the link quality calculation test is test pass; if no, it is determined that the test result of the link quality calculation test is test fail.

[0262] 4. The routing table function test includes sub-test items D1-D4, and the specific test operations are as follows:

[0263] The sub-test item D1 (correctness of the directional message sending process sub-test) is described as follows: the directional message sending instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component sends the directional message conforming to the BATMAN-adv protocol, and the directional message sending process test result is obtained.

[0264] The test purpose of the sub-test item D1 is to verify that the measured routing component can send the directional message conforming to the BATMAN-adv protocol standard.

[0265] The test steps of the sub-test item D1 include:

[0266] 1) The test computer queries the symmetric link flag bit about the measured routing component in the one-hop neighbor information table of the test routing component;

[0267] 2) The test computer controls the test routing component to periodically send the ELP message conforming to the BATMAN-adv protocol standard to the measured routing component;

[0268] 3) After a delay of 3s, the test computer queries the symmetric link flag bit about the measured routing component in the one-hop neighbor information table of the test routing component;

[0269] 4) The test computer controls the test routing component to periodically send the OGM message conforming to the BATMAN-adv protocol standard to the measured routing component;

[0270] 5) After a delay of 3s, the test computer queries the sending directional message statistical value rx_unicast_num about the measured routing component in the source node information table of the test routing component;

[0271] 6) The test computer controls the test routing component to send 10 ICMP directional messages to the measured routing component;

[0272] 7) After 10s delay, the test computer queries the source node information table of the test routing component for the statistic value rx_unicast_num of the unicast packet sent to the measured routing component.

[0273] The expected results of the sub-test item D1 include:

[0274] 1) After the above test step 1) is completed, the test computer queries the one-hop neighbor information table of the test routing component, and it should be able to confirm the existence of the information of the measured routing component, and the symmetric link flag bit about the measured routing component should be FALSE;

[0275] 2) After the above test step 3) is completed, the test computer queries the one-hop neighbor information table of the test routing component, and it should be able to confirm the existence of the information of the measured routing component, and the symmetric link flag bit about the measured routing component should be TRUE;

[0276] 3) After the above test step 5) is completed, the test computer should be able to query the statistic value rx_unicast_num of the unicast packet sent to the measured routing component in the source node information table of the test routing component, which is 0;

[0277] 4) After the above test step 7) is completed, the test computer should be able to query the statistic value rx_unicast_num of the unicast packet sent to the measured routing component in the source node information table of the test routing component, which is 10.

[0278] If the above expected results are achieved, the test result of the unicast packet sending process is test passed; if the above expected results are not achieved, the test result of the unicast packet sending process is test failed.

[0279] The sub-test item D2 (correctness of unicast packet receiving and forwarding sub-test-1) is explained as follows: the unicast packet receiving instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives the unicast packet conforming to the BATMAN-adv protocol, and a first unicast packet receiving process test result is obtained.

[0280] The test purpose of the sub-test item D2 is to verify whether the measured routing component can receive the unicast packet conforming to the BATMAN-adv protocol standard.

[0281] The test steps of the sub-test item D2 include:

[0282] 1) The test computer queries the symmetric link flag bit about the measured routing component in the one-hop neighbor information table of the test routing component;

[0283] 2) The test computer controls the test routing component to periodically send the ELP packet conforming to the BATMAN-adv protocol standard to the measured routing component;

[0284] 3) After 3s delay, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit of the measured routing component;

[0285] 4) The test computer controls the test routing component to periodically send OGM packets conforming to the BATMAN-adv protocol standard to the measured routing component;

[0286] 5) After 3s delay, the test computer queries the source node information table of the test routing component for the received and forwarded directed packet statistical value revert_unicast_num of the measured routing component;

[0287] 6) After 3s delay, the test computer queries the source node information table of the test routing component for the directed packet statistical value tx_unicast_num sent to the measured routing component;

[0288] 7) The test computer controls the test routing component to fill the dest address of the directed packet header as its own mac when encapsulating and sending the directed packet conforming to the BATMAN-adv protocol standard;

[0289] 8) The test computer controls the test routing component to send 10 ICMP directed packets to the measured routing component;

[0290] 9) After 10s delay, the test computer queries the source node information table of the test routing component for the received and forwarded directed packet statistical value revert_unicast_num of the measured routing component;

[0291] 10) After 10s delay, the test computer queries the source node information table of the test routing component for the directed packet statistical value tx_unicast_num sent to the measured routing component.

[0292] The expected results of the sub-test item D2 include:

[0293] 1) After the above test step 1) is completed, the test computer queries the one-hop neighbor information table of the test routing component, and it should be able to confirm the existence of the information of the measured routing component, but the symmetric link flag bit of the measured routing component should be FALSE;

[0294] 2) After the above test step 3) is completed, the test computer queries the one-hop neighbor information table of the test routing component, and it should be able to confirm the existence of the information of the measured routing component, but the symmetric link flag bit of the measured routing component should be TRUE;

[0295] 3) After the above test step 5) is completed, the test computer should be able to query the source node information table of the test routing component to find that the statistical value revert_uncast_num of the directed packet received and forwarded by the measured routing component is 0;

[0296] 4) After the above test step 6) is completed, the test computer should be able to query the source node information table of the test routing component to find that the statistical value tx_unicast_num of the directed packet sent to the measured routing component is 0;

[0297] 5) After the above test step 9) is completed, the test computer should be able to query the source node information table of the test routing component to find that the statistical value revert_uncast_num of the directed packet received and forwarded by the measured routing component is 10;

[0298] 6) After the above test step 10) is completed, the test computer should be able to query the source node information table of the test routing component to find that the statistical value tx_unicast_num of the directed packet sent to the measured routing component is 10.

[0299] If the above expected results are achieved, the first directed packet receiving process test result is test passed; if the above expected results are not achieved, the first directed packet receiving process test result is test failed.

[0300] The sub-test item D3 (directed packet receiving and forwarding correctness sub-test-2) is described as follows: the directed packet type field test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards the directed packet with abnormal packet type field, and the second directed packet receiving process test result is obtained.

[0301] The test purpose of the sub-test item D3 is to verify that the measured routing component does not receive and forward the directed packet with packet_type not matching.

[0302] The test steps of the sub-test item D3 include:

[0303] 1) The test computer queries the one-hop neighbor information table of the test routing component to find the symmetric link flag bit of the measured routing component;

[0304] 2) The test computer controls the test routing component to periodically send the ELP packet conforming to the BATMAN-adv protocol standard to the measured routing component;

[0305] 3) After a delay of 3s, the test computer queries the one-hop neighbor information table of the test routing component to find the symmetric link flag bit of the measured routing component;

[0306] 4) The test computer controls the test routing component to periodically send OGM packets conforming to the BATMAN-adv protocol standard to the routing component under test;

[0307] 5) After a delay of 3 s, the test computer queries the source node information table of the test routing component for the number of received and forwarded unicast packets revert_uncast_num for the routing component under test;

[0308] 6) After a delay of 3 s, the test computer queries the source node information table of the test routing component for the number of sent unicast packets tx_uncast_num for the routing component under test;

[0309] 7) The test computer controls the test routing component to fill the dest address of the header of encapsulated unicast packets conforming to the BATMAN-adv protocol standard with its own MAC address when sending them;

[0310] 8) The test computer controls the test routing component to send 10 unicast packets with a packet type field packet_type that does not match to the routing component under test;

[0311] 9) After a delay of 10 s, the test computer queries the source node information table of the test routing component for the number of received and forwarded unicast packets revert_uncast_num for the routing component under test;

[0312] 10) After a delay of 10 s, the test computer queries the source node information table of the test routing component for the number of sent unicast packets tx_uncast_num for the routing component under test.

[0313] The expected results of the subtest D3 include:

[0314] 1) After the test step 1) above has been completed, the test computer queries the one-hop neighbor information table of the test routing component and should be able to confirm the presence of the information for the routing component under test, and the symmetric link flag for the routing component under test should be FALSE;

[0315] 2) After the test step 3) above has been completed, the test computer queries the one-hop neighbor information table of the test routing component and should be able to confirm the presence of the information for the routing component under test in the table, and the symmetric link flag for the routing component under test should be TRUE;

[0316] 3) After the test step 5) above has been completed, the test computer should be able to query the source node information table of the test routing component for the number of received and forwarded unicast packets revert_uncast_num for the routing component under test, which should be 0;

[0317] 4) After the above test step 6) is completed, the test computer should be able to query the source node information table of the test routing component to find that the statistical value tx_uncast_num of the directed packet sent to the measured routing component is 0;

[0318] 5) After the above test step 9) is completed, the test computer should be able to query the source node information table of the test routing component to find that the statistical value revert_uncast_num of the directed packet received and forwarded by the measured routing component is 0;

[0319] 6) After the above test step 10) is completed, the test computer should be able to query the source node information table of the test routing component to find that the statistical value tx_uncast_num of the directed packet sent to the measured routing component is 10.

[0320] If the above expected result is achieved, the second directed packet receiving process test result is test passed; if the above expected result is not achieved, the second directed packet receiving process test result is test failed.

[0321] The sub-test item D4 (directed packet receiving and forwarding correctness sub-test-3) is described as follows: the directed packet version type field test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards the directed packet with abnormal version type field, and the third directed packet receiving process test result is obtained;

[0322] The test purpose of the sub-test item D4 is to verify that the measured routing component does not receive and forward the directed packet with the version type field version that does not match.

[0323] The test steps of the sub-test item D4 include:

[0324] 1) The test computer queries the one-hop neighbor information table of the test routing component about the symmetric link flag of the measured routing component;

[0325] 2) The test computer controls the test routing component to periodically send the ELP packet conforming to the BATMAN-adv protocol standard to the measured routing component;

[0326] 3) After a delay of 3s, the test computer queries the one-hop neighbor information table of the test routing component about the symmetric link flag of the measured routing component;

[0327] 4) The test computer controls the test routing component to periodically send the OGM packet conforming to the BATMAN-adv protocol standard to the measured routing component;

[0328] 5) After 3s delay, the test computer queries the source node information table of the test routing component for the received and forwarded unicast packet statistics revert_uncast_num of the test routing component;

[0329] 6) After 3s delay, the test computer queries the source node information table of the test routing component for the transmitted unicast packet statistics tx_uncast_num to the test routing component;

[0330] 7) The test computer controls the test routing component to fill the dest address of the unicast packet header as its own mac when encapsulating the transmitted unicast packet conforming to the BATMAN-adv protocol standard;

[0331] 8) The test computer controls the test routing component to transmit 10 times of unicast packets with the version field not matching to the test routing component;

[0332] 9) After 10s delay, the test computer queries the source node information table of the test routing component for the received and forwarded unicast packet statistics revert_uncast_num of the test routing component;

[0333] 10) After 10s delay, the test computer queries the source node information table of the test routing component for the transmitted unicast packet statistics tx_uncast_num to the test routing component.

[0334] The expected results of the sub-test item D4 include:

[0335] 1) After the above test step 1) is completed, the test computer queries the one-hop neighbor information table of the test routing component, and should be able to confirm that the information of the test routing component exists in the table, and the symmetric link flag bit about the test routing component should be FALSE;

[0336] 2) After the above test step 3) is completed, the test computer queries the one-hop neighbor information table of the test routing component, and should be able to confirm that the information of the test routing component exists in the table, and the symmetric link flag bit about the test routing component should be TRUE;

[0337] 3) After the above test step 5) is completed, the test computer should be able to query the source node information table of the test routing component for the received and forwarded unicast packet statistics revert_uncast_num of the test routing component to be 0;

[0338] 4) After the above test step 6) is completed, the test computer should be able to query the source node information table of the test routing component for the transmitted unicast packet statistics tx_uncast_num to the test routing component to be 0;

[0339] 5) After the above-mentioned test step 9) is completed, the test computer should be able to query the source node information table of the test routing component to find that the statistical value revert_uncast_num of the directed packet received and forwarded by the measured routing component is 0;

[0340] 6) After the above-mentioned test step 10) is completed, the test computer should be able to query the source node information table of the test routing component to find that the statistical value tx_uncast_num of the directed packet sent to the measured routing component is 10.

[0341] If the above-mentioned expected result is achieved, the third directed packet receiving flow test result is test passed; if the above-mentioned expected result is not achieved, the third directed packet receiving flow test result is test failed.

[0342] If the above-mentioned expected result is achieved, the third directed packet receiving flow test result is test passed; if the above-mentioned expected result is not achieved, the third directed packet receiving flow test result is test failed.

[0343] 5, the flooding protocol test contains sub-test items E1-E5, and the specific test operations are as follows:

[0344] The sub-test item E1 (correctness of receiving and forwarding broadcast packet-1) is explained as follows: the broadcast packet type field test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards the broadcast packet with abnormal packet type field, and the first broadcast packet receiving flow test result is obtained.

[0345] The test purpose of the sub-test item E1 is to verify that the measured routing component does not receive and forward the broadcast packet with packet_type that does not match.

[0346] The test steps of the sub-test item E1 include:

[0347] 1) The test computer controls the test routing component to periodically send the ELP packet conforming to the BATMAN-adv protocol standard to the measured routing component;

[0348] 2) After a delay of 3s, the test computer queries the one-hop neighbor information table of the test routing component about the measured routing component to find the symmetric link flag bit;

[0349] 3) The test computer controls the test routing component to periodically send the OGM packet conforming to the BATMAN-adv protocol standard to the measured routing component;

[0350] 4) After a delay of 3s, the test computer queries the one-hop neighbor information table of the test routing component for the received and forwarded OGM packet statistics revert_bcast_count of the measured routing component;

[0351] 5) The test computer controls the test routing component to continuously send 10 broadcast packets of the packet_type field that do not match to the measured routing component;

[0352] 6) After a delay of 3s, the test computer queries the one-hop neighbor information table of the test routing component for the received and forwarded OGM packet statistics revert_bcast_count of the measured routing component;

[0353] 7) The test computer controls the test routing component to stop sending ELP packets that comply with the BATMAN-adv protocol standard to the measured routing component periodically.

[0354] The expected results of the subtest E1 include:

[0355] 1) After the completion of the above test step 2), the test computer queries the one-hop neighbor information table of the test routing component and should be able to confirm the presence of the information of the measured routing component, and the symmetric link flag bit about the measured routing component should be TRUE;

[0356] 2) After the completion of the above test step 4), the test computer should be able to query the one-hop neighbor information table of the test routing component for the received and forwarded broadcast packet statistics revert_bcast_count of the measured routing component to be 0;

[0357] 3) After the completion of the above test step 6), the test computer should be able to query the one-hop neighbor information table of the test routing component for the received and forwarded broadcast packet statistics revert_bcast_count of the measured routing component to be 0.

[0358] If the above expected results are achieved, the first broadcast packet receiving process test result is test passed; if the above expected results are not achieved, the first broadcast packet receiving process test result is test failed.

[0359] The subtest E2 (correctness subtest-2 of receiving and forwarding broadcast packets) is described as follows: the broadcast packet version type field test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards the broadcast packet of the abnormal packet version type field, and the second broadcast packet receiving process test result is obtained.

[0360] The test purpose of the sub-test item E2 is to verify that the tested routing component does not receive broadcast packets with a version field version that does not match.

[0361] The test steps of the sub-test item E2 comprise:

[0362] 1) The test computer controls the test routing component to periodically send ELP packets to the tested routing component, which comply with the BATMAN-adv protocol standard;

[0363] 2) After a delay of 3 s, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit for the tested routing component;

[0364] 3) The test computer controls the test routing component to periodically send OGM packets to the tested routing component, which comply with the BATMAN-adv protocol standard;

[0365] 4) After a delay of 3 s, the test computer queries the one-hop neighbor information table of the test routing component for the received and forwarded broadcast packet statistics revert_bcast_count for the tested routing component;

[0366] 5) The test computer controls the test routing component to continuously send 10 broadcast packets with a version field version that does not match to the tested routing component;

[0367] 6) After a delay of 3 s, the test computer queries the one-hop neighbor information table of the test routing component for the received and forwarded broadcast packet statistics revert_bcast_count for the tested routing component;

[0368] 7) The test computer controls the test routing component to stop periodically sending ELP packets to the tested routing component, which comply with the BATMAN-adv protocol standard.

[0369] The expected results of the sub-test item E2 comprise:

[0370] 1) After the test step 2) above has been completed, the test computer should be able to query the one-hop neighbor information table of the test routing component to confirm that the information for the tested routing component is present and that the symmetric link flag bit for the tested routing component is TRUE;

[0371] 2) After the test step 4) above has been completed, the test computer should be able to query the one-hop neighbor information table of the test routing component to confirm that the received and forwarded broadcast packet statistics revert_bcast_count for the tested routing component is 0;

[0372] 3) After the completion of the above test step 6), the test computer should be able to query the one-hop neighbor information table of the test routing component to find that the value of the statistic revert_bcast_count about the receiving and forwarding of broadcast packets of the measured routing component is 0.

[0373] If the above expected result is achieved, the test result of the second broadcast packet receiving process is test passed; if the above expected result is not achieved, the test result of the second broadcast packet receiving process is test failed.

[0374] The sub-test item E3 (correctness of receiving and forwarding broadcast packets-3) is described as follows: the first broadcast packet test instruction is issued to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component receives and forwards the broadcast packet with the time to live ttl of 1, and the third broadcast packet receiving process test result is obtained.

[0375] The test purpose of the sub-test item E3 is to verify that the measured routing component does not receive and forward the broadcast packet with the ttl of 1.

[0376] The test steps of the sub-test item E3 include:

[0377] 1) The test computer controls the test routing component to periodically send the ELP packet conforming to the BATMAN-adv protocol standard to the measured routing component;

[0378] 2) After a delay of 3s, the test computer queries the symmetric link flag about the measured routing component in the one-hop neighbor information table of the test routing component;

[0379] 3) The test computer controls the test routing component to periodically send the OGM packet conforming to the BATMAN-adv protocol standard to the measured routing component;

[0380] 4) After a delay of 3s, the test computer queries the statistic revert_bcast_count about the receiving and forwarding of broadcast packets of the measured routing component in the one-hop neighbor information table of the test routing component;

[0381] 5) The test computer controls the test routing component to continuously send 10 broadcast packets with the ttl of 1 to the measured routing component;

[0382] 6) After a delay of 3s, the test computer queries the statistic revert_bcast_count about the receiving and forwarding of broadcast packets of the measured routing component in the one-hop neighbor information table of the test routing component;

[0383] 7) The test computer controls the test routing component to stop periodically sending the ELP packet conforming to the BATMAN-adv protocol standard to the measured routing component.

[0384] The expected results of the sub-test item E3 include:

[0385] 1) After the completion of the above-mentioned test step 2), the test computer should be able to confirm the existence of the information of the tested routing component in the one-hop neighbor information table of the test routing component, and the symmetric link flag bit about the tested routing component should be TRUE;

[0386] 2) After the completion of the above-mentioned test step 4), the test computer should be able to confirm that the received and forwarded broadcast message statistical value revert_bcast_count about the tested routing component in the one-hop neighbor information table of the test routing component is 0;

[0387] 3) After the completion of the above-mentioned test step 6), the test computer should be able to confirm that the received and forwarded broadcast message statistical value revert_bcast_count about the tested routing component in the one-hop neighbor information table of the test routing component is 0.

[0388] If the above-mentioned expected results are achieved, the third broadcast message receiving process test result is test passed; if the above-mentioned expected results are not achieved, the third broadcast message receiving process test result is test failed.

[0389] The sub-test item E4 (correctness of received and forwarded broadcast message sub-test-4) is described as follows: the second broadcast message test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the tested ad hoc network routing component receives and forwards the processed broadcast message, and the fourth broadcast message receiving process test result is obtained.

[0390] The test purpose of the sub-test item E4 is to verify that the tested routing component does not receive and forward the processed broadcast message.

[0391] The test steps of the sub-test item E4 include:

[0392] 1) The test computer controls the test routing component to periodically send the ELP message conforming to the BATMAN-adv protocol standard to the tested routing component;

[0393] 2) After a delay of 3s, the test computer queries the symmetric link flag bit about the tested routing component in the one-hop neighbor information table of the test routing component;

[0394] 3) The test computer controls the test routing component to periodically send the OGM message conforming to the BATMAN-adv protocol standard to the tested routing component;

[0395] 4) After 3s delay, the test computer queries the one-hop neighbor information table of the test routing component for the received and forwarded broadcast packet statistics revert_bcast_count of the measured routing component;

[0396] 5) The test computer controls the test routing component to continuously send 10 broadcast packets with sequence number 5 to the measured routing component;

[0397] 6) After 3s delay, the test computer queries the one-hop neighbor information table of the test routing component for the received and forwarded broadcast packet statistics revert_bcast_count of the measured routing component;

[0398] 7) The test computer controls the test routing component to stop periodically sending ELP packets conforming to the BATMAN-adv protocol standard to the measured routing component.

[0399] The expected results of the sub-test item E4 include:

[0400] 1) After the completion of the above test step 2), the test computer queries the one-hop neighbor information table of the test routing component and should be able to confirm the existence of the information of the measured routing component, and the symmetric link flag bit about the measured routing component is TRUE;

[0401] 2) After the completion of the above test step 4), the test computer should be able to query the received and forwarded broadcast packet statistics revert_bcast_count of the measured routing component in the one-hop neighbor information table of the test routing component to be 0;

[0402] 3) After the completion of the above step 6), the test computer should be able to query the received and forwarded broadcast packet statistics revert_bcast_count of the measured routing component in the one-hop neighbor information table of the test routing component to be 1.

[0403] If the above expected results are achieved, the fourth broadcast packet receiving process test result is test passed; if the above expected results are not achieved, the fourth broadcast packet receiving process test result is test failed.

[0404] The sub-test item E5 (correctness of received and forwarded broadcast packet sub-test-5) is explained as follows: the third broadcast packet test instruction is issued to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards the broadcast packet conforming to the BATMAN-adv protocol, and the fifth broadcast packet receiving process test result is obtained.

[0405] The test purpose of the sub-test item E5 is to verify that the measured routing component receives and forwards the broadcast packet conforming to the BATMAN-adv protocol standard.

[0406] The test steps of the sub-test item E5 include:

[0407] 1) The test computer controls the test routing component to periodically send ELP packets conforming to the BATMAN-adv protocol standard to the measured routing component;

[0408] 2) After a delay of 3s, the test computer queries the symmetric link flag bit of the measured routing component in the one-hop neighbor information table of the test routing component;

[0409] 3) The test computer controls the test routing component to periodically send OGM packets conforming to the BATMAN-adv protocol standard to the measured routing component;

[0410] 4) After a delay of 3s, the test computer queries the received and forwarded broadcast packet statistical value revert_bcast_count of the measured routing component in the one-hop neighbor information table of the test routing component;

[0411] 5) The test computer controls the test routing component to continuously send 10 broadcast packets conforming to the BATMAN-adv protocol standard to the measured routing component;

[0412] 6) After a delay of 3s, the test computer queries the received and forwarded broadcast packet statistical value revert_bcast_count of the measured routing component in the one-hop neighbor information table of the test routing component;

[0413] 7) The test computer controls the test routing component to stop periodically sending ELP packets conforming to the BATMAN-adv protocol standard to the measured routing component.

[0414] The expected results of the sub-test item E5 include:

[0415] 1) After the completion of the above test step 2), the test computer queries the one-hop neighbor information table of the test routing component, and should be able to confirm the existence of the information of the measured routing component, and the symmetric link flag bit of the measured routing component is TRUE;

[0416] 2) After the completion of the above test step 4), the test computer should be able to query the received and forwarded broadcast packet statistical value revert_bcast_count of the measured routing component in the one-hop neighbor information table of the test routing component is 0;

[0417] 3) After the completion of the above test step 6), the test computer should be able to query the received and forwarded broadcast packet statistical value revert_bcast_count of the measured routing component in the one-hop neighbor information table of the test routing component is 10.

[0418] If the above expected result is achieved, the test result of the fifth broadcast message receiving process is test passed; if the above expected result is not achieved, the test result of the fifth broadcast message receiving process is test failed.

[0419] determining whether the first broadcast message receiving process test result, the second broadcast message receiving process test result, the third broadcast message receiving process test result, the fourth broadcast message receiving process test result and the fifth broadcast message receiving process test result are all test passed; if yes, determining that the test result of the flooding protocol test is test passed; if no, determining that the test result of the flooding protocol test is test failed.

[0420] Please refer to Figure 5 , Figure 5 A structure diagram of a self-organizing network routing component consistency test system provided by an embodiment of the present application; the system can be applied to a test device connected with a first radio platform and a second radio platform respectively, the first radio platform runs a test self-organizing network routing component which has passed a consistency test, the second radio platform runs a to-be-tested self-organizing network routing component, the test self-organizing network routing component and the to-be-tested self-organizing network routing component are routing components based on a BATMAN-adv protocol, and the self-organizing network routing component consistency test system comprises:

[0421] A test item determination module 501 is configured to determine a consistency test process of the to-be-tested self-organizing network routing component, and determine a current test item according to the consistency test process; wherein the test items in the consistency test process comprise an adjacency relationship formation test, a link state advertisement test, a link quality calculation test, a routing table function test and a flooding protocol test;

[0422] A test execution module 502 is configured to perform a test operation corresponding to the current test item on the first radio platform and the second radio platform, to obtain a test result of the current test item;

[0423] A test item switching module 503 is configured to, if the test result of the current test item is test passed, determine a new current test item according to the consistency test process, so as to perform a test operation corresponding to the new current test item on the first radio platform and the second radio platform;

[0424] A result output module 504 is configured to, if the test result of the current test item is test failed, determine that the to-be-tested self-organizing network routing component fails the consistency test; and is further configured to, if the test results of all the test items in the consistency test process are test passed, determine that the to-be-tested self-organizing network routing component passes the consistency test.

[0425] The embodiment utilizes test equipment connected with the first radio platform and the second radio platform respectively to perform consistency test on the second radio platform running the measured ad hoc network routing component. Specifically, the embodiment can determine a consistency test procedure of the measured ad hoc network routing component, and then execute each test item according to the consistency test procedure, so as to determine that the measured ad hoc network routing component passes the consistency test when the test results of all test items are not tested to pass. Specifically, the test items in the consistency test procedure include the adjacency relationship formation test, the link state advertisement test, the link quality calculation test, the routing table function test and the flooding protocol test, and the test result of any test item is tested to not pass, and then it is determined that the measured ad hoc network routing component does not pass the consistency test. The embodiment can perform consistency test on the ad hoc network routing component, and detect whether the ad hoc network routing component meets the functional requirements of the BATMAN-adv protocol.

[0426] Further, if the current test item is the adjacency relationship formation test, the test execution module 502 performs the test operation corresponding to the current test item on the first radio platform and the second radio platform, and obtains the test result of the current test item, including: issuing an ELP packet sending function test instruction to the first radio platform and the second radio platform, so as to verify whether the ELP packet sent by the measured ad hoc network routing component meets the requirements of the BATMAN-adv protocol, and obtain a first ELP packet test result; issuing an ELP packet type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives an ELP packet with an abnormal message type field, and obtain a second ELP packet test result; issuing an ELP packet version type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives an ELP packet with an abnormal message version type field, and obtain a third ELP packet test result; issuing an ELP packet receiving test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives an ELP packet meeting the BATMAN-adv protocol, and obtain a fourth ELP packet test result; issuing an adjacency relationship establishment instruction to the first radio platform and the second radio platform, and verifying whether an adjacency relationship is established between the measured ad hoc network routing component and the test ad hoc network routing component, and obtain an adjacency relationship establishment sub-test result; determining whether the first ELP packet test result, the second ELP packet test result, the third ELP packet test result, the fourth ELP packet test result and the adjacency relationship establishment sub-test result are all tested to pass; if yes, it is determined that the test result of the adjacency relationship formation test is tested to pass; if no, it is determined that the test result of the adjacency relationship formation test is tested to not pass.

[0427] Further, if the current test item is the link state advertisement test, the test execution module 502 performs a test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain a test result of the current test item, including: issuing an OGM message sending function test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component sends an OGM message conforming to the BATMAN-adv protocol, to obtain a first OGM message test result; issuing an OGM message type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards an OGM message with an abnormal message type field, to obtain a second OGM message test result; issuing an OGM message version type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards an OGM message with an abnormal message version type field, to obtain a third OGM message test result; issuing an unknown OGM message test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives an OGM message from an unknown one-hop neighbor node, to obtain a fourth OGM message test result; issuing a known OGM message test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives an OGM message from a known one-hop neighbor node, to obtain a fifth OGM message test result; judging whether the first OGM message test result, the second OGM message test result, the third OGM message test result, the fourth OGM message test result and the fifth OGM message test result are all test passed; if yes, it is determined that the test result of the link state advertisement test is test passed; if not, it is determined that the test result of the link state advertisement test is test not passed.

[0428] Further, if the current test item is the link quality calculation test, the test execution module 502 performs the test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain the test result of the current test item, including: issuing a link quality calculation instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component calculates the link quality according to the provisions of the BATMAN-adv protocol to obtain a first quality test result; issuing a test instruction of link quality exception to the first radio platform and the second radio platform to verify whether the link quality of 0 is processed according to a preset processing manner to obtain a second quality test result; judging whether the first quality test result and the second quality test result are both test passed; if yes, determining that the test result of the link quality calculation test is test passed; if no, determining that the test result of the link quality calculation test is test failed.

[0429] Further, if the current test item is the routing table function test, the test execution module 502 performs the test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain the test result of the current test item, including: issuing a directional message sending instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component sends the directional message conforming to the BATMAN-adv protocol to obtain a directional message sending flow test result; issuing a directional message receiving instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component receives the directional message conforming to the BATMAN-adv protocol to obtain a first directional message receiving flow test result; issuing a directional message type field test instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component receives and forwards the directional message with an abnormal message type field to obtain a second directional message receiving flow test result; issuing a directional message version type field test instruction to the first radio platform and the second radio platform to verify whether the measured ad hoc network routing component receives and forwards the directional message with an abnormal message version type field to obtain a third directional message receiving flow test result; judging whether the directional message sending flow test result, the first directional message receiving flow test result, the second directional message receiving flow test result and the third directional message receiving flow test result are all test passed; if yes, determining that the test result of the routing table function test is test passed; if no, determining that the test result of the routing table function test is test failed.

[0430] Further, if the current test item is the flooding protocol test, the test execution module 502 performs a test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain a test result of the current test item, including: issuing a broadcast message type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a broadcast message with an abnormal message type field, to obtain a first broadcast message receiving process test result; issuing a broadcast message version type field test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a broadcast message with an abnormal message version type field, to obtain a second broadcast message receiving process test result; issuing a first broadcast message test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a broadcast message with a time to live (ttl) of 1, to obtain a third broadcast message receiving process test result; issuing a second broadcast message test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a processed broadcast message, to obtain a fourth broadcast message receiving process test result; issuing a third broadcast message test instruction to the first radio platform and the second radio platform, so as to verify whether the measured ad hoc network routing component receives and forwards a broadcast message conforming to the BATMAN-adv protocol, to obtain a fifth broadcast message receiving process test result; determining whether the first broadcast message receiving process test result, the second broadcast message receiving process test result, the third broadcast message receiving process test result, the fourth broadcast message receiving process test result, and the fifth broadcast message receiving process test result are all test passes; if yes, determining that the test result of the flooding protocol test is a test pass; if no, determining that the test result of the flooding protocol test is a test fail.

[0431] Since the embodiments of the system part correspond to the embodiments of the method part, the embodiments of the system part are described in the description of the embodiments of the method part, and are not described here.

[0432] The application further provides a storage medium having a computer program stored thereon, and the computer program can implement the steps provided in the above embodiments when executed. The storage medium can include a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0433] The application also provides a test device connected with a first radio platform and a second radio platform respectively, the first radio platform runs a test ad hoc network routing component which has passed the consistency test, the second radio platform runs a measured ad hoc network routing component, the test ad hoc network routing component and the measured ad hoc network routing component are routing components based on the BATMAN-adv protocol, the test device runs a host computer software, the host computer software realizes the steps of the above-mentioned ad hoc network routing component consistency test scheme when running. Further, the test device is connected with n first radio platforms, the test device is connected with m second radio platforms, 1≤n≤m.

[0434] The various embodiments are described in the specification by way of progressive progression, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part. It should be pointed out that, for those skilled in the art, without departing from the principles of the application, some improvements and modifications can be made to the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

[0435] It should also be noted that in the specification, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A consistency testing method for ad hoc network routing components, characterized in that, The test equipment is connected to a first radio platform and a second radio platform respectively. The first radio platform runs a test ad hoc network routing component that has passed conformance testing, and the second radio platform runs a test ad hoc network routing component. Both the test ad hoc network routing component and the test ad hoc network routing component are routing components based on the BATMAN-adv protocol. The conformance testing method for the ad hoc network routing component includes: Determine the consistency test procedure for the tested ad hoc network routing component, and determine the current test item according to the consistency test procedure; Perform the test operation corresponding to the current test item on the first radio platform and the second radio platform to obtain the test result of the current test item; If the test result of the current test item is that the test passes, then a new current test item is determined according to the consistency test process, so as to perform the test operation corresponding to the new current test item on the first radio platform and the second radio platform; If the test result of the current test item is that the test fails, then the tested ad hoc network routing component is determined to have failed the consistency test. If all test items in the consistency test process pass the test, then the tested ad hoc network routing component is determined to have passed the consistency test. Wherein, if the current test item is a link quality calculation test, then the test operation corresponding to the current test item is performed on the first radio platform and the second radio platform to obtain the test result of the current test item, including: Perform a correctness subtest of the link quality calculation to obtain the first quality test result and the second quality test result; Determine whether both the first quality test result and the second quality test result are passed; if yes, the link quality calculation test result is determined to be passed; if no, the link quality calculation test result is determined to be failed. The process of performing the correctness sub-test for the execution link quality calculation includes: Step A1: The test computer controls the test routing component to periodically send ELP messages conforming to the BATMAN-adv protocol standard to the routing component under test; Step A2: After a 3-second delay, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit of the routing component under test; Step A3: The test computer controls the test routing component to periodically send OGM messages conforming to the BATMAN-adv protocol standard to the routing component under test; Step A4: Query the one-hop neighbor information table of the test routing component to find the received and forwarded OGM packet statistics value revert_ogm_count for the tested routing component; Step A5: Query the one-hop neighbor information table of the test routing component to obtain the link quality value revert_ogm_tq calculated for the tested routing component; Step A6: Query the link quality value tq calculated by the test routing component in its one-hop neighbor information table; Step A7: The test computer controls the test routing component to stop periodically sending ELP messages conforming to the BATMAN-adv protocol standard to the routing component under test; Step A8: The test computer controls the test routing component to stop periodically sending OGM messages conforming to the BATMAN-adv protocol standard to the routing component under test; Accordingly, if the first expected result, the second expected result, and the third expected result are achieved, then the first quality test result is considered a pass. Specifically, the first expected result is: after step A2, the test computer queries the one-hop neighbor information table of the test routing component, finds information about the tested routing component, and the symmetric link flag for the tested routing component is TRUE. The second expected result is: after step A4, the test computer queries the one-hop neighbor information table of the test routing component, and the revert_ogm_count value for the received and forwarded OGM packets of the tested routing component is 3 ± 1. The third expected result is: after steps A5 and A6, the host computer software queries the one-hop neighbor information table of the test routing component, and the revert_ogm_tq value for the tested routing component is equal to tq. The process of performing the correctness sub-test of the link quality calculation also includes: Step B1: The test computer controls the test routing component to periodically send ELP messages conforming to the BATMAN-adv protocol standard to the routing component under test; Step B2: After a 3-second delay, the test computer queries the one-hop neighbor information table of the test routing component for the symmetric link flag bit of the routing component under test; Step B3: The test computer controls the test routing component to periodically send OGM messages conforming to the BATMAN-adv protocol standard to the routing component under test, where the throughput field of the OGM message is set to 0. Step B4: Query the one-hop neighbor information table of the test routing component to find the received and forwarded OGM packet statistics value revert_ogm_count for the tested routing component; Step B5: Query the one-hop neighbor information table of the test routing component to obtain the link quality value revert_ogm_tq calculated by the tested routing component; Step B6: Query the link quality value tq calculated by the test routing component in its one-hop neighbor information table; Step B7: The test computer controls the test routing component to stop periodically sending ELP messages conforming to the BATMAN-adv protocol standard to the routing component under test; Step B8: The test computer controls the test routing component to stop periodically sending OGM messages conforming to the BATMAN-adv protocol standard to the routing component under test; Accordingly, if the fourth, fifth, and sixth expected results are achieved, the second quality test result is considered passed. Specifically, the fourth expected result is: after step B2, the test computer queries the one-hop neighbor information table of the test routing component and finds information about the tested routing component, and the symmetric link flag for the tested routing component is TRUE. The fifth expected result is: after step B4, the test computer queries the one-hop neighbor information table of the test routing component and confirms that the revert_ogm_count value for the received and forwarded OGM packets of the tested routing component is 0. The sixth expected result is: after steps B5 and B6, the test computer queries the one-hop neighbor information table of the test routing component and confirms that the revert_ogm_tq value for the tested routing component is not equal to tq, and the revert_ogm_tq value is 255.

2. The consistency testing method for self-organizing network routing components according to claim 1, characterized in that, If the current test item is an adjacency relationship formation test, then the test operation corresponding to the current test item is performed on the first radio platform and the second radio platform to obtain the test result of the current test item, including: An ELP message sending function test command is sent to the first radio platform and the second radio platform to verify whether the ELP message sent by the tested ad hoc network routing component complies with the BATMAN-adv protocol requirements, and to obtain the first ELP message test result. An ELP message type field test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives an ELP message with an abnormal message type field, and to obtain the second ELP message test result. ELP message version type field test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives ELP messages with abnormal message version type field, and to obtain the third ELP message test result; An ELP message reception test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives ELP messages conforming to the BATMAN-adv protocol, and to obtain the fourth ELP message test result. The adjacency establishment command is sent to the first radio platform and the second radio platform, and the adjacency relationship establishment sub-test result is obtained by verifying whether the tested adjacency relationship is established between the tested adjacency network routing component and the test adjacency network routing component. Determine whether the test results of the first ELP message, the second ELP message, the third ELP message, the fourth ELP message, and the adjacency relationship establishment sub-test results are all passed; If so, the test result of the adjacency relationship formation test is determined to be a pass. If not, the test result of the adjacency relationship formation test is determined to be a failure.

3. The consistency testing method for self-organizing network routing components according to claim 1, characterized in that, If the current test item is a link status announcement test, then the test operation corresponding to the current test item is performed on the first radio platform and the second radio platform to obtain the test result of the current test item, including: OGM message sending function test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component sends OGM messages that conform to the BATMAN-adv protocol, and to obtain the first OGM message test result; OGM message type field test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives and forwards OGM messages with abnormal message type fields, and obtains the second OGM message test result; OGM message version type field test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives and forwards OGM messages with abnormal message version type field, and obtains the third OGM message test result; An unknown OGM message test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives an OGM message from an unknown one-hop neighbor node, and to obtain the fourth OGM message test result. A known OGM message test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives an OGM message from a known one-hop neighbor node, and to obtain the fifth OGM message test result. Determine whether the test results of the first OGM message, the second OGM message, the third OGM message, the fourth OGM message, and the fifth OGM message are all passed. If so, the test result of the link status announcement test is determined to be a successful test; If not, the test result of the link status announcement test is determined to be a failure.

4. The consistency testing method for self-organizing network routing components according to claim 1, characterized in that, If the current test item is a routing table function test, then the test operation corresponding to the current test item is performed on the first radio platform and the second radio platform to obtain the test result of the current test item, including: Directed message sending instructions are sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component sends directed messages conforming to the BATMAN-adv protocol, and to obtain the test results of the directed message sending process. Directed message receiving instructions are sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives directed messages conforming to the BATMAN-adv protocol, and to obtain the test results of the first directed message receiving process. Send a directional message type field test command to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives and forwards directional messages with abnormal message type fields, and obtain the test results of the second directional message reception process; A test command for the directed message version type field is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives and forwards directed messages with abnormal message version type fields, and obtains the test result of the third directed message receiving process. Determine whether the test results of the directed message sending process, the first directed message receiving process, the second directed message receiving process, and the third directed message receiving process are all passed. If so, the test result of the routing table function test is determined to be a pass. If not, the test result of the routing table function test is determined to be a failure.

5. The consistency testing method for self-organizing network routing components according to claim 1, characterized in that, If the current test item is a flooding protocol test, then the test operation corresponding to the current test item is performed on the first radio platform and the second radio platform to obtain the test result of the current test item, including: A broadcast message type field test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives and forwards broadcast messages with abnormal message type fields, and to obtain the test results of the first broadcast message reception process. A broadcast message version type field test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives and forwards broadcast messages with abnormal message version type fields, and to obtain the test results of the second broadcast message reception process. A first broadcast message test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives and forwards a broadcast message with a time-to-live (TTL) of 1, and to obtain the test results of the third broadcast message reception process. A second broadcast message test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives and forwards the processed broadcast message, and to obtain the test result of the fourth broadcast message reception process. A third broadcast message test command is sent to the first radio platform and the second radio platform to verify whether the tested ad hoc network routing component receives and forwards broadcast messages conforming to the BATMAN-adv protocol, and to obtain the test results of the fifth broadcast message reception process. Determine whether the test results of the first broadcast message receiving process, the second broadcast message receiving process, the third broadcast message receiving process, the fourth broadcast message receiving process, and the fifth broadcast message receiving process are all passed. If so, the test result of the flooding protocol test is determined to be a pass. If not, the test result of the flooding protocol test is determined to be a failure.

6. A consistency testing system for self-organizing network routing components, characterized in that, A test device is applied to a first radio platform and a second radio platform, respectively. The first radio platform operates a test ad hoc network routing component that has passed conformance testing, and the second radio platform operates a test ad hoc network routing component. Both the test ad hoc network routing component and the test ad hoc network routing component are routing components based on the BATMAN-adv protocol. The ad hoc network routing component conformance testing system is used to implement the ad hoc network routing component conformance testing method according to any one of claims 1 to 5. The ad hoc network routing component conformance testing system includes: The test item determination module is used to determine the consistency test process of the self-organizing network routing component under test, and to determine the current test item according to the consistency test process. The test execution module is used to perform the test operation corresponding to the current test item on the first radio platform and the second radio platform, and obtain the test result of the current test item; The test item switching module is used to determine a new current test item according to the consistency test process if the test result of the current test item is a test pass, so as to perform the test operation corresponding to the new current test item on the first radio platform and the second radio platform. The result output module is used to determine that the tested ad hoc routing component has failed the consistency test if the test result of the current test item is "test failed"; it is also used to determine that the tested ad hoc routing component has passed the consistency test if the test results of all test items in the consistency test process are "test passed".

7. A testing device, characterized in that, The test equipment is connected to a first radio platform and a second radio platform respectively. The first radio platform runs a test ad hoc network routing component that has passed the conformance test, and the second radio platform runs a test ad hoc network routing component. The test ad hoc network routing component and the test ad hoc network routing component are routing components based on the BATMAN-adv protocol. The test equipment runs host computer software, which implements the steps of the ad hoc network routing component conformance test method as described in any one of claims 1 to 5 when it runs.

8. The testing equipment according to claim 7, characterized in that, The test equipment is connected to n first radio platforms and m second radio platforms, where 1 ≤ n ≤ m.

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 self-organizing network routing component consistency test method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Software communication system structure-based MAC (Media Access Control) component consistency test method

    CN114554537A

  • Data routing method, device and equipment of flight ad hoc network, medium and product

    CN118764930A

  • Routing in a wireless mesh network

    WO2023105382A1