CN116599876A - Method, system, computer and storage medium for testing consistency of network layer protocol - Google Patents

Method, system, computer and storage medium for testing consistency of network layer protocol Download PDF

Info

Publication number
CN116599876A
CN116599876A CN202310436109.9A CN202310436109A CN116599876A CN 116599876 A CN116599876 A CN 116599876A CN 202310436109 A CN202310436109 A CN 202310436109A CN 116599876 A CN116599876 A CN 116599876A
Authority
CN
China
Prior art keywords
test
tested
network layer
equipment
layer protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310436109.9A
Other languages
Chinese (zh)
Inventor
吴宇
王德刚
袁继兵
向良军
施峻武
李武
刘钢
杨英
杨志和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Vocational College For Nationalities
Hunan Keyshare Communication Technology Co ltd
Hunan Institute of Science and Technology
Original Assignee
Hunan Vocational College For Nationalities
Hunan Keyshare Communication Technology Co ltd
Hunan Institute of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Vocational College For Nationalities, Hunan Keyshare Communication Technology Co ltd, Hunan Institute of Science and Technology filed Critical Hunan Vocational College For Nationalities
Priority to CN202310436109.9A priority Critical patent/CN116599876A/en
Publication of CN116599876A publication Critical patent/CN116599876A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method, a system, a computer and a storage medium for testing the consistency of a network layer protocol, belonging to the technical field of consistency testing technology. The consistency test method of the network layer protocol comprises the following steps: determining a plurality of items to be tested of a tested network layer protocol according to the network layer function, and setting a corresponding logic topology diagram for the items to be tested; executing test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph; if the test result of the item to be tested is that the test fails, judging that the tested network layer protocol fails the consistency test; if all the test results of the items to be tested are test passing, judging that the tested network layer protocol passes the consistency test. The application can test the consistency of network layer protocols in the emergency command wireless broadband ad hoc network, and ensure the interconnection and intercommunication of the emergency command wireless broadband ad hoc network devices of different manufacturers.

Description

