A backhaul management method in EasyMesh networking

By dynamically switching the backhaul mode of the router in the EasyMesh network and giving priority to the wired or wireless interface, the interruption problem caused by network loop detection when the Agent has dual links is solved, and rapid recovery and stable network connection are achieved.

CN115278734BActive Publication Date: 2024-09-27SICHUAN JIUZHOU ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210867901.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-22
Publication Date
2024-09-27
Estimated Expiration
2042-07-22

AI Technical Summary

Technical Problem

In EasyMesh networking, when the Agent has both wired and wireless links, it cannot block the wireless interface first, causing the network loop detection function to close the network port connected to the controller, making the entire EasyMesh network unusable and taking a long time to recover. long.

Method used

By determining whether the Agent can access the Internet before the router is powered on, dynamically switching the backhaul mode, giving priority to wired or wireless interfaces, and setting rules in the Controller to discard loop detection packets sent by the gateway, this ensures rapid network recovery.

Benefits of technology

It realizes centralized management of backhaul mode, reduces system startup time, avoids network interruption caused by network loop detection, prioritizes the use of wired interfaces to ensure network stability, and shortens recovery time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278734B
    Figure CN115278734B
Patent Text Reader

Abstract

The present invention discloses a backhaul management method in EasyMesh networking. Before EasyMesh networking, the backhaul mode of the router is set to wireless backhaul or wired backhaul; the gateway, controller and agent are networked, and rules are set in the controller to discard the loop detection message sent by the gateway. The router is powered on and started, and before loading the WiFi module, it is determined whether to switch backhaul. After normal operation, the agent detects the STP status of its own wired WAN port, the STP status of the wireless STA interface, and whether the wired WAN port has the ability to access the network in real time, determines whether to switch the backhaul mode, and realizes dynamic management of the backhaul mode. The present invention realizes centralized management of the backhaul mode, performs corresponding backhaul mode monitoring for each stage of equipment operation, and gives priority to wired backhaul; avoids the problem that the Mesh network cannot access the network normally when dual links are used, and the recovery time is long.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a backhaul management method in EasyMesh networking. Background Art

[0002] With the emergence of Wi-Fi 6, people's demand for Internet speed has been met to a great extent. As for network coverage, the Wi-Fi Alliance has launched a standardized certification program - EasyMesh. EasyMesh is a basic standard for connecting different APs (Access Points) to each other. This standard defines the protocol for controlling the connection between APs from different manufacturers.

[0003] The EasyMesh network consists of a controller and multiple agents. Agents are devices that are managed by the Controller and can interact with the Controller through the 1905 protocol, such as repeaters and wireless bridges. The Controller is the core of the entire EasyMesh network. An EasyMesh network must have a Controller and can only have one Controller. Almost all policy algorithms are completed by the Controller and notified to the Agent through the protocol, and then the Agent completes the specific implementation work. From the physical layer, there are only two ways for the Controller to interact with the Agent: wired and wireless, so it is divided into Ethernet Onboarding and Wi-Fi Onboarding. Ethernet Onboarding is to connect two devices directly with a network cable. The Agent sends an automatic configuration search request message, and the Controller replies with an automatic configuration search response; after receiving the response, the Agent completes the M1 and M2 interaction process with the Controller; Wi-Fi Onboarding is to first achieve wireless connection through the wireless WPS connection technology, and then start to complete the automatic configuration data interaction.

[0004] Usually when users are setting up an EasyMesh network, they will place multiple routers together and set up the network one by one. After the network is set up, they will turn off the power of all routers and then place the routers in the corresponding positions. When a router is placed in a new position, its backhaul method may change.

[0005] When EasyMesh is networking, regardless of whether the current Agent wired network is normal, the Agent wireless STA interface is connected to the Backhual BSS AP interface of the Controller or the upper-level Agent. If the Agent's WAN port is not plugged into a network cable, the Agent network data is transmitted back to the upper level through the wireless interface; if the Agent's WAN port is connected to a network cable, there will be two physical links (wired and wireless). When the networking device turns on the EasyMesh function, the STP (Spanning Tree Protocol) function will also be turned on. The corresponding port status is controlled by STP to avoid network loops, thereby ensuring that the Agent network data can be transmitted back to the upper level normally. This technology can achieve rapid network recovery when the wired or wireless connection is disconnected, but it also has the following two disadvantages:

[0006] A. When the Agent has both wired and wireless links, although STP can avoid network loops, STP does not block the wireless interface first.

[0007] B. In the EasyMesh network topology diagram, there are generally three types of devices: gateway (optical modem), Controller, and Agent. The Controller is connected to the gateway (optical modem) via wired connection, and the Agent is connected to the Controller or the upper-level Agent via wireless or wired connection. The gateway (optical modem) will enable the private protocol loop detection function, and the Controller / Agent will enable the STP loop detection function. Once the loop detection function of the gateway (optical modem) finds a loop first, the gateway (optical modem) will close the network port connected to the Controller, making the entire EasyMesh network unusable. Even if the STP subsequently cuts off the loop, the network will take a long time to recover. Summary of the invention

[0008] The purpose of the present invention is to provide a backhaul management method in EasyMesh networking, which is used to solve the problem in the prior art that when an Agent in an EasyMesh network has both wired and wireless links, the wireless interface cannot be blocked first, and the loop detection function of the gateway finds a loop and closes the network port connected to the controller, causing the network to be unusable.

[0009] The present invention solves the above problems through the following technical solutions:

[0010] A method for managing a backhaul mode in an EasyMesh network, comprising:

[0011] Step S100: Before EasyMesh networking, if the router is not connected to the Internet, the router's backhaul mode is set to wireless backhaul; if the router is already connected to the Internet, the router's backhaul mode is set to wired backhaul;

[0012] Step S200, the gateway, controller Controller and several agents are networked in EasyMesh, and rules are set in the Controller to discard the loop detection message sent by the gateway. If the position of the router changes after networking, proceed to the next step, otherwise jump directly to step S400;

[0013] Step S300, the router is powered on and started. Before loading the WiFi module, it is determined whether the Agent can access the Internet network. If so, the current backhaul mode of the Agent is checked. If it is currently wireless backhaul, the wireless backhaul is switched to wired backhaul; otherwise, the current backhaul mode of the Agent is checked. If it is currently wired backhaul, the wired backhaul is switched to wireless backhaul;

[0014] Step S400, the Agent detects in real time the STP status of its own wired WAN port, the STP status of the wireless STA interface, and whether the wired WAN port has the ability to access the Internet, determines whether to switch the backhaul mode, and implements dynamic management of the backhaul mode. The switching of the backhaul mode includes:

[0015] A1. When the STP status of the wired WAN port is Forwarding and the STP status of the wireless STA interface is Blocking, the backhaul mode is switched to wired backhaul;

[0016] A2. When the STP status of the wired WAN port is Blocking and the STP status of the wireless STA interface is Forwarding, the backhaul mode is switched to wired backhaul;

[0017] A3. When the STP status of the wired WAN port is Forwarding, the STP status of the wireless STA interface is Forwarding, and the wired WAN port can access the Internet, switch the backhaul mode to wired backhaul.

[0018] The present invention is divided into static management feedback and dynamic management feedback, wherein static management feedback includes two situations, one is that when the router is networked for the first time, the feedback mode of the router needs to be set; the other is that after the networking is completed, when the position of the router is moved and the networking mode may be changed, before the WiFi module is loaded after the router is powered on, check whether the feedback mode needs to be switched. Dynamic management feedback is to switch the feedback mode according to the real-time detected network status after the networking is completed. In the first case of static management feedback, if there is no position movement or change of the networking mode after the networking is completed, the dynamic management feedback is directly entered. Centralized management of the feedback mode is realized, and corresponding feedback mode monitoring is performed for each stage of equipment operation.

[0019] The method in A3 to determine whether the wired WAN port can access the Internet is:

[0020] Step B1, obtain the gateway IP address, such as using the route-n command to obtain the gateway IP address;

[0021] Step B2, obtain an IP address that is in the same network segment as the gateway but is not in use;

[0022] Step B3, remove the wired WAN interface from the bridge br0 of the Agent, such as using the "brctl delif br0eth0.0" command to remove the wired WAN interface from the bridge br0;

[0023] Step B4: Set the IP address obtained in step B2 to the wired WAN interface to confirm that the gateway IP address can be reached;

[0024] Step B5: Clear the IP address set for the wired WAN interface and add the wired WAN interface to the bridge br0.

[0025] The present invention can quickly confirm whether the wired link is connected to the gateway through the above steps. If so, the wired interface is preferentially used and the wireless interface is blocked.

[0026] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0027] (1) The present invention realizes centralized management of the backhaul mode and performs corresponding backhaul mode monitoring for each stage of device operation: at startup, before loading the WiFi module, fast backhaul mode switching is realized, which can reduce the system startup time by about 20 seconds; during normal use, wired backhaul and wireless backhaul are switched to each other, while ensuring that the network is not interrupted, accurately judging whether the wired WAN interface has the ability to access the Internet, and giving priority to wired backhaul; by setting rules in the Controller, the private loop detection message sent by the gateway is discarded, so as to avoid the problem that when there is a dual link in the EasyMesh network, the gateway detects the network loop as soon as possible and quickly closes the corresponding port, resulting in the Mesh network being unable to access the Internet network normally and the recovery time being long.

[0028] (2) The present invention realizes the selection of the most appropriate backhaul method before networking, the free switching between wired backhaul and wireless backhaul after networking, and the perfect compatibility between the gateway and the EasyMesh network loop detection mechanism. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is a flow chart of the present invention;

[0030] Figure 2 This is a flow chart of the static feedback management method of the present invention;

[0031] Figure 3 This is a flow chart of the dynamic feedback management method of the present invention. DETAILED DESCRIPTION

[0032] The present invention is further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.

[0033] Example:

[0034] Combined with Figure 1 and Figure 2 As shown, a backhaul management method in EasyMesh networking includes:

[0035] Step S100: Before EasyMesh networking, if the router is not connected to the Internet, the router's backhaul mode is set to wireless backhaul; if the router is already connected to the Internet, the router's backhaul mode is set to wired backhaul; this is static management backhaul;

[0036] Step S200: Network the gateway, controller and several agents in EasyMesh. To prevent the loop detection mechanism of the gateway (optical modem) from discovering loops in the EasyMesh network, set the "ebtables -I FORWARD -p 0xfffa -i eth0.0 -j DROP" rule on the Controller to discard the detection message sent by the gateway (optical modem). If the location of the router changes after networking, proceed to the next step, otherwise jump directly to step S400;

[0037] Step S300: The router is powered on and started. Before loading the WiFi module, it is determined whether the backhaul mode needs to be switched. If it needs to be switched, the switch is executed. This is static management backhaul, specifically:

[0038] Determine whether the Agent can access the Internet network. If so, it indicates that the Agent can access the network through a wired connection. Check the current backhaul mode of the Agent. If it is currently wireless backhaul, switch the wireless backhaul to wired backhaul. If it is wired backhaul, no switching is required. Method for switching wireless backhaul to wired backhaul: set the mode of the Agent's wireless main interface to AP mode, reset its parameters, and then reset the Wi-Fi management module. Otherwise, it indicates that the Agent cannot access the network through a wired connection. Check the current backhaul mode of the Agent. If it is currently not necessary to backhaul, no switching is required. If it is currently wired backhaul, switch the wired backhaul to wireless backhaul. Method for switching wired backhaul to wireless backhaul: synchronize the SSID, encryption mode, and password of the Agent's Backhual BSS AP interface to the wireless main interface, set the wireless main interface to STA mode, and then reset the Wi-Fi management module. Method for determining whether the Agent can access the Internet network is to determine whether the current network can access the Internet based on whether the current bridge br0 obtains the gateway IP address.

[0039] Step S400: Dynamic backhaul management Figure 3 As shown: After the router is successfully networked and the wireless parameters are synchronized, during normal operation, check the real-time network status (whether it has the ability to access the Internet), the wired WAN interface status, the UP / DOWN status, and the Forwarding / Blocking status changes of STP management to determine whether the backhaul mode needs to be switched, including:

[0040] The Agent detects the STP status of its own wired WAN port, the STP status of the wireless STA interface, and whether the wired WAN port has the ability to access the Internet in real time, and determines whether to switch the backhaul mode to dynamically manage the backhaul mode. The situations in which the backhaul mode is switched include:

[0041] A1. When the STP status of the wired WAN port is Forwarding and the STP status of the wireless STA interface is Blocking, the backhaul mode is switched to wired backhaul;

[0042] A2. When the STP status of the wired WAN port is Blocking and the STP status of the wireless STA interface is Forwarding, the backhaul mode is switched to wired backhaul;

[0043] A3. When the STP status of the wired WAN port is Forwarding, the STP status of the wireless STA interface is Forwarding, and the wired WAN port can access the Internet, switch the backhaul mode to wired backhaul.

[0044] The present invention is divided into static management feedback and dynamic management feedback, wherein static management feedback includes two situations, one is that when the router is networked for the first time, the feedback mode of the router needs to be set; the other is that after the networking is completed, when the position of the router is moved and the networking mode may be changed, before the WiFi module is loaded after the router is powered on, check whether the feedback mode needs to be switched. Dynamic management feedback is to switch the feedback mode according to the real-time detected network status after the networking is completed. In the first case of static management feedback, if there is no position movement or change of the networking mode after the networking is completed, the dynamic management feedback is directly entered. Centralized management of the feedback mode is realized, and corresponding feedback mode monitoring is performed for each stage of equipment operation.

[0045] In A3, when the STP status of the wired WAN port is Forwarding and the STP status of the wireless STA interface is Forwarding, it is not possible to confirm whether the current wired WAN port can access the Internet. This solution uses the following method to confirm whether the wired WAN port can access the Internet without affecting network use. The specific steps are as follows:

[0046] Step B1: Get the gateway IP address

