A broadband sensor network protocol consistency detection system and method
By introducing the main controller, authentication management module and execution module into the broadband sensor network protocol consistency detection system, protocol consistency detection of the nodes to be tested is solved, and the problem of lack of multi-hop sensor network authentication protocol consistency detection in the prior art is solved, ensuring protocol consistency of the communication process.
Patent Information
- Application Number
- CN202310062194.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-18
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2043-01-18
AI Technical Summary
The prior art lacks a consistency detection system and method of multi-hop sensor network authentication protocol based on the ternary peer authentication mode, resulting in strict requirements in the communication process of authentication interaction but lack of effective detection means.
A broadband sensor network protocol consistency detection system is provided, including a main controller, an authentication management module and an execution module. Through analog access nodes, analog aggregation nodes and analog broadband terminals, protocol consistency detection of nodes to be tested, including communication protocol consistency detection and authentication communication protocol consistency detection.
The protocol consistency verification of the broadband sensor network communication protocol and the consistency detection of the multi-hop sensor network authentication protocol in the ternary peer authentication mode are realized, ensuring that the communication process of the authentication interaction meets the protocol requirements and fills the gap in the existing technology.
Smart Images

Figure CN116055369B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a broadband sensor network protocol consistency detection system and method, so as to realize protocol consistency detection of terminal devices, relay devices and network management devices. Background Art
[0002] A protocol is a series of specifications that ensure that each communication entity in a communication system can interact normally. Protocol consistency testing is an important aspect of protocol testing, which aims to detect the degree of compliance between the protocol implementation under test and the protocol specification. For the network architecture of broadband sensor networks, the protocol consistency detection system needs to support single-hop testing such as terminal communication parameter configuration, media access control channel scheduling, access authentication process, and packet fragmentation process, and also needs to support the node under test as a relay node for simulated access nodes and simulated aggregation nodes to complete the verification of the networking process and network topology.
[0003] The broadband sensor network adopts a three-way peer authentication model, such as Figure 1 As shown, the ternary peer-to-peer authentication mode includes five steps: ① The access point (master device) sends a message "Identity authentication starts" to the terminal (slave device); ② The terminal sends a reply to the access point "This is my identity information, please authenticate, and please show me your identity information and the third party's identity authentication result for you"; ③ The access point sends a message to the authentication server "This is the identity information of me and the terminal, please authenticate and feedback the result"; ④ The authentication server sends a message to the access point "This is the identity authentication result for you and the terminal", at which time the access point can determine whether the terminal identity is legal; ⑤ The access point sends the authentication result of the authentication server to the terminal. After receiving the authentication result, the terminal determines whether the identity of the access point is legal based on the previously received access point identity information and the authentication result of the authentication server.
[0004] When performing authentication, a multi-hop sensor network based on a ternary peer-to-peer authentication model requires the end devices at all levels to report authentication requests in order from bottom to top, and at the same time requires the end devices at all levels to authenticate in order from top to bottom. There are strict requirements for the communication process of authentication interaction, and no omissions are allowed in the devices at all levels. At present, there is still a lack of a consistency detection system and method for the multi-hop sensor network authentication protocol based on a ternary peer-to-peer authentication model. Summary of the invention
[0005] To solve the above problems in the prior art, the present invention provides a broadband sensor network protocol consistency detection system and method to realize protocol consistency verification of broadband sensor network communication protocol and consistency detection of multi-hop sensor network authentication protocol based on ternary peer authentication mode.
[0006] The present invention provides a broadband sensor network protocol consistency detection system, comprising a main controller, an authentication management module and an execution module connected in sequence, wherein the main controller and the execution module are both connected to a node to be tested, and the execution module comprises a simulated access node, a simulated aggregation node and a simulated broadband terminal, wherein the main controller is configured to: control the operation of the authentication management module; the authentication management module is configured to: provide authentication services for the node to be tested, the simulated access node, the simulated aggregation node and the simulated broadband terminal, so that the node to be tested uses the authentication management module to analyze messages and processes in the authentication process; the execution module is configured to: use the node to be tested as a relay node of the simulated access node and the simulated aggregation node to complete the verification of the networking process and the network topology; and simultaneously enable the simulated broadband terminal to access the node to be tested to complete the node-side consistency verification.
[0007] Furthermore, the main controller includes a power supply, a memory, a main board and an operating system, the power supply is connected to the memory and the main board respectively, the memory and the main board are both connected to the operating system, and the operating system is connected to the authentication management module.
[0008] Furthermore, the analog access node, the analog aggregation node and the analog broadband terminal are all connected to the main controller by wire.
[0009] Furthermore, the simulated access node, the simulated aggregation node and the simulated broadband terminal are all wirelessly connected to the node to be tested.
[0010] Furthermore, the authentication management module includes an identification server.
[0011] Furthermore, the execution module has built-in software with functions of parameter configuration, test item selection, message storage and message detection.
[0012] The present invention also provides a broadband sensor network protocol consistency detection method, including communication protocol consistency detection and authentication communication protocol consistency detection, wherein the communication protocol consistency detection comprises: step S1, according to the above-mentioned broadband sensor network protocol consistency detection system, establish a communication protocol consistency detection architecture, start the power supply, so that the main controller, the authentication management module and the execution module start to run; step S2, use the simulated broadband terminal to access the simulated aggregation node, and the simulated aggregation node to access the simulated access node for self-test, so that the execution module can normally send and receive messages; step S3, start the built-in software of the execution module, configure the communication parameters according to the test requirements and select the test items; step S4, start the test, store the messages collected by the execution module in the database, and The message is detected to obtain the test result; the authentication communication protocol consistency detection includes: step S1', according to the above-mentioned broadband sensor network protocol consistency detection system, a ternary peer-to-peer authentication communication protocol consistency detection architecture is established, and the identification server, the simulated access node, the simulated aggregation node and the node to be tested are connected to the main controller; step S2', based on the main controller, the time synchronization of the identification server, the simulated access node, the simulated aggregation node and the node to be tested is completed; step S3', start authentication, and record the authentication message and message sending and receiving time of the identification server, the simulated access node, the simulated aggregation node and the node to be tested during the authentication process; step S4', according to the protocol, the message is detected to obtain the test result.
[0013] Further, the step S4 includes: step S41, parsing each field of the collected message to obtain the meaning of the message; step S42, judging whether the content and format of the message comply with the protocol requirements, if so, proceeding to step S43; if not, judging that the node to be tested has failed the test; step S43, comparing the order of the message with the order specified by the protocol to judge whether it complies with the process required by the protocol, if so, judging that the node to be tested has passed the test; if not, judging that the node to be tested has failed the test.
[0014] Further, the step S4' includes: step S41', parsing each field of the collected message to obtain the meaning of the message; step S42', judging whether the content and format of the message meet the protocol requirements, if so, proceeding to step S43'; if not, judging that the node to be tested has not passed the test; step S43', judging whether the message has omissions, and judging whether the interaction sequence of the message meets the protocol requirements, if the message has no omissions or the interaction sequence of the message meets the protocol requirements, judging that the node to be tested has passed the test; otherwise, judging that the node to be tested has not passed the test.
[0015] The invention provides a broadband sensor network protocol consistency detection system, through which a communication protocol consistency detection architecture and a communication protocol consistency detection architecture of ternary peer authentication are established, filling the gap of consistency detection of multi-hop sensor network authentication protocol based on ternary peer authentication mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is the principle diagram of the ternary peer-to-peer authentication mode in broadband sensor networks.
[0017] Figure 2 It is a structural block diagram of a broadband sensor network protocol consistency detection system according to the present invention.
[0018] Figure 3 The present invention is a flowchart of communication protocol consistency detection in the broadband sensor network protocol consistency detection method.
[0019] Figure 4 It is a schematic diagram of a communication protocol consistency detection architecture for authentication in a broadband sensor network protocol consistency detection method according to the present invention. DETAILED DESCRIPTION
[0020] The preferred embodiments of the present invention are given below in conjunction with the accompanying drawings and described in detail.
[0021] like Figure 2 As shown, a broadband sensor network protocol consistency detection system provided by the present invention includes a main controller 10, an authentication management module 20 and an execution module 30 connected in sequence, and the main controller 10 and the execution module 30 are both connected to a node to be tested 40.
[0022] The main controller 10 is configured to control the operation of the authentication management module 20. Specifically, the main controller 10 includes a power supply 11, a memory 12, a main board 13, and an operating system 14. The power supply 11 is connected to the memory 12 and the main board 13, respectively, and is used to supply power to all hardware devices. The memory 12 and the main board 13 are both connected to the operating system 14 in communication, and the operating system 14 supports the normal operation of the authentication management module 20.
[0023] The execution module 30 includes a simulated access node 31, a simulated aggregation node 32 and a simulated broadband terminal 33. The simulated access node 31, the simulated aggregation node 32 and the simulated broadband terminal 33 are all connected to the main controller 10 by wire, and are all wirelessly connected to the node 40 to be tested. The execution module 30 is configured to: use the node 40 to be tested as a relay node for the simulated access node 31 and the simulated aggregation node 32 to complete the verification of the networking process and network topology; at the same time, the simulated broadband terminal 33 is connected to the node 40 to complete the node-side consistency verification of the communication parameter configuration, media access control channel scheduling, access authentication process, and packet segmentation process. The execution module 30 is built with existing software for completing functions such as parameter configuration, selecting test items, storing messages, and detecting messages.
[0024] The authentication management module 20 is a trusted party in the ternary peer-to-peer architecture identity authentication, which includes an authentication server. The authentication management module 20 is configured to provide authentication services for the node to be tested 40, the simulated access node 31, the simulated aggregation node 32, and the simulated broadband terminal 33, so that the node to be tested 40 uses the authentication server to analyze the messages and processes in the authentication process, so that the consistency detection system has the ability to perform protocol consistency testing on the communication process authenticated by the authentication server of this type.
[0025] Based on the above broadband sensor network protocol consistency detection system, the present invention also provides a broadband sensor network protocol consistency detection method, which includes communication protocol consistency detection and authentication communication protocol consistency detection, and the two processes can be performed independently.
[0026] Among them, Figure 3 As shown, the communication protocol consistency detection includes the following steps:
[0027] Step S1, according to the broadband sensor network protocol consistency detection system, a communication protocol consistency detection architecture is established, and the power supply 11 is started to enable the main controller 10, the authentication management module 20 and the execution module 30 to start running.
[0028] Step S2, using the simulated broadband terminal 33 to access the simulated aggregation node 32, and the simulated aggregation node 32 to access the simulated access node 31 to perform self-checking, so that the execution module 30 can normally send and receive messages.
[0029] Step S3, start the software built into the execution module 30, configure the communication parameters according to the test requirements and select the test items.
[0030] The communication parameters include the ID and communication frequency band of the node to be tested 40. After the communication parameters are configured, they are saved, and the device to be tested is configured according to the parameters in the subsequent test process. After the test items are selected, the test process is optimized according to the selected test items, and the test items in which the process judgment and message parsing do not interfere with each other are tested in parallel using a multi-threaded method.
[0031] Step S4, starting the test, storing the messages collected by the execution module 30 into the database, and detecting the messages according to the protocol to obtain the test results.
[0032] Specifically, step S4 includes:
[0033] Step S41, parse each field of the collected message to obtain the meaning of the message.
[0034] Step S42, judging whether the content and format of the message meet the protocol requirements, if yes, proceeding to step S43; if no, judging that the node to be tested 40 fails the test.
[0035] Step S43, compare the order of the messages with the order specified by the protocol to determine whether they meet the process required by the protocol. If yes, it is determined that the node under test 40 has passed the test; if no, it is determined that the node under test 40 has failed the test.
[0036] After obtaining the test results, step S5 may be performed:
[0037] Output the test results according to the test requirements and store them in the local database. The test results can be exported to the test report, which includes the test time, test conclusion, test description, test record, test pass rate and other information. The test data can be displayed on the data management page, and the test records can be searched and deleted as needed. Finally, the test ends.
[0038] The authentication communication protocol consistency test includes the following steps:
[0039] Step S1 ′, according to the broadband sensor network protocol consistency detection system, a three-way peer authentication communication protocol consistency detection architecture is established, and the authentication server, simulated access node, simulated aggregation node and the node to be tested are connected to the main controller in a wired manner.
[0040] Step S2', based on the main controller, complete the time synchronization of the authentication server, the simulated access node, the simulated aggregation node and the node to be tested.
[0041] Step S3', start authentication, and record the authentication messages and message sending and receiving times of the authentication server, simulated access node, simulated aggregation node and node to be tested during the authentication process.
[0042] Step S4', testing the message according to the protocol to obtain a test result.
[0043] Specifically, step S4' includes:
[0044] Step S41', parse each field of the collected message to obtain the meaning of the message.
[0045] Step S42', judging whether the content and format of the acquired message meet the protocol requirements, if so, proceeding to step S43'; if not, judging that the node to be tested fails the test;
[0046] Step S43', determine whether there are any omissions in the message, and determine whether the interaction sequence of the message meets the protocol requirements (i.e. Figure 4 If the message is not missed or the interaction sequence of the message meets the protocol requirements, the node under test is determined to have passed the test; otherwise, the node under test is determined to have failed the test.
[0047] After obtaining the test results, step S5' may be performed:
[0048] Output the test results according to the test requirements and store them in the local database. The test results can be exported to the test report, which includes the test time, test conclusion, test description, test record, test pass rate and other information. The test data can be displayed on the data management page, and the test records can be searched and deleted as needed. Finally, the test ends.
[0049] The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. The above embodiment of the present invention can also be modified in various ways. That is, all simple, equivalent changes and modifications made according to the claims and the description of the present invention fall within the scope of protection of the claims of the present invention. The contents not described in detail in the present invention are all conventional technical contents.
Claims
1. A broadband sensor network protocol consistency detection method, characterized in that: The communication protocol consistency test includes communication protocol consistency test and authentication, wherein: The communication protocol consistency detection includes: Step S1, providing a broadband sensor network protocol consistency detection system, including a main controller, an authentication management module and an execution module connected in sequence, the main controller and the execution module are both used to connect to the node to be tested, the execution module includes a simulated access node, a simulated aggregation node and a simulated broadband terminal, wherein the main controller is configured to: control the operation of the authentication management module; the authentication management module is configured to: provide authentication services for the node to be tested, the simulated access node, the simulated aggregation node and the simulated broadband terminal, so that the node to be tested uses the authentication management module to analyze the messages and processes in the authentication process; the execution module is configured to: use the node to be tested as a relay node for the simulated access node and the simulated aggregation node to complete the verification of the networking process and network topology; at the same time, enable the simulated broadband terminal to access the node to be tested to complete the node side consistency verification; establish a communication protocol consistency detection architecture, start the power supply, so that the main controller, the authentication management module and the execution module start running; Step S2, using a simulated broadband terminal to access a simulated aggregation node, and a simulated aggregation node to access a simulated access node to perform self-checking, so that the execution module can normally send and receive messages; Step S3, starting the software built into the execution module, configuring communication parameters according to test requirements and selecting test items; Step S4, starting the test, storing the messages collected by the execution module in a database, and detecting the messages according to the protocol to obtain the test results; The authentication communication protocol consistency detection includes: Step S1', according to the broadband sensor network protocol consistency detection system, a ternary peer authentication communication protocol consistency detection architecture is established, and the authentication server, the simulated access node, the simulated aggregation node and the node to be tested are connected to the main controller; Step S2', based on the main controller, completing the time synchronization of the authentication server, the simulated access node, the simulated aggregation node and the node to be tested; Step S3', start authentication, record the authentication messages and message sending and receiving time of the authentication server, the simulated access node, the simulated aggregation node and the node to be tested during the authentication process; Step S4', testing the message according to the protocol to obtain a test result; The step S4' comprises: Step S41', parsing each field of the collected message to obtain the meaning of the message; Step S42', determining whether the content and format of the message meet the protocol requirements, if yes, proceeding to step S43'; if no, determining that the node to be tested fails the test; Step S43', judging whether the message is missing or not, and judging whether the interaction sequence of the message meets the protocol requirements, if the message is not missing or the interaction sequence of the message meets the protocol requirements, judging that the node to be tested has passed the test; otherwise, judging that the node to be tested has failed the test; The interaction sequence of the message includes: ① from the node to be tested to the simulated aggregation node, ② from the simulated aggregation node to the node to be tested, ③ from the node to be tested to the simulated access node, ④ from the simulated access node to the authentication server, ⑤ from the authentication server to the simulated access node, ⑦ from the simulated access node to the node to be tested, and ⑧ from the node to be tested to the simulated aggregation node.
2. The broadband sensor network protocol consistency detection method according to claim 1, characterized in that: The main controller includes a power supply, a memory, a main board and an operating system. The power supply is connected to the memory and the main board respectively. The memory and the main board are both connected to the operating system. The operating system is connected to the authentication management module.
3. The broadband sensor network protocol consistency detection method according to claim 1, characterized in that: The analog access node, the analog aggregation node and the analog broadband terminal are all connected to the main controller by wire.
4. The broadband sensor network protocol consistency detection method according to claim 1, characterized in that: The simulated access node, the simulated aggregation node and the simulated broadband terminal are all wirelessly connected to the node to be tested.
5. The broadband sensor network protocol consistency detection method according to claim 1, characterized in that: The authentication management module includes an identification server.
6. The broadband sensor network protocol consistency detection method according to claim 1, characterized in that: The execution module has built-in software with the functions of parameter configuration, test item selection, message storage and message detection.
7. The broadband sensor network protocol consistency detection method according to claim 1, characterized in that: The step S4 comprises: Step S41, parsing each field of the collected message to obtain the meaning of the message; Step S42, determining whether the content and format of the message meet the protocol requirements, if yes, proceeding to step S43; if no, determining that the node to be tested fails the test; Step S43, comparing the order of the messages with the order specified by the protocol to determine whether they meet the process required by the protocol. If so, it is determined that the node to be tested has passed the test; if not, it is determined that the node to be tested has failed the test.
Citation Information
Patent Citations
Power transmission and transformation equipment Internet-of-things network access consistency detection method and device
CN112649690A
Method and system for testing safety switch-in protocol conformity of network terminal
CN1812418A