Distributed wifi networking link backup method
Technical Field
The invention relates to the technical field of wifi networking, in particular to a distributed wifi networking link backup method.
Background
Along with continuous development and evolution of wifi technology, distributed wifi networking technology is needed in more and more scenes, namely, in a relatively large area, multiple wifi devices are used to form a network topology, so that the network coverage is enlarged, connection between the wifi devices and the wifi devices belongs to unreliable connection, therefore, when a sub-node wifi device in the topology is poor in connection communication quality, the communication quality and stability of the whole network are affected, and therefore based on the defects of the networking topology of the current wifi device, a method for backing up distributed wifi networking links is provided, and the defect that connection of the wifi links is unstable is overcome.
Disclosure of Invention
This section is for the purpose of summarizing some aspects of embodiments of the invention and to briefly introduce some preferred embodiments. In this section, as well as in the abstract and the title of the invention of this application, simplifications or omissions may be made to avoid obscuring the purpose of the section, the abstract and the title, and such simplifications or omissions are not intended to limit the scope of the invention. .
Therefore, the invention aims to provide a distributed wifi networking link backup method, which can dynamically switch link links in real time, keep the communication quality between network topology networking nodes at an excellent level, dynamically monitor the link quality, does not need configuration, has high link switching speed, and does not influence the actual user experience.
To solve the above technical problem, according to an aspect of the present invention, the present invention provides the following technical solutions:
a distributed wifi networking link backup method comprises the following steps:
s1: after the routing node is powered on, the main link and the backup link are connected;
s2: the routing node circularly and dynamically monitors the wifi link communication quality of the main connecting link and the backup connecting link at intervals;
s3: the collecting module is used for counting the communication delay, the packet sending loss rate and the packet receiving error rate of the wifi communication main link and the wifi communication backup link, and the calculating module is used for comprehensively calculating and comparing the three factors and judging whether the backup link is superior to the current main connecting link or not;
s4: when the backup link is superior to the main connection link, the routing node sends a message requesting to switch the backup link to the main link to a main node in the network topology;
s5: a main node in the network topology makes a decision on the request switching of the node and avoids the occurrence of abnormal phenomena such as loop and the like of a link;
s6: when the main node allows the sub-node to perform link switching, sending a switching allowing message to the sub-routing node;
s7: the sub-routing node executes logic for switching the backup link into the main link;
s8: and updating the state of the network topology, and setting the limit of the time length of the next allowable switching to avoid frequency switching.
As a preferred scheme of the distributed wifi networking link backup method described in the present invention, wherein: the main link routing nodes in step S1 are all wireless three-frequency routes, and support 1 2.4G radio frequency and 2 5G radio frequencies, and 1G radio frequency uses one of the low-frequency 36-48 channels for default networking.
As a preferred scheme of the distributed wifi networking link backup method described in the present invention, wherein: the backup connection routing nodes in step S1 are all one of channels of the 5G radio frequency use high frequency band 149-161, and are used for backup links.
As a preferred scheme of the distributed wifi networking link backup method described in the present invention, wherein: during the operation period after the system is networked, each routing station can detect the link quality of the current actual connection link and the backup link, when the link quality of the backup connection is obviously superior to that of the actual connection route, the data is switched to the backup link, namely the backup connection is changed into the formal actual use link, and the actual connection link is changed into the backup connection.
Compared with the prior art:
1. by separating the connection link from the backup connection area in one networking topology, monitoring the communication quality of 2 connections in real time, and dynamically switching the link links in real time according to the link quality of the 2 links, the communication quality between networking nodes in the network topology is kept at an excellent level.
2. The link quality is dynamically monitored, configuration is not needed, the link switching speed is high, and the actual user experience is not influenced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the present invention will be described in detail with reference to the accompanying drawings and detailed embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise. Wherein:
FIG. 1 is a flow chart of the present invention;
fig. 2 is a schematic view of a topological scenario of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those specifically described herein, and it will be apparent to those of ordinary skill in the art that the present invention may be practiced without departing from the spirit and scope of the present invention, and therefore the present invention is not limited to the specific embodiments disclosed below.
Next, the present invention will be described in detail with reference to the drawings, and in the detailed description of the embodiments of the present invention, the cross-sectional views illustrating the structure of the device are not enlarged partially according to the general scale for convenience of illustration, and the drawings are only examples, which should not limit the scope of the present invention. In addition, the three-dimensional dimensions of length, width and depth should be included in the actual fabrication.
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1 of the drawings, a drawing,
s1: after the routing node is powered on, the main link and the backup link are connected;
s2: the routing node circularly and dynamically monitors the wifi link communication quality of the main connecting link and the backup connecting link at intervals;
s3: the collecting module is used for counting the communication delay, the packet sending loss rate and the packet receiving error rate of the wifi communication main link and the wifi communication backup link, and the calculating module is used for comprehensively calculating and comparing the three factors and judging whether the backup link is superior to the current main connecting link or not;
s4: when the backup link is superior to the main connection link, the routing node sends a message requesting to switch the backup link to the main link to a main node in the network topology;
s5: the main node in the network topology makes a decision on the request switching of the child node and avoids the abnormal phenomena of a loop and the like of a link;
s6: when the main node decides to allow the sub-node to perform link switching, the main node sends a switching allowing message to the sub-routing node;
s7: the sub-routing node executes logic for switching the backup link into the main link;
s8: and updating the state of the network topology, and setting the limit of the time length of the next allowable switching to avoid frequency switching.
Referring to fig. 2, in particular use,
s1, 4 wifi devices exist in the networking topology, after initial networking is completed, a route D is connected with a route B through a link D, the route B is connected to a route A through a link A, and a route C is connected to the route A through a link B.
S2, all routes are wireless three-frequency routes, support 1 2.4G radio frequency, 2 5G radio frequency, 1 5G uses low frequency channel (36-48 channel for default networking link, in the example, link A B D is right), another 5G radio frequency uses high frequency channel (149 channel 161 channel for backup link, here, link EF is right)
S3, after the initial networking is completed, all the routing sub-nodes (here, the routing B, C, D) will find the surrounding backup link routing sites and establish wifi connection.
And S4, during the operation period after the system is networked, each routing station detects the link quality of the current actual connection link and the backup link, when the link quality of the backup connection is obviously superior to that of the actual connection route, the data is switched to the backup link, namely the backup connection is changed into the formal actual use link, and the previous actual connection link is changed into the backup connection, so that the dynamic link detection and the link switching are realized, and the excellent communication quality of the current link is kept.
While the invention has been described above with reference to an embodiment, various modifications may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In particular, the various features of the disclosed embodiments of the invention may be used in any combination, provided that no structural conflict exists, and the combinations are not exhaustively described in this specification merely for the sake of brevity and resource conservation. Therefore, it is intended that the invention not be limited to the particular embodiments disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.