[0047] The working mode of EasyMesh Network Agent is uniformly set to bridge mode. All interfaces will be added to the bridge br0. The current gateway IP address can be obtained through the "route-n" command. For example, the gateway IP address is "192.168.8.1";

[0048] Step B2: Obtain an unused IP address in the same network segment as the gateway

[0049] Generally, DHCP servers assign addresses from small to large, so we start querying from 192.168.8.254 to 192.168.8.2 and use the ping command to confirm whether the address is in use. The command is "ping192.168.8.254 -c 5". If the ping command returns a success, it means that the address is used by a device; if the ping command returns a failure, it means that the address is not used by a device.

[0050] Step B3: Remove the wired WAN interface from bridge br0

[0051] Use the "brctl delif br0 eth0.0" command to remove the wired WAN interface eth0.0 from the bridge br0.

[0052] Step B4: Set the unused IP address found to the wired WAN interface

[0053] Use the "ifconfig eth0.0 192.168.8.254" command to set the IP address to the wired WAN interface.

[0054] Use the IP address found above to confirm whether the gateway address is reachable

[0055] Run the following command to confirm that the gateway address can be accessed through the IP address, "ping 192.168.8.1 -I192.168.8.254 -c 5". If the ping command is executed successfully, it means that the IP address can access the gateway address and the wired WAN interface is connected to the gateway link. If the ping command fails, it means that the IP address cannot access the gateway address and the wired WAN interface is not connected to the gateway link.

[0056] Step B5: Clear the IP address set for the wired WAN interface and add the wired WAN interface to the bridge br0.

[0057] Through the above steps, it is confirmed whether the wired WAN interface is connected to the gateway link. If it is connected, the backhaul mode is switched to wired backhaul, otherwise the backhaul mode is not switched.

[0058] The present invention realizes static and dynamic management of the return mode. Using this method to manage the return mode is more practical and more efficient.

[0059] Although the present invention is described herein with reference to the illustrative embodiments of the present invention, the above embodiments are only preferred embodiments of the present invention, and the embodiments of the present invention are not limited to the above embodiments. It should be understood that those skilled in the art can design many other modifications and embodiments, which will fall within the scope and spirit of the principles disclosed in this application.

Claims

1. A backhaul management method in EasyMesh networking, characterized in that: include: Step S100: Before EasyMesh networking, if the router is not connected to the Internet, the router's backhaul mode is set to wireless backhaul; if the router is already connected to the Internet, the router's backhaul mode is set to wired backhaul; Step S200, the gateway, controller Controller and several agents are networked in EasyMesh, and rules are set in the Controller to discard the loop detection message sent by the gateway. If the position of the router changes after networking, proceed to the next step, otherwise jump directly to step S400; Step S300, the router is powered on and started. Before loading the WiFi module, it is determined whether the Agent can access the Internet network. If so, the current backhaul mode of the Agent is checked. If it is currently wireless backhaul, the wireless backhaul is switched to wired backhaul. Otherwise, it indicates that the Agent cannot access the network through a wired connection. The current backhaul mode of the Agent is checked. If it is currently wired backhaul, the wired backhaul is switched to wireless backhaul. Step S400, the Agent detects in real time the STP status of its own wired WAN port, the STP status of the wireless STA interface, and whether the wired WAN port has the ability to access the Internet, determines whether to switch the backhaul mode, and implements dynamic management of the backhaul mode. The switching of the backhaul mode includes: A1. When the STP status of the wired WAN port is Forwarding and the STP status of the wireless STA interface is Blocking, the backhaul mode is switched to wired backhaul; A2. When the STP status of the wired WAN port is Blocking and the STP status of the wireless STA interface is Forwarding, the backhaul mode is switched to wired backhaul; A3. When the STP status of the wired WAN port is Forwarding, the STP status of the wireless STA interface is Forwarding, and the wired WAN port can access the Internet, switch the backhaul mode to wired backhaul.

2. According to claim 1, a backhaul management method in EasyMesh networking is characterized in that: The method in A3 to determine whether the wired WAN port can access the Internet is: Step B1, obtain the gateway IP address; Step B2, obtain an IP address that is in the same network segment as the gateway but is not in use; Step B3, remove the wired WAN interface from the Agent's bridge br0; Step B4: Set the IP address obtained in step B2 to the wired WAN interface to confirm that the gateway IP address can be reached; Step B5: Clear the IP address set for the wired WAN interface and add the wired WAN interface to the bridge br0.

3. According to claim 2, a backhaul management method in EasyMesh networking is characterized in that: In step B1, the route-n command is used to obtain the gateway IP address.

4. According to claim 2, a backhaul management method in EasyMesh networking is characterized in that: In step B3, use the "brctl delif br0 eth0.0" command to remove the wired WAN interface from the bridge br0.