A mesh network stability enhancement method and system based on multi-link automatic switching

By employing a multi-link automatic switching method, link strength and path cost are evaluated, the optimal link is selected, and backup links are kept alive. This solves the stability and continuity problems of traditional mesh networks when links fail, enabling rapid recovery and optimized network performance.

CN119110267BActive Publication Date: 2026-07-31FUJIAN STAR NET WISDOM TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FUJIAN STAR NET WISDOM TECH CO LTD
Filing Date
2024-08-16
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Traditional mesh networks suffer from network stability and data transmission continuity when links fail. Single-link recovery mechanisms are time-consuming and performance-intensive, leading to data loss and increased network latency.

Method used

The system employs a multi-link automatic switching method, which selects the optimal primary link and keeps the backup link alive by calculating the link strength score and the minimum path cost, thereby achieving seamless switching to the backup link and ensuring network stability and data transmission continuity.

Benefits of technology

Quickly restore network connectivity, reduce downtime, enhance network stability and reliability, and optimize network performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119110267B_ABST
    Figure CN119110267B_ABST
Patent Text Reader

Abstract

This invention provides a method and system for enhancing the stability of mesh networks based on automatic multi-link switching. The method includes: when node X requests access to the mesh network, scanning all available network links, calculating the link strength score of each link between node X and its directly connected node Y, calculating the minimum path cost from node Y to the control center, and returning the minimum path cost (MinCostPath) to node X; calculating the final score for each link; sorting the final scores from highest to lowest, saving the top three links, selecting the highest-scoring link as the primary link for communication, and keeping the remaining two links as backup links for keep-alive purposes; if node X experiences an abnormal disconnection through the primary link, selecting another backup link as the primary link for communication; if no backup links are available, rescanning and calculating to obtain new primary and backup links. This invention enables seamless and rapid communication switching, enhances network stability and reliability, and improves network performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network communication technology, and in particular to a method for enhancing the stability of Mesh networks based on automatic multi-link switching. Background Technology

[0002] With the development of wireless network technology, Mesh networks have become a popular network solution due to their high flexibility and scalability. However, traditional Mesh networks often suffer from network stability and data transmission continuity when encountering node failures. Especially when link failures occur, traditional Mesh networks employ a single-link recovery mechanism, primarily selecting the link with the shortest response time for connection and then searching for and reconnecting to the shortest link again after a failure. On the one hand, the current response time only reflects the current network state and does not represent response speed at other times; using response time alone as the criterion for selecting the optimal link is unreasonable. On the other hand, this single-link recovery mechanism requires re-searching after each failure, which is time-consuming, performance-intensive, and can lead to data loss and increased network latency. Summary of the Invention

[0003] The technical problem to be solved by this invention is to provide a method and system for enhancing the stability of a mesh network based on automatic switching of multiple links, so as to automatically and seamlessly switch to the optimal backup link when the main link fails, thereby ensuring the stability of the network and the continuity of data transmission.

[0004] In a first aspect, the present invention provides a method for enhancing the stability of a Mesh network based on automatic multi-link switching, comprising the following steps:

[0005] Step S1: When the current node X requests to access the Mesh network, the current node X scans all available network links and sends a scan message to the node Y directly connected to the current node X.

[0006] Step S2: Calculate the link strength score Scoro for each link between the current node X and the node Y directly connected to the current node X. Strength ;

[0007] Step S3: When node Y receives a scan message, node Y calculates the minimum path cost value MinCostPath from node Y to the control center and returns the minimum path cost value MinCostPath to the current node X.

[0008] Step S4: The current node X calculates the final score for each link. Score The final score Score The calculation formula is: FinalScore =Score Strength -MinCostPath;

[0009] Step S5: Sort the final scores of all the calculated links, save the top three links with the highest final scores, select the link with the highest final score as the main link for communication, and keep the remaining two links as backup links for keep-alive.

[0010] Step S6: The current node X uses the main link for communication by default until the gateway detects an abnormal disconnection of the main link, then proceeds to step S7.

[0011] Step S7: Determine if there are other alternative links. If so, use the link with the highest final score among the alternative links as the main link for communication and return to step S6. Otherwise, return to step S1 to rescan all links.

[0012] Furthermore, the Mesh network is compatible with the EasyMesh standard protocol, and includes a control center and multiple AP nodes, which are connected via at least one of Ethernet, 5GHz, and 2.4GHz.

[0013] Furthermore, both the current node X and the node Y directly connected to the current node belong to the AP node.

[0014] Furthermore, the link strength score in step S2 Strength The link strength score is related to the connection type and RSSI value. Strength The calculation process is as follows:

[0015] If the connection type between the current node X and its directly connected node Y is a wired connection, then the link strength score of the wired connection link from X to Y is... Strength The value is 100;

[0016] If the connection type between current node X and its directly connected node Y is a 5G wireless connection, then the link strength score Scoro for the 5G wireless connection link from X to Y is... Strength The calculation formula is:

[0017]

[0018] If the connection type between current node X and its directly connected node Y is a 2.4G wireless connection, then the link strength score of the 2.4G wireless connection link from X to Y is... Strength The calculation formula is:

[0019]

[0020] RSSI 5G and RSSI 2.4G These are the signal strength indicators for 5G network reception and 2.4G network reception, respectively, with maximum values ​​of 90 and 80.

[0021] Furthermore, step S3 specifically includes:

[0022] Step S31: When node Y receives the scan message, node Y uses Dujkstra's algorithm to calculate the minimum path cost MinCostPath from node Y to the control center, where the path cost Weight between two adjacent nodes is:

[0023] Weight = BaseCost + i × RSSI penalty +j×Utilization penalty ;

[0024] Where i takes the value 3, j takes the value 4, and BaseCost is the basic cost, which varies depending on the connection type. The specific values ​​of BaseCost are as follows:

[0025] RSSI penalty The calculation method for signal strength loss is as follows:

[0026] RSSI is the received signal strength indicator;

[0027] Utilization penalty The channel utilization deficit is calculated as follows: Utilization penalty = (1-Utilization), where Utilization is the channel utilization rate;

[0028] Step S32: Each node Y returns a minimum path cost, MinCostPath, to the current node X.

[0029] Secondly, the present invention provides a mesh network stability enhancement system based on multi-link automatic switching, comprising:

[0030] The access request module is used to scan all available network links and send a scan message to node Y that is directly connected to the current node X when the current node X requests access to the Mesh network.

[0031] The link strength calculation module is used to calculate the link strength score Scoro for each link between the current node X and the node Y directly connected to the current node X. Strength ;

[0032] The minimum path cost calculation module is used to calculate the minimum path cost MinCostPath from node Y to the control center when node Y receives a scan message, and return the minimum path cost MinCostPatg to the current node X.

[0033] The final score calculation module is used to calculate the final score (Final) for each link. Score The final score Score The calculation formula is: Final Score =Score Strength -MinCostPath;

[0034] The link saving and backup module is used to sort the final scores of all calculated links, save the top three links with the highest final scores, select the link with the highest final score as the main link for communication, and keep the remaining two links as backup links for keeping them alive.

[0035] The communication module: the current node X uses the main link for communication by default until the gateway detects an abnormal disconnection of the main link, at which point it executes the automatic switching module.

[0036] The automatic switching module is used to determine if there are other alternative links. If so, the link with the highest final score among the alternative links is used as the primary link for communication, and the communication module is executed. Otherwise, the module returns to the access request module to rescan all links.

[0037] Furthermore, the Mesh network is compatible with the EasyMesh standard protocol, and includes a control center and multiple AP nodes, which are connected via at least one of Ethernet, 5GHz, and 2.4GHz.

[0038] Furthermore, both the current node X and the node Y directly connected to the current node belong to the AP node.

[0039] Furthermore, the link strength score in the link strength calculation module... Strength The link strength score is related to the connection type and RSSI value. Strength The calculation process is as follows:

[0040] If the connection type between the current node X and its directly connected node Y is a wired connection, then the link strength score of the wired connection link from X to Y is...Strength The value is 100;

[0041] If the connection type between current node X and its directly connected node Y is a 5G wireless connection, then the link strength score of the 5G wireless connection link from X to Y is... Strength The calculation formula is:

[0042]

[0043] If the connection type between current node X and its directly connected node Y is a 2.4G wireless connection, then the link strength score of the 2.4G wireless connection link from X to Y is... Strength The calculation formula is:

[0044]

[0045] RSSI 5G and RSSI 2.4G These are the signal strength indicators for 5G network reception and 2.4G network reception, respectively, with maximum values ​​of 90 and 80.

[0046] Furthermore, the minimum path cost calculation module specifically includes:

[0047] When node Y receives a scan message, node Y uses Dujkstra's algorithm to calculate the minimum path cost, MinCostPath, from node Y to the control center. The path cost Weight between two adjacent nodes is:

[0048] Weight = BaseCost + i × RSSI penalty +j×Utilization penalty ;

[0049] Where i takes the value 3, j takes the value 4, and BaseCost is the basic cost, which varies depending on the connection type. The specific values ​​of BaseCost are as follows:

[0050] RSSI penalty The calculation method for signal strength loss is as follows:

[0051] RSSI is the received signal strength indicator;

[0052] Utilization penalty The channel utilization deficit is calculated as follows: Utilization penalty= (1-Utilization), where Utilization is the channel utilization rate;

[0053] For each node Y, return the minimum path cost MinCostPath to the current node X.

[0054] The advantages of this invention are:

[0055] 1. Rapid recovery: When a link fails, the network connection can be quickly restored, significantly reducing system downtime;

[0056] 2. Enhanced stability: Through multi-link backup, the stability and reliability of the network are enhanced when facing node or link failures;

[0057] 3. Optimize performance: Conduct reasonable link assessments and optimizations to ensure that the network operates in the best possible condition at all times. Attached Figure Description

[0058] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0059] Figure 1 This is a flowchart illustrating the execution of a method for enhancing the stability of a Mesh network based on automatic multi-link switching, as described in this invention.

[0060] Figure 2 This is a schematic diagram of the framework of a Mesh network stability enhancement system based on automatic multi-link switching according to the present invention.

[0061] Figure 3 This is a schematic diagram of the network node structure in a specific embodiment of the present invention. Detailed Implementation

[0062] This application provides a method and system for enhancing the stability of Mesh networks based on automatic multi-link switching, which can enhance network stability, improve network self-healing capabilities, and optimize network performance.

[0063] The technical solution in this application embodiment has the following general idea: by simultaneously considering the link strength and the minimum cost from the node directly connected to the current access node to the control center, the priority of the link is evaluated, so as to obtain the better-performing communication link more reasonably and accurately, and keep two better-performing alternative links alive at the same time, so that communication can be restored as quickly as possible when the main link fails, thereby enhancing the stability and reliability of the network when facing node or link failures.

[0064] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.

[0065] Example 1

[0066] Please see Figure 1 This embodiment provides a method for enhancing the stability of a mesh network based on automatic multi-link switching, including the following steps:

[0067] Step S1: When the current node X requests to access the Mesh network, the current node X scans all available network links and sends a scan message to the node Y directly connected to the current node X.

[0068] Step S2: Calculate the link strength score for each link between the current node X and the node Y directly connected to the current node X. Strength ;

[0069] Step S3: When node Y receives a scan message, node Y calculates the minimum path cost value MinCostPath from node Y to the control center and returns the minimum path cost value MinCostPath to the current node X.

[0070] Step S4: The current node X calculates the final score for each link. Score The final score Score The calculation formula is: Final Score =Score Strength -MinCostPath;

[0071] Step S5: Sort the final scores of all the calculated links, save the top three links with the highest final scores, select the link with the highest final score as the main link for communication, and keep the remaining two links as backup links for keep-alive.

[0072] Step S6: The current node X uses the main link for communication by default until the gateway detects an abnormal disconnection of the main link, then proceeds to step S7.

[0073] Step S7: Determine if there are other alternative links. If so, use the link with the highest final score among the alternative links as the main link for communication and return to step S6. Otherwise, return to step S1 to rescan all links.

[0074] Preferably, the Mesh network is compatible with the EasyMesh standard protocol. The Mesh network includes a control center and multiple AP nodes, connected via at least one of Ethernet, 5GHz, and 2.4GHz, with the connection priority decreasing sequentially for Ethernet, 5GHz, and 2.4GHz. The core mechanism of this solution is to maintain multiple links while remaining compatible with the EasyMesh standard protocol, maintaining data communication on only one link at a time, i.e., having three links, such as Ethernet, 5GHz, and 2.4GHz. In a preferred embodiment, when only Ethernet can perform data communication, the Ethernet interface and the FrontBSS of the downlink connected STA are under the same bridge interface, i.e., the same Layer 2 broadcast domain. The 2.4GHz and 5GHz Backhaul STAs only maintain a connection with the control center (Controller) and are not added to the Ethernet bridge.

[0075] Preferably, the current node X and the node Y directly connected to the current node both belong to AP nodes.

[0076] Preferably, the link strength score in step S2 Strength The link strength score is related to the connection type and RSSI value. Strength The calculation process is as follows:

[0077] If the connection type between the current node X and its directly connected node Y is a wired connection, then the link strength score of the wired connection link from X to Y is... Strength The value is 100;

[0078] If the connection type between current node X and its directly connected node Y is a 5G wireless connection, then the link strength score of the 5G wireless connection link from X to Y is... Strength The calculation formula is:

[0079]

[0080] If the connection type between current node X and its directly connected node Y is a 2.4G wireless connection, then the link strength score of the 2.4G wireless connection link from X to Y is... Strength The calculation formula is:

[0081]

[0082] RSSI 5G and RSSI 2.4G These are the signal strength indicators for 5G and 2.4G networks, respectively, with maximum values ​​of 90 and 80. RSSI5G and RSSI 2.4G All values ​​can be obtained directly through the gateway. In 5G wireless connections, the RSSI value range is generally optimal at -30dBm and worst at -90dBm.

[0083] Preferably, step S3 specifically includes:

[0084] Step S31: When node Y receives the scan message, node Y uses Dujkstra's algorithm to calculate the minimum path cost MinCostPath from node Y to the control center, where the path cost Weight between two adjacent nodes is:

[0085] Weight = BaseCost + i × RSSI penalty +j×Utilization penalty ;

[0086] Where i takes the value 3, j takes the value 4, and BaseCost is the basic cost, which varies depending on the connection type. The specific values ​​of BaseCost are as follows:

[0087] RSSI penalty The calculation method for signal strength loss is as follows:

[0088] RSSI is the received signal strength indicator;

[0089] Utilization penalty The channel utilization deficit is calculated as follows: Utilization penalty = (1-Utilization), where Utilization is the channel utilization rate; the specific values ​​of RSSI and channel utilization rate can be obtained directly from the gateway.

[0090] Step S32: Each node Y returns a minimum path cost, MinCostPath, to the current node X.

[0091] Preferably, the method is suitable for small to medium-sized network structures where the average number of hops from each AP to the Controller is controlled at around 10 (ideally below 15).

[0092] Example 2

[0093] Please see Figure 2 This embodiment provides a Mesh network stability enhancement system based on multi-link automatic switching, including:

[0094] The access request module is used to scan all available network links and send a scan message to node Y that is directly connected to the current node X when the current node X requests access to the Mesh network.

[0095] The link strength calculation module is used to calculate the link strength score for each link between the current node X and the node Y directly connected to the current node X. Strength ;

[0096] The minimum path cost calculation module is used to calculate the minimum path cost MinCostPath from node Y to the control center when node Y receives a scan message, and return the minimum path cost MinCostPath to the current node X.

[0097] The final score calculation module is used to calculate the final score (Final) for each link. Score The final score Score The calculation formula is: Final Score =Score Strength -MinCostPath;

[0098] The link saving and backup module is used to sort the final scores of all calculated links, save the top three links with the highest final scores, select the link with the highest final score as the main link for communication, and keep the remaining two links as backup links for keeping them alive.

[0099] The communication module: the current node X uses the main link for communication by default until the gateway detects an abnormal disconnection of the main link, at which point it executes the automatic switching module.

[0100] The automatic switching module is used to determine if there are other alternative links. If so, the link with the highest final score among the alternative links is used as the primary link for communication, and the communication module is executed. Otherwise, the module returns to the access request module to rescan all links.

