Large-scale sensor network node monitoring method and system
By adopting series upstream and downlink transmission and channel multiplexing technology in large-scale sensor networks, the network structure topology diagram is constructed and node IP address allocation and power control is realized, the monitoring problem of sensor network systems under large-scale situations is solved, and the system is improved robustness and management efficiency.
Patent Information
- Application Number
- CN202411294236.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-13
AI Technical Summary
In the case of large-scale or ultra-large-scale, node monitoring is difficult to achieve flexible deployment and reliable operation, with small coverage and ineffective management and control nodes, resulting in insufficient system robustness.
Using a series uplink and downlink transmission method, the channel multiplexing between the main system and the node subsystem is monitored, and multicast transmission is used using the UDP protocol to build a network structure topology diagram, and node IP address allocation and power control are implemented, and breadth priority is adopted. Search algorithm and AES encryption and decryption ensure the accuracy and security of node information transmission.
It realizes reliable operation and precise control of large-scale sensor networks, reduces costs, improves node management efficiency and system robustness, and ensures the flexibility and efficiency of sensor networks.
Smart Images

Figure CN119135562A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a large-scale sensor network node monitoring method and system. Background Art
[0002] Sensor network systems are widely used. The most typical application scenarios include military linear array sonar wet-end distributed hydrophone data acquisition and transmission, offshore oil exploration ultra-large-scale multi-cable multi-detector data acquisition and transmission, deep-sea thin cable sonar acquisition and transmission detection system, etc. The existing hydroacoustic array system has a single network structure, a limited number of nodes, a small coverage area, and limited application scenarios, and cannot be flexibly deployed according to specific scenarios. As the scale of the system continues to expand, the degree of distribution continues to increase, and the complexity of the link increases, how to ensure the reliability and robustness of large-scale or even ultra-large-scale sensor array systems has important application value.
[0003] The technology described in this patent is a new technology proposed and implemented based on the previous technology accumulation of the patentee in response to new application needs. The previous technology involves two invention patents "CN202111230569.3-A distributed synchronous data acquisition system with a linear array structure" and "CN202111263905.4-An intelligent hydrophone that can be conveniently networked on a large scale and can collect data synchronously". The above patents reveal a linear structure tactile sensor network or a sensor network system that can be conveniently and flexibly networked, but do not consider issues such as node monitoring such as network structure detection and subsystem power management.
[0004] This patent aims to technically supplement the above patents, and proposes a large-scale sensor network node monitoring method and system to meet the needs of reliable operation and precise control of large-scale or ultra-large-scale sensor networks. Summary of the invention
[0005] In view of this, the present invention proposes a large-scale sensor network node monitoring method and system. The method and system mainly adopt serial uplink and downlink transmission, and the used channel is multiplexed with the power supply channel, which does not generate additional overhead, and can effectively guarantee the cost, especially in long-distance array systems; and by accurately obtaining the system network structure information, the network address is assigned to the node, which is convenient for node management.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is:
[0007] A large-scale sensor network node monitoring method, characterized in that it is based on a monitoring main system and multiple node subsystems, the monitoring main system is used as a master node and is connected to a linear array of multiple node subsystems, each linear array is composed of a number of node subsystems connected in series; the monitoring main system monitors the node subsystems and receives information from the node subsystems; the node subsystems execute control instructions issued by the monitoring main system and send their own information to the monitoring main system, the method comprising:
[0008] S1. The monitoring main system sends a network structure detection request message to the directly connected node subsystem via UDP protocol in multicast mode; after all node subsystems receive the network structure detection request message, they set the node subsystem network structure information tuple and construct a network structure detection response message;
[0009] S2. All node subsystems send the network structure detection response message to the downlink node subsystem and transmit it to the monitoring main system through the uplink node subsystem by transparent transmission method;
[0010] S3. After the monitoring main system receives the network structure detection response message sent by all node subsystems, it performs a union process and uses a breadth-first search algorithm to construct a network structure topology diagram of a large-scale sensor network system;
[0011] S4. The monitoring main system sends the network node IP allocation message to the node subsystem in multicast mode through the UDP protocol; all the node subsystems parse the network node IP allocation message, obtain the network node IP address, and set the node subsystem; all node subsystems use transparent transmission mode to send the network node IP allocation response message to the monitoring main system through the uplink node subsystem;
[0012] S5. The monitoring main system sends the network node power control message to the node subsystem via the UDP protocol in multicast mode; all the node subsystems parse the network node power control message, obtain the network node power switch quantity or the node power control threshold tuple, and set the power supply of the analog module of the node subsystem; all the node subsystems use transparent transmission mode to send the network node power control response message to the monitoring main system through the uplink node subsystem.
[0013] Furthermore, step S1 includes the following steps:
[0014] S1.1 The monitoring main system uses the UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to send the network structure detection request message NW_STR_DET_REQ nSent to the directly connected node subsystem; the UDP port number is 6111; 1≤n≤N, N is the number of network ports for the monitoring main system to send;
[0015] S1.2 After receiving the network structure detection request message, all directly connected node subsystems set their network structure information tuples , 1≤k≤K, K is the number of node subsystems of the linear array connected to the network port n of the monitoring main system.
[0016] Furthermore, the setting of the network structure information tuple in step S1.2 specifically includes:
[0017] a. Set the number of times the network structure detection message is forwarded
[0018] b. Set the upstream and downstream network port information of the node subsystem In dictionary format ((MAC0:1), (MAC1:0));
[0019] c. Set the node subsystem IP address to the original IP address of the node subsystem.
[0020] Furthermore, the network structure detection message forwarding times The initial value is 0; the node subsystem uplink and downlink network port information In the example, MAC0 is the first network port of the node subsystem, MAC1 is the second network port of the node subsystem, and 1 indicates that the first network port is an uplink network port, which is used to receive the network structure detection request message NW_STR_DET_REQ sent from the monitoring main system. n ; 0 indicates that the second network port is a downlink network port, which is used to send the network structure detection response message To the downstream node subsystem; the node subsystem upstream and downstream network port information The specific value in is determined by the specific network port number for receiving and sending information.
[0021] Furthermore, the specific method of step S2 is as follows:
[0022] The directly connected node subsystem sends the network structure information tuple Fill in the network structure detection response message and sent to the downlink node subsystem, and sent to the monitoring main system by transparent transmission through the uplink node subsystem (if the node subsystem is a directly connected node subsystem, it is directly sent to the monitoring main system);
[0023] The downstream node subsystem repeats step (S1.2) until the last downstream node subsystem.
[0024] Further, step S3 includes the following steps:
[0025] S3.1 The monitoring main system receives all the network structure detection response messages Then, fill the receiving network port number NW_PORT_INFO into the network structure detection response message Generate node address set ND_ADD_SET;
[0026] S3.2 Classify all sub-items in the node address set ND_ADD_SET according to the receiving network port number NW_PORT_INFO to obtain N linear homogeneous sets LL_SET n , 1≤n≤N; wherein N is the number of network ports sending from the monitoring main system;
[0027] S3.3 Traverse the linear homogeneous set LL_SET n , in each linear homogeneous set LL_SET n The number of times the network structure detection message is forwarded As the primary key, the forwarding times of the network structure detection message are obtained respectively. The maximum value of the network structure detection response message NW_STR_DET_RES_MAX n , forming the maximum path set MAX_PATH_SET of the linear array;
[0028] S3.4 In the linear array maximum path set MAX_PATH_SET, use the receiving network port number NW_PORT_INFO, the node subsystem uplink and downlink network port information The node subsystem IP address and the network structure detection message forwarding times A breadth-first search algorithm is used to construct a network structure topology directed graph of the large-scale sensor network system.
[0029] Further, step S4 includes the following steps:
[0030] S4.1 The monitoring main system uses the UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to encrypt the network node IP allocation message ND_IP_DIS_REQ with AES and send it to the directly connected node subsystem; the UDP port number is 3111;
[0031] S4.2 After receiving ND_IP_DIS_REQ, all directly connected node subsystems decrypt and parse the message using the AES decryption algorithm to obtain the IP address mapping table set IP_TABLE = U(IP Om :IP N m ); where m is the serial number of the node subsystem, 1≤m≤M; M is the number of the node subsystem; IP O m is the original IP address of the mth node subsystem, IP N m The IP address to be allocated to the m-th node subsystem;
[0032] S4.3 The directly connected node subsystem obtains the IP address to be allocated by searching the original IP address; the directly connected node subsystem sends the network node IP allocation message to the downstream node subsystem and repeats steps S4.2 and S4.3 until the last downstream node subsystem;
[0033] S4.4 All the node subsystems adopt transparent transmission mode and send the network node IP allocation response message to the monitoring main system through the uplink node subsystem.
[0034] Furthermore, the step S5 adopts an active control method, and the specific steps are as follows:
[0035] The monitoring main system sends the network node power switch value to the node subsystem, and the node subsystem sets the analog module power supply of the node subsystem according to the network node power switch value;
[0036] a. The monitoring main system uses the UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to encrypt the network node power control message ND_POW_CTL_REQ with AES and send it to the directly connected node subsystem; the UDP port number is 4111;
[0037] b. After all the directly connected node subsystems receive ND_POW_CTL_REQ, the message is decrypted and parsed using the AES decryption algorithm to obtain the power switch mapping table set POW_CTL_TABLE = U(IP m :SW m ); wherein m is the serial number of the node subsystem, 1≤m≤M; M is the number of the node subsystem; IP m is the IP address of the mth node subsystem, SW m is the power switch quantity of the mth node subsystem;
[0038] c. The directly connected node subsystem obtains the power switch value by searching the IP address, and sets the power supply of the analog module based on it; the directly connected node subsystem sends the network node power control message to the downstream node subsystem and repeats steps b and c until the last downstream node subsystem;
[0039] d. All the node subsystems adopt transparent transmission mode, and send the network node power control response message to the monitoring main system through the uplink node subsystem.
[0040] Furthermore, the step S5 adopts a passive control method, and the specific steps are as follows:
[0041] The monitoring main system sends the node power control threshold value tuple to the node subsystem, and the node subsystem monitors the operation status in real time during the system operation, and sets the analog module power supply of the node subsystem by comparing it with the node power control threshold value tuple;
[0042] a. The monitoring main system uses UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to encrypt the network node power control message ND_POW_CTL_REQ with AES and send it to the directly connected node subsystem; the UDP port number is 5111;
[0043] b. After all the directly connected node subsystems receive ND_POW_CTL_REQ, the message is decrypted and parsed using the AES decryption algorithm to obtain the node power control threshold tuple POW_TUPLE = ('tem ′ ,′cur ′ ,′vol ′ ,′hum′); where tem is the temperature threshold, cur is the current threshold, vol is the voltage threshold, and hum is the humidity threshold;
[0044] c. The directly connected node subsystem compares the real-time operation status data with the node power control threshold tuple, and when a certain status value exceeds the element value in the node power control threshold tuple, turns off the power of the node subsystem simulation module; the directly connected node subsystem sends the network node power control message to the downstream node subsystem and repeats steps b and c until the last downstream node subsystem;
[0045] d. All the node subsystems adopt transparent transmission mode, and send the network node power control response message to the monitoring main system through the uplink node subsystem.
[0046] The present invention also provides a large-scale sensor network node monitoring system, characterized in that it is based on a monitoring main system and multiple node subsystems, the monitoring main system serves as a main node, and is connected to a linear array of multiple node subsystems, each linear array being composed of several node subsystems connected in series; the monitoring main system monitors the node subsystems and receives information from the node subsystems; the node subsystems execute control instructions issued by the monitoring main system and send their own information to the monitoring main system, and the node monitoring system processor executes and implements the node monitoring method as described above.
[0047] The beneficial effects of the present invention are: the present invention can solve the technical limitations of the current mainstream node monitoring methods and systems, and the specific beneficial effects are:
[0048] 1) The node monitoring method mainly adopts serial uplink and downlink transmission, and the used channel is multiplexed with the power supply channel, which does not generate additional overhead, especially in long-distance array systems, and can effectively guarantee costs;
[0049] 2) By accurately acquiring the network structure information of large-scale sensor networks, network addresses are assigned to nodes to facilitate node management;
[0050] 3) The power supply of the node subsystem is managed in both active and passive ways to achieve reliable operation of the sensor network. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 It is a flow chart of a large-scale sensor network node monitoring method provided by the present invention;
[0053] Figure 2 It is a flow chart of step S1 of the large-scale sensor network node monitoring method provided by the present invention;
[0054] Figure 3 is a flow chart of step S2 of the large-scale sensor network node monitoring method provided by the present invention;
[0055] Figure 4 is a flow chart of step S3 of the large-scale sensor network node monitoring method provided by the present invention;
[0056] Figure 5 is a flow chart of step S4 of the large-scale sensor network node monitoring method provided by the present invention;
[0057] Figure 6 It is a schematic diagram of the active control flow of step S5 of the large-scale sensor network node monitoring method provided by the present invention;
[0058] Figure 7 It is a schematic diagram of the passive control flow of step S5 of the large-scale sensor network node monitoring method provided by the present invention;
[0059] Figure 8 It is a schematic diagram of the architecture of a monitoring main system and multiple node subsystems of a large-scale sensor network node monitoring system provided by the present invention. DETAILED DESCRIPTION
[0060] In order to better understand the present invention, the content of the present invention is further explained below in conjunction with the examples, but the content of the present invention is not limited to the following examples. Those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms are also within the scope of the claims listed in the application.
[0061] Combine the following Figure 1-Figure 8 The present invention describes a large-scale sensor network node monitoring method and system.
[0062] Figure 1 is a flow chart of a large-scale sensor network node monitoring method provided by the present invention. In an embodiment of the present invention, based on a monitoring main system and multiple node subsystems, such as Figure 8 As shown, the monitoring main system is connected to a plurality of node subsystem linear arrays as a main node, each linear array is composed of a plurality of node subsystems connected in series; the monitoring main system monitors the node subsystems and receives information from the node subsystems; the node subsystems execute the control instructions issued by the monitoring main system and send their own information to the monitoring main system. The method includes:
[0063] S1. The monitoring main system sends a network structure detection request message to the directly connected node subsystem via UDP protocol in multicast mode; after all node subsystems receive the network structure detection request message, they set the node subsystem network structure information tuple and construct a network structure detection response message;
[0064] S2. All node subsystems send the network structure detection response message to the downlink node subsystem and transmit it to the monitoring main system through the uplink node subsystem by transparent transmission method;
[0065] S3. After the monitoring main system receives the network structure detection response message sent by all node subsystems, it performs a union process and uses a breadth-first search algorithm to construct a network structure topology diagram of a large-scale sensor network system;
[0066] S4. The monitoring main system sends the network node IP allocation message to the node subsystem in multicast mode through the UDP protocol; all the node subsystems parse the network node IP allocation message, obtain the network node IP address, and set the node subsystem; all node subsystems use transparent transmission mode to send the network node IP allocation response message to the monitoring main system through the uplink node subsystem;
[0067] S5. The monitoring main system sends the network node power control message to the node subsystem via the UDP protocol in multicast mode; all the node subsystems parse the network node power control message, obtain the network node power switch quantity or the node power control threshold tuple, and set the power supply of the analog module of the node subsystem; all the node subsystems use transparent transmission mode to send the network node power control response message to the monitoring main system through the uplink node subsystem.
[0068] Specifically, the system described in the embodiment of the present invention is a large-scale data transmission system that can be equipped with various types of sensors and is used in application scenarios that require large-area distributed transmission, such as air quality detection, underwater environment detection, etc. The system consists of a monitoring main system and a node subsystem. The monitoring main system is used to monitor the node subsystem and receive information from the node subsystem. The node subsystem is used to execute the control instructions issued by the monitoring main system and send its own information to the monitoring main system. In actual applications, the node subsystem is linked to the terminal sensor and can upload the data collected by it. The monitoring main system receives the collected sensor data uploaded from all node subsystems, and performs centralized analysis and processing. In this patent, since it only involves the node monitoring function, the processing of sensor data is not within the scope of the description of this patent. Figure 8 The overall structure of a large-scale sensor network system is shown. The monitoring main system is the main node and is connected to multiple linear arrays of node subsystems. Each linear array consists of several node subsystems connected in series. The monitoring main system and the linear array are connected using 10 Gigabit Ethernet, and the node subsystems are connected to each other using Gigabit Ethernet or 10 Gigabit Ethernet. The network structure of a large-scale sensor network system is determined by its application scenario. For example, in seabed terrain monitoring, underwater detection is usually carried out by towing, and long-distance linear arrays are the preferred network structure.
[0069] The main monitoring system includes a task control module, an information transmission module, an information storage module and an information analysis module.
[0070] As the scale of sensor network systems continues to expand, the complexity of the network structure also increases. Especially in the new integrated sonar system, multiple different types of hydrophone arrays need to be deployed in the same network at the same time, making its transmission link more complex and changeable than the traditional hydroacoustic distributed system. In addition, the working frequency bands, sampling rates and scales of different hydrophone devices (node subsystems) in the system are different, resulting in the complexity, diversity and unevenness of the system link resources. Through network structure detection, the location information of each hydrophone device (node subsystem) in the system can be accurately obtained in the network structure, which is crucial for in-depth understanding of the connection relationship and relative position between hydrophone devices (node subsystems), and is more helpful for the system to perform accurate device management, control, resource scheduling, and achieve more efficient clock resource allocation and path planning. The location information of the hydrophone device (node subsystem) not only provides an important reference for system performance evaluation, routing selection, load balancing, fault diagnosis and system calibration, but also helps to reduce the delay and packet loss rate of data transmission, thereby improving the overall performance of the system.
[0071] First, in order to achieve precise control of large-scale sensor network systems, the key technology relies on obtaining accurate location information of each node subsystem. To this end, the system performs structural detection on the entire network to obtain its structural topology. Then, a unique identifier can be assigned to each node subsystem, and appropriate tasks can be assigned. The above scheme can not only improve the versatility and interchangeability of various hydrophone devices in the system, but also provide strong support for more flexible and efficient system management.
[0072] During the network structure detection process, the monitoring main system first sends a network structure detection request multicast message. The message is sent step by step along the path of monitoring main system → node subsystem → node subsystem. During the whole process, each submodule implements the following core functions: ① Automatic identification of the upstream and downstream network ports of the node subsystem; ② Automatic identification of the node subsystem connected to each network port by the monitoring main system.
[0073] Through the above series of automatic identification and interaction processes, the system can accurately grasp the entire network structure, including which network ports have established connections with node subsystems, network port numbers, the number of node subsystems linked to the network port, their IP addresses and sequence, etc., providing strong guarantees for the stable operation and efficient management of the system.
[0074] Secondly, in order to improve the controllability of system operation, an IP allocation mechanism and a power control mechanism for active and passive node subsystems are introduced. Through the obtained network structure information, the IP address of each node subsystem can be allocated more reasonably. In the active power control mechanism, the monitoring master node can accurately perform breakpoint processing on a certain node subsystem point by point; in the passive power control mechanism, by presetting thresholds for parameters such as current and voltage, each node subsystem can quickly perform power-off processing according to its own operating conditions. The power control mechanism can prevent the spread of faults and ensure the normal operation of other node subsystems, thereby ensuring the stable operation of the system and reducing maintenance costs.
[0075] Figure 2 FIG. 1 is a flow chart of step S1 of the large-scale sensor network node monitoring method provided by the present invention. Figure 2 As shown, step S1 includes the following steps:
[0076] S1.1 The monitoring main system uses the UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to send the network structure detection request message NW_STR_DET_REQ n Sent to the directly connected node subsystem; the UDP port number is 6111; 1≤n≤N, N is the number of network ports for the monitoring main system to send;
[0077] S1.2 After receiving the network structure detection request message, all directly connected node subsystems set their network structure information tuples , 1≤k≤K, K is the number of node subsystems of the linear array connected to the network port n of the monitoring main system; specifically including:
[0078] a. Set the number of times the network structure detection message is forwarded
[0079] b. Set the upstream and downstream network port information of the node subsystem In dictionary format ((MAC0:1), (MAC1:0));
[0080] c. Set the node subsystem IP address to the original IP address of the node subsystem.
[0081] Among them, the network structure detection message forwarding times The initial value is 0; the node subsystem uplink and downlink network port information In the example, MAC0 is the first network port of the node subsystem, MAC1 is the second network port of the node subsystem, and 1 indicates that the first network port is an uplink network port, which is used to receive the network structure detection request message NW_STR_DET_REQ sent from the monitoring main system. n; 0 indicates that the second network port is a downlink network port, which is used to send the network structure detection response message To the downstream node subsystem; the node subsystem upstream and downstream network port information The specific value in is determined by the specific network port number for receiving and sending information.
[0082] Specifically, the detection process starts with the monitoring main system, which sends a network structure detection request multicast message, which is transmitted in an orderly manner along the path of the monitoring main system, the directly connected node subsystem, and the downstream node subsystem.
[0083] When each node subsystem in the system that is directly connected to the monitoring main system receives a network structure detection request message, it will initialize and enter the network structure detection preparation state. During this process, the node subsystem will clear its own stored network structure status information, and record the hardware network port that received the network structure detection request message, marking it as an uplink network port and the other port as a downlink network port (the node subsystem does not have a preset network port type when it leaves the factory, and the two network ports have the same functions and can be used as uplink or downlink network ports).
[0084] Figure 3 FIG. 2 is a flow chart of step S2 of the large-scale sensor network node monitoring method provided by the present invention. Figure 3 As shown, the specific method of step S2 is as follows:
[0085] The directly connected node subsystem sends the network structure information tuple Fill in the network structure detection response message and sent to the downlink node subsystem, and sent to the monitoring main system by transparent transmission through the uplink node subsystem (if the node subsystem is a directly connected node subsystem, it is directly sent to the monitoring main system);
[0086] The downstream node subsystem repeats step (S1.2) until the last downstream node subsystem.
[0087] After receiving the network structure detection request message, the node subsystem will create a "network structure detection response" message and insert its own IP address and upstream and downstream relationships into the message. At the same time, the forwarding times of the network structure detection message are set to 1, and the detection response message will be sent from another network port to the downstream node subsystem directly connected to it.
[0088] When the node subsystem receives a network structure detection response message sent by other nodes, it will process the message according to whether the received message carries the IP address of the node subsystem. If the network structure detection response message does not carry the IP address of the node subsystem, it means that the network structure detection response message is received from the upstream network port, and it means that the network structure detection response message is passing through the node subsystem for the first time. The node subsystem will use the received network structure detection response message content to initialize the new detection response message content. In this process, the node will add 1 to the message forwarding times carried in the detection response message, and fill in the information including the IP of the node in the message, and send it to the downstream node subsystem. If the currently received detection response message contains the IP address of the node subsystem, it means that the network port receiving the network structure detection response message is not the downstream network port, then the message will not be processed, and will be sent to the upstream node subsystem using transparent transmission.
[0089] Specifically, assume that the system includes two node subsystems, which are node subsystem 1 and node subsystem 2 in order of distance from the monitoring main system. The node subsystem 2 will receive a network structure detection response message, which is generated and sent by node subsystem 1. When node subsystem 2 receives the network structure detection response message from node 1, it will check the message content to confirm that it does not contain relevant information about itself. Then, it appends its own IP address and upstream and downstream network port information to the information of node 1 carried in the original message, and increases the number of forwarding times of the network structure detection message by 1 to 2. Finally, the updated detection response message is sent out.
[0090] At this time, node subsystem 1 will receive a network structure detection response message from node subsystem 2. The message contains information of both node 1 and node 2, and the internal detection response message forwarding times flag is 2.
[0091] At this time, the monitoring main system will receive two network structure detection response messages from node subsystem 1. One message contains information of both node 1 and node 2, and the internal detection response message forwarding times flag is 2; the other message only contains information of node 1.
[0092] Figure 4 FIG. 1 is a flow chart of step S3 of the large-scale sensor network node monitoring method provided by the present invention. Figure 4 As shown, step S3 includes the following steps:
[0093] S3.1 The monitoring main system receives all the network structure detection response messages Then, fill the receiving network port number NW_PORT_INFO into the network structure detection response message Generate node address set ND_ADD_SET;
[0094] S3.2 Classify all sub-items in the node address set ND_ADD_SET according to the receiving network port number NW_PORT_INFO to obtain N linear homogeneous sets LL_SET n , 1≤n≤N; wherein N is the number of network ports sending from the monitoring main system;
[0095] S3.3 Traverse the linear homogeneous set LL_SET n , in each linear homogeneous set LL_SET n The number of times the network structure detection message is forwarded As the primary key, the forwarding times of the network structure detection message are obtained respectively. The maximum value of the network structure detection response message NW_STR_DET_RES_MAX n , forming the maximum path set MAX_PATH_SET of the linear array;
[0096] S3.4 In the linear array maximum path set MAX_PATH_SET, use the receiving network port number NW_PORT_INFO, the node subsystem uplink and downlink network port information The node subsystem IP address and the network structure detection message forwarding times A breadth-first search algorithm is used to construct a network structure topology directed graph of the large-scale sensor network system.
[0097] Specifically, after receiving the network structure detection response message, the monitoring main system will fill the 100M network port information received in the message into the message to organize and summarize the system network structure information. Finally, through this series of complex message interactions and processing processes, the system can obtain the true and complete status of the entire topology link and the status information of all devices in the system.
[0098] Specifically, it is assumed that the system includes four node subsystems, and node subsystem 1 and node subsystem 2 are connected to network port 1 of the monitoring main system in order of distance from the monitoring main system, and node subsystem 3 and node subsystem 4 are connected to network port 2 of the monitoring main system. The monitoring main system receives two network structure detection response messages from the network port 1 and the network port 2 respectively, which are sent through the uplink network port of node subsystem 1 / node subsystem 3. One of them is a message sent from the uplink network port by node subsystem 1 / node subsystem 3 after receiving the network structure detection request message for the first time, and only contains the information of node subsystem 1 / node subsystem 3; the other is a message forwarded by node subsystem 1 / node subsystem 3, which contains the information of two nodes, node subsystem 1 / node subsystem 3 and node subsystem 2 / node subsystem 4, and the number of forwardings is 2. The monitoring main system will write the Ethernet port number of the received message, that is, network port 1 and network port 2, in these two messages respectively. At the same time, the monitoring main system analyzes and processes the four received messages, and uses a breadth-first search algorithm to find the node link with the most forwarding times under each network port as the real link topology connected under the Ethernet port number, and constructs a network structure topology directed graph of the large-scale sensor network system.
[0099] Figure 5 FIG. 4 is a flow chart of step S4 of the large-scale sensor network node monitoring method provided by the present invention. Figure 5 As shown, step S4 includes the following steps:
[0100] S4.1 The monitoring main system uses the UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to encrypt the network node IP allocation message ND_IP_DIS_REQ with AES and then sends it to the directly connected node subsystem; the UDP port number is 3111;
[0101] S4.2 After receiving ND_IP_DIS_REQ, all directly connected node subsystems decrypt and parse the message using the AES decryption algorithm to obtain the IP address mapping table set IP_TABLE = U(IP O m :IP N m ); where m is the serial number of the node subsystem, 1≤m≤M; M is the total number of the node subsystems; IP O m is the original IP address of the mth node subsystem, IP N m The IP address to be allocated to the m-th node subsystem;
[0102] S4.3 The directly connected node subsystem obtains the IP address to be allocated by searching the original IP address; the directly connected node subsystem sends the network node IP allocation message to the downstream node subsystem and repeats steps S4.2 and S4.3 until the last downstream node subsystem;
[0103] S4.4 All the node subsystems adopt transparent transmission mode and send the network node IP allocation response message to the monitoring main system through the uplink node subsystem.
[0104] Specifically, assume that the system includes two node subsystems, which are node subsystem 1 and node subsystem 2 in order of distance from the monitoring main system. The monitoring main system sends the network node IP allocation message to node subsystem 1. After receiving the message, node subsystem 1 uses the AES decryption algorithm to decrypt it and obtains the IP address mapping table set IP_TABLE = (IP O 1 :IP N 1 )U(IP O 2 :IP N 2 );
[0105] Node subsystem 1 through its original IP address IP O 1 Search and obtain the IP address to be assigned N 1 , complete the IP address allocation of node subsystem 1; next, node subsystem 1 sends the network node IP allocation message to node subsystem 2, and node subsystem 2 performs the same operation method to obtain the IP address to be allocated. N 2 , complete the IP address allocation of node subsystem 2.
[0106] Figure 6 FIG. 1 is a flow chart of the active control method of step S5 of the large-scale sensor network node monitoring method provided by the present invention. Figure 6 As shown, step S5 adopts active control mode, and the specific steps are as follows;
[0107] The monitoring main system sends the network node power switch value to the node subsystem, and the node subsystem sets the analog module power supply of the node subsystem according to the network node power switch value;
[0108] a. The monitoring main system uses the UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to encrypt the network node power control message ND_POW_CTL_REQ with AES and send it to the directly connected node subsystem; the UDP port number is 4111;
[0109] b. After all the directly connected node subsystems receive ND_POW_CTL_REQ, the message is decrypted and parsed using the AES decryption algorithm to obtain the power switch mapping table set POW_CTL_TABLE = U(IP m :SW m ); wherein m is the serial number of the node subsystem, 1≤m≤M; M is the number of the node subsystem; IP m is the IP address of the mth node subsystem, SW m is the power switch quantity of the mth node subsystem;
[0110] c. The directly connected node subsystem obtains the power switch value by searching the IP address, and sets the power supply of the analog module based on it; the directly connected node subsystem sends the network node power control message to the downstream node subsystem and repeats steps b and c until the last downstream node subsystem;
[0111] d. All the node subsystems adopt transparent transmission mode, and send the network node power control response message to the monitoring main system through the uplink node subsystem.
[0112] Figure 7 FIG. 1 is a schematic diagram of a passive control method flow chart of step S5 of the large-scale sensor network node monitoring method provided by the present invention. Figure 7 As shown, step S5 may also adopt a passive control method, and the specific steps are as follows;
[0113] The monitoring main system sends the node power control threshold value tuple to the node subsystem, and the node subsystem monitors the operation status in real time during the system operation, and sets the analog module power supply of the node subsystem by comparing it with the node power control threshold value tuple;
[0114] a. The monitoring main system uses UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to encrypt the network node power control message ND_POW_CTL_REQ with AES and send it to the directly connected node subsystem; the UDP port number is 5111;
[0115] b. After all the directly connected node subsystems receive ND_POW_CTL_REQ, the message is decrypted and parsed using the AES decryption algorithm to obtain the node power control threshold tuple POW_TUPLE = ('tem ′ ,′cur ′ ,′vol ′ ,′hum′); where tem is the temperature threshold, cur is the current threshold, vol is the voltage threshold, and hum is the humidity threshold;
[0116] c. The directly connected node subsystem compares the real-time operation status data with the node power control threshold tuple, and when a certain status value exceeds the element value in the node power control threshold tuple, turns off the power of the node subsystem simulation module; the directly connected node subsystem sends the network node power control message to the downstream node subsystem and repeats steps b and c until the last downstream node subsystem;
[0117] d. All the node subsystems adopt transparent transmission mode, and send the network node power control response message to the monitoring main system through the uplink node subsystem.
[0118] Network node power control methods include active control and passive control.
[0119] In the passive control method, specifically, it is assumed that the system includes two node subsystems, which are node subsystem 1 and node subsystem 2 in order of distance from the monitoring main system. The monitoring main system sends the network node power control message to node subsystem 1. After receiving the message, node subsystem 1 uses the AES decryption algorithm to decrypt it and obtains the power switch quantity mapping table set POW_CTL_TABLE=(IP 1 :SW 1 )U(IP 2 :SW 2 ).
[0120] Node subsystem 1 uses its original IP address IP 1 Search and obtain the power switch value SW 1 , and use this to set the analog module power supply of node subsystem 1 to complete the power supply control of node subsystem 1; next, node subsystem 1 sends the network node power supply control message to node subsystem 2, and node subsystem 2 performs the same operation method to obtain the power switch quantity SW of node subsystem 2 2 And set the analog module power supply of node subsystem 2 to complete the power supply control of node subsystem 2.
[0121] In the passive control method, specifically, it is assumed that the system includes two node subsystems, which are node subsystem 1 and node subsystem 2 in order of distance from the monitoring main system. Node subsystem 1 and node subsystem 2 measure their own temperature, current, voltage and humidity at intervals. The monitoring main system sends the network node power control message to node subsystem 1. After receiving the message, node subsystem 1 uses the AES decryption algorithm to decrypt and obtain the node power control threshold tuple POW_TUPLE; node subsystem 1 compares its own parameter measurement results with the elements in the node power control threshold tuple. When a certain measurement result value exceeds the element value in the node power control threshold tuple, the power supply of the node subsystem simulation module is turned off to complete the node power control of node subsystem 1; next, node subsystem 1 sends the network node power control message to node subsystem 2, and node subsystem 2 performs the same operation method to switch the power supply of its system simulation module to complete the node power control of node subsystem 2.
[0122] The present invention also provides a large-scale sensor network node monitoring system based on a monitoring main system and multiple node subsystems. The monitoring main system serves as a main node and is connected to a linear array of multiple node subsystems. Each linear array is composed of several node subsystems connected in series. The monitoring main system monitors the node subsystems and receives information from the node subsystems. The node subsystems execute control instructions issued by the monitoring main system and send their own information to the monitoring main system. The node monitoring system processor executes and implements the node monitoring method as described above.
[0123] The number of node subsystems and sensor types and parameters in each linear array can be different, including the number of channels, sampling rate, etc. This system can accurately obtain the location of each node subsystem in the network. When an abnormality occurs on the board, it can adaptively power off the node subsystem to prevent the spread of the fault. In addition, this system can provide technical support for the realization of synchronous clocks between node subsystems through the network structure detection function, thereby improving the overall performance of the system.
[0124] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A large-scale sensor network node monitoring method, characterized in that: Based on a monitoring main system and multiple node subsystems, the monitoring main system is used as a master node and is connected to multiple node subsystem linear arrays. Each linear array is composed of several node subsystems connected in series. The monitoring main system monitors the node subsystems and receives information from the node subsystems. The node subsystem executes the control instruction issued by the monitoring main system and sends its own information to the monitoring main system. The method includes: S1. The monitoring main system sends a network structure detection request message to the directly connected node subsystem via UDP protocol in multicast mode; after all node subsystems receive the network structure detection request message, they set the node subsystem network structure information tuple and construct a network structure detection response message; S2. All node subsystems send the network structure detection response message to the downlink node subsystem and transmit it to the monitoring main system through the uplink node subsystem by transparent transmission method; S3. After the monitoring main system receives the network structure detection response message sent by all node subsystems, it performs a union process and uses a breadth-first search algorithm to construct a network structure topology diagram of a large-scale sensor network system; S4. The monitoring main system sends the network node IP allocation message to the node subsystem in multicast mode through the UDP protocol; all the node subsystems parse the network node IP allocation message, obtain the network node IP address, and set the node subsystem; all node subsystems use transparent transmission mode to send the network node IP allocation response message to the monitoring main system through the uplink node subsystem; S5. The monitoring main system sends the network node power control message to the node subsystem via the UDP protocol in multicast mode; all the node subsystems parse the network node power control message, obtain the network node power switch quantity or the node power control threshold tuple, and set the power supply of the analog module of the node subsystem; all the node subsystems use transparent transmission mode to send the network node power control response message to the monitoring main system through the uplink node subsystem.
2. The large-scale sensor network node monitoring method according to claim 1, characterized in that: Step S1 includes the following steps: S1.1 The monitoring main system uses the UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to send the network structure detection request message NW_STR_DET_REQ n Sent to the directly connected node subsystem; the UDP port number is 6111; 1≤n≤N, N is the number of network ports for the monitoring main system to send; S1.2 After receiving the network structure detection request message, all directly connected node subsystems set their network structure information tuples 1≤k≤K, K is the number of node subsystems of the linear array connected to the network port n of the monitoring main system.
3. The large-scale sensor network node monitoring method according to claim 2, characterized in that: Step S1.2 sets the network structure information tuple, specifically including: a. Set the number of times the network structure detection message is forwarded b. Set the upstream and downstream network port information of the node subsystem It is in dictionary format, i.e.: MAC0:1, MAC1:0; c. Set the node subsystem IP address to the original IP address of the node subsystem.
4. The large-scale sensor network node monitoring method according to claim 3, characterized in that: in, The number of times the network structure detection message is forwarded The initial value is 0; the node subsystem uplink and downlink network port information In the example, MAC0 is the first network port of the node subsystem, MAC1 is the second network port of the node subsystem, and 1 indicates that the first network port is an uplink network port, which is used to receive the network structure detection request message NW_STR_DET_REQ sent from the monitoring main system. n ; 0 indicates that the second network port is a downlink network port, which is used to send the network structure detection response message To the downstream node subsystem; the node subsystem upstream and downstream network port information The specific value in is determined by the specific network port number for receiving and sending information.
5. The large-scale sensor network node monitoring method according to claim 4, characterized in that: The specific method of step S2 is as follows: The directly connected node subsystem sends the network structure information tuple Fill in the network structure detection response message And sent to the downlink node subsystem, and sent to the monitoring main system by transparent transmission through the uplink node subsystem. If the current node subsystem is a directly connected node subsystem, it is directly sent to the monitoring main system; The downstream node subsystem repeats step (S1.2) until the last downstream node subsystem.
6. The large-scale sensor network node monitoring method according to claim 5, characterized in that: Step S3 includes the following steps: S3.1 The monitoring main system receives all the network structure detection response messages Then, fill the receiving network port number NW_PORT_INFO into the network structure detection response message Generate node address set ND_ADD_SET; S3.2 Classify all sub-items in the node address set ND_ADD_SET according to the receiving network port number NW_PORT_INFO to obtain N linear homogeneous sets LL_SET n , 1≤n≤N; wherein N is the number of network ports sending from the monitoring main system; S3.3 Traverse the linear homogeneous set LL_SET n , in each linear homogeneous set LL_SET n The number of times the network structure detection message is forwarded As the primary key, the forwarding times of the network structure detection message are obtained respectively. The maximum value of the network structure detection response message NW_STR_DET_RES_MAX n , forming the maximum path set MAX_PATH_SET of the linear array; S3.4 In the linear array maximum path set MAX_PATH_SET, use the receiving network port number NW_PORT_INFO, the node subsystem uplink and downlink network port information The node subsystem IP address and the network structure detection message forwarding times A breadth-first search algorithm is used to construct a network structure topology directed graph of the large-scale sensor network system.
7. The large-scale sensor network node monitoring method according to claim 6, characterized in that: Step S4 includes the following steps: S4.1 The monitoring main system uses the UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to encrypt the network node IP allocation message ND_IP_DIS_REQ with AES and send it to the directly connected node subsystem; the UDP port number is 3111; S4.2 After receiving ND_IP_DIS_REQ, all directly connected node subsystems decrypt and parse the message using the AES decryption algorithm to obtain the IP address mapping table set IP_TABLE = U(IP O m :IP N m ); where m is the serial number of the node subsystem, 1≤m≤M; M is the number of the node subsystem; IP O m is the original IP address of the mth node subsystem, IP N m The IP address to be allocated to the m-th node subsystem; S4.3 The directly connected node subsystem obtains the IP address to be allocated by searching the original IP address; the directly connected node subsystem sends the network node IP allocation message to the downstream node subsystem and repeats steps S4.2 and S4.3 until the last downstream node subsystem; S4.4 All the node subsystems adopt transparent transmission mode and send the network node IP allocation response message to the monitoring main system through the uplink node subsystem.
8. The large-scale sensor network node monitoring method according to claim 7, characterized in that: The step S5 adopts an active control method, and the specific steps are as follows: The monitoring main system sends the network node power switch value to the node subsystem, and the node subsystem sets the analog module power supply of the node subsystem according to the network node power switch value; a. The monitoring main system uses the UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to encrypt the network node power control message ND_POW_CTL_REQ with AES and send it to the directly connected node subsystem; the UDP port number is 4111; b. After all the directly connected node subsystems receive ND_POW_CTL_REQ, the message is decrypted and parsed using the AES decryption algorithm to obtain the power switch mapping table set POW_CTL_TABLE = U(IP m :SW m ); wherein m is the serial number of the node subsystem, 1≤m≤M; M is the number of the node subsystem; IP m is the IP address of the mth node subsystem, SW m is the power switch quantity of the mth node subsystem; c. The directly connected node subsystem obtains the power switch value by searching the IP address, and sets the power supply of the analog module based on it; the directly connected node subsystem sends the network node power control message to the downstream node subsystem and repeats steps b and c until the last downstream node subsystem; d. All the node subsystems adopt transparent transmission mode, and send the network node power control response message to the monitoring main system through the uplink node subsystem.
9. The large-scale sensor network node monitoring method according to claim 7, characterized in that: The step S5 adopts a passive control method, and the specific steps are as follows: The monitoring main system sends the node power control threshold value tuple to the node subsystem, and the node subsystem monitors the operation status in real time during the system operation, and sets the analog module power supply of the node subsystem by comparing it with the node power control threshold value tuple; a. The monitoring main system uses UDP protocol to connect to all node subsystems directly connected to the monitoring main system, and uses multicast to encrypt the network node power control message ND_POW_CTL_REQ with AES and send it to the directly connected node subsystem; the UDP port number is 5111; b. After all the directly connected node subsystems receive ND_POW_CTL_REQ, the message is decrypted and parsed using the AES decryption algorithm to obtain the node power control threshold tuple POW_TUPLE = ('tem ′ ,′cur ′ ,′vol ′ ,′hum′); where tem is the temperature threshold, cur is the current threshold, vol is the voltage threshold, and hum is the humidity threshold; c. The directly connected node subsystem compares the real-time operation status data with the node power control threshold tuple, and when a certain status value exceeds the element value in the node power control threshold tuple, turns off the power of the node subsystem simulation module; the directly connected node subsystem sends the network node power control message to the downstream node subsystem and repeats steps b and c until the last downstream node subsystem; d. All the node subsystems adopt transparent transmission mode, and send the network node power control response message to the monitoring main system through the uplink node subsystem.
10. A large-scale sensor network node monitoring system, characterized in that: Based on a monitoring main system and multiple node subsystems, the monitoring main system serves as a main node and is connected to a linear array of multiple node subsystems, each linear array being composed of several node subsystems connected in series; the monitoring main system monitors the node subsystems and receives information from the node subsystems; the node subsystems execute control instructions issued by the monitoring main system and send their own information to the monitoring main system, and the node monitoring system processor executes and implements the node monitoring method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Distributed synchronous data acquisition system of linear array structure
CN113676791A
Intelligent hydrophone capable of realizing large-scale convenient networking and synchronous acquisition
CN114024642A