Method, system, computer and storage medium for testing consistency of network layer protocol
Technical Field
The present application relates to the field of consistency testing technologies, and in particular, to a method, a system, a computer, and a storage medium for testing consistency of a network layer protocol.
Background
The wireless broadband ad hoc network is one of the main technical means for constructing the emergency command communication private network of the emergency rescue site, and has important significance for quickly constructing the emergency command wireless broadband ad hoc network under the extreme condition. The related standard specifications of the emergency command wireless broadband ad hoc network can specify the standard adopted by the network layer protocol, for example, the contents of network layer protocol architecture and functions, route management, message and message field definition and the like are included, and no consistency test scheme aiming at the network layer protocol in the emergency command wireless broadband ad hoc network exists at present.
Therefore, how to perform consistency test on network layer protocols in the emergency command wireless broadband ad hoc network and ensure interconnection and interworking of the emergency command wireless broadband ad hoc network devices of different manufacturers is a technical problem that needs to be solved by the skilled person at present.
Disclosure of Invention
The application aims to provide a method, a system, a computer and a storage medium for testing the consistency of network layer protocols, which can test the consistency of the network layer protocols in emergency command wireless broadband ad hoc networks and ensure the interconnection and interworking of the emergency command wireless broadband ad hoc network devices of different manufacturers.
In order to solve the technical problem, the present application provides a method for testing the consistency of a network layer protocol, which is applied to a computer connected with a tested device and a testing device, wherein the tested device and the testing device are respectively connected with a wireless channel simulator through a radio frequency feeder line, a protocol stack operated by the testing device comprises a preset network layer protocol passing the consistency test, the protocol stack operated by the tested device comprises a tested network layer protocol, and the method for testing the consistency of the network layer protocol comprises:
Determining a plurality of items to be tested of the tested network layer protocol according to the network layer function, and setting a corresponding logic topological graph for the items to be tested;
sending a control instruction to the wireless channel simulator according to the logic topological graph so that the wireless channel simulator adjusts the logic connection relation between the test equipment and the tested equipment;
executing test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph;
if the test result of the item to be tested is that the test fails, judging that the tested network layer protocol fails the consistency test;
and if all the test results of the items to be tested pass the test, judging that the tested network layer protocol passes the consistency test.
Optionally, before setting the corresponding logic topology map for the item to be tested, the method further includes:
counting the number of the test devices connected with the computer;
and generating various logic topological diagrams according to the number of the devices.
Optionally, if the number of devices is 3 and the test device includes a first test device, a second test device, and a third test device, generating multiple logic topology diagrams according to the number of devices, including:
Setting a first logic topological graph, a second logic topological graph, a third logic topological graph and a fourth logic topological graph according to preset rules;
in the first logic topological graph, the first test device, the second test device, the third test device and the tested device sequentially form chain topological connection; in the second logic topological graph, the first test device, the second test device, the tested device and the third test device sequentially form chain topological connection; in the third logic topological graph, topological connection exists among any two devices among the first test device, the second test device, the third test device and the tested device; in the fourth logic topology diagram, the first test device, the second test device, the third test device and the tested device sequentially form ring topology connection.
Optionally, setting a corresponding logic topology map for the item to be tested includes:
if the item to be tested is a link maintenance function test, setting the first logic topology diagram as a logic topology diagram corresponding to the link maintenance function test; the test sub-items of the link maintenance function test comprise a link layer detection link maintenance function sub-test and a network layer detection link maintenance function sub-test.
Optionally, setting a corresponding logic topology map for the item to be tested includes:
if the item to be tested is a route management function test, setting a logic topology diagram corresponding to each test subitem of the route management function test; the test sub-items of the route management function test comprise a route item establishment function sub-test, a route item update function sub-test and a route item deletion function sub-test;
correspondingly, executing the test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph comprises the following steps:
and executing the test operation of the test sub-items of the route management function test on the test equipment and the tested equipment based on the logic topological graph corresponding to the test sub-items of the route management function test.
Optionally, setting a corresponding logic topology map for the item to be tested includes:
if the item to be tested is a data processing function test, setting the first logic topology diagram as a logic topology diagram corresponding to the link maintenance function test; the test sub-items of the data processing function test comprise a unicast service sending function sub-test, a unicast service receiving function sub-test, a multicast service sending function sub-test, a multicast service receiving function sub-test, a multicast service sending function sub-test and a multicast service receiving function sub-test.
The application also provides a consistency test system of network layer protocol, which is applied to a computer connected with a tested device and a test device, wherein the tested device and the test device are respectively connected with a wireless channel simulator through a radio frequency feeder line, a protocol stack operated by the test device comprises a preset network layer protocol passing a consistency test, the protocol stack operated by the tested device comprises a tested network layer protocol, and the consistency test system of the network layer protocol comprises:
the logic topology setting module is used for determining a plurality of items to be tested of the tested network layer protocol according to the network layer function and setting a corresponding logic topology diagram for the items to be tested;
the logic connection adjustment module is used for sending a control instruction to the wireless channel simulator according to the logic topological graph so as to enable the wireless channel simulator to adjust the logic connection relation between the test equipment and the tested equipment;
the test module is used for executing test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph;
the result output module is used for judging that the tested network layer protocol fails the consistency test if the test result of the item to be tested is that the test fails; and the network layer protocol to be tested is also used for judging that the network layer protocol to be tested passes the consistency test if the test results of all the items to be tested pass the test.
The application also provides a storage medium, on which a computer program is stored, which when executed implements the steps of the above-mentioned network layer protocol conformance test method.
The application also provides a computer, the tested equipment and the testing equipment are respectively connected with the wireless channel simulator through radio frequency feeder lines, a protocol stack operated by the testing equipment comprises a preset network layer protocol passing the consistency test, the protocol stack operated by the tested equipment comprises a tested network layer protocol, the computer is operated with upper computer software, and the upper computer software realizes the steps of the consistency test method of the network layer protocol when in operation.
Further, the computer is connected with the tested device and the testing device through a switch.
The application also provides a storage medium, on which a computer program is stored, which when executed implements the steps of the above-mentioned network layer protocol conformance test method.
The application provides a consistency test method of network layer protocol, which is applied to a computer connected with tested equipment and test equipment, wherein the tested equipment and the test equipment are respectively connected with a wireless channel simulator through radio frequency feeder lines, a protocol stack operated by the test equipment comprises a preset network layer protocol passing a consistency test, the protocol stack operated by the tested equipment comprises a tested network layer protocol, and the consistency test method of the network layer protocol comprises the following steps: determining a plurality of items to be tested of the tested network layer protocol according to the network layer function, and setting a corresponding logic topological graph for the items to be tested; sending a control instruction to the wireless channel simulator according to the logic topological graph so that the wireless channel simulator adjusts the logic connection relation between the test equipment and the tested equipment; executing test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph; if the test result of the item to be tested is that the test fails, judging that the tested network layer protocol fails the consistency test; and if all the test results of the items to be tested pass the test, judging that the tested network layer protocol passes the consistency test.
In the scheme provided by the application, the tested equipment and the testing equipment are connected with the computer, and the tested equipment and the testing equipment are respectively connected with the wireless channel simulator through the radio frequency feeder. The application determines a plurality of items to be tested of the tested network layer protocol according to the function of the network layer, and sends a control instruction to the wireless channel simulator to adjust the logic connection relation between the test equipment and the tested equipment before testing each item to be tested. After the test operation is carried out, if the test result is that the test is not passed, the tested network layer protocol is judged to not pass the consistency test, and if the test result of all the items to be tested is that the test is passed, the tested network layer protocol is judged to pass the consistency test. The application can test the consistency of network layer protocols in the emergency command wireless broadband ad hoc network, and ensure the interconnection and intercommunication of the emergency command wireless broadband ad hoc network devices of different manufacturers. The application also provides a system for testing the consistency of the network layer protocol, a computer and a storage medium, which have the beneficial effects and are not repeated here.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is a flowchart of a method for testing the consistency of a network layer protocol according to an embodiment of the present application;
fig. 2 is a schematic diagram of an emergency command wireless broadband ad hoc network layer structure according to an embodiment of the present application;
fig. 3 is a flowchart of a protocol consistency test of an emergency command wireless broadband ad hoc network layer according to an embodiment of the present application;
fig. 4 is a physical topology diagram of a test environment constructed by performing a consistency test on an emergency communication wireless broadband ad hoc network layer protocol according to an embodiment of the present application;
FIG. 5 is a first logic topology provided by an embodiment of the present application;
FIG. 6 is a second logic topology provided by an embodiment of the present application;
FIG. 7 is a third logic topology provided by an embodiment of the present application;
fig. 8 is a fourth logic topology provided in an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a flowchart of a method for testing the consistency of a network layer protocol according to an embodiment of the present application.
The specific steps may include:
s101: determining a plurality of items to be tested of the tested network layer protocol according to the network layer function, and setting a corresponding logic topological graph for the items to be tested;
the embodiment can be applied to a computer connected with the tested equipment and the testing equipment, and upper computer software runs in the computer, namely the upper computer software in the computer can realize the consistency testing scheme provided by the embodiment.
The tested device and the testing device are respectively connected with the wireless channel simulator through a radio frequency feeder line, a protocol stack operated by the testing device comprises a preset network layer protocol which passes the consistency test, and the protocol stack operated by the tested device comprises the tested network layer protocol.
The test equipment and the tested equipment are wireless broadband ad hoc network equipment for emergency command (namely, the wireless broadband ad hoc network equipment for emergency command), and the preset network layer protocol and the tested network layer protocol are protocols adopted by the wireless broadband ad hoc network for emergency command. The relevant standard of the wireless broadband ad hoc network for emergency command (namely, the wireless broadband ad hoc network standard for emergency command) can be determined before the step, the preset network layer protocol is a network layer protocol conforming to the relevant standard, and the tested network layer protocol is a network layer protocol set by a manufacturer of the tested equipment according to the relevant standard.
The embodiment can determine a plurality of items to be tested of the tested network layer protocol according to the network layer functions, wherein the network layer functions are as follows:
link maintenance function: the network layer needs to monitor the link states of the node and the adjacent nodes in real time, judge the availability (connection or disconnection) of the links, update the routes in time and keep the real-time and effective routing information of the whole network.
Route management function: to achieve end-to-end interworking of all nodes in an ad hoc network, it is necessary that the routing function be performed by a common node in the network, rather than by another dedicated routing device (e.g., a router), and therefore each network node is required to have an ad hoc network multi-hop routing forwarding function, which is responsible for implementation by the network layer.
Data processing function: the data processing of the network layer mainly comprises two parts of functions of data routing and data encapsulation/decapsulation. The network layer receives a plurality of data streams from the node application or other node applications, next hop transmission paths of different unicast data streams and broadcast/multicast data streams are different, the unicast data streams are subjected to next hop node confirmation through routing table query, and multicast and broadcast data are subjected to data broadcasting by adopting a flooding protocol in order to avoid broadcast storm.
Each item under test may include a plurality of test sub-items, each item under test or test sub-item may have its corresponding logical topology. The logic topology diagram is used for describing the logic link relation between the test equipment and the tested equipment.
S102: sending a control instruction to the wireless channel simulator according to the logic topological graph so that the wireless channel simulator adjusts the logic connection relation between the test equipment and the tested equipment;
before this step, there may be an operation of determining the item to be tested that needs to be executed currently, and then a control instruction is sent to the wireless channel simulator according to the logical topology diagram of the item to be tested that needs to be executed currently, so as to establish a logical connection relationship that meets the item to be tested that needs to be executed currently.
S103: executing test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph;
after the logic connection relation is set, the test operation corresponding to the to-be-tested item to be executed currently can be executed on the test equipment and the to-be-tested equipment based on the logic connection relation of the logic topology diagram of the to-be-tested item to be executed currently.
The test result of the test operation can be that the test passes or the test fails; if the test result is that the test is not passed, entering S104; if the test result is that the test is passed, it can be determined whether all the test items are tested completely, if so, the process proceeds to S105, and if not, the operations of S102 and S103 are repeated.
S104: judging that the tested network layer protocol fails a consistency test;
s105: and if all the test results of the items to be tested pass the test, judging that the tested network layer protocol passes the consistency test.
If all the test items are tested and the test results of all the test items are test passing, the tested network layer protocol in the tested equipment can be judged to accord with the relevant standard of the wireless broadband ad hoc network for emergency command, and consistency test is passed.
In the scheme provided by the embodiment, the tested equipment and the testing equipment are connected with the computer, and the tested equipment and the testing equipment are respectively connected with the wireless channel simulator through the radio frequency feeder. The embodiment determines a plurality of items to be tested of a tested network layer protocol according to the function of the network layer, and sends a control instruction to the wireless channel simulator to adjust the logic connection relationship between the test equipment and the tested equipment before testing each item to be tested. After the test operation is carried out, if the test result is that the test is not passed, the tested network layer protocol is judged to not pass the consistency test, and if the test result of all the items to be tested is that the test is passed, the tested network layer protocol is judged to pass the consistency test. The embodiment can carry out consistency test on network layer protocols in the emergency command wireless broadband ad hoc network, and ensure interconnection and intercommunication of the emergency command wireless broadband ad hoc network devices of different manufacturers.
The flow described in the above embodiment is explained below by way of an embodiment in practical application.
The embodiment discloses a method for testing the consistency of network layer protocols in an emergency command wireless broadband ad hoc network, which can test the consistency of the network layer protocols developed by different manufacturers according to the standard specification of the emergency command wireless broadband ad hoc network, namely the network layer standard, and verify whether the network layer protocol implementation of different manufacturers is consistent with the standard specification, thereby playing an important role in ensuring the interconnection and intercommunication of the emergency command communication wireless broadband ad hoc network devices independently developed by different manufacturers.
The embodiment discloses a method for testing the consistency of a network layer protocol of a wireless broadband ad hoc network aiming at emergency command communication, which covers all functional tests of the network layer protocol, does not need to modify tested equipment, and is convenient and feasible.
The items to be tested may include a link maintenance function test, a route management function test, a data processing function test.
The test sub-items of the link maintenance function test include: the link layer detects the link maintenance function subtest and the network layer detects the link maintenance function subtest. The test sub-items of the route management function include: the routing item establishment function subtest, the routing item update function subtest-1, the routing item update function subtest-2, the routing item update function subtest-3, the routing item update function subtest-4, the routing item update function subtest-5, the routing item deletion function subtest-1 and the routing item deletion function subtest-2. Test sub-items of the data processing function include: unicast service transmitting function subtest, unicast service receiving function subtest, multicast service transmitting function subtest, multicast service receiving function subtest, multicast service transmitting function subtest and multicast service receiving function subtest. After all the tests are completed, the test results can be checked, and the tested network layer protocol test is judged to be failed as long as one sub-test fails, at the moment, a tested manufacturer is informed to carry out rectification according to the test results, and then all the tests are executed again; only when all the tests are passed, the conclusion that the tested network layer protocol passes the consistency test can be drawn.
The detailed test result and the obtained test conclusion generated in the test process are summarized into a test report, so that the test report is convenient to review.
Referring to fig. 2, fig. 2 is a schematic diagram of an emergency command wireless broadband ad hoc network layer provided by an embodiment of the present application, where the network layer is located between an upper layer application and a link layer, and mainly comprises three parts, namely link maintenance, route management and data processing, where the link maintenance is mainly responsible for completing maintenance of a link state, the route management is mainly responsible for completing maintenance of a routing table, and the data processing is mainly responsible for completing transceiving processing of data. The network layer service interface may transport different data flows (Traffic flows) and the link layer service interface may interact with the network layer. Also shown in fig. 2 are network layer PDUs (Protocol Data Unit, protocol data units) and link layer PDUs.
Referring to fig. 3, fig. 3 is a flowchart of a protocol consistency test of an emergency command wireless broadband ad hoc network layer, which is provided in an embodiment of the present application, and specifically includes the following steps: and after the test is started, carrying out a link maintenance function test, a routing management function test and a data processing function flow, judging that the consistency test is passed if all the tests are passed, and modifying the non-conforming items if the tests are not passed.
Referring to fig. 4, fig. 4 is a physical topology diagram of a test environment constructed for consistency test of an emergency communication wireless broadband ad hoc network layer protocol according to an embodiment of the present application. The test environment comprises hardware devices such as a computer, a first test device, a second test device, a third test device, a tested device, a wireless channel simulator and the like.
The computer is connected with the first test equipment, the second test equipment, the third test equipment and the tested equipment through the Ethernet through the network switch; the first test device, the second test device, the third test device and the tested device are respectively connected to the radio frequency interface of the wireless channel simulator through radio frequency cables. The wireless channel simulator can flexibly establish the logic topological relation between the connected devices according to the user setting, thereby meeting the requirements of different test items.
The upper computer software is operated on the computer and provided for testers to execute an operation interface for consistency test so as to realize the functions of test parameter configuration, test command issuing, test result recording, display and the like. The issuing of the upper computer software test command and the reading of the test result are respectively and directly interacted with the corresponding test equipment or the tested equipment through the network switch.
And respectively running standard emergency command wireless broadband ad hoc network protocol stacks on the first test equipment, the second test equipment and the third test equipment, and executing the test on the tested equipment together with the upper computer software. The protocol stack comprises a physical layer, a data link layer and a network layer from bottom to top.
The first test equipment, the second test equipment and the third test equipment are completely identical, and the functions of the first test equipment, the second test equipment and the third test equipment are that the first test equipment, the second test equipment and the third test equipment are directly connected with the upper computer software through a network switch, after receiving a test command issued by the upper computer software through a network port, the command is analyzed and converted into a series of test messages, and the test messages are sent to other test equipment or tested equipment through a radio frequency interface; after receiving the feedback message of the test message, analyzing the feedback message to form a test result, and finally reporting the test result to the upper computer test software through the network port.
The tested equipment runs an emergency command wireless broadband ad hoc network protocol stack developed by a tested manufacturer, and a network layer protocol on the protocol stack is the tested object.
As a further introduction to the corresponding embodiment of FIG. 1, before setting the corresponding logical topology for the item to be tested, the number of devices of the test device connected to the computer may also be counted, and then multiple logical topologies may be generated according to the number of devices.
If the number of the devices is 3 and the test device includes a first test device, a second test device and a third test device, the first logic topology map, the second logic topology map, the third logic topology map and the fourth logic topology map may be set according to a preset rule.
The preset rule is as follows:
in the first logic topological graph, the first test device, the second test device, the third test device and the tested device sequentially form chain topological connection;
in the second logic topological graph, the first test device, the second test device, the tested device and the third test device sequentially form chain topological connection;
in the third logic topological graph, topological connection exists among any two devices among the first test device, the second test device, the third test device and the tested device;
in the fourth logic topology diagram, the first test device, the second test device, the third test device and the tested device sequentially form a ring topology connection which is connected end to end.
Referring to fig. 5, fig. 5 is a first logic topology diagram provided by an embodiment of the present application, where the first logic topology diagram shows a connection relationship of radio frequency signals among four devices, namely, a first test device, a second test device, a third test device, and a device under test. The connection relationship is formed by configuring the wireless channel simulator according to the requirements of a specific test case. In the first logic topology diagram, four devices form a chain topology connection, namely, a radio frequency signal sent by a first test device can only be received by a second test device, a radio frequency signal sent by the second test device can only be received by the first test device and a third test device, a device signal sent by the third test device can only be received by the second test device and a tested device, and a signal sent by the tested device can only be received by the third test device. Meanwhile, because of the multi-hop routing forwarding function of the network layer protocol of the self-networking equipment, devices which are not directly connected can realize mutual communication through forwarding of intermediate equipment, for example, radio frequency signals sent by first test equipment can sequentially pass through routing forwarding of second test equipment and third test equipment, and finally the tested equipment is reached.
Referring to fig. 6, fig. 6 is a second logic topology diagram according to an embodiment of the present application, where the topology connection is also formed by configuring the wireless channel simulator. The difference of fig. 6 compared to fig. 5 is that the third test device is exchanged for the device under test.
Referring to fig. 7, fig. 7 is a third logic topology diagram according to an embodiment of the present application, where the topology connection is also formed by configuring the wireless channel simulator. In the logic topology diagram, four devices form a topology relation of two-to-two direct connection, namely, radio frequency signals sent by each device can be directly received by other devices.
Referring to fig. 8, fig. 8 is a fourth logic topology diagram according to an embodiment of the present application, where the topology connection is also formed by configuring the wireless channel simulator. In the logic topology diagram, four devices form a ring topology relationship, for example, radio frequency signals sent by a first test device can be directly received by tested devices, or can be received among the tested devices after being forwarded by a second test device and a third test device.
For the consistency test of network layer protocol in the wireless broadband ad hoc network of emergency command communication, the link maintenance function test, the route management function test and the data management function test are carried out, and the test sub-items and specific test operations contained in each test are as follows:
A. Testing a link maintenance function;
if the item to be tested is a link maintenance function test, setting the first logic topology diagram as a logic topology diagram corresponding to the link maintenance function test; the test sub-items of the link maintenance function test comprise a link layer detection link maintenance function sub-test and a network layer detection link maintenance function sub-test.
A1, the link layer detection link maintenance function is described as follows:
test purpose: and verifying that the tested network layer protocol can detect the link establishment, disconnection and recovery information of the node and the adjacent node according to the link layer, thereby correspondingly updating the routing state in the local routing table.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The test steps are as follows:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) The method comprises the steps that a tested device is started firstly, and after the tested device is started, a local routing table of the tested device is queried for 10 seconds;
3) Starting up the third test equipment, and in the starting-up initial configuration of the third test equipment, the network layer protocol of the third test equipment does not work, and inquiring a local routing table of the tested equipment after 6 seconds;
4) Configuring a wireless channel simulator, disconnecting the third test equipment from the tested equipment, and inquiring a local routing table of the tested equipment after 6 seconds;
5) And configuring a wireless channel simulator, recovering the connection between the third test equipment and the tested equipment, and inquiring the local routing table of the tested equipment after 6 seconds.
The expected results are as follows:
1) After the test step 2) is executed, the local routing table of the tested equipment is inquired to be empty;
2) After the test step 3) is executed, a route item of which the destination node is a third test device in a local route table of the tested device is queried;
3) After the test step 4) is executed, the local routing table of the tested equipment is inquired to be empty;
4) After the test step 5) is executed, the route item of the third test device, which is the destination node, in the local route table of the tested device is queried.
If the expected result is reached, the subtest result of the link layer detection link maintenance function subtest is that the test passes; if the expected result is not reached, the subtest result of the link layer detection link maintenance function subtest is that the test fails.
A2, the network layer detection link maintenance function subtest is described as follows:
test purpose: and verifying that the tested network layer protocol can detect the link establishment, disconnection and recovery information of the node and the adjacent node according to the route notification broadcast message, thereby correspondingly updating the route state in the local route table.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The test steps are as follows:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) The method comprises the steps that a tested device is started firstly, and after the tested device is started, a local routing table of the tested device is queried for 10 seconds;
3) Starting up the third test equipment, starting up the second test equipment after 10 seconds, and inquiring a local routing table of the tested equipment after 6 seconds;
4) Configuring a wireless channel simulator, disconnecting the second test equipment from the third test equipment, and inquiring a local routing table of the tested equipment after 6 seconds;
5) And configuring a wireless channel simulator, recovering the connection between the second test equipment and the third test equipment, and inquiring a local routing table of the tested equipment after 6 seconds.
The expected results are as follows:
1) After the test step 2) is executed, the local routing table of the tested equipment is inquired to be empty;
2) After the test step 3) is executed, two routing items of which the destination nodes are a third test device and a second test device are required to be inquired in a local routing table of the tested device;
3) After the test step 4) is executed, only the destination node in the local routing table of the tested equipment is inquired as one routing item of the second test equipment;
4) After the test step 5) is executed, two routing items of which the destination node is the third test device and the second test device are found in the local routing table of the tested device.
If the expected result is reached, the network layer detects that the subtest result of the link maintenance function subtest is that the test passes; if the expected result is not reached, the network layer detects that the sub-test result of the link maintenance function sub-test is that the test fails.
The embodiment can also judge whether the subtest result of the link layer detection link maintenance function subtest and the subtest result of the network layer detection link maintenance function subtest are both test passing or not, if yes, the test result of the link maintenance function test is judged to be test passing, and if not, the test result of the link maintenance function test is judged to be test failing.
B. Testing a route management function;
if the item to be tested is a route management function test, setting a logic topology diagram corresponding to each test subitem of the route management function test; the test sub-items of the route management function test comprise a route item establishment function sub-test, a route item update function sub-test and a route item deletion function sub-test; accordingly, the test operation of the test sub-item of the route management function test can be executed on the test equipment and the tested equipment based on the logic topology diagram corresponding to the test sub-item of the route management function test.
B1, the description of the route item establishment function subtest is as follows:
test purpose: the verification that the network layer protocol under test can detect the routing item of the new node through the received routing advertisement, and meanwhile, the verification that the network layer protocol under test can periodically broadcast the correct routing advertisement.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The test steps are as follows:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 6;
2) Starting up the tested device, the first test device, the second test device and the third test device in sequence;
3) After 30 seconds, inquiring a local routing table of the tested device;
4) Querying the second test device for the route advertisement message it received.
The expected results are as follows:
1) After the test step 3) is executed, three routing items of which the destination nodes are the first test equipment, the second test equipment and the third test equipment are required to be inquired in a local routing table of the tested equipment;
2) After the test step 4) is executed, the second test device should query the route notification that the second test device periodically receives the broadcast of the tested device every 3 seconds, and the route notification should include three route items of which the destination node is the first test device, the second test device and the third test device.
If the expected result is reached, the subtest result of the route item establishment function subtest is that the test passes; if the expected result is not reached, the subtest result of the routing item establishment function subtest is that the test fails.
B2, the description of the routing item update function subtest-1 is as follows:
test purpose: when the new adjacent node is detected at the link layer and the routing item of the node is locally detected, the detected network layer protocol can correctly update the routing item and broadcast the corresponding routing announcement.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) Starting up the tested device, the third testing device and the second testing device in sequence;
3) After 30 seconds, inquiring a local routing table of the tested device;
4) Reconfiguring the wireless channel emulator to construct a chain logic topology as shown in fig. 6;
5) Querying a local routing table of the tested device;
6) Querying the second test device for the route advertisement message it received.
The expected results are:
1) After the test step 3) is executed, a route item with a destination node being a second test device is found in a local route table of the tested device, the route Metric (Metric) is equal to 2, and the serial number of the route item is recorded;
2) After the test step 5) is executed, a route item with a destination node being the second test device exists in a local route table of the tested device, the Metric of the route item is equal to 1, and the serial number of the route item is larger than the serial number queried in the test step 3) by a multiple of 2;
3) After the test step 6) is executed, the second test device should be queried to receive the route notification broadcasted by the tested device, the route notification should contain the route item of which the destination node is the second test device, and the Metric and the serial number of the route item should be the same as the value queried in the test step 5).
If the expected result is reached, the subtest result of the routing item updating function subtest-1 is that the test passes; if the expected result is not reached, the subtest result of the routing item update function subtest-1 is that the test fails.
B3, the routing item update function subtest-2 is described as follows:
test purpose: and verifying that when the link layer detects the link disconnection of the original adjacent node and the routing item of the node exists locally, the tested network layer protocol can correctly update the routing item and broadcast the corresponding routing announcement.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 7;
2) Starting up the tested device, the third testing device and the second testing device in sequence;
3) After 30 seconds, inquiring a local routing table of the tested device;
4) Shutting down the third test equipment;
5) Immediately inquiring a local routing table of the tested device;
6) While querying the second test device for the route advertisement message it received.
The expected results include:
1) After the test step 3) is executed, a route item with a destination node being a third test device is searched in a local route table of the tested device, the Metric is equal to 1, and the serial number of the route item is recorded;
2) After the test step 5) is executed, inquiring that the Metric of a route item of which the destination node is a third test device in a local route table of the tested device is equal to infinity within 1-2 seconds after the node is turned off, wherein the serial number of the route item is the serial number which is inquired in the test step 3) plus 1;
3) After the test step 6) is executed, the second test device should be queried to receive the route notification broadcasted by the tested device, the route notification should contain the route item of which the destination node is the third test device, and the Metric and the serial number of the route item should be the same as the value queried in the test step 5).
If the expected result is reached, the subtest result of the routing item updating function subtest-2 is that the test passes; if the expected result is not reached, the subtest result of the routing item update function subtest-2 is that the test fails.
B4: the routing entry update functionality subtest-3 is described as follows:
test purpose: and verifying that when the network layer receives the route advertisement broadcast, the tested network layer protocol can correctly update the route item when the route item serial number of a certain destination node in the route advertisement is more than the local serial number by a multiple of 2, and can broadcast the corresponding route advertisement.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) The tested device, the third testing device, the second testing device and the first testing device are started in sequence;
3) After 30 seconds, inquiring a local routing table of the tested device;
4) Reconfiguring the wireless channel emulator to construct a chain logic topology as shown in fig. 6;
5) Querying a local routing table of the tested device;
6) While querying the third test device for the route advertisement message it received.
The expected results include:
1) After the test step 3) is executed, a route item with a destination node being the first test device is searched in a local route table of the tested device, the Metric is equal to 3, and the serial number of the route item is recorded;
2) After the test step 5) is executed, the Metric of the route item with the destination node being the first test device in the local route table of the tested device is required to be inquired, and the serial number of the route item is equal to 2 and is larger than the serial number inquired in the test step 3) by a multiple of 2;
3) After the test step 6) is executed, the third test device should be queried to receive the route notification broadcasted by the tested device, the route notification should include the route item of which the destination node is the first test device, and the Metric and the serial number of the route item should be the same as the value queried in the test step 5).
If the expected result is reached, the subtest result of the routing item updating function subtest-3 is that the test passes; if the expected result is not reached, the subtest result of the routing item update function subtest-3 is that the test fails.
B5, the description of the routing item updating function subtest-4 is as follows:
test purpose: and verifying that when the network layer receives the route advertisement broadcast, the tested network layer protocol can correctly update the route item when the route item serial number of a certain destination node in the route advertisement is larger than the local serial number by an odd value, and can broadcast the corresponding route advertisement.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) The tested device, the third testing device, the second testing device and the first testing device are started in sequence;
3) After 30 seconds, the first test equipment is shut down;
4) Querying a local routing table of the tested device;
5) Restarting the first test equipment, and after 10 seconds, re-inquiring a local routing table of the tested equipment;
6) While querying the third test device for the route advertisement message it received.
The expected results include:
1) After the test step 4) is executed, a route item with a destination node being the first test device exists in a local route table of the tested device, the Metric is equal to infinity, and the serial number of the route item is an odd number value;
2) After the test step 5) is executed, the Metric of the routing item with the destination node being the first test device in the local routing table of the tested device is required to be inquired to be equal to 3, and the serial number of the routing item is even;
3) After the test step 6) is executed, the third test device should be queried to receive the route notification broadcasted by the tested device, the route notification should include the route item of which the destination node is the first test device, and the Metric and the serial number of the route item should be the same as the value queried in the test step 5).
If the expected result is reached, the subtest result of the routing item updating function subtest-4 is that the test passes; if the expected result is not reached, the subtest result of the routing item update function subtest-4 is that the test fails.
B6, the routing item update function subtest-5 is described as follows:
test purpose: and verifying that when the broadcast of the route advertisement is received at the network layer, and when the sequence number of a route item of a certain destination node in the route advertisement is the same as the local sequence number, the tested network layer protocol should select the value of the Metric of the local routing table as the value of the Metric of the local routing table.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 3.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a ring logic topology as shown in fig. 8;
2) The tested device, the third testing device, the second testing device and the first testing device are started in sequence;
3) After 30 seconds, inquiring a local routing table of the tested equipment, inquiring 1 time every 3 seconds, and continuously inquiring 20 times;
4) Meanwhile, the third test equipment inquires the received route notification message, and the route notification message is inquired 1 time every 3 seconds and 20 times continuously.
The expected results include:
1) After the test step 3) is executed, the method that the destination node exists in the local routing table of the tested device is the routing item of the first test device is always equal to 1, and the next hop node of the routing item is always the first test device;
2) After the test step 4) is executed, it should be queried that the third test device receives the route notification broadcasted by the tested device each time, and each route notification includes a route item whose destination node is the first test device, and the Metric and the next-hop node of the route item are the same as the values queried in the test step 3).
If the expected result is reached, the subtest result of the routing item updating function subtest-5 is that the test passes; if the expected result is not reached, the subtest result of the routing item update function subtest-5 is that the test fails.
B7, the description of the route item deletion function subtest-1 is as follows:
test purpose: and verifying the tested network layer protocol to obtain the Metric of the destination node to be infinite through the received route announcement, and further deleting the route item corresponding to the node.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps are as follows:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) Starting up the tested device, the third testing device and the second testing device in sequence;
3) After 30 seconds, inquiring a local routing table of the tested device;
4) And shutting down the second test equipment, and re-inquiring the local routing table of the tested equipment after 10 seconds.
The expected results include:
1) After the test step 3) is executed, a route item of which the destination node is a second test device is found in a local route table of the tested device;
2) After the test step 4) is executed, no route item of which the destination node is the second test device exists in the local route table of the tested device.
If the expected result is reached, the subtest result of the routing item deleting function subtest-1 is that the test passes; if the expected result is not reached, the subtest result of the routing item deleting function subtest-1 is that the test fails.
B8, the description of the route item deletion function subtest-2 is as follows:
test purpose: the tested network layer protocol is verified to be capable of maintaining a timer overtime mechanism through the route announcement of the adjacent node, detecting that the target node is not on the network, and further deleting the route item corresponding to the node.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) Starting up the tested equipment and the third testing equipment in sequence;
3) After 30 seconds, inquiring a local routing table of the tested device;
4) And shutting down the third test equipment, and re-inquiring the local routing table of the tested equipment after 30 seconds.
The expected results include:
1) After the test step 3) is executed, a route item with a destination node as a third test device exists in a local route table of the tested device;
2) After the test step 4) is executed, no route item of which the destination node is the third test device exists in the local route table of the tested device.
If the expected result is reached, the subtest result of the routing item deleting function subtest-2 is that the test passes; if the expected result is not reached, the subtest result of the routing item deleting function subtest-2 is that the test fails.
The embodiment can also judge whether the test result of the route item establishment function subtest, the test result of the route item update function subtest-1, the test result of the route item update function subtest-2, the test result of the route item update function subtest-3, the test result of the route item update function subtest-4, the test result of the route item update function subtest-5, the test result of the route item deletion function subtest-1 and the test result of the route item deletion function subtest-2 are all test passing, if yes, the test result of the route management function test is test passing, and if not, the test result of the route management function test is test failing.
C. Testing a data processing function;
if the item to be tested is a data processing function test, setting the first logic topology diagram as a logic topology diagram corresponding to the link maintenance function test; the test sub-items of the data processing function test comprise a unicast service sending function sub-test, a unicast service receiving function sub-test, a multicast service sending function sub-test, a multicast service receiving function sub-test, a multicast service sending function sub-test and a multicast service receiving function sub-test.
The description of the sub-test of the unicast service transmission function is as follows:
test purpose: and verifying that the tested network layer protocol has a unicast service sending function.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) Starting up each device (a first test device and a tested device) in turn;
3) After 30 seconds, unicast test data is sent from the tested equipment, and the target node is first test equipment;
4) Inquiring whether the first test equipment receives unicast test data or not, and checking the correctness of the test data.
The expected results are: the first test device should be queried to receive unicast test data sent by the tested device, and the data content is correct.
If the expected result is reached, the sub-test result of the sub-test of the unicast service sending function is that the test passes; if the expected result is not reached, the sub-test result of the sub-test of the unicast service sending function is that the test fails.
The description of the sub-test of the unicast service receiving function is as follows:
test purpose: and verifying that the tested network layer protocol has a unicast service receiving function.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) Starting up each device (a first test device and a tested device) in turn;
3) After 30 seconds, unicast test data is sent out from the first test equipment, and the target node is the tested equipment;
4) Inquiring whether the tested device receives unicast test data or not, and checking the correctness of the test data.
The expected results include: the tested device should be queried to receive unicast test data sent by the first test device, and the data content is correct.
If the expected result is reached, the sub-test result of the sub-test of the unicast service receiving function is that the test passes; if the expected result is not reached, the sub-test result of the sub-test of the unicast service receiving function is that the test fails.
The description of the sub-test of the multicast service sending function is as follows:
test purpose: and verifying that the tested network layer protocol has a multicast service sending function.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) Starting up the devices (a first test device, a second test device, a third test device and a tested device) in sequence;
3) After 30 seconds, sending out multicast test data from the tested device;
4) Inquiring whether the first test device, the second test device and the third test device all receive multicast test data or not, and checking the correctness of the test data.
The expected results are: the first test device, the second test device and the third test device should be queried to all receive the multicast test data sent by the tested device, and the content of the data received by each device is all correct.
If the expected result is reached, the subtest result of the subtest of the multicast service sending function is that the test passes; if the expected result is not reached, the subtest result of the subtest of the multicast service sending function is that the test fails.
The description of the sub-test of the multicast service receiving function is as follows:
Test purpose: and verifying that the tested network layer protocol has a multicast service receiving function.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) Starting up each device (a first test device and a tested device) in turn;
3) After 30 seconds, sending out multicast test data from the first test device;
4) Inquiring whether the tested device receives the multicast test data or not, and checking the correctness of the test data.
The expected results are: the tested device should be queried to receive the multicast test data, and the received data content is correct.
If the expected result is reached, the subtest result of the subtest of the multicast service receiving function is that the test passes; if the expected result is not reached, the subtest result of the subtest of the multicast service receiving function is that the test fails.
The description of the sub-test of the multicast service sending function is as follows:
test purpose: and verifying that the tested network layer protocol has a multicast service sending function.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) Starting up each device in turn, and configuring tested device, first test device and third test device as a multicast group;
3) After 30 seconds, multicast test data is sent out from the tested equipment;
4) Inquiring whether the first test device, the second test device and the third test device receive multicast test data or not, and checking the correctness of the test data.
The expected results are: the first test device and the third test device can receive the multicast test data sent by the tested device, and the data content received by each device is correct; meanwhile, the second test device should be queried to not receive any multicast test data sent by the tested device.
If the expected result is reached, the subtest result of the subtest of the multicast service sending function is that the test passes; if the expected result is not reached, the subtest result of the subtest of the multicast service sending function is that the test fails.
The description of the sub-test of the multicast service receiving function is as follows:
test purpose: and verifying that the tested network layer protocol has a multicast service receiving function.
Test environment: the physical topology diagram of the test environment is built as shown in fig. 4.
The testing steps comprise:
1) Configuring a wireless channel simulator to form a chain logic topology shown in fig. 5;
2) Starting up each device in turn, and configuring tested device, first test device and third test device as a multicast group;
3) After 30 seconds, multicast test data is sent out from the first test equipment;
4) Inquiring whether the tested device receives the multicast test data or not, and checking the correctness of the test data.
The expected results are: the tested device should be inquired that multicast test data is received, and the received data content is correct.
If the expected result is reached, the subtest result of the subtest of the multicast service receiving function is that the test passes; if the expected result is not reached, the subtest result of the subtest of the multicast service receiving function is that the test fails.
The embodiment can also judge whether the test result of the unicast service sending function subtest, the test result of the unicast service receiving function subtest, the test result of the multicast service sending function subtest, the test result of the multicast service receiving function subtest, the test result of the multicast service sending function subtest and the test result of the multicast service receiving function subtest are all test passing or not, if yes, the test result of the data processing function test is judged to be test passing, and if not, the test result of the data processing function test is judged to be test failing.
The embodiment can also judge whether the test result of the link maintenance function test, the test result of the route management function test and the test result of the data processing function test are all test passing, if yes, the tested network layer protocol is judged to pass the consistency test, and if not, the tested network layer protocol is judged to not pass the consistency test.
The embodiment of the application provides a consistency test system of a network layer protocol, which is applied to a computer connected with tested equipment and test equipment, wherein the tested equipment and the test equipment are respectively connected with a wireless channel simulator through a radio frequency feeder line, a protocol stack operated by the test equipment comprises a preset network layer protocol passing a consistency test, the protocol stack operated by the tested equipment comprises a tested network layer protocol, and the consistency test system of the network layer protocol comprises:
the logic topology setting module is used for determining a plurality of items to be tested of the tested network layer protocol according to the network layer function and setting a corresponding logic topology diagram for the items to be tested;
the logic connection adjustment module is used for sending a control instruction to the wireless channel simulator according to the logic topological graph so as to enable the wireless channel simulator to adjust the logic connection relation between the test equipment and the tested equipment;
The test module is used for executing test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph;
the result output module is used for judging that the tested network layer protocol fails the consistency test if the test result of the item to be tested is that the test fails; and the network layer protocol to be tested is also used for judging that the network layer protocol to be tested passes the consistency test if the test results of all the items to be tested pass the test.
In the scheme provided by the embodiment, the tested equipment and the testing equipment are connected with the computer, and the tested equipment and the testing equipment are respectively connected with the wireless channel simulator through the radio frequency feeder. The embodiment determines a plurality of items to be tested of a tested network layer protocol according to the function of the network layer, and sends a control instruction to the wireless channel simulator to adjust the logic connection relationship between the test equipment and the tested equipment before testing each item to be tested. After the test operation is carried out, if the test result is that the test is not passed, the tested network layer protocol is judged to not pass the consistency test, and if the test result of all the items to be tested is that the test is passed, the tested network layer protocol is judged to pass the consistency test. The embodiment can carry out consistency test on network layer protocols in the emergency command wireless broadband ad hoc network, and ensure interconnection and intercommunication of the emergency command wireless broadband ad hoc network devices of different manufacturers.
Further, the method further comprises the following steps:
the topology map planning module is used for counting the number of the devices of the test device connected with the computer before setting the corresponding logic topology map for the item to be tested; and is further configured to generate a plurality of logical topologies based on the number of devices.
Further, if the number of devices is 3 and the test device includes a first test device, a second test device, and a third test device, the topology map planning module is configured to set a first logical topology map, a second logical topology map, a third logical topology map, and a fourth logical topology map according to a preset rule;
in the first logic topological graph, the first test device, the second test device, the third test device and the tested device sequentially form chain topological connection; in the second logic topological graph, the first test device, the second test device, the tested device and the third test device sequentially form chain topological connection; in the third logic topological graph, topological connection exists among any two devices among the first test device, the second test device, the third test device and the tested device; in the fourth logic topology diagram, the first test device, the second test device, the third test device and the tested device sequentially form ring topology connection.
Further, if the item to be tested is a link maintenance function test, the process of setting the corresponding logical topology map for the item to be tested by the logical topology setting module includes: setting the first logic topology diagram as a logic topology diagram corresponding to the link maintenance function test; the test sub-items of the link maintenance function test comprise a link layer detection link maintenance function sub-test and a network layer detection link maintenance function sub-test.
Further, if the item to be tested is a route management function test, the process of setting the corresponding logical topology map for the item to be tested by the logical topology setting module includes: setting a logic topological graph corresponding to each test subitem of the route management function test; the test sub-items of the route management function test comprise a route item establishment function sub-test, a route item update function sub-test and a route item deletion function sub-test;
correspondingly, the process of the test module executing the test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph comprises the following steps: and executing the test operation of the test sub-items of the route management function test on the test equipment and the tested equipment based on the logic topological graph corresponding to the test sub-items of the route management function test.
Further, if the item to be tested is a data processing function test, the process of setting the corresponding logic topology map for the item to be tested by the logic topology setting module includes: setting the first logic topology diagram as a logic topology diagram corresponding to the link maintenance function test; the test sub-items of the data processing function test comprise a unicast service sending function sub-test, a unicast service receiving function sub-test, a multicast service sending function sub-test, a multicast service receiving function sub-test, a multicast service sending function sub-test and a multicast service receiving function sub-test.
Since the embodiments of the system portion and the embodiments of the method portion correspond to each other, the embodiments of the system portion refer to the description of the embodiments of the method portion, which is not repeated herein.
The present application also provides a storage medium having stored thereon a computer program which, when executed, performs the steps provided by the above embodiments. The storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The application also provides a computer, the tested equipment and the testing equipment are respectively connected with the wireless channel simulator through radio frequency feeder lines, the protocol stack operated by the testing equipment comprises a preset network layer protocol passing the consistency test, the protocol stack operated by the tested equipment comprises a tested network layer protocol, the computer is operated with upper computer software, and the upper computer software realizes the steps of the embodiment when in operation. The computer is connected with the tested equipment and the testing equipment through a switch.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. The method is characterized by being applied to a computer connected with tested equipment and test equipment, wherein the tested equipment and the test equipment are respectively connected with a wireless channel simulator through a radio frequency feeder line, a protocol stack operated by the test equipment comprises a preset network layer protocol passing a consistency test, the protocol stack operated by the tested equipment comprises the tested network layer protocol, and the method for testing the consistency of the network layer protocol comprises the following steps:
Determining a plurality of items to be tested of the tested network layer protocol according to the network layer function, and setting a corresponding logic topological graph for the items to be tested;
sending a control instruction to the wireless channel simulator according to the logic topological graph so that the wireless channel simulator adjusts the logic connection relation between the test equipment and the tested equipment;
executing test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph;
if the test result of the item to be tested is that the test fails, judging that the tested network layer protocol fails the consistency test;
and if all the test results of the items to be tested pass the test, judging that the tested network layer protocol passes the consistency test.
2. The method for testing the consistency of network layer protocol according to claim 1, further comprising, before setting the corresponding logical topology for the item to be tested:
counting the number of the test devices connected with the computer;
and generating various logic topological diagrams according to the number of the devices.
3. The method for testing the consistency of network layer protocol according to claim 2, wherein if the number of devices is 3 and the test devices include a first test device, a second test device and a third test device, generating a plurality of logic topology maps according to the number of devices comprises:
Setting a first logic topological graph, a second logic topological graph, a third logic topological graph and a fourth logic topological graph according to preset rules;
in the first logic topological graph, the first test device, the second test device, the third test device and the tested device sequentially form chain topological connection; in the second logic topological graph, the first test device, the second test device, the tested device and the third test device sequentially form chain topological connection; in the third logic topological graph, topological connection exists among any two devices among the first test device, the second test device, the third test device and the tested device; in the fourth logic topology diagram, the first test device, the second test device, the third test device and the tested device sequentially form ring topology connection.
4. A method for testing the consistency of a network layer protocol according to claim 3, wherein the step of setting a corresponding logical topology for the item to be tested comprises:
if the item to be tested is a link maintenance function test, setting the first logic topology diagram as a logic topology diagram corresponding to the link maintenance function test; the test sub-items of the link maintenance function test comprise a link layer detection link maintenance function sub-test and a network layer detection link maintenance function sub-test.
5. A method for testing the consistency of a network layer protocol according to claim 3, wherein the step of setting a corresponding logical topology for the item to be tested comprises:
if the item to be tested is a route management function test, setting a logic topology diagram corresponding to each test subitem of the route management function test; the test sub-items of the route management function test comprise a route item establishment function sub-test, a route item update function sub-test and a route item deletion function sub-test;
correspondingly, executing the test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph comprises the following steps:
and executing the test operation of the test sub-items of the route management function test on the test equipment and the tested equipment based on the logic topological graph corresponding to the test sub-items of the route management function test.
6. A method for testing the consistency of a network layer protocol according to claim 3, wherein the step of setting a corresponding logical topology for the item to be tested comprises:
if the item to be tested is a data processing function test, setting the first logic topology diagram as a logic topology diagram corresponding to the link maintenance function test; the test sub-items of the data processing function test comprise a unicast service sending function sub-test, a unicast service receiving function sub-test, a multicast service sending function sub-test, a multicast service receiving function sub-test, a multicast service sending function sub-test and a multicast service receiving function sub-test.
7. The utility model provides a network layer protocol's conformance test system which characterized in that is applied to the computer that is connected with test equipment and test equipment, test equipment and test equipment are respectively through radio frequency feeder with wireless channel simulator is connected, the agreement stack that test equipment operated contains the default network layer protocol that has passed conformance test, the agreement stack that test equipment operated contains the network layer protocol that is surveyed, the conformance test system of network layer protocol includes:
the logic topology setting module is used for determining a plurality of items to be tested of the tested network layer protocol according to the network layer function and setting a corresponding logic topology diagram for the items to be tested;
the logic connection adjustment module is used for sending a control instruction to the wireless channel simulator according to the logic topological graph so as to enable the wireless channel simulator to adjust the logic connection relation between the test equipment and the tested equipment;
the test module is used for executing test operation corresponding to the item to be tested on the test equipment and the tested equipment based on the logic topological graph;
the result output module is used for judging that the tested network layer protocol fails the consistency test if the test result of the item to be tested is that the test fails; and the network layer protocol to be tested is also used for judging that the network layer protocol to be tested passes the consistency test if the test results of all the items to be tested pass the test.
8. The computer is characterized in that tested equipment and test equipment are respectively connected with the computer, the tested equipment and the test equipment are respectively connected with a wireless channel simulator through radio frequency feeder lines, a protocol stack operated by the test equipment comprises a preset network layer protocol passing a consistency test, the protocol stack operated by the tested equipment comprises a tested network layer protocol, upper computer software is operated in the computer, and the upper computer software realizes the steps of the network layer protocol consistency test method according to any one of claims 1 to 6 when in operation.
9. The computer of claim 8, wherein the computer is connected to the device under test and the test device through a switch.
10. A storage medium having stored therein computer executable instructions which when loaded and executed by a processor implement the steps of the network layer protocol conformance test method of any one of claims 1 to 6.
CN202310436109.9A 2023-04-21 2023-04-21 Method, system, computer and storage medium for testing consistency of network layer protocol Pending CN116599876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310436109.9A CN116599876A (en) 2023-04-21 2023-04-21 Method, system, computer and storage medium for testing consistency of network layer protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310436109.9A CN116599876A (en) 2023-04-21 2023-04-21 Method, system, computer and storage medium for testing consistency of network layer protocol

