WO2023206697A1 - Mesh网络中节点中断回连方法、装置和设备 - Google Patents

Mesh网络中节点中断回连方法、装置和设备 Download PDF

Info

Publication number
WO2023206697A1
WO2023206697A1 PCT/CN2022/096088 CN2022096088W WO2023206697A1 WO 2023206697 A1 WO2023206697 A1 WO 2023206697A1 CN 2022096088 W CN2022096088 W CN 2022096088W WO 2023206697 A1 WO2023206697 A1 WO 2023206697A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
router
mesh network
communication link
level device
Prior art date
Application number
PCT/CN2022/096088
Other languages
English (en)
French (fr)
Inventor
李春亮
Original Assignee
青岛海尔科技有限公司
海尔智家股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 青岛海尔科技有限公司, 海尔智家股份有限公司 filed Critical 青岛海尔科技有限公司
Publication of WO2023206697A1 publication Critical patent/WO2023206697A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • the present disclosure relates to the technical field of wireless communication networks, and more specifically, to a node interruption and reconnection method, device and equipment in a mesh network.
  • Wireless mesh network is a new type of wireless network technology.
  • each network node is connected in a wireless multi-hop manner through other adjacent network nodes.
  • nodes may be disconnected.
  • there is no effective reconnection mechanism resulting in the disconnected nodes being unable to reconnect to the mesh network in time. , causing device communication abnormalities.
  • the purpose of this disclosure is to provide a method, device and equipment for reconnecting nodes after interruption in a mesh network, which can quickly reconnect the interrupted nodes to the mesh network.
  • the present disclosure discloses a node interruption reconnection method in a mesh network, which is applied to a first node and includes: when a detected communication link is interrupted, determining whether the interrupted communication link is between the first node and the first node.
  • the communication link between upper-level devices in the mesh network if the interrupted communication link is the communication link between the first node and the upper-level device, determine the role of the upper-level device, which includes routers and Nth layer node, N is a positive integer; reconnect to the mesh network according to the role of the upper-level device.
  • the first node when the first node detects an interruption in the communication link, it first determines whether the interrupted communication link is a communication link between it and the upper-level device. If so, it further determines the previous level device. The role of the upper-level device further reconnects to the mesh network based on the role of the upper-level device. By combining the role of the upper-level device and reconnecting to the mesh network with different access methods, access efficiency can be effectively improved. To ensure the success rate of access, the node can be reconnected to the mesh network without the user being aware of it as much as possible, improving the user experience.
  • reconnect to the mesh network according to the role of the upper-level device including: if the role of the upper-level device is a router, perform the operation of reconnecting to the router; if the access fails, scan all channels , if the router is scanned, determine whether the router has switched channels; if the router has switched channels, reconnect the router in the switched channel to reconnect to the mesh network.
  • the method further includes: if the reconnection is successful, sending a first message to all child nodes of the first node, where the first message is used to instruct all child nodes to switch. to the channel where the router is located.
  • the method also includes: if the router does not switch channels, connect to the router again; if the router fails to connect again, broadcast a request message to obtain the router password corresponding to the router; connect to the router according to the obtained router password to reconnect. into the mesh network.
  • N is a positive integer greater than or equal to 2.
  • the first-layer node is the network node connected to the router in the mesh network
  • the second-layer node is the network node connected to the root node; according to the role of the upper-level device, reconnect Enter the mesh network, including: if the upper-level device is the N-1th node, perform the operation of connecting to the router in the mesh network; if the connection to the router fails and the number of connections has reached the first preset number, follow the steps from 1 to In order of N-1, connect the corresponding nodes layer by layer to reconnect to the mesh network.
  • the method further includes: sending a second message to a parent node of the first node, where the second message is used to instruct the parent node to update the routing information of the first node.
  • the method further includes: if the interrupted communication link is a communication link between the first node and the first sub-node, deleting the routing information of the first sub-node and all sub-nodes of the first sub-node, and sending the communication link to the first sub-node. All upper-level devices of the first node send a third message, and the third message is used to instruct the upper-level device to delete routing information of the first child node and all child nodes of the first child node.
  • the present disclosure also provides a node interruption and reconnection device in a mesh network, which device includes:
  • a processing module configured to determine whether the interrupted communication link is a communication link between the first node and an upper-level device in the mesh network when the detected communication link is interrupted.
  • the determination module is used to determine the role of the upper-level device if the interrupted communication link is the communication link between the first node and the upper-level device.
  • the role includes the router and the N-th layer node, and N is a positive integer.
  • the processing module is used to reconnect to the mesh network according to the role of the upper-level device.
  • the processing module is specifically used to perform the operation of reconnecting the router if the role of the upper-level device is a router; if the access fails, scan all channels; if the router is scanned, determine whether the router switches channel; if the router switches channels, reconnect the router in the switched channel to reconnect to the mesh network.
  • the processing module specifically if the reconnection is successful, sends a first message to all child nodes of the first node, where the first message is used to instruct all child nodes to switch to the channel where the router is located.
  • the processing module is also used to connect to the router again if the router does not switch channels; if the router fails to be connected again, broadcast a request message to obtain the router password corresponding to the router; connect to the router according to the obtained router password to Reconnect to the mesh network.
  • N is a positive integer greater than or equal to 2
  • the first layer node is the network node connected to the router in the mesh network
  • the second layer node is the network node connected to the root node
  • the processing module is specifically used if the upper level If the device is the N-1th node, perform the operation of connecting to the router in the mesh network; if the connection to the router fails and the number of connections has reached the first preset number, connect the corresponding nodes layer by layer in order from 1 to N-1. , to reconnect to the mesh network.
  • the processing module is also configured to send a second message to the parent node of the first node, where the second message is used to instruct the parent node to update the routing information of the first node.
  • the processing module is also configured to delete the routing information of the first child node and all child nodes of the first child node if the interrupted communication link is a communication link between the first node and the first child node. , and sends a third message to all upper-level devices of the first node. The third message is used to instruct the upper-level device to delete the routing information of the first child node and all child nodes of the first child node.
  • the present disclosure also provides an electronic device, including: a memory and at least one processor;
  • Memory stores instructions for execution by the computer
  • At least one processor executes computer execution instructions stored in the memory, so that at least one processor executes any provided node interruption and reconnection method in a mesh network corresponding to the first aspect of this disclosure.
  • the present disclosure also provides a computer-readable storage medium.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • the processor executes the computer-executable instructions, any of the methods provided corresponding to the first aspect of the present disclosure are implemented. Method for reconnecting nodes after interruption in a mesh network.
  • the present disclosure also provides a computer program product, including a computer program.
  • the computer program When the computer program is executed by a processor, the computer program implements any provided node interruption and reconnection method in a mesh network corresponding to the first aspect of the disclosure.
  • the present disclosure provides a node interruption reconnection method, device and equipment.
  • the communication link detected by the first node is interrupted, first determine whether the interrupted communication link is between the first node and the mesh.
  • the communication link between the upper-level devices in the network if so, further determines the role of the upper-level device, and further reconnects to the mesh network based on the role of the upper-level device.
  • the first node combines the previous The role of level equipment can re-connect to the mesh network through different access methods, enabling the first node to successfully re-connect to the mesh network after being disconnected, and can access the mesh network with high efficiency and success rate. .
  • Figure 1 is a schematic diagram of an application scenario diagram of a node interruption and reconnection method in a mesh network provided by the present disclosure
  • Figure 2 is a schematic flow chart of a node interruption and reconnection method in a mesh network provided by the present disclosure
  • Figure 3 is a schematic flow chart of another node interruption and reconnection method in a mesh network provided by the present disclosure
  • Figure 4 is a schematic flow chart of yet another node interruption and reconnection method in a mesh network provided by the present disclosure
  • Figure 5 is a schematic flow chart of yet another node interruption and reconnection method in a mesh network provided by the present disclosure
  • Figure 6 is a schematic structural diagram of a node interruption and reconnection device in a mesh network provided by the present disclosure
  • Figure 7 is a schematic structural diagram of an electronic device provided by the present disclosure.
  • Root node The node connected to the routers in the mesh network.
  • Child node In the mesh network, in addition to the root node, there are nodes connected to it.
  • Leaf node In a mesh network, a node is one that is no longer connected to nodes below it, that is, an end node.
  • FIG 1 is an application scenario diagram of the node interruption and reconnection method in the mesh network provided by the present disclosure.
  • the mesh network includes a router and a modem connected to the router through a wide area network.
  • the router connects to the external network through a modem.
  • node A, node B and node C that are directly connected to the router through TCP are the root nodes.
  • Node F that is connected to the root node B is also connected to nodes G, H and I, and node F is a child node.
  • Nodes that are connected to child nodes or root nodes and have no next-level child nodes are leaf nodes, such as node D, node E, node G, node H, node I and node J, the root node and child nodes, or the root
  • each node is an electronic device that supports mesh function.
  • the present disclosure provides a node reconnection method in a mesh network after interruption.
  • the first node detects an interruption in the communication link, it first determines whether the interrupted communication link is connected to the upper level node. If the communication link between devices is correct, the role of the upper-level device is further determined, and further based on the role of the upper-level device, it is reconnected to the mesh network. By combining the role of the upper-level device, different interfaces are used.
  • the reconnection method can effectively improve the access efficiency and ensure the success rate of access. It can make the node reconnect to the mesh network without the user being aware of it as much as possible, improving the user experience.
  • Figure 2 is a schematic flow chart of a node interruption and reconnection method in a mesh network provided by the present disclosure. As shown in Figure 2, the method includes:
  • the communication link of the node may be interrupted.
  • the communication link of a node When the communication link of a node is disconnected, it may be that the communication link with the corresponding upper-level device is disconnected, or the communication link with the corresponding lower-level device is disconnected.
  • the next-level device is the device corresponding to the child node of the first node.
  • the interrupted communication link is the communication link between the first node and the upper-level device, determine the role of the upper-level device.
  • the role of the device includes router and N-th layer node, and N is a positive integer.
  • N when N is 1, it corresponds to the first layer node, and the first layer node is the root node connected to the router.
  • N takes a value other than 1, it corresponds to the Nth layer node, and the Nth layer node is the network node connected to the N-1th layer node.
  • the upper-level device is an electronic device that supports the mesh function.
  • it can be a washing machine, an air conditioner, a refrigerator, etc.
  • the first node tries to establish a connection with the router to reconnect to the mesh network; if the role of the upper-level device is an N-layer node, the first node tries to connect with other than the upper-level device. Establish a connection with other devices or routers to reconnect to the mesh network.
  • the first node can also be controlled to access other mesh networks.
  • the first node when the first node detects that the communication link is interrupted, it determines whether the interrupted communication link is between the first node and the upper-level device in the mesh network. Communication link, if the interrupted communication link is the communication link between the first node and the upper-level device, determine the role of the upper-level device; further, the first node re-establishes the communication link based on the role of the upper-level device. Connect to the mesh network. Through this method, the first node can combine the role of the device corresponding to the upper-level node corresponding to the first node and reconnect to the mesh network in different access modes. While successfully accessing the mesh network, it can also Access the mesh network with higher efficiency and success rate.
  • Figure 3 is a schematic flow chart of another node interruption and reconnection method in a mesh network provided by the present disclosure.
  • Figure 3 is based on the embodiment shown in Figure 2.
  • the role of the upper-level device is a router, the connection is disconnected. How the first node remeshes the network is explained in further detail.
  • interrupted communication link is the communication link between the first node and the upper-level device, determine the role of the upper-level device.
  • S301 and S302 have the same technical characteristics as S201 and S202.
  • S201 and S202 please refer to S201 and S202, which will not be described again here.
  • the role of the upper-level device is a router, it indicates that the first node is the root node, and the first node retries to establish a connection with the router.
  • connection fails scan all channels. If the router is scanned, determine whether the router has switched channels.
  • This method can traverse all channels and accurately determine the channel where the router is located, thereby enabling the first node to successfully establish a connection with the router.
  • the method also includes: if no router is scanned, the first node enters a state that supports network distribution.
  • the first node still fails to scan the router after full-channel scanning, it means that the router has entered an undiscoverable state, and the first node turns on the support network distribution state to support network distribution.
  • the status of the first node can be adjusted and the efficiency of re-entry into the network can be improved.
  • the method further includes: if the reconnection is successful, sending the first message to all child nodes of the first node.
  • the first message is used to instruct all child nodes to switch to the channel where the router is located.
  • the router does not switch channels, connect to the router again; if the router fails to connect again, broadcast a request message to obtain the password corresponding to the router; connect to the router based on the obtained router password to reconnect to the mesh network.
  • the connection between the first node and the router is interrupted due to the router restarting, etc.
  • the first connection fails because the router has not returned to normal working status.
  • the router returns to normal, so that the first node searches for the router on the original router channel after a full channel scan, and then tries to establish a connection with the router again. If the first node still fails to successfully establish a connection with the router, it may be caused by an incorrect router password entered by the first node.
  • the first node may broadcast a request message to surrounding devices to obtain the password of the router. If you can successfully obtain the password of the router, re-establish the connection with the router based on the password.
  • the first node when the router temporarily fails or the password changes, the first node can successfully establish a connection with the router again, thereby improving the success rate of the first node re-entering the network after being disconnected.
  • the first node deletes the routing information of the first child node and all child nodes of the first child node, and sends the routing information to the first node. All superior nodes send the third message.
  • the third message is used to instruct the superior node to delete the routing information of the first child node of the first node and all child nodes of the first child node.
  • node F when node F detects that the communication link with node H is disconnected, node F deletes the routing information of node H and sends a message to its parent node to cause its parent node to delete the routing information of node H.
  • the first child node and its corresponding child node cannot communicate with the second node in the mesh network.
  • the first node and all its superior nodes can reduce the amount of data and remove invalid information by deleting routing information related to the first child node of the first node, thereby improving the performance of nodes in the mesh network.
  • the method for node reconnection in a mesh network is based on the above embodiments. Further, when the parent node of the first node is a router, the first node performs the operation of reconnecting to the router; if the access fails , then all channels are scanned. If the router is scanned, it is determined whether the router has switched channels; if the router has switched channels, reconnect the router in the switched channel to reconnect to the mesh network, and then the router can If the channel changes and re-connects to the mesh network, the first node will not be unable to access the network due to the channel change of the router, which improves the success rate of the first node accessing the mesh network.
  • Figure 4 is a schematic flowchart of another method for disconnecting and reconnecting nodes in a mesh network provided by the present disclosure.
  • Figure 4 is based on the embodiment shown in Figure 2 or Figure 3. If the mesh network includes N-layer nodes, the current When the role of the upper-level device is an N-1 layer node, how the disconnected node re-mesh the network is further explained in detail.
  • the interrupted communication link is the communication link between the first node and the upper-level device, determine the role of the upper-level device.
  • S401 and S402 have the same technical characteristics as S201 and S202. For detailed description, please refer to S201 and S202 and will not be described again here.
  • N is a positive integer greater than or equal to 2.
  • the first layer node is the network node connected to the router in the mesh network
  • the second layer node is the network node connected to the root node.
  • connection to the router fails and the number of connections has reached the first preset number, connect the corresponding nodes layer by layer in order from 1 to N-1 to reconnect to the mesh network.
  • the first node will try to connect to the layer 1 node, that is, the root node. If the connection fails and the number of connections has reached the threshold, it will try to connect to layer 2. node until the connection is successful or to the N-2th layer node. If all N-2th layer nodes fail to connect and the number of connections has reached the threshold, try to connect to the N-1th layer node except disconnecting from the first node. nodes, that is, nodes other than the upper-level device corresponding to the first node, so that the first node can reconnect to the mesh network.
  • a second message is sent to the parent node of the first node, where the second message is used to instruct the parent node to update the routing information of the first node.
  • the parent node of the first node can timely update the routing information related to the first node, ensuring the consistency of data, ensuring the success rate of communication between nodes, and improving the reliability of the mesh network.
  • the method for node interruption and reconnection in a mesh network is based on any of the above embodiments. Furthermore, when the upper-level device of the first node is an Nth layer node, the first node executes the When it is detected that the communication link is interrupted, it is determined whether the interrupted communication link is the communication link between the first node and the parent node in the mesh network; if the interrupted communication link is between the first node and the parent node communication link, determine the role of the upper-level device; if the upper-level device is the N-1th node, perform the operation of connecting to the router in the mesh network; if the connection to the router fails, and the number of connections has reached the first preset times, the corresponding nodes are connected layer by layer in order from 1 to N-1 to re-connect to the mesh network, which can quickly connect to the mesh network, improve the efficiency of the first node re-entering the network, and ensure the access of the first node The success rate of the mesh network.
  • Figure 5 is a schematic flowchart of yet another node interruption and reconnection method in a mesh network provided by the present disclosure. As shown in Figure 5, the method includes:
  • the first node determines whether the router is abnormal. If the router is abnormal, S502 is executed; if the router is normal, S509 is executed.
  • determining whether the router is abnormal includes: the first node detects that the communication link with the router is abnormal.
  • the first node is the first-layer node, that is, the root node connected to the router.
  • the first node After waiting for a preset period of time, the first node performs the operation of connecting back to the router.
  • the first node is a first-layer node connected to the router.
  • the first node scans all channels to determine whether the router is scanned. If it is scanned, it jumps to S504; if it is not scanned, it jumps to S508.
  • the first node determines whether the router has switched the channel. If the channel has been switched, jump to S505; if the channel has not been switched, jump to S506.
  • the first node notifies all child nodes of the first node to switch to the channel where the router is located, and reconnect to the router in the switched channel to reconnect to the mesh network.
  • the first node reconnects to the router in the original channel and determines whether the connection is successful. If the connection is successful, it is determined that the first node successfully connects back to the mesh network.
  • the first node fails to connect to the router in the original channel, it broadcasts a request message to obtain the router password corresponding to the router, and connects to the router based on the obtained router password to reconnect to the mesh network.
  • the first node determines that the wireless access point (Access Point, AP) cannot be discovered and enters the network distribution supporting state.
  • AP Access Point
  • the first node determines whether the first-layer node is abnormal. If so, jump to S510. If not, jump to S514.
  • S511 Determine whether the number of connections reaches the threshold. If the number of connections does not reach the threshold, jump to S512. If the number of connections reaches the threshold, jump to S514.
  • the second-layer node connected to the first-layer node sends a second message to its parent node to instruct its parent node to update the router information.
  • the second-layer node connected to the first-layer node enters a network distribution supporting state.
  • the parent node corresponding to the first node deletes the original router information.
  • the child node corresponding to the first node enters the network distribution supporting state.
  • the first-level node is the root node connected to the router. If the first node is connected to the first-level node, the first node is the second-level node.
  • Figure 6 is a schematic structural diagram of a node interruption and reconnection device in a mesh network provided by the present disclosure. As shown in Figure 6, the device includes:
  • the processing module 61 is configured to determine whether the interrupted communication link is a communication link between the first node and an upper-level device in the mesh network when the detected communication link is interrupted.
  • Determination module 62 is used to determine the role of the upper-level device if the interrupted communication link is the communication link between the first node and the upper-level device.
  • the role includes the router and the N-th layer node, and N is a positive integer. .
  • the processing module 61 is used to reconnect to the mesh network according to the role of the upper-level device.
  • the processing module 61 is specifically used to perform the operation of reconnecting the router if the role of the upper-level device is a router; if the access fails, scan all channels; if the router is scanned, determine whether the router The channel is switched; if the router switches the channel, reconnect the router in the switched channel to reconnect to the mesh network.
  • the processing module 61 specifically if the reconnection is successful, sends a first message to all child nodes of the first node, where the first message is used to instruct all child nodes to switch to the channel where the router is located.
  • the processing module 61 is also used to connect to the router again if the router does not switch channels; if the router fails to be connected again, broadcast a request message to obtain the router password corresponding to the router; connect to the router according to the obtained router password, to reconnect to the mesh network.
  • N is a positive integer greater than or equal to 2
  • the first-layer node is a network node connected to the router in the mesh network
  • the second-layer node is a network node connected to the root node
  • the processing module 61 is specifically used if the previous If the first-level device is the N-1 node, it will perform the operation of connecting to the router in the mesh network; if the connection to the router fails and the number of connections has reached the first preset number, the corresponding connection will be made layer by layer in the order of 1 to N-1. node to reconnect to the mesh network.
  • the processing module 61 is also configured to send a second message to the parent node of the first node, where the second message is used to instruct the parent node to update the routing information of the first node.
  • the processing module 61 is also configured to delete the routes of the first sub-node and all sub-nodes of the first sub-node if the interrupted communication link is a communication link between the first node and the first sub-node. information, and sends a third message to all upper-level devices of the first node. The third message is used to instruct the upper-level device to delete the routing information of the first child node and all child nodes of the first child node.
  • the node interruption and reconnection device in the mesh network provided by the present disclosure can execute any node interruption and reconnection method in the mesh network provided by the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by the present disclosure. As shown in FIG. 7 , the electronic device includes a memory 71 and at least one processor 72 .
  • the memory 71 stores computer execution instructions
  • At least one processor 72 executes the computer execution instructions stored in the memory 71, so that the at least one processor 72 executes to implement any of the node interruption and reconnection methods in the mesh network provided by the present disclosure.
  • the memory 71 and the processor 72 are connected through the bus 73 .
  • the present disclosure also provides a readable storage medium that stores execution instructions.
  • at least one processor of a device that determines a formal root node in a mesh network executes the execution instructions, when the computer execution instructions are executed by the processor When, implement the above method of determining the formal root node in the mesh network.
  • the present disclosure also provides a program product including executable instructions stored in a readable storage medium.
  • At least one processor of the electronic device can read the execution instruction from the readable storage medium, and the at least one processor executes the execution instruction so that the device for determining the formal root node in the mesh network implements the node interruption in the mesh network provided by the above various embodiments. Reconnection method.
  • the disclosed devices and methods can be implemented in other ways.
  • the devices described above are only illustrative.
  • the division of modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components may be combined or integrated into another unit.
  • a system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms.
  • Modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of this solution.
  • each functional module in the present disclosure can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the above integrated modules implemented in the form of software function modules can be stored in a computer-readable storage medium.
  • the above-mentioned software function modules are stored in a storage medium and include a number of instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of each method of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本公开属于无线通信网络技术领域,具体涉及一种mesh网络中节点中断回连方法、装置和设备。本公开提供一种mesh网络中节点中断回连方法,应用于第一节点,该方法包括:在检测到的通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路;若中断的通信链路为第一节点与上一级设备之间的通信链路,则确定上一级设备的角色,角色包括路由器和第N层节点,N为正整数;根据上一级设备的角色,重新接入mesh网络中。

Description

mesh网络中节点中断回连方法、装置和设备
本公开要求于2022年4月29日提交中国专利局、申请号为202210467488.3、申请名称为“mesh网络中节点中断回连方法、装置和设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及无线通信网络技术领域,更为具体地,涉及一种mesh网络中节点中断回连方法、装置和设备。
背景技术
无线mesh网络是一种新型的无线网络技术,在mesh网络结构中,各网络节点通过相邻的其他网络节点以无线多跳的方式相连。
由于网络异常或者设备重启等情况的发生,可能会导致节点断开时,在现有的无线mesh网络中,由于不存在有效的重连机制,导致断开连接的节点无法及时重新接入mesh网络中,造成设备通信异常。
连接中断的节点如何快速重新接入mesh网路,是亟待解决的问题。
发明内容
本公开的目的在于提供一种mesh网络中节点中断回连方法、装置和设备,能够使中断连接的节点快速回连mesh网络中。
第一方面,本公开公开了一种mesh网络中节点中断回连方法,应用于第一节点,包括:在检测到的通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路;若中断的通信链路为第一节点与上一级设备之间的通信链路,则确定上一级设备的角色,角色包括路由器和第N层节点,N为正整数;根据上一级设备的角色,重新接入mesh网络中。
通过以上技术内容,当第一节点在检测到的通信链路发生中断时,首先判断中断的通信链路是否为其与上一级设备之间的通信链路,若是,则进一步确定出上一级设备的角色,进一步根据上一级设备的角色,重新接入mesh网络中,通过结合上一级设备的角色,以不同的接入方式重新接入mesh网络中,能够有效提升接入效率,保障接入的成功率,能够尽可能的实现在用户无感知的情况下,使节点重新接入mesh网络,提升用户体验。
可选地,根据上一级设备的角色,重新接入mesh网络中,包括:若上一级设备的角色为路由器,则执行重新连接路由器的操作;若接入失败,则对所有信道进行扫描,若扫描到路由器,则判断路由器是否切换了信道;若路由器切换了信道,则在切换后的信道中重新连接路由器,以重新接入mesh网络中。
可选地,在切换后的信道中重新连接到路由器之后,方法还包括:若重新连接成功, 则向第一节点的所有子节点发送第一消息,第一消息用于指示所有子节点均切换到路由器所在的信道中。
可选地,方法还包括:若路由器未切换信道,则再次连接路由器;若再次连接路由器失败,则广播请求消息,以获取路由器对应的路由器密码;根据获取到的路由器密码连接路由器,以重新接入mesh网络中。
可选地,N为大于等于2的正整数,第1层节点为连接mesh网络中的路由器的网络节点,第2层节点为连接根节点的网络节点;根据上一级设备的角色,重新接入mesh网络中,包括:若上一级设备为第N-1节点,则执行连接mesh网络中的路由器的操作;若连接路由器失败,且连接次数已达到第一预设次数,则按照1至N-1的顺序,逐层连接相应节点,以重新接入mesh网络中。
可选地,还包括:向第一节点的父节点发送第二消息,第二消息用于指示父节点更新第一节点的路由信息。
可选地,还包括:若中断的通信链路为第一节点与第一子节点之间的通信链路,则删除第一子节点及第一子节点的所有子节点的路由信息,并向第一节点的所有上级设备发送第三消息,第三消息用于指示上级设备删除第一子节点及第一子节点的所有子节点的路由信息。
第二方面,本公开还提供了一种mesh网络中节点中断回连装置,该装置包括:
处理模块,用于在检测到的通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路。
确定模块,用于若中断的通信链路为第一节点与上一级设备之间的通信链路,则确定上一级设备的角色,角色包括路由器和第N层节点,N为正整数。
处理模块,用于根据上一级设备的角色,重新接入mesh网络中。
可选地,处理模块,具体用于若上一级设备的角色为路由器,则执行重新连接路由器的操作;若接入失败,则对所有信道进行扫描,若扫描到路由器,则判断路由器是否切换了信道;若路由器切换了信道,则在切换后的信道中重新连接路由器,以重新接入mesh网络中。
可选地,处理模块,具体若重新连接成功,则向第一节点的所有子节点发送第一消息,第一消息用于指示所有子节点均切换到路由器所在的信道中。
可选地,处理模块,还用于若路由器未切换信道,则再次连接路由器;若再次连接路由器失败,则广播请求消息,以获取路由器对应的路由器密码;根据获取到的路由器密码连接路由器,以重新接入mesh网络中。
可选地,N为大于等于2的正整数,第1层节点为连接mesh网络中的路由器的网络节点,第2层节点为连接根节点的网络节点;处理模块,具体用于若上一级设备为第N-1节点,则执行连接mesh网络中的路由器的操作;若连接路由器失败,且连接次数已达到第一预设次数,则按照1至N-1的顺序,逐层连接相应节点,以重新接入mesh网络中。
处理模块,还用于向第一节点的父节点发送第二消息,第二消息用于指示父节点更新第一节点的路由信息。
可选地,处理模块,还用于若中断的通信链路为第一节点与第一子节点之间的通信链路,则删除第一子节点及第一子节点的所有子节点的路由信息,并向第一节点的所有上级 设备发送第三消息,第三消息用于指示上级设备删除第一子节点及第一子节点的所有子节点的路由信息。
第三方面,本公开还提供了一种电子设备,包括:存储器和至少一个处理器;
存储器存储计算机执行指令;
至少一个处理器执行存储器存储的计算机执行指令,使得至少一个处理器执行如本公开第一方面对应的任意提供的mesh网络中节点中断回连方法。
第四方面,本公开还提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当处理器执行计算机执行指令时,实现如本公开第一方面对应的任意提供的mesh网络中节点中断回连方法。
第五方面,本公开还提供了一种计算机程序产品,包括计算机程序,计算机程序被处理器执行时实现如本公开第一方面对应的任意提供的mesh网络中节点中断回连方法。
结合上述技术方案,本公开提供的mesh网络中节点中断回连方法、装置和设备,通过第一节点检测到的通信链路发生中断时,首先判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路,若是,则进一步确定出上一级设备的角色,进一步根据上一级设备的角色,重新接入mesh网络中,第一节点通过结合上一级设备的角色,以不同的接入方式重新接入mesh网络中,能够使第一节点断开连接后,重新成功接入mesh网络中,且能够以较高的效率以及成功率接入mesh网络。
附图说明
图1是本公开提供的一种mesh网络中节点中断回连方法的应用场景图的示意图;
图2为本公开提供的一种mesh网络中节点中断回连方法的流程示意图;
图3为本公开提供的另一种mesh网络中节点中断回连方法的流程示意图;
图4为本公开提供的又一种mesh网络中节点中断回连方法的流程示意图;
图5为本公开提供的再一种mesh网络中节点中断回连方法的流程示意图;
图6为本公开提供的一种mesh网络中节点中断回连装置的结构示意图;
图7是本公开提供的一种电子设备的结构示意图。
具体实施方式
为使本公开的目的、技术方案和优点更加清楚,下面将结合本公开的,对本公开中的技术方案进行清楚、完整地描述,显然,所描述的是本公开一部分,而不是全部的。基于本公开中的,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他,都属于本公开保护的范围。
下面以具体地对本公开的技术方案以及本公开的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的可以相互结合,对于相同或相似的概念或过程可能在某些中不再赘述。下面将结合附图,对本公开的进行描述。
下面对本公开涉及的名词进行解释:
根节点:连接mesh网络中的路由器的节点。
子节点:mesh网络中,除根节点之外,并且本身下面还连接有节点的节点。
叶节点:mesh网络中,本身下面不再连接有节点的节点,即末端节点。
下面对本公开的应用场景进行解释:
图1是本公开提供的mesh网络中节点中断回连方法的一种应用场景图,如图1所示,在mesh网络中包含一个路由器,与路由器通过广域网连接的调制解调器。
路由器通过调制解调器与外网连接。其中,与路由器通过TCP直接连接的节点A、节点B和节点C为根节点,与根节点B连接的节点F还与节点G、H和I连接,节点F为子节点。与子节点或根节点相连,且不存在下一层子节点的节点为叶节点,如节点D、节点E、节点G、节点H、节点I和节点J,根节点与子节点,或者,根节点与节点,或者,子节点与子节点之间为mesh连接。其中,每个节点为支持mesh功能的电子设备。
在现有技术中,当网络中的节点断开后,往往无法快速接入mesh网络中,导致通信异常,用户体验不佳。
为了解决这一问题,本公开提供了一种mesh网络中节点中断回连方法,当第一节点在检测到的通信链路发生中断时,首先判断中断的通信链路是否为其与上一级设备之间的通信链路,若是,则进一步确定出上一级设备的角色,进一步根据上一级设备的角色,重新接入mesh网络中,通过结合上一级设备的角色,以不同的接入方式重新接入mesh网络中,能够有效提升接入效率,保障接入的成功率,能够尽可能的实现在用户无感知的情况下,使节点重新接入mesh网络,提升用户体验。
图2为本公开提供的一种mesh网络中节点中断回连方法的流程示意图,如图2所示,该方法包括:
S201、在检测到通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路。
当mesh网络中的节点对应的设备掉电或者出现故障,或者网络出现故障时,可能造成节点的通讯链路中断。
当节点的通信连路断开时,可能是与对应的上一级设备之间的通信链路断开,也可能是与对应的下一级设备之间的通信链路断开。
其中,下一级设备即第一节点的子节点对应的设备。
S202、若中断的通信链路为第一节点与上一级设备之间的通信链路,则确定上一级设备的角色。
其中,设备的角色包括路由器和第N层节点,N为正整数。
具体的,N取1时对应第1层节点,第1层节点为与路由器连接的根节点。N取除1以外的值时,对应第N层节点,第N层节点为与第N-1层节点连接的网络节点。
示例性的,上一级设备为支持mesh功能的电子设备,示例性的,可以是洗衣机、空调、冰箱等。
S203、根据上一级设备的角色,重新接入mesh网络中。
如果上一级设备的角色为路由器,第一节点尝试与路由器建立连接,以重新接入mesh网络;如果上一级设备的角色为第N层节点,第一节点尝试与除上一级设备以外的其他设备或者路由器建立连接,以重新接入mesh网络。
可选地,也可以控制第一节点接入其他mesh网络中。
本公开提供的mesh网络中节点中断回连方法,第一节点通过在检测到通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路,若中断的通信链路为第一节点与上一级设备之间的通信链路,则确定上一级设备的角 色;进一步的,第一节点根据上一级设备的角色,重新接入mesh网络中。第一节点通过该方法能够结合第一节点所对应的上一级节点对应的设备的角色,以不同的接入方式重新接入mesh网络中,在成功接入mesh网络中的同时,还能够以较高的效率以及成功率接入mesh网络。
图3为本公开提供的另一种mesh网络中节点中断回连方法的流程示意图,图3在图2所示实施例的基础上,对当上一级设备的角色为路由器时,断开连接的第一节点如何重新mesh网络做了进一步详细说明。
S301、在检测到通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路。
S302、若中断的通信链路为第一节点与上一级设备之间的通信链路,则确定上一级设备的角色。
S301、S302与S201、S202具有相同的技术特征,具体描述可参考S201、S202,在此不做赘述。
S303、若上一级设备的角色为路由器,则执行重新连接路由器的操作。
具体的,若上一级设备的角色为路由器,则表明第一节点为根节点,第一节点则重新尝试与路由器建立连接。
S304、若连接失败,则对所有信道进行扫描,若扫描到路由器,则判断路由器是否切换了信道。
在一种可能的实现方式中,对所有信道进行扫描,若扫描到路由器,则判断路由器是否切换了信道,包括:对所有信道进行扫描,若扫描到路由器,则确定路由器所在的目标信道;判断目标信道与路由器所在的原始信道是否相同;若目标信道与原始信道不同,则确定路由器切换了信道。
通过该方法能够遍历所有信道,准确的确定出路由器所在信道,进而使第一节点能够与路由器成功建立连接。
可选地,还包括:若未扫描到路由器,第一节点进入支持配网状态。
若第一节点经过全信道扫描后仍未扫描到路由器,则表示路由器进入了无法发现状态,第一节点则打开支持配网状态,以支持配网。
通过该方法,能够调整第一节点的状态,提高重新入网的效率。
S305、若路由器切换了信道,则在切换后的信道中重新连接路由器,以重新接入mesh网络中。
可选地,还包括:若重新连接成功,则向第一节点的所有子节点发送第一消息。
其中,第一消息用于指示所有子节点均切换到路由器所在的信道中。
通过该方法,使第一节点的子节点均能够重新成功接入mesh网络中,保证其正常工作。
可选地,还包括:
若路由器未切换信道,则再次连接路由器;若再次连接路由器失败,则广播请求消息,以获取路由器对应的密码;根据获取到的路由器密码连接路由器,以重新接入mesh网络中。
在一种应用场景中,由于路由器重启等,导致第一节点与路由器的连接中断,当第一 节点第一次重连路由器时,由于路由器还没有恢复正常工作状态,导致第一次连接失败。但是一段时间后,路由器恢复正常,使得第一节点在经过全信道扫描后,在原路由器信道搜索到该路由器,则再次尝试与该路由器建立连接。如果第一节点仍未能成功与该路由器建立连接,则可能是由于第一节点输入的路由器密码错误导致的,该第一节点可以向周围设备广播请求消息,以获取该路由器的密码。如果能够成功获取到该路由器的密码,则根据该密码与该路由器重新建立连接。
通过该方法,能够在路由器短暂失效或者密码变化的情况下,使第一节点再次与路由器成功建立连接,提高第一节点断开后重新入网的成功率。
可选地,还包括:
若中断的通信链路为第一节点与第一子节点之间的通信链路,第一节点则删除第一子节点及第一子节点的所有子节点的路由信息,并向第一节点的所有上级节点发送第三消息。
其中,第三消息用于指示上级节点删除第一节点的第一子节点及第一子节点的所有子节点的路由信息。
参见图1,当节点F检测到与节点H之间的通信链路断开时,节点F删除节点H的路由信息,并向其父节点发送消息以使其父节点删除节点H的路由信息。
当第一节点与第一子节点之间的通信链路断开时,第一子节点及其对应的子节点无法与mesh网络中的第二节点通信。
通过该方法,第一节点及其全部上级节点,能够通过删除第一节点的第一子节点相关的路由信息,缩减数据量,去除无效信息,进而提升了mesh网络中节点的性能。
本公开提供的mesh网络中节点中断回连方法,在上述实施例的基础上,进一步的,当第一节点的父节点为路由器时,第一节点通过执行重新连接路由器的操作;若接入失败,则对所有信道进行扫描,若扫描到路由器,则判断路由器是否切换了信道;若路由器切换了信道,则在切换后的信道中重新连接路由器,以重新接入mesh网络中,进而能够根据路由器信道变化情况,重新接入mesh网络,不会因路由器的信道变化而导致第一节点无法接入网络,提高了第一节点接入mesh网络的成功率。
图4为本公开提供的又一种mesh网络中节点中断回连的方法的流程示意图,图4在图2或图3所示实施例的基础上,若mesh网络中包括N层节点,对当上一级设备的角色为第N-1层节点时,断开连接的节点如何重新mesh网络做了进一步详细说明。
S401、在检测到通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路。
S402、若中断的通信链路为第一节点与上一级设备之间的通信链路,则确定上一级设备的角色。
S401、S402与S201、S202具有相同的技术特征,具体描述可参考S201、S202,在此不做赘述。
S403、若上一级设备的角色为第N-1层节点,则执行重新连接路由器的操作。
其中,N为大于等于2的正整数。第1层节点为连接mesh网络中的路由器的网络节点,第2层节点为连接根节点的网络节点。
S404、若连接路由器失败,且连接次数已达到第一预设次数,则按照1至N-1的顺序,逐层连接相应节点,以重新接入mesh网络中。
示例性的,若连接路由器失败,且连接次数已达到第一预设次数,第一节点则尝试连接第1层节点,即根节点,若连接失败且连接次数已达到阈值,则尝试连接2层节点,直至连接成功或者连接至第N-2层节点,若第N-2层节点均连接失败且连接次数已达到阈值,则尝试连接第N-1层节点中除去与第一节点断开连接的节点,即除去第一节点对应的上一级设备之外的节点,以使第一节点重新接入mesh网络中。
可选地,还包括:
向第一节点的父节点发送第二消息,第二消息用于指示父节点更新第一节点的路由信息。
通过该方法,能够使第一节点的父节点及时更新第一节点相关的路由信息,保证数据的一直性,保障节点之间的通信成功率,提高mesh网络的可靠性。
本公开提供的mesh网络中节点中断回连的方法,在上述任一实施例的基基础上,进一步的,当第一节点的上一级设备为第N层节点时,第一节点通过执行在检测到通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的父节点之间的通信链路;若中断的通信链路为第一节点与父节点之间的通信链路,则确定上一级设备的角色;若上一级设备为第N-1节点,则执行连接mesh网络中的路由器的操作;若连接路由器失败,且连接次数已达到第一预设次数,则按照1至N-1的顺序,逐层连接相应节点,以重新接入mesh网络中,能够快速接入mesh网络,提高了第一节点重新入网的效率,保障了第一节点接入mesh网络的成功率。
图5为本公开提供的再一种mesh网络中节点中断回连方法的流程示意图,如图5所示,该方法包括:
S501、第一节点在检测到的通信链路发生中断时,判断是否为路由器出现异常,若路由器异常,则执行S502;若路由器正常,则执行S509。
可选地,判断是否为路由器出现异常,包括:第一节点检测到与路由器之间的通信链路出现异常。
第一节点与路由器连接,则第一节点为第一层节点,即与路由器连接的根节点。
S502、第一节点等待预设时长后,执行回连路由器的操作。
相应的,第一节点为与路由器连接的第一层节点。
S503、若第一层节点回连路由器失败,第一节点则对所有信道进行扫描,确定是否扫描到路由器,若扫描到,则跳转至S504;若未扫描到,则跳转至S508。
S504、第一节点判断路由器是否切换了信道,若切换了信道,则跳转至S505;若未切换信道,则跳转至S506。
S505、第一节点通知第一节点的所有子节点均切换到路由器所在的信道中,并在切换后的信道中重新连接路由器,以重新接入mesh网络中。
S506、第一节点在原信道中重新连接路由器,并确定是否连接成功,若连接成功,则确定第一节点成功回连mesh网络。
S507、若第一节点在原信道中连接路由器未成功,则广播请求消息,以获取路由器对应的路由器密码,并根据获取到的路由器密码连接路由器,以重新接入mesh网络中。
S508、第一节点确定无线访问接入点(Access Point,AP)无法发现,进入支持配网状态。
S509、第一节点确定是否为第一层节点异常,若是,则跳转至S510,若否,则跳转至S514。
S510、与该第一层节点连接的第二层节点执行连接路由器的操作,若连接失败,则跳转至S511,若连接成功,则跳转至S513。
S511、确定连接次数是否达到阈值,若未达到阈值,则跳转至S512,若达到阈值,则跳转至S514。
S512、与该第一层节点连接的第二层节点重新执行连接路由器的操作,若连接失败,则跳转至S511,若连接成功,则跳转至S513。
S513、与该第一层节点连接的第二层节点则向其父节点发送第二消息,以指示其父节点更新路由器信息。
S514、与该第一层节点连接的第二层节点则进入支持配网状态。
S515、第一节点对应的父节点删除原路由器信息。
S516、若第一节点存在子节点,第一节点对应的子节点则进入支持配网状态。
可选地,第一层节点为与路由器连接的根节点。第一节点与第一层节点连接,则第一节点为第二层节点。
图6为本公开提供的一种mesh网络中节点中断回连装置的结构示意图,如图6所示,该装置包括:
处理模块61,用于在检测到的通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路。
确定模块62,用于若中断的通信链路为第一节点与上一级设备之间的通信链路,则确定上一级设备的角色,角色包括路由器和第N层节点,N为正整数。
处理模块61,用于根据上一级设备的角色,重新接入mesh网络中。
可选地,处理模块61,具体用于若上一级设备的角色为路由器,则执行重新连接路由器的操作;若接入失败,则对所有信道进行扫描,若扫描到路由器,则判断路由器是否切换了信道;若路由器切换了信道,则在切换后的信道中重新连接路由器,以重新接入mesh网络中。
可选地,处理模块61,具体若重新连接成功,则向第一节点的所有子节点发送第一消息,第一消息用于指示所有子节点均切换到路由器所在的信道中。
可选地,处理模块61,还用于若路由器未切换信道,则再次连接路由器;若再次连接路由器失败,则广播请求消息,以获取路由器对应的路由器密码;根据获取到的路由器密码连接路由器,以重新接入mesh网络中。
可选地,N为大于等于2的正整数,第1层节点为连接mesh网络中的路由器的网络节点,第2层节点为连接根节点的网络节点;处理模块61,具体用于若上一级设备为第N-1节点,则执行连接mesh网络中的路由器的操作;若连接路由器失败,且连接次数已达到第一预设次数,则按照1至N-1的顺序,逐层连接相应节点,以重新接入mesh网络中。
处理模块61,还用于向第一节点的父节点发送第二消息,第二消息用于指示父节点更新第一节点的路由信息。
可选地,处理模块61,还用于若中断的通信链路为第一节点与第一子节点之间的通信链路,则删除第一子节点及第一子节点的所有子节点的路由信息,并向第一节点的所有上 级设备发送第三消息,第三消息用于指示上级设备删除第一子节点及第一子节点的所有子节点的路由信息。
本公开提供的mesh网络中节点中断回连装置,可以执行本公开任意提供的mesh网络中节点中断回连方法,具备执行方法相应的功能模块和有益效果。
图7是本公开提供的一种电子设备的结构示意图,如图7所示,该电子设备包括:存储器71和至少一个处理器72。
其中,存储器71存储计算机执行指令;
至少一个处理器72执行存储器71存储的计算机执行指令,使得至少一个处理器72执行以实现本公开提供的任意一种提供的mesh网络中节点中断回连方法。
其中,存储器71和处理器72通过总线73连接。
相关说明可以对应参见上述方法实施例所对应的相关描述和效果进行理解,此处不做过多赘述。
本公开还提供一种可读存储介质,可读存储介质中存储有执行指令,当mesh网络中确定正式根节点的装置的至少一个处理器执行该执行指令时,当计算机执行指令被处理器执行时,实现上述中的mesh网络中确定正式根节点方法。
本公开还提供一种程序产品,该程序产品包括可执行指令,该可执行指令存储在可读存储介质中。电子设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得mesh网络中确定正式根节点的装置实施上述各种实施方式提供的mesh网络中节点中断回连方法。
在本公开所提供的几个中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本方案的目的。
另外,在本公开各个中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本公开各个方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各仅用以说明本公开的技术方案,而非对其限制;尽管参照前述各对本公开进行了详细的说明,本领域的普通技术人员应当理解:本领域技术人员容易 理解的是,本公开的保护范围显然不局限于这些具体实施方式。在不偏离本公开的原理的前提下,本领域技术人员可以对相关技术特征进行等同的更改或替换,这些更改或替换之后的技术方案都将落入本公开的保护范围之内。

Claims (13)

  1. 一种mesh网络中节点中断回连方法,应用于第一节点,所述方法包括:
    在检测到的通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路;
    若所述中断的通信链路为所述第一节点与上一级设备之间的通信链路,则确定所述上一级设备的角色,所述角色包括路由器和第N层节点,N为正整数;
    根据所述上一级设备的角色,重新接入所述mesh网络中。
  2. 根据权利要求1所述的方法,其中,所述根据所述上一级设备的角色,重新接入所述mesh网络中,包括:
    若所述上一级设备的角色为路由器,则执行重新连接所述路由器的操作;
    若接入失败,则对所有信道进行扫描,若扫描到所述路由器,则判断所述路由器是否切换了信道;
    若所述路由器切换了信道,则在切换后的信道中重新连接所述路由器,以重新接入所述mesh网络中。
  3. 根据权利要求2所述的方法,其中,所述在切换后的信道中重新连接到所述路由器之后,所述方法还包括:
    若重新连接成功,则向所述第一节点的所有子节点发送第一消息,所述第一消息用于指示所述所有子节点均切换到所述路由器所在的信道中。
  4. 根据权利要求2所述的方法,其中,所述方法还包括:
    若所述路由器未切换信道,则再次连接所述路由器;
    若再次连接所述路由器失败,则广播请求消息,以获取所述路由器对应的路由器密码;
    根据获取到的所述路由器密码连接所述路由器,以重新接入所述mesh网络中。
  5. 根据权利要求1所述的方法,其中,N为大于等于2的正整数,第1层节点为连接所述mesh网络中的路由器的网络节点,第2层节点为连接根节点的网络节点;
    所述根据所述上一级设备的角色,重新接入所述mesh网络中,包括:
    若所述上一级设备为第N-1节点,则执行连接所述mesh网络中的路由器的操作;
    若连接所述路由器失败,且连接次数已达到第一预设次数,则按照1至N-1的顺序,逐层连接相应节点,以重新接入所述mesh网络中。
  6. 根据权利要求5所述的方法,其中,还包括:
    向所述第一节点的父节点发送第二消息,所述第二消息用于指示所述父节点更新所述第一节点的路由信息。
  7. 根据权利要求1-6中任一项所述的方法,其中,所述方法还包括:
    若所述中断的通信链路为所述第一节点与第一子节点之间的通信链路,则删除所述第一子节点及所述第一子节点的所有子节点的路由信息,并向所述第一节点的所有上级设备发送第三消息,所述第三消息用于指示所述上级设备删除所述第一子节点及所述第一子节点的所有子节点的路由信息。
  8. 一种mesh网络中节点中断回连的装置,其中,包括:
    处理模块,用于在检测到的通信链路发生中断时,判断中断的通信链路是否为第一节点与mesh网络中的上一级设备之间的通信链路;
    确定模块,用于若所述中断的通信链路为所述第一节点与上一级设备之间的通信链路,则确定所述上一级设备的角色,所述角色包括路由器和第N层节点,N为正整数;
    所述处理模块,还用于根据所述上一级设备的角色,重新接入mesh网络中。
  9. 根据权利要求8所述的装置,其中,所述处理模块,具体用于若所述上一级设备的角色为路由器,则执行重新连接所述路由器的操作;若接入失败,则对所有信道进行扫描,若扫描到所述路由器,则判断所述路由器是否切换了信道;若所述路由器切换了信道,则在切换后的信道中重新连接所述路由器,以重新接入所述mesh网络中。
  10. 根据权利要求8所述的装置,其中,N为大于等于2的正整数,第1层节点为连接所述mesh网络中的路由器的网络节点,第2层节点为连接根节点的网络节点;所述处理模块,具体用于若所述上一级设备为第N-1节点,则执行连接所述mesh网络中的路由器的操作;若连接所述路由器失败,且连接次数已达到第一预设次数,则按照1至N-1的顺序,逐层连接相应节点,以重新接入所述mesh网络中。
  11. 根据权利要求8-10中任一项所述的装置,其中,所述处理模块,还用于若所述中断的通信链路为所述第一节点与第一子节点之间的通信链路,则删除所述第一子节点及所述第一子节点的所有子节点的路由信息,并向所述第一节点的所有上级设备发送第三消息,所述第三消息用于指示所述上级设备删除所述第一子节点及所述第一子节点的所有子节点的路由信息。
  12. 一种电子设备,其中,包括:存储器和至少一个处理器;
    所述存储器存储计算机执行指令;
    所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求1-6任一项所述的mesh网络中节点中断回连的方法。
  13. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1-6任一项所述的mesh网络中节点中断回连的方法。
PCT/CN2022/096088 2022-04-29 2022-05-30 Mesh网络中节点中断回连方法、装置和设备 WO2023206697A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210467488.3A CN117014915A (zh) 2022-04-29 2022-04-29 mesh网络中节点中断回连方法、装置和设备
CN202210467488.3 2022-04-29

Publications (1)

Publication Number Publication Date
WO2023206697A1 true WO2023206697A1 (zh) 2023-11-02

Family

ID=88517104

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/096088 WO2023206697A1 (zh) 2022-04-29 2022-05-30 Mesh网络中节点中断回连方法、装置和设备

Country Status (2)

Country Link
CN (1) CN117014915A (zh)
WO (1) WO2023206697A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012010542A1 (de) * 2010-07-20 2012-01-26 Siemens Aktiengesellschaft Vermaschtes funknetz, netzknoten, netzwerkkoordinator und verfahren zum routing von datenpaketen in einem vermaschten funknetz
CN111314863A (zh) * 2020-02-22 2020-06-19 中国电子科技集团公司第三十四研究所 一种预先式切换的高效mlln路由方法
CN111405489A (zh) * 2020-03-05 2020-07-10 华南理工大学 一种应用于无线网络的组播树构建方法
CN111935763A (zh) * 2020-08-13 2020-11-13 杭州萤石软件有限公司 无线网格网络中提高数据传输可靠性的方法、网络系统
CN112752321A (zh) * 2019-10-30 2021-05-04 佛山市云米电器科技有限公司 Mesh网络的路由切换方法、装置、设备及存储介质
CN113207113A (zh) * 2021-04-20 2021-08-03 上海富芮坤微电子有限公司 多连接组网系统、方法、存储介质及电子设备
CN113347645A (zh) * 2021-05-28 2021-09-03 刘秀萍 802·11无线多跳通讯与自适应切换方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012010542A1 (de) * 2010-07-20 2012-01-26 Siemens Aktiengesellschaft Vermaschtes funknetz, netzknoten, netzwerkkoordinator und verfahren zum routing von datenpaketen in einem vermaschten funknetz
CN112752321A (zh) * 2019-10-30 2021-05-04 佛山市云米电器科技有限公司 Mesh网络的路由切换方法、装置、设备及存储介质
CN111314863A (zh) * 2020-02-22 2020-06-19 中国电子科技集团公司第三十四研究所 一种预先式切换的高效mlln路由方法
CN111405489A (zh) * 2020-03-05 2020-07-10 华南理工大学 一种应用于无线网络的组播树构建方法
CN111935763A (zh) * 2020-08-13 2020-11-13 杭州萤石软件有限公司 无线网格网络中提高数据传输可靠性的方法、网络系统
CN113207113A (zh) * 2021-04-20 2021-08-03 上海富芮坤微电子有限公司 多连接组网系统、方法、存储介质及电子设备
CN113347645A (zh) * 2021-05-28 2021-09-03 刘秀萍 802·11无线多跳通讯与自适应切换方法

Also Published As

Publication number Publication date
CN117014915A (zh) 2023-11-07

Similar Documents

Publication Publication Date Title
CN110912780B (zh) 一种高可用集群检测方法、系统及受控终端
EP2586163B1 (en) Notifying a controller of a change to a packet forwarding configuration of a network element over a communication channel
CN101060485B (zh) 拓扑改变报文的处理方法和处理装置
US9871690B2 (en) Indicating a master network controller in a virtual router redundancy protocol
WO2017124791A1 (zh) 链路检测方法及装置
TW201421232A (zh) 在一冗餘群組中實施故障備援的方法、裝置與電腦程式產品
CN109088818B (zh) 一种设备联动切换的方法及装置
CN107911291A (zh) Vrrp路由器切换方法、路由器、vrrp主备切换系统及存储介质
EP3806404A1 (en) Communication method, device and system for avoiding loop
CN111262665A (zh) 数据通信方法、装置、控制器及系统
WO2016206635A1 (zh) 一种基于lacp的转发检测方法及系统
EP2658172A1 (en) Multicast method and multicast device
US7672228B1 (en) System and method for network loop detection and recovery
CN110535947B (zh) 一种存储设备集群配置节点切换方法、装置及设备
CN103262470B (zh) FCoE网络链接管理方法、设备和系统
WO2023206697A1 (zh) Mesh网络中节点中断回连方法、装置和设备
CN101616095B (zh) 一种选举指定中间系统的方法和路由器
JP2012227804A (ja) 情報処理装置および情報処理装置の制御方法
WO2014117499A1 (zh) 组播恢复方法和装置及包括该组播恢复装置的中继设备
US10771284B2 (en) Troubleshooting method and apparatus for edge routing bridge in TRILL campus
CN102769571B (zh) 一种平滑重启实现方法及设备
WO2022213783A1 (zh) 一种流量转发的方法及装置
WO2021249173A1 (zh) 一种分布式存储系统及其异常处理方法和相关装置
WO2021018150A1 (zh) 一种链路检测的方法和装置
JP4260796B2 (ja) ブリッジ及びそれを用いた経路変更方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22939530

Country of ref document: EP

Kind code of ref document: A1