CN113163344B - Control method, device, medium and electronic equipment for wired and wireless hybrid networking - Google Patents

Control method, device, medium and electronic equipment for wired and wireless hybrid networking Download PDF

Info

Publication number
CN113163344B
CN113163344B CN202110230470.7A CN202110230470A CN113163344B CN 113163344 B CN113163344 B CN 113163344B CN 202110230470 A CN202110230470 A CN 202110230470A CN 113163344 B CN113163344 B CN 113163344B
Authority
CN
China
Prior art keywords
access point
network interface
physical address
wireless network
connection
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110230470.7A
Other languages
Chinese (zh)
Other versions
CN113163344A (en
Inventor
孟金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110230470.7A priority Critical patent/CN113163344B/en
Publication of CN113163344A publication Critical patent/CN113163344A/en
Application granted granted Critical
Publication of CN113163344B publication Critical patent/CN113163344B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a control method, a device, a medium and electronic equipment for wired and wireless hybrid networking, and relates to the field of wireless communication. According to the control method of the wired and wireless hybrid networking, if a current access point receives a first multicast message frame sent by a first access point through a wired network interface and the first access point is determined to be a direct connection neighbor of the current access point, a first wireless link between the current access point and the first access point is disconnected; and after a first set time length, reestablishing the connection of the first wireless link. When the loop is detected during the wired and wireless hybrid networking, the wireless link in the loop is controlled to be reestablished after the wireless link is disconnected for the first set time, so that the normal service of an access point is prevented from being influenced, and the efficiency of the hybrid networking can be improved.

Description

Control method, device, medium and electronic equipment for wired and wireless hybrid networking
Technical Field
The embodiment of the application relates to the field of wireless communication, in particular to a control method, a control device, a control medium and electronic equipment for wired and wireless hybrid networking.
Background
MESH networking is a pure wireless MESH networking. When the whole network is composed of pure wireless MESH links, if a wired LAN link is added on the basis, for example, in the MESH networking shown in fig. 4, an AP2 node is added, and an AP2 node LAN port is connected with an existing AP1 node to obtain the MESH networking shown in fig. 2; or when the MESH networking shown in fig. 1 is performed, the AP1 and the AP2 node are connected by using the wired LAN link, so as to obtain the MESH networking shown in fig. 2, the LAN link and the MESH link exist simultaneously, and the broadcast message is repeatedly forwarded indefinitely on the LAN link and the MESH link, which causes a broadcast storm and affects normal networking and internet access services.
The existing loop prevention technology starts the STP function: during wired and wireless hybrid detection, after the loop is identified to exist, the MESH interface of the equipment with the small MAC address is blocked. That is, the MESH links between the device and all other devices are blocked, which may cause that other APs cannot access the MESH network through the device, and the AP device that has joined the network drops. Meanwhile, when two access points are switched to a wireless link from a line link, the existing loop prevention technology generally needs more than 30 seconds to reestablish the wireless link connection, which consumes long time and has low efficiency.
When the related technology is used for preventing loops in wired and wireless hybrid networking, normal services influencing an access point are easily influenced, and wired and wireless switching is slow, so that the efficiency of the hybrid networking is not high.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present application provide a control method, an apparatus, a medium, and an electronic device for wired and wireless hybrid networking, which can improve the efficiency of hybrid networking.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for controlling a wired and wireless hybrid networking, including:
if a current access point receives a first multicast message frame sent by a first access point through a wired network interface and the first access point is determined to be a direct connection neighbor of the current access point, disconnecting a first wireless link between the current access point and the first access point; the direct connection neighbor is an access point which is directly connected with the current access point through a wireless link;
and after a first set time length, reestablishing the connection of the first wireless link.
According to the control method of the wired and wireless hybrid networking, if a current access point receives a first multicast message frame sent by a first access point through a wired network interface and the first access point is determined to be a direct connection neighbor of the current access point, a first wireless link between the current access point and the first access point is disconnected; and after a first set time length, reestablishing the connection of the first wireless link. When the loop is detected during the wired and wireless hybrid networking, the wireless link in the loop is controlled to be reestablished after the wireless link is disconnected for the first set time, so that the normal service of an access point is prevented from being influenced, and the efficiency of the hybrid networking can be improved.
In an alternative embodiment, the first multicast message frame includes a physical address of a wireless network interface of the first access point; after the first set duration, reestablishing the connection of the first wireless link includes:
setting the keep-alive time corresponding to the physical address of the wireless network interface of the first access point in the connection forbidden address list of the current access point according to the first set duration;
reducing the keep-alive time corresponding to the physical address of the wireless network interface of the first access point by a set value every interval of a second set time length;
and until the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is less than or equal to zero, deleting the physical address of the wireless network interface of the first access point from the connection forbidding address list, and reestablishing the connection of the first wireless link.
In this embodiment, the first multicast packet frame includes a physical address of the wireless network interface of the first access point, and the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is set in the connection prohibition address list of the current access point according to the first set duration; reducing the keep-alive time corresponding to the physical address of the wireless network interface of the first access point by a set value every interval of a second set time length; and until the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is less than or equal to zero, deleting the physical address of the wireless network interface of the first access point from the connection forbidding address list, and reestablishing the connection of the first wireless link. In the method, the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is set as a first set time length in the connection forbidden address list of the current access point, so that the physical address of the wireless network interface of the first access point has the first set time length in the connection forbidden address list, and then the physical address is deleted and the connection of the first wireless link is reestablished, thereby ensuring that the connection of the first wireless link can be reestablished after the first set time length, realizing the fast switching of wired and wireless, preventing the normal service of the access point from being influenced, and improving the efficiency of hybrid networking.
In an optional embodiment, setting, according to the first set duration, a keep-alive time corresponding to a physical address of a wireless network interface of the first access point in a connection prohibition address list of the current access point includes:
if the connection prohibition address list of the current access point contains the physical address of the wireless network interface of the first access point, setting the keep-alive time of the physical address of the wireless network interface of the first access point as the first set duration; alternatively, the first and second electrodes may be,
if the connection prohibition address list of the current access point does not contain the physical address of the wireless network interface of the first access point, adding the physical address of the wireless network interface of the first access point into the connection prohibition address list of the current access point, and setting the keep-alive time of the physical address of the wireless network interface of the first access point to be the first set time length.
In this embodiment, when the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is set, it is determined whether to add a physical address to the connection-prohibited address list according to whether the connection-prohibited address list of the current access point includes the physical address of the wireless network interface of the first access point, so that the connection-prohibited address list has an accurate physical address and keep-alive time, and the amount of calculation is reduced, thereby preventing normal services affecting the access points, and improving the efficiency of hybrid networking.
In an optional embodiment, the method further comprises:
if a connection request sent by the physical address of the wireless network interface of the first access point is received, determining whether the physical address of the wireless network interface of the first access point is contained in the connection prohibition address list of the current access point;
if so, ignoring the connection request of the first access point;
and if not, responding to the connection request of the first access point.
In this embodiment, a connection request sent by a physical address of a wireless network interface of the first access point is received, and it is determined whether the physical address of the wireless network interface of the first access point is included in the connection prohibition address list of the current access point, if yes, the connection request of the first access point is ignored; and if not, responding to the connection request of the first access point. Whether the physical address of the wireless network interface of the first access point is contained in the connection forbidden address list of the current access point or not is controlled and whether the physical address of the wireless network interface of the first access point is contained in the connection forbidden address list of the current access point or not is determined in response to the determination, a wireless MESH link can be quickly reconnected, and wired and wireless quick switching can be carried out, so that normal service affecting the access points is prevented, and the efficiency of hybrid networking can be improved.
In an optional embodiment, after the disconnecting the first wireless link between the current access point and the first access point, the method further comprises:
updating the physical address of the wireless network interface of the current access point to the first multicast message frame to obtain a second multicast message frame;
and forwarding the second multicast message frame.
In this embodiment, the physical address of the wireless network interface of the current access point is updated to the first multicast message frame to obtain the second multicast message frame and forward the second multicast message frame, so that forwarding of the multicast message frame can be normally performed on the premise of preventing a loop in wired and wireless hybrid networking, thereby preventing normal services of the access point from being affected and improving the efficiency of the hybrid networking.
In a second aspect, an embodiment of the present application further provides a control device for wired and wireless hybrid networking, including:
the system comprises a link disconnection module, a link disconnection module and a link switching module, wherein the link disconnection module is used for disconnecting a first wireless link between a current access point and a first access point if the current access point receives a first multicast message frame sent by the first access point through a wired network interface and the first access point is determined to be a direct connection neighbor of the current access point; the direct connection neighbor is an access point which is directly connected with the current access point through a wireless link;
and the link reestablishment module is used for reestablishing the connection of the first wireless link after a first set time length.
In an alternative embodiment, the first multicast message frame includes a physical address of a wireless network interface of the first access point; the link reestablishment module is specifically configured to:
according to the first set duration, setting keep-alive time corresponding to the physical address of the wireless network interface of the first access point in the connection prohibition address list of the current access point;
reducing the keep-alive time corresponding to the physical address of the wireless network interface of the first access point by a set value every interval of a second set time length;
and until the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is less than or equal to zero, deleting the physical address of the wireless network interface of the first access point from the connection forbidding address list, and reestablishing the connection of the first wireless link.
In an optional embodiment, the link reestablishment module is further configured to:
if a connection request sent by the physical address of the wireless network interface of the first access point is received, determining whether the physical address of the wireless network interface of the first access point is contained in the connection prohibition address list of the current access point;
if so, ignoring the connection request of the first access point;
and if not, responding to the connection request of the first access point.
In an optional embodiment, the link reestablishment module is specifically configured to:
if the connection prohibition address list of the current access point contains the physical address of the wireless network interface of the first access point, setting the keep-alive time of the physical address of the wireless network interface of the first access point as the first set duration; alternatively, the first and second electrodes may be,
if the connection prohibition address list of the current access point does not contain the physical address of the wireless network interface of the first access point, adding the physical address of the wireless network interface of the first access point into the connection prohibition address list of the current access point, and setting the keep-alive time of the physical address of the wireless network interface of the first access point as the first set time length.
In an optional embodiment, the apparatus further includes a packet forwarding module, configured to:
updating the physical address of the wireless network interface of the current access point to the first multicast message frame to obtain a second multicast message frame;
and forwarding the second multicast message frame.
In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for controlling wired and wireless hybrid networking according to the first aspect is implemented.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that is executable on the processor, and when the computer program is executed by the processor, the processor is enabled to implement the method for controlling wired and wireless hybrid networking of the first aspect.
For technical effects brought by any one implementation manner in the second aspect to the fourth aspect, reference may be made to technical effects brought by a corresponding implementation manner in the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a MESH networking diagram of four wireless links formed by four access points;
fig. 2 is a MESH networking diagram of four wireless links and one wired link formed by four access points;
fig. 3 is a MESH networking diagram of an access point AP4 incapable of surfing the internet after four access points are under the action of STP protocol;
fig. 4 is a MESH networking diagram of two wireless links formed by three access points;
fig. 5 is a flowchart of a control method for a wired and wireless hybrid networking according to an embodiment of the present application;
fig. 6 is a flowchart of reestablishing a wireless link after setting a duration according to an embodiment of the present application;
fig. 7 is a flowchart of recovering a connection of a wireless link according to an embodiment of the present application;
fig. 8 is a flowchart of another control method for wired and wireless hybrid networking according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a control device for a hybrid wired and wireless networking according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another control apparatus for hybrid wired and wireless networking according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that references in the specification of the present application to the terms "comprises" and "comprising," and variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Some of the words that appear in the text are explained below:
(1) mesh networking: that is, "wireless mesh network", is a "multi-hop" (multi-hop) network, is developed from an ad hoc network, and is one of the key technologies to solve the "last mile" problem. In the process of evolving to the next generation networks, wireless is an indispensable technology. The wireless MESH can be cooperatively communicated with other networks, is a dynamic and continuously expandable network architecture, and any two devices can be wirelessly interconnected. The wireless MESH router forms a self-organizing network in a multi-hop interconnection mode, and provides higher reliability, wider service coverage and lower early investment cost for WMN networking.
(2) Physical Address (Media Access Control Address, MAC Address): also known as the mac Address, also known as the local area network Address (LAN Address), the Ethernet Address (Ethernet Address), is an Address used to identify the location of a network device. In the OSI model, the third layer network layer is responsible for IP addresses and the second layer data link layer is responsible for MAC addresses. The MAC address is used to uniquely identify a network card in the network, and if one or more network cards exist in a device, each network card needs to have a unique MAC address.
(3) Spanning Tree Protocol (STP): the method is applied to the establishment of the tree topology structure in the computer network, and mainly has the function of preventing redundant links in the network bridge from forming loop work. But certain factors may cause STP to fail and troubleshooting may be very difficult depending on the network design. The spanning tree protocol is suitable for network equipment of all manufacturers, and has difference in configuration and embodied function strength, but the principle and application effect are consistent. The basic principle of STP is to determine the topology of the network by passing a special Protocol packet, Bridge Protocol Data Unit (BPDU), between switches. There are two types of BPDUs, configuration BPDU (configuration BPDU) and TCN BPDU. The former is used to compute a loop-free spanning tree, and the latter is used to generate a refresh time (shortened from 300s by default to 15s) for shortening the MAC entry when the two-layer network topology changes.
MESH networking is a pure wireless MESH networking. When the whole network is composed of pure wireless MESH links, if a wired LAN link is added on the basis, for example, in the MESH networking shown in fig. 4, an AP2 node is added, and an AP2 node LAN port is connected with an existing AP1 node to obtain the MESH networking shown in fig. 2; or when the MESH networking shown in fig. 1 is performed, the AP1 and the AP2 node are connected by using the wired LAN link, so as to obtain the MESH networking shown in fig. 2, the LAN link and the MESH link exist simultaneously, and the broadcast message is repeatedly forwarded indefinitely on the LAN link and the MESH link, which causes a broadcast storm and affects normal networking and internet access services.
The existing loop prevention technology starts the STP function: during wired and wireless hybrid detection, after the loop is identified to exist, the MESH interface of the equipment with the small MAC address is blocked. That is, the MESH links between the device and all other devices are blocked, which may cause that other APs cannot access the MESH network through the device, and the AP device that has joined the network drops.
For example, the MESH networking shown in fig. 2 can be obtained by connecting a wire to the existing MESH networking shown in fig. 1, for example, connecting AP1 and AP2 by a wire. Under the function of STP, the MESH interface of AP1 is blocked; resulting in disconnection of links 4 and 5, disconnection of networking by AP4, and access of AP3 to the network only through AP2, resulting in MESH networking as shown in fig. 3.
When the existing networking is stable, the existing MESH networking shown in fig. 3 is disconnected from the wire, for example, the wired connection between the AP1 and the AP is disconnected, then the MESH connection between the AP1 and the AP2 is performed, and in the connection process, the MESH interface of the AP1 needs to perform a specific step, such as blocking- > listening- > learning- > forwarding, which generally needs more than 30 s.
When the existing networking is stable, wired devices are added to the existing MESH networking shown in fig. 4, for example, a new device AP2 is added, a LAN port of AP2 is connected to AP1 and powered on, and MESH connections of AP1 and AP2 form a loop, and under the function of STP, the effect is as shown in fig. 3.
Therefore, the existing loop prevention technology is not only easy to affect normal services due to abnormal disconnection of the access points, but also generally needs more than 30 seconds to reestablish wireless link connection when the two access points are switched to the wireless link from the link, which is long in time consumption and low in efficiency.
When the related technology is used for preventing loops in wired and wireless hybrid networking, normal services influencing an access point are easily influenced, and wired and wireless switching is slow, so that the efficiency of the hybrid networking is not high.
In order to solve the existing technical problem, the embodiment of the application provides a control method for a wired and wireless hybrid networking, if a current access point receives a first multicast message frame sent by a first access point through a wired network interface and determines that the first access point is a direct connection neighbor of the current access point, a first wireless link between the current access point and the first access point is disconnected; and after a first set time length, reestablishing the connection of the first wireless link. When the loop is detected during the wired and wireless hybrid networking, the wireless link in the loop is controlled to be reestablished after the wireless link is disconnected for the first set time, so that the normal service of an access point is prevented from being influenced, and the efficiency of the hybrid networking can be improved.
The technical solutions provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
The embodiment of the application provides a control method for wired and wireless hybrid networking, as shown in fig. 5, comprising the following steps:
step S501, if the current access point receives a first multicast message frame sent by the first access point through the wired network interface and the first access point is determined to be a direct connection neighbor of the current access point, disconnecting a first wireless link between the current access point and the first access point.
The direct connection neighbor is an access point which is directly connected with the current access point through a wireless link.
The following embodiments of the present application are all described by taking the current access point as the access point AP1 in fig. 1, and the first access point as the access point AP2 in fig. 1 as an example. The first multicast message frame may be a BPDU frame sent by the AP2 to the AP1, which is denoted as BPDU 01.
When the AP1 receives the first multicast packet frame BPDU01 sent by the AP2, the current access point AP1 first confirms whether the BPDU01 is a LAN port frame. Specifically, the AP1 determines whether the BPDU01 is a LAN port frame by determining whether the BPDU01 is received over a wired network interface. When the current access point AP1 receives a first multicast message frame BPDU01 sent by a first access point AP2 through a wired network interface, the BPDU01 is a LAN port frame; otherwise, the BPDU01 is not a LAN port frame.
If the current AP1 has determined that the first multicast packet frame BPDU01 sent by the first AP2 is received through the wired network interface, it is determined whether the first AP2 is a direct connection neighbor of the current AP 1.
In fig. 1, AP1 and AP3 are direct neighbors of AP2, and AP4 and AP2 are indirect neighbors. In the embodiment of the application, each access point stores a direct connection neighbor list of the access point. The current access point AP1 may detect whether the direct connection neighbor list of AP1 includes the MESH interface MAC of AP2, and if the MESH interface MAC of AP2 is detected, AP2 is a direct connection neighbor of AP 1. The direct connection neighbor list of the AP1 includes the MESH interfaces MAC of the access points directly connected to the current access point AP1 via the wireless link.
If the first access point AP2 is a direct neighbor of the current access point AP1, the first wireless link between the current access point AP1 and the first access point AP2 is disconnected. At this time, the first wireless link between the current access point and the first access point is link 2 in the MESH networking shown in fig. 2.
Step S502, after a first set time period, reestablishing the connection of the first wireless link.
Illustratively, in some embodiments of the present application, by extending the STP message content, a MAC address field M1 is added for holding the MAC address of the MESH interface. When the access point sends and forwards the BPDU, the MESH interface MAC of the self device is updated to the M1 field of the BPDU. When the current access point AP1 receives the BPDU01 transmitted by the AP2 of the LAN port, it detects the M1 field of the BPDU01, and detects whether there is a MESH interface MAC of the AP2 in the neighbor list directly connected to the MESH interface of the AP 1. If the MESH interface MAC of AP2 is detected, the MESH link between AP1 and AP2 is disconnected, the MESH interface MAC of AP2 is added to the MESH blacklist of AP1, and the blacklist time T1 of the MESH interface MAC of AP2 is refreshed to be 5s, so link 2 in fig. 2 is blocked. When the MAC of the AP exists in the MESH blacklist, the corresponding MESH connection can be blocked; and deleting the MAC, and automatically connecting the MESH connection of the corresponding AP. T1 of blacklist MAC minus 1 per second; after disconnecting the cable, when T1 is less than equal 0, the MAC blacklist is deleted and link 2 of fig. 2 is reconnected.
According to the control method of the wired and wireless hybrid networking provided by the embodiment of the application, if a current access point receives a first multicast message frame sent by a first access point through a wired network interface and the first access point is determined to be a direct connection neighbor of the current access point, a first wireless link between the current access point and the first access point is disconnected; and after the first set time length, the connection of the first wireless link is reestablished. When the loop is detected during the wired and wireless hybrid networking, the wireless link in the loop is controlled to be reestablished after the wireless link is disconnected for the first set time, so that the normal service of an access point is prevented from being influenced, and the efficiency of the hybrid networking can be improved.
In an alternative embodiment, the first multicast message frame includes a physical address of a wireless network interface of the first access point; in the step S502, after the first set time period, the connection of the first radio link is reestablished, as shown in fig. 6, the following steps are performed:
s601, according to a first set duration, setting a keep-alive time corresponding to a physical address of a wireless network interface of a first access point in a connection prohibition address list of the current access point.
Optionally, the first set time period is 5 s.
Illustratively, the first set time period is 5 s. In the connection prohibition address list of the current access point AP1, the keep-alive time corresponding to the physical address MAC02 of the wireless network interface of the first access point AP2 is set to 5 s.
In some embodiments, setting, according to a first set duration, a keep-alive time corresponding to a physical address of a wireless network interface of a first access point in a connection prohibition address list of a current access point includes:
if the connection prohibition address list of the current access point contains the physical address of the wireless network interface of the first access point, the keep-alive time of the physical address of the wireless network interface of the first access point is set as a first set duration; alternatively, the first and second liquid crystal display panels may be,
if the connection prohibition address list of the current access point does not contain the physical address of the wireless network interface of the first access point, the physical address of the wireless network interface of the first access point is added into the connection prohibition address list of the current access point, and the keep-alive time of the physical address of the wireless network interface of the first access point is set as a first set time length.
And S602, reducing the keep-alive time corresponding to the physical address of the wireless network interface of the first access point by a set value every second set time.
Alternatively, the second set time period is 1s, and the set value is 1 s.
Illustratively, every 1s, the keep-alive time corresponding to the physical address MAC02 of the wireless network interface of the first access point AP2 is reduced by 1 s.
S603, until the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is less than or equal to zero, deleting the physical address of the wireless network interface of the first access point from the connection forbidding address list, and reestablishing the connection of the first wireless link.
Specifically, every second set time interval, monitoring whether the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is less than or equal to zero. And if the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is monitored to be less than or equal to zero, deleting the physical address of the wireless network interface of the first access point from the connection forbidding address list, and reestablishing the connection of the first wireless link.
Illustratively, the second set duration is 1s, and every 1s, it is monitored whether the keep-alive time corresponding to the physical address MAC02 of the wireless network interface of the first access point AP2 is less than or equal to zero. The keep-alive time corresponding to the physical address MAC02 of the wireless network interface of the first access point AP2 is decreased by 1s every 1s until the keep-alive time corresponding to the physical address MAC02 of the wireless network interface of the first access point AP2 is less than or equal to zero, the physical address MAC02 of the wireless network interface of the first access point AP2 is deleted from the connection-prohibited address list, and the connection of link 2 in fig. 2 is reestablished.
In some further embodiments, the first multicast message frame includes a physical address of a wireless network interface of the first access point; in order to reestablish the connection of the first wireless link after the first set time period of step S502 elapses, after step S601 shown in fig. 6 is executed, and after the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is set in the connection prohibited address list of the current access point according to the first set time period, as shown in fig. 7, the following steps are executed in order to recover the connection of the wireless link:
step S701, traverse the connection prohibition address list of the current access point one by one at a timing of 1 second.
For the physical addresses of the wireless network interfaces of the access points obtained by traversing the connection prohibition address list in step S701, the following operations are respectively executed:
step S702, determining whether the keep-alive time corresponding to the physical address of the wireless network interface is less than or equal to zero. If yes, go to step S703; if not, go to step S704.
Step S703, deleting the physical address of the wireless network interface from the connection prohibition address list of the current access point.
Step S704, subtracting 1 from the keep-alive time corresponding to the physical address of the wireless network interface.
In some embodiments of the present application, the method of the above embodiments may further include the following steps:
step a01, if a connection request sent by the physical address of the wireless network interface of the first access point is received, determining whether the physical address of the wireless network interface of the first access point is included in the connection prohibition address list of the current access point. If yes, go to step A02; if not, go to step A03.
Step A02, ignoring the connection request of the first access point;
step a03, responding to the connection request of the first access point.
In an alternative embodiment, in step S601, according to a first set duration, setting a keep-alive time corresponding to a physical address of a wireless network interface of a first access point in a connection prohibition address list of a current access point, which may include the following steps:
step B01, determining whether the list of prohibited connection addresses of the current access point contains the physical address of the wireless network interface of the first access point. If yes, go to step B02; if not, go to step B03.
Illustratively, it is determined that the list of connection prohibited addresses of the current access point AP1 contains the physical address MAC02 of the wireless network interface of the first access point AP 2.
And step B02, the keep-alive time of the physical address of the wireless network interface of the first access point is set as a first set time length.
Illustratively, the keep-alive time of the physical address MAC02 of the wireless network interface of the first access point AP2 is set to 5 s.
Step B03, adding the physical address of the wireless network interface of the first access point into the connection prohibition address list of the current access point, and setting the keep-alive time of the physical address of the wireless network interface of the first access point as a first set duration.
Illustratively, the physical address MAC02 of the wireless network interface of the first access point AP2 is added to the list of prohibited connection addresses of the current access point AP1 and the keep-alive time of the wireless network interface physical address MAC02 of the first access point AP2 is set to 5 s.
In an optional embodiment, in step S501, after disconnecting the first wireless link between the current access point and the first access point, the method further includes the following steps:
and step C01, updating the physical address of the wireless network interface of the current access point to the first multicast message frame to obtain a second multicast message frame.
Illustratively, the physical address MAC01 of the wireless network interface of the current access point AP1 is updated to the first multicast message frame BPDU01, resulting in a second multicast message frame BPDU 02.
Step C02, the second multicast message frame is forwarded.
Specifically, the second multicast message frame is forwarded according to the forwarding flow of the STP itself.
Illustratively, the current access point AP1 forwards the BPDU02 according to the forwarding flow of the STP itself.
Fig. 8 is a flowchart illustrating another control method for a wired and wireless hybrid networking according to an embodiment of the present application, where as shown in fig. 8, the method includes the following steps:
step S801, a first multicast packet frame sent by a first access point is received.
Illustratively, the current access point is the access point AP1 in fig. 1, and the first access point is the access point AP2 in fig. 1. The first multicast message frame may be a BPDU frame sent by the AP2 to the AP1, and is denoted as BPDU 01.
In step S802, the current access point determines whether the first multicast packet frame is a LAN port frame. If yes, go to step S803; if not, go to step S808.
Specifically, if the current access point determines that the current access point receives a first multicast message frame sent by a first access point through a wired network interface, the current access point determines that the first multicast message frame is a LAN interface frame; otherwise, determining the first multicast message frame as a MESH interface frame.
Illustratively, the current access point AP1 determines whether the current access point AP1 receives the first multicast message frame BPDU01 sent by the first access point AP2 via the wired network interface.
Step S803, determine whether the first access point is a direct connection neighbor of the current access point.
If yes, go to step S804 first, and then go to step S805; if not, go to step S805.
The direct connection neighbor is an access point which is directly connected with the current access point through a wireless link.
Step S804, the first wireless link between the current access point and the first access point is disconnected.
Step S805, determining whether the connection prohibition address list of the current access point includes the physical address of the wireless network interface of the first access point. If yes, go to step S806, and then go to step S808; if not, step S807 is executed, and then step S808 is executed.
Step S806, setting the keep-alive time of the physical address of the wireless network interface of the first access point to a first set duration.
Step S807, add the physical address of the wireless network interface of the first access point to the connection prohibition address list of the current access point, and set the keep-alive time of the physical address of the wireless network interface of the first access point to a first set duration.
Step S808, the physical address of the wireless network interface of the current access point is updated to the first multicast message frame, so as to obtain a second multicast message frame.
Step S809, forwards the second multicast message frame.
The specific processes of steps S801 to S809 may be executed by referring to the method steps in the foregoing embodiments, and are not described herein again.
The same inventive concept as the control method of the wired and wireless hybrid networking shown in fig. 5 is based on, and the embodiment of the present application further provides a control device of the wired and wireless hybrid networking. Because the device is a device corresponding to the control method of the wired and wireless hybrid networking, and the principle of solving the problems of the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and repeated parts are not described again.
Fig. 9 is a schematic structural diagram of a control device for a wired and wireless hybrid networking according to an embodiment of the present application, and as shown in fig. 9, the control device for a wired and wireless hybrid networking includes a link disconnection module 901 and a link reestablishment module 902.
The link disconnection module 901 is configured to disconnect a first wireless link between a current access point and a first access point if the current access point receives a first multicast packet frame sent by the first access point through a wired network interface and it is determined that the first access point is a direct connection neighbor of the current access point; the direct connection neighbor is an access point which is directly connected with the current access point through a wireless link;
a link reestablishing module 902, configured to reestablish a connection of the first radio link after a first set time duration elapses.
In an alternative embodiment, the first multicast message frame includes a physical address of a wireless network interface of the first access point; the link reestablishment module 902 is specifically configured to:
setting the keep-alive time corresponding to the physical address of the wireless network interface of the first access point in the connection forbidden address list of the current access point according to the first set duration;
reducing the keep-alive time corresponding to the physical address of the wireless network interface of the first access point by a set value every interval of a second set time length;
and until the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is less than or equal to zero, deleting the physical address of the wireless network interface of the first access point from the connection prohibition address list, and reestablishing the connection of the first wireless link.
In an optional embodiment, the link reestablishment module 902 is further configured to:
if a connection request sent by the physical address of the wireless network interface of the first access point is received, determining whether the physical address of the wireless network interface of the first access point is contained in a connection prohibition address list of the current access point;
if so, ignoring the connection request of the first access point;
and if not, responding to the connection request of the first access point.
In an alternative embodiment, the link reestablishment module 902 is specifically configured to:
if the connection prohibition address list of the current access point contains the physical address of the wireless network interface of the first access point, the keep-alive time of the physical address of the wireless network interface of the first access point is set as a first set duration; alternatively, the first and second electrodes may be,
if the connection prohibition address list of the current access point does not contain the physical address of the wireless network interface of the first access point, the physical address of the wireless network interface of the first access point is added into the connection prohibition address list of the current access point, and the keep-alive time of the physical address of the wireless network interface of the first access point is set as a first set time length.
In an alternative embodiment, as shown in fig. 10, the control device for wired and wireless hybrid networking further includes a message forwarding module 1001.
The message forwarding module 1001 is configured to:
updating the physical address of the wireless network interface of the current access point to the first multicast message frame to obtain a second multicast message frame;
the second multicast message frame is forwarded.
The electronic equipment is based on the same inventive concept as the method embodiment, and the embodiment of the application also provides the electronic equipment. The electronic device may be used for control of a wired and wireless hybrid networking. In one embodiment, the electronic device may be a server, a terminal device, or other electronic device. In this embodiment, the electronic device may be configured as shown in fig. 11, and include a memory 101, a communication module 103, and one or more processors 102.
A memory 101 for storing a computer program for execution by the processor 102. The memory 101 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a program required for running an instant messaging function, and the like; the storage data area can store various instant messaging information, operation instruction sets and the like.
The memory 101 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 101 may also be a non-volatile memory (non-volatile memory) such as a read-only memory (rom), a flash memory (flash memory), a hard disk (HDD) or solid-state drive (SSD), or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. Memory 101 may be a combination of the above.
The processor 102 may include one or more Central Processing Units (CPUs), or be a digital processing unit, etc. And the processor 102 is configured to implement the control method of the wired and wireless hybrid networking when calling the computer program stored in the memory 101.
The communication module 103 is used for communicating with terminal equipment and other servers.
The specific connection medium among the memory 101, the communication module 103 and the processor 102 is not limited in the embodiments of the present application. In fig. 11, the memory 101 and the processor 102 are connected by a bus 104, the bus 104 is represented by a thick line in fig. 11, and the connection manner between other components is merely illustrative and not limited. The bus 104 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the road detection method in the above-described embodiment. The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (10)

1. A control method for wired and wireless hybrid networking is characterized by comprising the following steps:
if a current access point receives a first multicast message frame sent by a first access point through a wired network interface and the first access point is determined to be a direct connection neighbor of the current access point, disconnecting a first wireless link between the current access point and the first access point; the direct connection neighbor is an access point which is directly connected with the current access point through a wireless link; each access point stores a corresponding direct connection neighbor list; the direct connection neighbor list comprises MESH interfaces MAC of access points which are directly connected with the corresponding access points through wireless links; the determination that the first access point is a direct connection neighbor of the current access point is determined by detecting whether a MESH interface MAC of the first access point is included in a direct connection neighbor list of the current access point;
and after a first set time length, reestablishing the connection of the first wireless link.
2. The method of claim 1, wherein the first multicast announcement frame includes a physical address of a wireless network interface of the first access point; after the first set duration, reestablishing the connection of the first wireless link includes:
setting the keep-alive time corresponding to the physical address of the wireless network interface of the first access point in the connection forbidden address list of the current access point according to the first set duration;
reducing the keep-alive time corresponding to the physical address of the wireless network interface of the first access point by a set value every interval of a second set time length;
and deleting the physical address of the wireless network interface of the first access point from the connection prohibition address list until the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is less than or equal to zero, and reestablishing the connection of the first wireless link.
3. The method of claim 2, wherein setting a keep-alive time corresponding to a physical address of a wireless network interface of the first access point in a connection prohibition address list of the current access point according to the first set duration comprises:
if the connection prohibition address list of the current access point contains the physical address of the wireless network interface of the first access point, setting the keep-alive time of the physical address of the wireless network interface of the first access point to be the first set duration; alternatively, the first and second electrodes may be,
if the connection prohibition address list of the current access point does not contain the physical address of the wireless network interface of the first access point, adding the physical address of the wireless network interface of the first access point into the connection prohibition address list of the current access point, and setting the keep-alive time of the physical address of the wireless network interface of the first access point as the first set time length.
4. The method of claim 2, further comprising:
if a connection request sent by the physical address of the wireless network interface of the first access point is received, determining whether the physical address of the wireless network interface of the first access point is contained in the connection prohibition address list of the current access point;
if so, ignoring the connection request of the first access point;
and if not, responding to the connection request of the first access point.
5. The method according to any of claims 1-4, wherein after the disconnecting the first wireless link between the current access point and the first access point, the method further comprises:
updating the physical address of the wireless network interface of the current access point to the first multicast message frame to obtain a second multicast message frame;
and forwarding the second multicast message frame.
6. A control apparatus for a wired and wireless hybrid networking, comprising:
a link disconnection module, configured to disconnect a first wireless link between a current access point and a first access point if the current access point receives, through a wired network interface, a first multicast packet frame sent by the first access point and it is determined that the first access point is a direct connection neighbor of the current access point; the direct connection neighbor is an access point which is directly connected with the current access point through a wireless link; each access point stores a corresponding direct connection neighbor list; the direct connection neighbor list comprises MESH interfaces MAC of access points which are directly connected with the corresponding access points through wireless links; the determination that the first access point is a direct connection neighbor of the current access point is determined by detecting whether a MESH interface MAC of the first access point is included in a direct connection neighbor list of the current access point;
and the link reestablishing module is used for reestablishing the connection of the first wireless link after a first set time length.
7. The apparatus of claim 6, wherein the first multicast announcement frame comprises a physical address of a wireless network interface of the first access point; the link reestablishment module is specifically configured to:
setting the keep-alive time corresponding to the physical address of the wireless network interface of the first access point in the connection forbidden address list of the current access point according to the first set duration;
reducing the keep-alive time corresponding to the physical address of the wireless network interface of the first access point by a set value every interval of a second set time length;
and until the keep-alive time corresponding to the physical address of the wireless network interface of the first access point is less than or equal to zero, deleting the physical address of the wireless network interface of the first access point from the connection forbidding address list, and reestablishing the connection of the first wireless link.
8. The apparatus of claim 7, wherein the link reestablishment module is further configured to:
if a connection request sent by the physical address of the wireless network interface of the first access point is received, determining whether the physical address of the wireless network interface of the first access point is contained in the connection prohibition address list of the current access point;
if so, ignoring the connection request of the first access point;
and if not, responding to the connection request of the first access point.
9. A computer-readable storage medium having a computer program stored therein, the computer program characterized by: the computer program, when executed by a processor, implements the method of any of claims 1-5.
10. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, the computer program, when executed by the processor, implementing the method of any of claims 1-5.
CN202110230470.7A 2021-03-02 2021-03-02 Control method, device, medium and electronic equipment for wired and wireless hybrid networking Active CN113163344B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110230470.7A CN113163344B (en) 2021-03-02 2021-03-02 Control method, device, medium and electronic equipment for wired and wireless hybrid networking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110230470.7A CN113163344B (en) 2021-03-02 2021-03-02 Control method, device, medium and electronic equipment for wired and wireless hybrid networking

Publications (2)

Publication Number Publication Date
CN113163344A CN113163344A (en) 2021-07-23
CN113163344B true CN113163344B (en) 2022-07-08

Family

ID=76883797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110230470.7A Active CN113163344B (en) 2021-03-02 2021-03-02 Control method, device, medium and electronic equipment for wired and wireless hybrid networking

Country Status (1)

Country Link
CN (1) CN113163344B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660169B (en) * 2021-08-18 2023-02-17 青岛海信宽带多媒体技术有限公司 Router and router Mesh networking return link switching method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102763378A (en) * 2009-11-16 2012-10-31 鲁库斯无线公司 Establishing a mesh network with wired and wireless links
CN108183950A (en) * 2017-12-28 2018-06-19 新华三技术有限公司 A kind of network equipment establishes the method and device of connection
CN109982447A (en) * 2019-03-07 2019-07-05 烽火通信科技股份有限公司 A kind of networking method of wireless network, system and wireless aps
CN111314216A (en) * 2020-02-13 2020-06-19 深圳市吉祥腾达科技有限公司 Mixed networking ring prevention method for MESH router
CN112235878A (en) * 2020-09-28 2021-01-15 北京和峰科技有限公司 Hybrid ad hoc network management method and device, readable storage medium and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7606178B2 (en) * 2005-05-31 2009-10-20 Cisco Technology, Inc. Multiple wireless spanning tree protocol for use in a wireless mesh network
CN101729605B (en) * 2009-12-16 2014-06-25 杭州华三通信技术有限公司 Method and device for bonding WDS links
US8774094B2 (en) * 2010-09-10 2014-07-08 Weixiang Chen Hybrid routing and forwarding solution for a wireless sensor network
CN109547339B (en) * 2019-01-18 2021-07-09 深圳市吉祥腾达科技有限公司 Method and system for preventing network from forming loop in wireless router networking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102763378A (en) * 2009-11-16 2012-10-31 鲁库斯无线公司 Establishing a mesh network with wired and wireless links
CN108183950A (en) * 2017-12-28 2018-06-19 新华三技术有限公司 A kind of network equipment establishes the method and device of connection
CN109982447A (en) * 2019-03-07 2019-07-05 烽火通信科技股份有限公司 A kind of networking method of wireless network, system and wireless aps
CN111314216A (en) * 2020-02-13 2020-06-19 深圳市吉祥腾达科技有限公司 Mixed networking ring prevention method for MESH router
CN112235878A (en) * 2020-09-28 2021-01-15 北京和峰科技有限公司 Hybrid ad hoc network management method and device, readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113163344A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN107846342B (en) Method, device and system for forwarding VXLAN message
US11303564B2 (en) Packet forwarding method, apparatus, and system
WO2021043086A1 (en) Method, device and system for establishing sbfd session
US11349687B2 (en) Packet processing method, device, and system
US9608903B2 (en) Systems and methods for recovery from network changes
EP2484060B1 (en) Technique for controlling data forwarding in computer networks
US8064338B2 (en) HVPLS hub connectivity failure recovery with dynamic spoke pseudowires
WO2017054547A1 (en) Bidirectional forwarding detection method and apparatus
EP3823225A1 (en) Communication method, communication device and communication system
US9906441B2 (en) Rapid flood processing
US20140050092A1 (en) Load sharing method and apparatus
CN108289044B (en) Data forwarding method, link state method for determining static route and network equipment
CN113163344B (en) Control method, device, medium and electronic equipment for wired and wireless hybrid networking
WO2014000804A1 (en) Method for routing data traffic in a communication network
US9801128B2 (en) Approach for extended battery life network nodes
CN104160667A (en) Method, Device, and System for Dual-Uplink Tangent Ring Convergence
CN111130982A (en) Message forwarding method and device, gateway equipment and readable storage medium
CN103414642A (en) Maintaining method and device of information forwarding
CN102833774B (en) The processing method of a kind of IP wireless access network system and primary pseudo-lines fault thereof
CN106878173B (en) Route sending method and device
CN115037670A (en) Network convergence method and device, electronic equipment and storage medium
CN103647709A (en) ARP form item establishing method and device
JP2011166245A (en) Network system, switching method of gateway device, first tunnel termination gateway device and second tunnel termination gateway device
JP5625494B2 (en) Transmission apparatus, control information setting method, and control information setting program
CN113938405A (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant