A self-recovery system based on MESH network
By deploying listeners and guides in the MESH network, data transmission repair and single-node rollback operations between nodes are realized, which solves the problems of excessive pressure on transit nodes and irrepairable single-node damage in traditional MESH networks, and improves network efficiency. Efficiency and stability of self-healing systems.
Patent Information
- Application Number
- CN202410845208.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-27
AI Technical Summary
The traditional MESH network has limitations when the transit node is under excessive pressure and causes collapse, and when a single node is damaged, it cannot be repaired.
A self-recovery system based on the MESH network is adopted. Through the deployment of listeners and guides, the listeners monitor node connection data and send out prompt messages. The guide selects repair methods based on the authority level to realize data transmission repair between nodes and perform repairs on a single node. When a node detaches, it is repaired through a rollback operation.
It improves the efficiency and stability of the network self-recovery system, avoids collapse caused by excessive pressure on transit nodes, and implements flexible repair strategies when a single node is damaged to meet network self-recovery needs in different scenarios.
Smart Images

Figure CN118400761B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of network repair, and relates to a self-recovery system based on a MESH network. Background Art
[0002] WPAN MESH network is a distributed multi-hop mesh wireless network formed by electronic communication devices carrying short-range wireless communication devices in a self-organizing manner. WPAN MESH network can expand the coverage of the network without increasing the node transmission power and improving the receiving sensitivity, and can increase the reliability of data transmission through routing redundancy. WPAN MESH network configuration is relatively simple, which helps save node energy and thus prolong the network life.
[0003] Traditional MESH network repair is to forward the network transmission between the two damaged nodes from the communication relay node between the two nodes. The relay node maintains the data transmission between the two nodes, which will increase the data transmission pressure of the relay node. If there is a problem with the relay node, it is easy to cause the entire MESH network to collapse, and the potential hidden dangers are relatively large. At the same time, if a network node in the MESH network is damaged and all connections with other nodes are disconnected, the repair operation cannot be completed, which has certain limitations. Summary of the invention
[0004] In order to solve the problems existing in the background technology, the present invention proposes a self-recovery system based on a MESH network.
[0005] In order to achieve the above object, the present invention provides a technical solution.
[0006] A self-recovery system based on a MESH network includes a listener and a guide.
[0007] The listener monitors the node connection data of all MESH network nodes. If a MESH network node is lost or the network between any two MESH network nodes is broken, a prompt message is issued to obtain the information of the damaged MESH network node, including the gateway and connection line of the damaged MESH network node, and send the obtained information to the director;
[0008] The director controls the damaged MESH network nodes according to the data obtained by the listener, determines the authority level of the current MESH network nodes, and selects different repair methods according to the authority level.
[0009] Furthermore, the deployment method of the listener and the director is:
[0010] A single listener is deployed in any MESH network node, which monitors the network communication of the entire MESH network;
[0011] In the MESH network, all MESH network nodes deploy a director, and the director controls a single MESH network node.
[0012] Furthermore, the listener working method is:
[0013] S1. The listener generates an editable information including all the numbers of the MESH network networking nodes, which includes the list information of all the MESH network networking nodes and the numbers of the MESH network networking nodes connected to any MESH network networking node, and sends it to the MESH network networking node corresponding to any MESH network networking node number in the editable information number list;
[0014] S2. After any MESH network node receives the editable information sent by the listener, the director corresponding to the MESH network node edits the information, adds the MESH network node information connected to the MESH network node, and deletes the MESH network node number at the same time, and sends it to the MESH network node corresponding to any MESH network node number in the editable information;
[0015] S3, repeat step S2 until all communicative MESH network nodes are transmitted;
[0016] S4. Return the final editable information to the listener. The listener analyzes whether other MESH network networking nodes communicating with a certain MESH network networking node are missing to determine the fault information, analyzes the remaining MESH network networking node numbers in the editable information, and sends the fault information to the director of the corresponding MESH network networking node through the MESH network.
[0017] Furthermore, the guide works in the following way:
[0018] T1. Read the fault information sent by the listener;
[0019] T2. Determine the authority of the current MESH network networking node. If the authority level of the current MESH network networking node is greater than the missing MESH network networking node, it has the authority to control the missing MESH network networking node and enters T3. If the authority level of the current MESH network networking node is less than or equal to the missing MESH network networking node, it does not have the authority to control the missing MESH network networking node and enters T4.
[0020] T3. Rely on the transit MESH network networking node to control the missing MESH network networking node, forward the protocol and gateway information of the current MESH network networking node, and send it to the missing MESH network networking node by the transit MESH network networking node, and control the protocol update of the missing MESH network networking node by the transit MESH network networking node. After the update is completed, control the missing MESH network networking node to restart the network service;
[0021] T4. Rely on the transit MESH network networking node to read the protocol and gateway of the missing MESH network networking node, synchronize the protocol and gateway interface of the current MESH network networking node with the protocol and gateway of the missing MESH network networking node, and control itself to restart the network service after the modification is completed.
[0022] Furthermore, the guide chooses to roll back after modifying the network configuration file of the MESH network node unsuccessfully:
[0023] Read the time period including the missing MESH network nodes in the historical time, and select the configuration file of this time period to overwrite the existing configuration file.
[0024] Furthermore, the permissions of the MESH network nodes are divided into:
[0025] When the number of nodes connected to any MESH network node is greater than the preset number, the authority level of the MESH network node is increased and controlled by the director;
[0026] If any node connected to the MESH network node moves and the number of nodes connected to the node is less than or equal to the preset number, the permission level will be reduced;
[0027] If the number of nodes connected to the node is less than or equal to the preset number due to the loss of a MESH network node, the permission level remains unchanged.
[0028] Furthermore, when the current MESH network networking node has no data transmission within a preset time unit, the director controls the node to reset the connection;
[0029] The boot device reads the original gateway interface and protocol two preset time units ago, performs a rollback operation, and restores the status of the current MESH network networking node to two preset time units ago.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] By deploying a guide in each MESH network node in the MESH network, the present invention can repair the transmission line between two MESH network nodes, avoiding the collapse of the entire MESH network due to excessive pressure on the transit node, and improving the efficiency and stability of the network self-recovery system. In addition, the present invention also sets up single-node recovery, and a single node can still be repaired through a rollback operation after leaving the MESH network, and flexibly adjusts the deployment strategy to meet the network self-recovery needs in different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the overall structure of the present invention;
[0033] Figure 2 It is a schematic diagram of the working process of the monitor of the present invention;
[0034] Figure 3 It is the workflow diagram of the guide of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] like Figure 1 As shown, the technical solution adopted by the present invention.
[0037] A self-recovery system based on a MESH network includes a listener and a guide.
[0038] The listener listens to the node connection data of all MESH network nodes. If a MESH network node is lost or the network between any two MESH network nodes is broken, a prompt message is issued to obtain the information of the damaged MESH network node. The information of the damaged MESH network node includes the gateway and connection line of the damaged MESH network node, and the obtained information is sent to the director.
[0039] The director controls the damaged MESH network nodes based on the data obtained by the listener. First, it determines the authority level of the current MESH network nodes and selects different repair methods based on the authority level.
[0040] The deployment method of the listener and director is as follows:
[0041] A single listener is deployed in any MESH network node, and the listener monitors the network communication of the entire MESH network. The monitoring of the entire system is completed by a single listener, and the data volume is small, avoiding the problem of data conflicts between multiple listeners.
[0042] In the MESH network, all MESH network nodes deploy a director, and the director controls a single MESH network node. The director of each MESH network node completes the repair of the MESH network to avoid the problem of a single director managing multiple MESH network nodes and causing management scope conflicts, making the entire system more concise.
[0043] like Figure 2 As shown, the listener working method is:
[0044] S1. The listener generates an editable information including all the numbers of the MESH network nodes. The editable information includes the list of all the MESH network nodes and the numbers of the MESH network nodes connected to any MESH network node. The information is sent to the MESH network node corresponding to any MESH network node number in the editable information. The starting MESH network node is not specified and is sent randomly by the listener to avoid the problem that a certain MESH network node is damaged and the MESH network node cannot be found.
[0045] S2. After any MESH network networking node receives the editable information sent by the listener, the director corresponding to the MESH network networking node edits the information, adds the MESH network networking node information connected to this MESH network networking node, and deletes the MESH network networking node number at the same time, and sends it to the MESH network networking node corresponding to any MESH network networking node number in the editable information.
[0046] S3, repeat step S2 until all the communicative MESH network nodes are transmitted. No forced transmission is performed on the non-communicative MESH network nodes, which avoids the problem of a MESH network node being damaged and unable to receive data, causing the system to freeze. The remaining MESH network nodes that cannot be transmitted are retained in the editable information, and the MESH network nodes that cannot transmit data can be directly obtained.
[0047] S4. Return the final editable information to the listener. The listener analyzes whether the communication MESH network networking node of each MESH network networking node is missing to determine the fault information, analyzes the remaining MESH network networking node numbers in the editable information, and sends the fault information to the director of the corresponding MESH network networking node through the MESH network.
[0048] like Figure 3 As shown, the guide works as follows:
[0049] T1. Read the fault information sent by the listener.
[0050] T2, determine the authority of the current MESH network networking node. If the authority level of the current MESH network networking node is greater than the missing MESH network networking node, it has the authority to control the missing MESH network networking node and enters T3. If the authority level of the current MESH network networking node is less than or equal to the missing MESH network networking node, it does not have the authority to control the missing MESH network networking node and enters T4.
[0051] T3. Rely on the transit MESH network networking node to control the missing MESH network networking node, forward the protocol and gateway information of the current MESH network networking node, and send it to the missing MESH network networking node by the transit MESH network networking node, and control the protocol update of the missing MESH network networking node by the transit MESH network networking node. After the update is completed, control the missing MESH network networking node to restart the network service.
[0052] T4 relies on the transit MESH network networking node to read the protocol and gateway of the missing MESH network networking node, synchronizes the protocol and gateway interface of the current MESH network networking node with the protocol and gateway of the missing MESH network networking node, and controls itself to restart the network service after the modification is completed.
[0053] During the above boot process, the boot process fails to modify the network configuration file of the MESH network node and chooses to roll back:
[0054] Read the time period including the missing MESH network nodes in the historical time, and select the configuration file of this time period to overwrite the existing configuration file. If the configuration file of the MESH network node is unsuccessful to be modified, choose to restore it to a state where normal communication is possible. If the configuration file modification fails to repair the MESH network, this method is no longer considered. Directly choose to roll back the state of the MESH network node to respond to unexpected situations and avoid system freezes.
[0055] During the working process of the above guide, the T2 determines the authority of the current MESH network node as follows:
[0056] When the number of nodes connected to any MESH network node is greater than the preset number, the authority level of the MESH network node is increased and controlled by the director. The authority is defined according to the number of MESH network nodes connected to any MESH network node, because in the MESH network, the more MESH network nodes any MESH network node is connected to, the more important the transmission of the MESH network node in the entire MESH network is, and vice versa, the less important it is. Therefore, the authority level of the MESH network node is determined according to the number of nodes connected to the MESH network node.
[0057] If any node connected to the MESH network node moves and the number of nodes connected to the node is less than or equal to the preset number, the permission level will be reduced. Because the MESH network node does not need to transmit data with a certain number of MESH network nodes, the fewer the MESH network nodes connected to any MESH network node in the MESH network, the less important the transmission of the MESH network node in the entire MESH network is, so the permission level will be reduced.
[0058] If the number of nodes connected to the node is less than or equal to the preset number due to the loss of the MESH network node, the permission level remains unchanged. The MESH network node still needs to transmit data with a certain number of MESH network nodes, so the permission level remains unchanged.
[0059] During the operation of the MESH network, when the current MESH network node has no data transmission within the preset time unit, the leader controls the node to reset the connection. Because the data transmission is continuous during the operation of the MESH network, when there is no data transmission within the preset time unit, it indicates that the transmission between the MESH network node and the entire MESH network has a fault. Because it is impossible to issue instructions to control the leader through the listener, the operation is completed within a single node, and the MESH network node can complete the operation independently.
[0060] The bootloader reads the original gateway interface and protocol two preset time units ago, performs a rollback operation, and restores the status of the current MESH network node to two preset time units ago. Directly choose to roll back the status of the MESH network node to respond to unexpected situations.
[0061] The present invention deploys a guide in multiple MESH network networking nodes in the MESH network. The present invention can repair the transmission line between two MESH network networking nodes, avoiding the phenomenon that the entire MESH network networking collapses due to excessive pressure on the transit node, and improving the efficiency and stability of the network self-recovery system. In addition, the present invention also sets up single-node recovery, and a single node can still be repaired through a rollback operation after leaving the MESH network, and flexibly adjusts the deployment strategy to meet the network self-recovery requirements in different scenarios.
[0062] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A self-recovery system based on a MESH network, characterized in that: Including listeners and guides: The listener monitors the node connection data of all MESH network nodes. If a MESH network node is lost or the network between any two MESH network nodes is broken, a prompt message is issued to obtain the information of the damaged MESH network node, including the gateway and connection line of the damaged MESH network node, and send the obtained information to the director; The director controls the damaged MESH network nodes based on the data obtained by the listener, determines the authority level of the current MESH network nodes, and selects different repair methods based on the authority level; The listener working method is: S1. The listener generates an editable information including all the numbers of the MESH network networking nodes, which includes the list information of all the MESH network networking nodes and the numbers of the MESH network networking nodes connected to any MESH network networking node, and sends it to the MESH network networking node corresponding to any MESH network networking node number in the editable information number list; S2. After any MESH network node receives the editable information sent by the listener, the director corresponding to the MESH network node edits the information, adds the MESH network node information connected to the MESH network node, and deletes the MESH network node number at the same time, and sends it to the MESH network node corresponding to any MESH network node number in the editable information; S3, repeat step S2 until all communicative MESH network nodes are transmitted; S4. The final editable information is returned to the listener. The listener analyzes whether other MESH network nodes communicating with a certain MESH network node are missing to determine the fault information, analyzes the remaining MESH network node numbers in the editable information, and sends the fault information to the director of the corresponding MESH network node through the MESH network. When the current MESH network node has no data transmission within the preset time unit, the leader controls the node to reset the connection; The boot device reads the original gateway interface and protocol two preset time units ago, performs a rollback operation, and restores the status of the current MESH network networking node to two preset time units ago.
2. According to claim 1, a self-recovery system based on a MESH network is characterized in that: The deployment method of the listener and director is as follows: A single listener is deployed in any MESH network node, which monitors the network communication of the entire MESH network; In the MESH network, all MESH network nodes deploy a director, and the director controls a single MESH network node.
3. According to claim 1, a self-recovery system based on a MESH network is characterized in that: The guide works in the following way: T1. Read the fault information sent by the listener; T2. Determine the authority of the current MESH network networking node; if the authority level of the current MESH network networking node is greater than that of the missing MESH network networking node, it has the authority to control the missing MESH network networking node and enters T3; If the authority level of the current MESH network node is less than or equal to the missing MESH network node, then there is no authority to control the missing MESH network node, and the process goes to T4; T3. Rely on the transit MESH network networking node to control the missing MESH network networking node, forward the protocol and gateway information of the current MESH network networking node, and send it to the missing MESH network networking node by the transit MESH network networking node, and control the protocol update of the missing MESH network networking node by the transit MESH network networking node. After the update is completed, control the missing MESH network networking node to restart the network service; T4. Rely on the transit MESH network networking node to read the protocol and gateway of the missing MESH network networking node, synchronize the protocol and gateway interface of the current MESH network networking node with the protocol and gateway of the missing MESH network networking node, and control itself to restart the network service after the modification is completed.
4. According to claim 3, a self-recovery system based on a MESH network is characterized in that: If the bootloader fails to modify the network configuration file of the MESH network node, choose to roll back: Read the time period including the missing MESH network nodes in the historical time, and select the configuration file of this time period to overwrite the existing configuration file.
5. The self-recovery system based on MESH network according to claim 4, characterized in that: The permissions of the MESH network nodes are divided into: When the number of nodes connected to any MESH network node is greater than the preset number, the authority level of the MESH network node is increased and controlled by the director; If any node connected to the MESH network node moves and the number of nodes connected to the node is less than or equal to the preset number, the permission level will be reduced; If the number of nodes connected to the node is less than or equal to the preset number due to the loss of a MESH network node, the permission level remains unchanged.