Publications (1)

Publication Number Publication Date
CN116599876A true CN116599876A (en) 2023-08-15

Family

ID=87605323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310436109.9A Pending CN116599876A (en) 2023-04-21 2023-04-21 Method, system, computer and storage medium for testing consistency of network layer protocol

Country Status (1)

Country Link
CN (1) CN116599876A (en)

Similar Documents

Publication Publication Date Title
US8699493B2 (en) Routing validation
JP4018638B2 (en) Method for providing topology awareness information in an IP network
Elhadef et al. Diagnosing mobile ad-hoc networks: two distributed comparison-based self-diagnosis protocols
JP2006245849A (en) Communication apparatus
CN113938407B (en) Data center network fault detection method and device based on in-band network telemetry system
WO2016177049A1 (en) Method and device for achieving capacity expansion and reduction of access apparatus
CN113347059B (en) In-band network telemetering optimal detection path planning method based on fixed probe position
CN111030296B (en) Intelligent substation network topology step-by-step sniffing method based on LLDP protocol
CN100525244C (en) Method for realizing FEC bidirectional forwarding detection
CN111565474A (en) Method and system for establishing communication connection between AP (access point) equipment and target terminal based on Mesh network
CN101771604A (en) Routing detection method, system and intermediate routing device
CN103312765A (en) Reachability validation of nodes of a network of an industrial automation and control system
CN113727379A (en) Network visualization processing method and device, computer equipment and storage medium
CN101969395B (en) Method for configuring code, method and system for detecting path and network equipment
WO2017215383A1 (en) Network element configuration method and device, and network element management method and device
CN116599876A (en) Method, system, computer and storage medium for testing consistency of network layer protocol
CN106254424B (en) Web camera configuration method and device
AU2021200805B2 (en) Method for monitoring apparatus
JP5333793B2 (en) Topology specifying method and topology specifying device
WO2012131960A1 (en) Communication device, path search method and path search program
Bolton et al. Analyses of the reverse path forwarding routing algorithm
US8259619B2 (en) Topology specifying method and topology specifying apparatus
CN110611620B (en) Link updating method and device
CN100426774C (en) Ring-closure determining method and device for resilient packet ring
KR102408172B1 (en) Method and device of providing a solution for network interruption by remote automatic network analysis under network interruption

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination