High-reliability high-safety wireless network topology control system
Technical Field
The invention relates to a high-reliability high-safety wireless network topology control system, and belongs to the field of communication network system design.
Background
At present, the traditional wired mode is adopted in most measurement and control systems in China, network topology manual control can be achieved through an industrial personal computer, the problems that cable laying, cable withdrawing, cable testing and other work are complicated are faced, the cost of testing human resources is increased, and the working efficiency is reduced. With the large-scale application and development of intelligent terminals, the wired test network is completely adopted, so that the network topology is gradually complicated and difficult to effectively manage, the development cost, the use cost and the guarantee cost of the system are greatly increased, and the fixed topology of one set of wired network is difficult to meet the application requirements of numerous projects.
Wireless sensor network architectures, such as traditional wireless Mesh networks, wireless Adhoc networks, and the like, are increasingly emerging, and although being applied to different degrees, the wireless sensor network architectures are still to be improved in transmission reliability, security, data traceability and the like, for example, the coverage area of the traditional AP mode wireless sensor network is small, a repeater needs to be additionally added for a far node, and the network transmission cost is increased; and the completely self-organized Adhoc network enables the transmission process to be uncontrolled, the network topology is difficult to optimize, and for the data transmission of more nodes, once the data packet loss occurs, the tracing can not be carried out. In addition, when nodes are added or deleted, the fluctuation of the whole network state can be caused, and the transmission performance is greatly influenced. These results make it difficult for the conventional wireless sensor network to adapt to some occasions with strict requirements on data transmission.
Disclosure of Invention
The technical problem solved by the invention is as follows: the defects of the prior art are overcome, the high-reliability high-safety wireless network topology control system is provided, the complex work of laying, testing and the like caused by a wired mode is reduced, the rapid and automatic networking can be completed without erecting network infrastructure, the autonomous control and manual configuration of a wireless link are realized, the safety and the reliability of data transmission are improved, and the traceability of a data transmission process is ensured.
The technical solution of the invention is as follows:
the high-reliability high-safety wireless network topology control system comprises a controller node, a plurality of common nodes and a rear-end workstation;
the common node acquires local network neighbor node information through a broadcast data packet and feeds back the local network neighbor node information to the controller node according to the request of the controller node;
the controller node senses the topology state of the whole network, acquires the quantity of the nodes of the whole network and the link quality among the nodes, generates a topology connection state diagram of the whole network, acquires the optimized route from each common node to the controller node, forms a route table of the sensing nodes of the whole network and sends the route table to each common node;
the controller node is connected with the back-end workstation through the Ethernet, and the remote communication of the front-end test information and the back-end test information and the information interaction between the systems are realized.
The common node acquires the neighbor node information of the local network through a neighbor discovery algorithm, and the specific implementation method is as follows:
(2.1) the ith normal node wirelessly broadcasts a group of neighbor discovery packets b1_ s at intervals of t1, records the neighbor node address of a reply neighbor confirmation packet b1_ r, and adds 1 to the link quality from the neighbor node to the ith normal node every time each neighbor node replies;
(2.2) when the total number of the broadcast neighbor discovery packets b1_ s reaches a specified number N1, clearing the total number of the b1_ s packets, generating neighbor node information of the ith ordinary node and a corresponding link quality table, wherein i is 1, 2, … …, and N is the total number of the ordinary nodes.
The common node feeds back the information of the local network neighbor node to the controller node according to the request of the controller node, and the realization method is as follows:
(3.1) when the ith common node receives a topology discovery request packet t _ s sent by the controller node, sending the information of the own neighbor node and a corresponding link quality table to the controller node, and forwarding the t _ s packet of the controller node to each neighbor node;
(3.2) when the ith common node receives the topology discovery request packet t _ s forwarded by other common nodes, sending the information of the own neighbor node and the corresponding link quality table to the controller node through the other common nodes, and simultaneously forwarding the topology discovery request packet t _ s of the controller node to each own neighbor node by the ith common node.
The process of the controller node for sensing the topology state of the whole network is as follows:
the controller node acquires neighbor node information through a neighbor discovery algorithm, perceives the topology state of the whole network according to the neighbor node information and local network neighbor node information sent by a common node, and acquires the quantity of nodes of the whole network and the link quality among the nodes.
The specific implementation method for the controller node to acquire the neighbor node information through the neighbor discovery algorithm is as follows:
(5.1) the controller node wirelessly broadcasts a group of neighbor discovery packets b2_ s outwards at intervals of t1, and records the addresses of the neighbor nodes around the reply data packet, wherein each neighbor node replies the data packet once, and the link quality from the neighbor node to the controller node is added by 1;
(5.2) when the total number of the broadcast neighbor discovery packets b2_ s reaches the specified number N2, returning to the initial state, and generating the neighbor node information of the controller node and a corresponding link quality table.
The controller node forms a whole network sensing node routing table and issues the routing table to each common node as follows:
(6.1) the controller node sends a topology discovery request packet t _ s to the neighbor nodes at intervals of t2 to acquire own neighbor node information and a corresponding link quality table, and meanwhile, through neighbor forwarding among the ordinary nodes, the fact that all the ordinary nodes in the whole network receive the t _ s packet of the controller node and reply to the own neighbor node information of the controller node and the corresponding link quality table is achieved, and the step (6.2) is carried out;
(6.2) the controller node collects the self neighbor node information returned by all the common nodes and the corresponding link quality tables, integrates the self neighbor node information and the corresponding link quality tables into a full-network topological connection state diagram, calculates and obtains the optimal routing path from each common node to the controller node according to the link quality information to form a full-network sensing node routing table, sends the full-network sensing node routing table to each neighbor node, and sends the full-network sensing node routing table to all the common nodes through node forwarding hop by hop;
(6.3) judging whether the controller node receives a topology repair request packet t _ p sent by a certain common node, if not, returning to the step (6.11), and if so, entering the step (6.4);
and (6.4) the controller node senses the topology state of the whole network again, integrates the topology state of the whole network into a topology connection state diagram of the whole network, forms a routing table of the sensing nodes of the whole network, sends the routing table to each neighbor node, sends the routing table to all common nodes by forwarding the nodes hop by hop, and returns to the step (6.3).
t2 is greater than t 1.
When a certain common node is increased, reduced or damaged, the neighbor node sends a topology repair request packet t _ p to the controller node according to the whole network sensing node routing table.
After receiving the topology restoration request packet t _ p sent by the common node, the controller node senses the topology state change of the whole network in real time, updates the routing table of the sensing node of the whole network and sends the routing table to each common node again so as to restore normal network communication quickly.
The controller node can display the whole network topology structure chart in real time, can perform data storage and information management, and supports manual route configuration.
Compared with the prior art, the invention has the following beneficial effects:
1. the wireless sensor network topology structure is provided for the future requirements of quick and reliable measurement and control, the complex work of laying, testing and the like caused by wired cables is avoided, quick and automatic networking can be completed without erecting network infrastructure, and a multi-hop mode is adopted to ensure that nodes in a far area can still reliably transmit information, so that the wireless sensor network topology structure is suitable for a high-risk testing environment and reduces human resources.
2. The invention introduces the idea of numerical control separation into the architecture design of a wireless sensor network, develops a high-reliability high-safety wireless network topology control system, separates a network control layer from a data transmission layer, reduces the problems of repeated topology search and the like, realizes the acquisition of the whole network topology state and the optimal control of a wireless routing path by a control end through a neighbor discovery and topology discovery algorithm, and the common node only needs to forward the sensing data according to a routing table calculated and issued by a controller node without other extra work, thereby greatly reducing the power consumption of the node;
3. the controller node has two modes of automatically calculating and generating an optimized route and manually configuring the route, meets the requirements of different application occasions, and improves the network mobility and flexibility;
4. the invention has the network self-healing capability, when the common nodes are increased or decreased, the controller nodes can quickly identify the state and update the routing table of the whole network, the normal network communication is quickly recovered, the high survivability and strong self-healing of the network are realized, and the safety and the reliability of data transmission are improved;
5. the controller node can check and change the network topology state in real time, and accurate tracing and positioning of data are realized.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention;
FIG. 2 is a schematic diagram of a work flow of a common node;
FIG. 3 is a schematic workflow diagram of a controller node;
FIG. 4 is a schematic diagram of a process for generating and issuing a routing table of a sensor node of a whole network by a controller node;
FIG. 5 is a flow chart of a common node receiving and forwarding a sensing node routing table of the whole network;
FIG. 6 is a schematic diagram of a network node topology display in accordance with the present invention;
FIG. 7 is a schematic diagram of an embodiment of the present invention.
Detailed Description
As shown in fig. 1, the present invention provides a high-reliability high-safety wireless network topology control system, which includes a plurality of common terminal nodes (such as various sensing devices including sensors, cameras, sound collection modules, etc.), a controller node, and a backend workstation. The method comprises the steps that a common node runs a neighbor discovery algorithm to obtain local network neighbor node information through a broadcast data packet, a controller node runs a topology discovery algorithm to sense the topology state of the whole network, obtains the quantity of nodes of the whole network, link quality among the nodes and other information, generates a whole network topology connection state diagram, calculates the optimized route from each common node to the controller node, forms a whole network sensing node route table and sends the route table to each common node. And the common node forwards the sensing information to the controller hop by hop through wireless according to the routing table and stores the sensing information. When the nodes are increased, reduced or damaged, the neighbor nodes discover and actively upload messages to the controller nodes, and after the controller timely acquires the change of the network topology state, the controller updates the routing table of the whole network sensing node and issues the routing table to each common node again so as to quickly recover normal network communication. The controller node is connected with the back-end workstation through the Ethernet, and the remote communication of the front-end test information and the back-end test information and the information interaction between the systems are realized.
The work flow of the ordinary node is shown in fig. 2.
The common node acquires the neighbor node information of the local network through a neighbor discovery algorithm, and the specific implementation method is as follows:
(1) the ith common node wirelessly broadcasts a group of neighbor discovery packets b1_ s at intervals of t1, records the neighbor node address of a reply neighbor confirmation packet b1_ r, and adds 1 to the link quality from the neighbor node to the ith common node every time each neighbor node replies;
(2) when the total number of the broadcast neighbor discovery packets b1_ s reaches a specified number N1, the total number of the b1_ s packets is cleared, and the ith common node generates own neighbor node information and a corresponding link quality table. And i is 1, 2, … …, n and n is the total number of the common nodes. N1 is a natural number greater than 1.
The common node feeds back the information of the local network neighbor node to the controller node according to the request of the controller node, and the realization method is as follows:
(1) when an ith common node receives a topology discovery request packet t _ s sent by a controller node, sending self neighbor node information and a corresponding link quality table to the controller node, and simultaneously forwarding the t _ s packet of the controller node to each neighbor node;
(2) when the ith common node receives the topology discovery request packet t _ s forwarded by other common nodes, sending the information of the own neighbor node and the corresponding link quality table to the controller node through the other common nodes, and simultaneously forwarding the topology discovery request packet t _ s of the controller node to each neighbor node of the ith common node.
Fig. 3 is a flow chart of the operation of the controller node.
The controller node acquires neighbor node information through a neighbor discovery algorithm, perceives the topology state of the whole network according to the neighbor node information and local network neighbor node information sent by a common node, and acquires the quantity of nodes of the whole network and the link quality among the nodes.
The neighbor discovery process of the controller node is the same as that of a common node, and the specific steps are as follows:
(1) the controller node wirelessly broadcasts a group of neighbor discovery packets b2_ s at intervals of t1, and records the addresses of neighbor nodes around the reply data packet, wherein each neighbor node replies the data packet once, and the link quality from the neighbor node to the controller node is added by 1;
(2) and when the total number of the broadcast neighbor discovery packets b2_ s reaches the specified number N2, returning to the initial state, and generating the neighbor node information of the controller node and a corresponding link quality table by the controller node. N2 is a natural number greater than 1.
When receiving the broadcast neighbor discovery packet of the neighbor node, the controller node replies a corresponding neighbor acknowledgement packet.
As shown in fig. 4, the process of generating and issuing the routing table of the whole network sensing node by the controller node is as follows:
(1) the controller node sends a topology discovery request packet t _ s to the neighbor nodes at intervals of t2, obtains the information of the neighbor nodes and the corresponding link quality table, meanwhile, the neighbor forwarding among the ordinary nodes is carried out, so that the ordinary nodes in the whole network receive the t _ s packet of the controller node and reply the information of the neighbor nodes of the controller node and the corresponding link quality table, and the step (2) is carried out;
(2) the controller node collects the self neighbor node information and the corresponding link quality table returned by all the common nodes, integrates the self neighbor node information and the corresponding link quality table into a whole network topological connection state diagram, calculates and obtains the optimal routing path from each common node to the controller node according to the information such as link quality and the like to form a whole network sensing node routing table, sends the whole network sensing node routing table to each neighbor node, and sends the whole network sensing node routing table to all the common nodes through node forwarding hop by hop;
(3) judging whether the controller node receives a topology repair request packet t _ p sent by a common node, if not, returning to the step (1), and if so, entering the step (4);
(4) and (4) the controller nodes sense the topology state of the whole network again, integrate into a topology connection state diagram of the whole network, form a routing table of the sensing nodes of the whole network, send the routing table to each neighbor node, forward the routing table hop by hop to all common nodes through the nodes, and return to the step (3).
After the common nodes receive the routing tables of the whole-network sensing nodes forwarded by the controller nodes or the neighbor nodes, the common nodes modify respective node data forwarding routing tables according to the routing tables and forward the routing tables of the whole-network sensing nodes to other neighbor nodes, so that all the common nodes receive the routing tables of the whole-network sensing nodes.
And when the neighbor node information of the common node and the corresponding link quality table are changed, sending a topology repair request packet t _ p to the controller node. The flow chart of the ordinary node receiving and forwarding the whole network sensing node routing table is shown in fig. 5.
The system firstly establishes a network topology routing relation, then each common node collects sensing information, and transmits the sensing information according to the previously established network topology routing relation, thereby realizing the purpose of separating a network control layer and a data transmission layer, reducing the problems of repeated topology searching and the like, realizing the collection of the control end on the whole network topology state and the optimal control of a wireless routing path through a neighbor discovery and topology discovery algorithm, and the common node only needs to forward the sensing data according to a routing table calculated and issued by a controller node without other extra work, thereby greatly reducing the power consumption of the node
In the invention, the controller node is provided with a network management system, displays the whole network topology structure chart in real time, can perform data storage, information management and the like, accurately traces and positions the transmission process of data, can adaptively change a network topology control algorithm according to different requirements, and improves the system universality. Meanwhile, the controller node can manually configure a routing path (self-defined routing), and the mobility and the flexibility of the network are improved.
The invention can realize that one structure simultaneously meets the application requirements of a plurality of projects, and has important application value and long-term significance for rapid measurement and control.
Fig. 6 is a schematic diagram showing a topology of a network node.
Fig. 7 is a schematic diagram of an application example of the present invention, where each or two launching towers of a rocket are provided with a local wireless network topology control system, each system includes a controller node and three common nodes, the common nodes are cameras, wireless sensors, polarity testers or audio acquisition devices, each local wireless network topology control system first establishes a network topology routing relationship according to the method of the present invention, then each common node acquires corresponding data, sends the data to a data server through the corresponding controller node, and forwards the data to a monitoring workstation through the data server, so as to realize acquisition, processing and monitoring of various sensing information in the rocket testing process.
The invention is not described in detail and is within the knowledge of a person skilled in the art.