[0101] Preferably, the Mesh network is compatible with the EasyMesh standard protocol. The Mesh network includes a control center and multiple AP nodes, connected via at least one of Ethernet, 5GHz, and 2.4GHz, with the connection priority decreasing sequentially from Ethernet to 5GHz and then to 2.4GHz. The core mechanism of this solution is to maintain multiple links while remaining compatible with the EasyMesh standard protocol, maintaining data communication on only one link at a time, i.e., having three links, such as Ethernet, 5GHz, and 2.4GHz. In a preferred embodiment, when only Ethernet is available for data communication, the Ethernet interface and the front BSS of the downlink connected STA are under the same bridge interface, i.e., the same Layer 2 broadcast domain. The 2.4GHz and 5GHz backhaul STAs only maintain a connection with the control center (Controller) and are not added to the Ethernet bridge.

[0102] Preferably, the current node X and the node Y directly connected to the current node both belong to AP nodes.

[0103] Preferably, the link strength score in the link strength calculation module is... Strength The link strength score is related to the connection type and RSSI value. Strength The calculation process is as follows:

[0104] If the connection type between the current node X and its directly connected node Y is a wired connection, then the link strength score of the wired connection link from X to Y is... Strength The value is 100;

[0105] If the connection type between current node X and its directly connected node Y is a 5G wireless connection, then the link strength score of the 5G wireless connection link from X to Y is... Strength The calculation formula is:

[0106]

[0107] If the connection type between current node X and its directly connected node Y is a 2.4G wireless connection, then the link strength score of the 2.4G wireless connection link from X to Y is... Strength The calculation formula is:

[0108]

[0109] RSSI 5G and RSSI 2.4G These are the signal strength indicators for 5G and 2.4G networks, respectively, with maximum values ​​of 90 and 80. RSSI5G and RSSI 2.4G All values ​​can be obtained directly through the gateway. In 5G wireless connections, the RSSI value range is generally optimal at -30dBm and worst at -90dBm.

[0110] Preferably, the minimum path cost calculation module specifically includes:

[0111] When node Y receives a scan message, node Y uses Dujkstra's algorithm to calculate the minimum path cost, MinCostPath, from node Y to the control center. The path cost Weight between two adjacent nodes is:

[0112] Weight = BaseCost + i × RSSI penalty +j×Utilization penalty ;

[0113] Where i takes the value 3, j takes the value 4, and BaseCost is the basic cost, which varies depending on the connection type. The specific values ​​of BaseCost are as follows:

[0114] RSSI penalty The calculation method for signal strength loss is as follows:

[0115] RSSI is the received signal strength indicator;

[0116] Utilization penalty The channel utilization deficit is calculated as follows: Utilization penalty = (1-Utilization), where Utilization is the channel utilization rate; the specific values ​​of RSSI and channel utilization rate can be obtained directly from the gateway.

[0117] For each node Y, return the minimum path cost MinCostPath to the current node X.

[0118] Preferably, the system is suitable for small to medium-sized network structures where the average number of hops from each AP to the Controller is controlled at around 10 (ideally below 15).

[0119] To more clearly illustrate the final evaluation score calculation process of this invention, the following examples are provided in conjunction with the accompanying drawings:

[0120] In a like Figure 3In the network shown, node A is the node to be connected (i.e., the current node), and nodes B and C are nodes directly connected to node A. For node A, since it is the first time connecting to the network, it needs to initiate an access request and scan all available links.

[0121] The scan found that A has two directly connected nodes B and C, and there are wired and 2.4G connections from A to B, and 5G and 2.4G connections from A to C.

[0122] Calculate the link strength scores from node A to its directly connected nodes B and C, resulting in the following link and link strength scores:

[0123] Link 1, the wired connection from A to B, has a link strength score of 100.

[0124] Link 2: Obtain the RSSI of the 2.4G connection from A to B through the gateway. 2.4G If the value is -36, then the link strength score of the 2.4G connection link from A to B is...

[0125] Link 3: Obtain the RSSI from A to C through the gateway. 5G The score is -32.67, thus the link strength score of the 5G connection link from A to C is 86;

[0126] Link 4: Obtain the RSSI from A to C through the gateway. 2.4G The score is -39.75, thus the link strength score of the 2.4G connection link from A to C is 67.

[0127] Next, calculate the minimum path cost from the nodes directly connected to the access point A to the Controller. Since nodes B and C are directly connected to access point A, the minimum path cost for each node needs to be calculated separately.

[0128] For node B, calculate the minimum path cost from itself to the control center, such as... Figure 3 As shown, there are two paths from node B to the control center (Controller): BKMJ-Controller and BKJ-Controller. The path cost of BKMJ-Controller is 6.7 + 0 + 3.1 + 4.4 = 14.2, with 4 hops. The path cost of BKJ-Controller is 6.7 + 7.9 + 4.4 = 19, with 3 hops. Therefore, the minimum path cost from node B to the control center is 14.2. Node B returns the calculated minimum path cost of 14.2 to node A.

[0129] For node C, calculate the minimum path cost from node C to the control center, such as... Figure 3 As shown, there is only one available path from node C to the control center Controller, namely CDL-Controller. Therefore, its minimum path cost is 4.1+2.6+1.3=8, and the number of hops is 3. Node C returns the calculated minimum path cost of 8 to node A.

[0130] Then, calculate the final score for each link separately:

[0131] Link 1 (AB, wired), final score = 100 - 14.2 = 85.8

[0132] Link 2 (AB, 2.4G), final score = 72 - 14.2 = 57.8

[0133] Link 3 (AC, 5G), final score = 86 - 8 = 78

[0134] Link 4 (AC, 2.4G), final score = 67 - 8 = 59

[0135] The links are sorted by their final scores: Link 1 (AB, wired), Link 3 (AC, 5G), Link 4 (AC, 2.4G), and Link 2 (AB, 2.4G). The top three links are saved to Node A. Link 1, with the highest final score, is taken as the primary link for communication, while Link 3 and Link 4 are the alternative links.

[0136] Afterwards, each communication connection directly uses the pre-built link 1 (AB, wired) as the primary link until an abnormal failure occurs (e.g., the corresponding network cable is unplugged or the wireless connection fails). Node A's gateway detects the link break, performs an interruption operation, and automatically switches to a backup link. This network recovery process does not require recalculating the link; instead, it directly selects one of the backup links stored in the node as the primary link for communication, thus achieving seamless switching at the user end. Only when all backup links become unusable does the scanning and calculation program restart to obtain and store new primary and backup links. The entire process involves minimal computation and performance overhead, while balancing link strength and minimum path cost, optimizing configuration and improving the user's internet experience.

[0137] While specific embodiments of the present invention have been described above, those skilled in the art should understand that the specific embodiments described are merely illustrative and not intended to limit the scope of the present invention. Equivalent modifications and variations made by those skilled in the art in accordance with the spirit of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for stability enhancement of a multi-link automatic switching based mesh network, the method comprising: Includes the following steps: ​ Step S1: When the current node X requests to access the Mesh network, the current node X scans all available network links and sends a scan message to the node Y directly connected to the current node X. Step S2, calculating a link strength score of each link between the current node X and a node Y directly connected to the current node X ; the link strength score in step S2 related to the connection type and the RSSI value, the link strength score The calculation process is as follows: If the connection type between the current node X and its directly connected node Y is a wired connection, then the link strength score of the wired connection link from X to Y is... The value is 100; If the connection type between current node X and its directly connected node Y is a 5G wireless connection, then the link strength score of the 5G wireless connection link from X to Y is... The calculation formula is: ; If the connection type between current node X and its directly connected node Y is a 2.4G wireless connection, then the link strength score of the 2.4G wireless connection link from X to Y is... The calculation formula is: ; in and These are the signal strength indicators for 5G network reception and 2.4G network reception, respectively. Step S3: When node Y receives the scan message, node Y calculates the minimum path cost from node Y to the control center. and return the minimum path cost. Give the current node X; Step S3 specifically includes: Step S31: When node Y receives the scan message, node Y uses Dujkstra's algorithm to calculate the minimum path cost from node Y to the control center. The path cost Weight between two adjacent nodes is: ; Where i takes the value 3, j takes the value 4, and BaseCost is the basic cost, which varies depending on the connection type. The specific values ​​of BaseCost are as follows: ; The calculation method for signal strength loss is as follows: , where RSSI is the received signal strength indicator; The calculation method for channel utilization deficit is as follows: Where Utilization is the channel utilization rate; Step S32: For each node Y, return the minimum path cost. Give the current node X; Step S4: The current node X calculates the final score for each link. The final score The calculation formula is: ; Step S5: Sort the final scores of all the calculated links, save the top three links with the highest final scores, select the link with the highest final score as the main link for communication, and keep the remaining two links as backup links for keep-alive. Step S6: The current node X uses the main link for communication by default until the gateway detects an abnormal disconnection of the main link, then proceeds to step S7. Step S7: Determine if there are other alternative links. If so, use the link with the highest final score among the alternative links as the main link for communication and return to step S6. Otherwise, return to step S1 to rescan all links.

2. The method for enhancing the stability of a Mesh network based on automatic multi-link switching as described in claim 1, characterized in that: The Mesh network is compatible with the EasyMesh standard protocol and includes a control center and multiple AP nodes, which are connected via at least one of Ethernet, 5GHz, and 2.4GHz.

3. The method for enhancing the stability of a Mesh network based on automatic multi-link switching as described in claim 1, characterized in that: The current node X and the node Y directly connected to the current node both belong to AP nodes.

4. A system for enhancing the stability of a mesh network based on automatic multi-link switching, characterized in that: include: The access request module is used to scan all available network links and send a scan message to node Y that is directly connected to the current node X when the current node X requests access to the Mesh network. The link strength calculation module is used to calculate the link strength score of each link between the current node X and the node Y directly connected to the current node X. The link strength score in the link strength calculation module The link strength score is related to the connection type and RSSI value. The calculation process is as follows: If the connection type between the current node X and its directly connected node Y is a wired connection, then the link strength score of the wired connection link from X to Y is... The value is 100; If the connection type between current node X and its directly connected node Y is a 5G wireless connection, then the link strength score of the 5G wireless connection link from X to Y is... The calculation formula is: ; If the connection type between current node X and its directly connected node Y is a 2.4G wireless connection, then the link strength score of the 2.4G wireless connection link from X to Y is... The calculation formula is: ; in and These are the signal strength indicators for 5G network reception and 2.4G network reception, respectively. The minimum path cost calculation module is used to calculate the minimum path cost from node Y to the control center when node Y receives a scan message. and return the minimum path cost. Give the current node X; The minimum path cost calculation module specifically includes: When node Y receives the scan message, node Y uses Dujkstra's algorithm to calculate the minimum path cost from node Y to the control center. The path cost Weight between two adjacent nodes is: ; Where i takes the value 3, j takes the value 4, and BaseCost is the basic cost, which varies depending on the connection type. The specific values ​​of BaseCost are as follows: ; The calculation method for signal strength loss is as follows: , where RSSI is the received signal strength indicator; The calculation method for channel utilization deficit is as follows: Where Utilization is the channel utilization rate; For each node Y, return the minimum path cost. Give the current node X; The final score calculation module is used to calculate the final score for each link. The final score The calculation formula is: ; The link saving and backup module is used to sort the final scores of all calculated links, save the top three links with the highest final scores, select the link with the highest final score as the main link for communication, and keep the remaining two links as backup links for keeping them alive. The communication module is used by the current node X to communicate by default using the main link until the gateway detects an abnormal disconnection of the main link, at which point it executes the automatic switching module. The automatic switching module is used to determine if there are other alternative links. If so, the link with the highest final score among the alternative links is used as the primary link for communication, and the communication module is executed. Otherwise, the module returns to the access request module to rescan all links.

5. The Mesh network stability enhancement system based on multi-link automatic switching as described in claim 4, characterized in that: The Mesh network is compatible with the EasyMesh standard protocol and includes a control center and multiple AP nodes, which are connected via at least one of Ethernet, 5GHz, and 2.4GHz.

6. The Mesh network stability enhancement system based on multi-link automatic switching as described in claim 4, characterized in that: The current node X and the node Y directly connected to the current node both belong to AP nodes.