Route switching method and device, storage medium and electronic device

By dynamically switching the access point controller at the network ingress point when the target branch network fails, using dynamic routing protocols and BFD detection, the problems of high hardware costs and long switching times are solved, achieving fast and reliable WiFi network switching and improving the user experience.

CN116782278BActive Publication Date: 2026-06-26HANHAI INFORMATION TECH SHANGHAI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANHAI INFORMATION TECH SHANGHAI
Filing Date
2022-03-07
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In large enterprise parks or multi-branch scenarios, the existing VRRP deployment method results in high hardware investment costs and long switching time between primary and backup AC devices, which affects the WiFi network user experience.

Method used

When the target branch network fails, dynamic routing protocol and BFD detection are used to replace the target access point controller with the access point controller at the network access point, so as to realize the data transmission switch of the access point and avoid deploying a separate backup access point controller.

Benefits of technology

It reduces hardware investment costs and improves the reliability of WiFi networks and user experience through a fast switching mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116782278B_ABST
    Figure CN116782278B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a routing switching method, device, storage medium and electronic device. The method comprises: determining a to-be-switched access point controller from at least one network access point controller in a case where it is determined that a target access point controller of a target branch network exists a fault; the target branch network is any branch network of a plurality of branch networks connected with the at least one network access point, each branch network and each network access point correspond to different autonomous system numbers respectively, and the internet protocol (IP) addresses of the access point controller and the target access point controller are the same; based on the autonomous system numbers and the IP addresses, routing of an access point in communication with the target access point controller to the to-be-switched access point controller is performed, so that the access point transmits data through the to-be-switched access point controller. In this way, the hardware investment cost can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and more specifically, to a routing switching method, apparatus, storage medium, and electronic device. Background Technology

[0002] To improve the user experience of WiFi (Wireless Fidelity), in scenarios such as large enterprise parks and multi-branch offices, a centralized forwarding mode of thin AP (Access Point) + AC (Access Point Controller) is often adopted for the architecture design of wireless LAN.

[0003] For scenarios with multiple branches, a primary and backup AC architecture is often adopted. The primary AC and backup AC are deployed using VRRP (Virtual Router Redundancy Protocol). However, this deployment method results in relatively high hardware investment costs. Summary of the Invention

[0004] To address the aforementioned problems, this disclosure provides a routing switching method, apparatus, storage medium, and electronic device.

[0005] In a first aspect, this disclosure provides a routing switching method, the method comprising:

[0006] If it is determined that the target access point controller of the target branch network is faulty, the access point controller to be switched is determined from the access point controllers of at least one network access point; the target branch network is any one of a plurality of branch networks connected to at least one network access point, each branch network and each network access point corresponds to a different autonomous system number, and the access point controller and the target access point controller have the same Internet Protocol (IP) address.

[0007] Based on the Autonomous System ID and the IP address, the access point communicating with the target access point controller is routed to the access point controller to be switched, so that the access point can transmit data through the access point controller to be switched.

[0008] Optionally, determining the access point controller to be switched from the access point controllers of at least one network access point includes:

[0009] From at least one of the network access points, determine the target network access point with the highest External Border Gateway Protocol (EBGP) routing priority;

[0010] The access point controller of the target network access point is used as the access point controller to be switched.

[0011] Optionally, routing the access point communicating with the target access point controller to the access point controller to be switched based on the autonomous system number and the IP address includes:

[0012] Obtain the local routing table, which is created based on the autonomous system number and the IP address;

[0013] Delete the route pointing to the target access point controller from the local routing table, and enable the route pointing to the access point controller to be switched.

[0014] Optionally, before determining that the target access point controller of the target branch network is faulty, the method further includes:

[0015] For each of the branch network, establish an EBGP neighbor relationship between the core switch of the branch network and each network access point;

[0016] For each of the branch network, establish an Open Shortest Path First (OSPF) neighbor relationship between the access point controller and the core switch in the branch network;

[0017] For each network access point, establish an OSPF neighbor relationship between the access point controller and the core switch in the network access point.

[0018] Optionally, the method further includes:

[0019] For each branch network, after establishing the OSPF neighbor relationship between the access point controller of the branch network and the core switch, the target loopback address corresponding to the access point controller is sent to the core switch so that the core switch and the access point controller can transmit data through the target loopback address.

[0020] For each network access point, after establishing the OSPF neighbor relationship between the access point controller and the core switch, the access loopback address corresponding to the access point controller is sent to the core switch so that the core switch and the access point controller can transmit data through the access loopback address. The IP address corresponding to the access loopback address is the same as the IP address corresponding to the target loopback address.

[0021] Optionally, the method further includes:

[0022] Obtain a preset priority order corresponding to at least one of the network access points;

[0023] According to the preset priority order, set the EBGP route priority corresponding to each network inbound point.

[0024] Optionally, the method further includes:

[0025] If it is determined that the target network access point to which the access point controller to be switched belongs is faulty, and there are multiple network access points, the target access point controller to be switched is determined from the network access point controllers of the network access points to be determined; the network access points to be determined include at least one network access point other than the target network access point among the network access points.

[0026] Based on the Autonomous System ID and the IP address, the access point communicating with the access point controller to be switched is routed to the target access point controller to be switched, so that the access point can transmit data through the target access point controller to be switched.

[0027] Secondly, this disclosure provides a routing switching device, the device comprising:

[0028] The access point controller determination module is used to determine the access point controller to be switched from the access point controllers of at least one network access point when it is determined that the target access point controller of the target branch network is faulty; the target branch network is any one of a plurality of branch networks connected to at least one network access point, each branch network and each network access point corresponds to a different autonomous system number, and the access point controller and the target access point controller have the same Internet Protocol (IP) address.

[0029] The routing switching module is used to route an access point communicating with the target access point controller to the access point controller to be switched, based on the autonomous system number and the IP address, so that the access point can transmit data through the access point controller to be switched.

[0030] Optionally, the access point controller determination module is further configured to:

[0031] From at least one of the network access points, determine the target network access point with the highest External Border Gateway Protocol (EBGP) routing priority;

[0032] The access point controller of the target network access point is used as the access point controller to be switched.

[0033] Optionally, the routing switching module is further configured to:

[0034] Obtain the local routing table, which is created based on the autonomous system number and the IP address;

[0035] Delete the route pointing to the target access point controller from the local routing table, and enable the route pointing to the access point controller to be switched.

[0036] Optionally, the device further includes:

[0037] The first neighbor relationship establishment module is used to establish EBGP neighbor relationships between the core switch of the branch network and each network access point for each branch network.

[0038] The second neighbor relationship establishment module is used to establish an Open Shortest Path First (OSPF) neighbor relationship between the access point controller and the core switch in each branch network.

[0039] The third neighbor relationship establishment module is used to establish OSPF neighbor relationships between the access point controller and the core switch of each network access point.

[0040] Optionally, the device further includes:

[0041] The first address sending module is used to send the target loopback address corresponding to the access point controller to the core switch for each branch network after establishing the OSPF neighbor relationship between the access point controller of the branch network and the core switch, so that the core switch and the access point controller can transmit data through the target loopback address.

[0042] The second address sending module is used to send the inbound loopback address corresponding to the inbound access point controller to the inbound core switch for each network inbound point after establishing the OSPF neighbor relationship between the inbound access point controller and the inbound core switch, so that the inbound core switch and the inbound access point controller can transmit data through the inbound loopback address, wherein the IP address corresponding to the inbound loopback address is the same as the IP address corresponding to the target loopback address.

[0043] Optionally, the device further includes:

[0044] The priority order acquisition module is used to acquire a preset priority order corresponding to at least one of the network access points;

[0045] The priority setting module is used to set the EBGP route priority corresponding to each network access point according to the preset priority order.

[0046] Optionally, the access point controller determination module is further configured to determine a target access point controller to be switched from the access point controllers of the pending network access points when it is determined that the target network access point to which the access point controller to be switched belongs has a fault, and the network access points include multiple network access points; the pending network access points include at least one network access point other than the target network access point among the network access points.

[0047] The routing switching module is further configured to route the access point communicating with the access point controller to be switched to the target access point controller, so that the access point can transmit data through the target access point controller.

[0048] Thirdly, this disclosure provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in the first aspect of this disclosure.

[0049] Fourthly, this disclosure provides an electronic device, comprising:

[0050] A memory on which computer programs are stored;

[0051] A processor for executing the computer program in the memory to implement the steps of the method described in the first aspect of this disclosure.

[0052] The above technical solution addresses the issue of a faulty target access point controller in a target branch network. A replacement access point controller is selected from the access point controllers of at least one network entry point. The target branch network is any one of multiple branch networks connected to at least one network entry point. Each branch network and each network entry point corresponds to a different Autonomous System Number (AS / RS). The access point controller and the target access point controller share the same Internet Protocol (IP) address. Based on the AS / RS and the IP address, access points communicating with the target access point controller are routed to the replacement access point controller, enabling data transmission through the replacement access point controller. In other words, the branch network disclosed herein includes only one access point controller. If the target access point controller in a target branch network is determined to be faulty, the access point controller from the network entry point can be used instead. This eliminates the need to deploy a separate backup access point controller for each branch network, thus saving hardware investment costs.

[0053] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description

[0054] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation thereof. In the drawings:

[0055] Figure 1 This is a flowchart illustrating a route switching method according to an exemplary embodiment of the present disclosure;

[0056] Figure 2 This is a schematic diagram of a network connection according to an exemplary embodiment of the present disclosure;

[0057] Figure 3 This is a flowchart illustrating another route switching method according to an exemplary embodiment of the present disclosure;

[0058] Figure 4 This is a block diagram illustrating a routing switching device according to an exemplary embodiment of the present disclosure;

[0059] Figure 5 This is a block diagram illustrating a second routing switching device according to an exemplary embodiment of the present disclosure;

[0060] Figure 6 This is a block diagram illustrating a third routing switching device according to an exemplary embodiment of the present disclosure;

[0061] Figure 7 This is a block diagram illustrating a fourth routing switching device according to an exemplary embodiment of the present disclosure;

[0062] Figure 8 This is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0063] The specific embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit this disclosure.

[0064] It should be noted that all actions involving the acquisition of signals, information, or data in this disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the location is situated, and with authorization from the owner of the relevant device.

[0065] In the following description, the words "first" and "second" are used only to distinguish the purpose of the description and should not be interpreted as indicating or implying relative importance or order.

[0066] First, the application scenario of this disclosure will be explained. For the wireless LAN architecture of thin AP+AC centralized forwarding mode, the AP and AC discover each other through Layer 3. Usually, the DHCP (Dynamic Host Configuration Protocol) server issues an option43 attribute to the AP. This attribute can describe the IP address of an AC device in ASCII code format. All APs use this attribute to find the AC device to complete the AP's online work. All client service traffic must be forwarded centrally through the AC.

[0067] Existing technical solutions configure ACs according to branch offices, and most adopt a primary and backup AC architecture. Each branch office network is configured with two ACs for disaster recovery. The primary and backup ACs are deployed in VRRP mode. APs register with ACs by establishing CAPWAP (Control And Provisioning of Wireless Access Points Protocol Specification) tunnels with VRRP's VIP (Virtual Internet Protocol). Different SSIDs (Service Set Identifiers) are named based on different services to bind different VLAN (Virtual Local Area Network) identifiers. Service traffic usually adopts a two-layer transparent transmission method. The AC does not participate in the routing and forwarding of service traffic, but is only responsible for the encryption and decryption of wireless traffic. The service traffic gateway is generally set on the Layer 3 switch connected to the AC, and the Layer 3 switch is responsible for the routing and forwarding of service traffic.

[0068] In large enterprise parks and multi-branch office scenarios, there are often multiple branch office networks. Existing VRRP networking solutions require the deployment of a separate backup AC hardware device in each branch office, resulting in high hardware investment costs. Furthermore, the inventors of this disclosure have discovered that the VRRP protocol detects the liveness status of the primary and backup AC devices through hello packets. Since the minimum interval between hello packets is 1 second, at least three probes are typically required to determine the liveness status of the primary and backup AC devices to ensure reliability. Therefore, if the primary AC device fails, it takes at least 3 seconds to complete the control plane switchover. Adding the data plane switchover and user state synchronization, it often takes tens of seconds or even longer to achieve the switchover of the primary and backup AC devices, resulting in a poor user experience for the WiFi network.

[0069] To address the aforementioned problems, this disclosure provides a routing switching method, apparatus, storage medium, and electronic device. In this method, the branch network includes only one access point controller. If it is determined that the target access point controller of the target branch network is faulty, the access point controller at the network entry point can be used to replace the target access point controller. This eliminates the need to deploy a separate backup access point controller for each branch network, thereby saving hardware investment costs.

[0070] The present disclosure will now be described in conjunction with specific embodiments.

[0071] Figure 1 This is a flowchart illustrating a route switching method according to an exemplary embodiment of the present disclosure, such as... Figure 1 As shown, the method may include:

[0072] S101. If it is determined that the target access point controller of the target branch network is faulty, determine the access point controller to be switched from the access point controllers of at least one network access point.

[0073] The target branch network can be any one of multiple branch networks connected to at least one network access point. Each branch network and each network access point corresponds to a different Autonomous System Number (AS Number). The Internet Protocol (IP) address corresponding to the access point controller and the target access point controller is the same. Each branch network is connected to each network access point via two dedicated lines or bare fiber optic cables. Each network access point is configured with an independent Internet exit and a high-performance access point controller (AC) device. The network topology of each branch network is similar, and each deploys a local access point controller (AC) device. Taking the target branch network as an example, the target branch network may include the target access point controller, the target core switch, multiple access points, and a switch corresponding to each access point. The network access point may include the access point controller and the core switch.

[0074] Figure 2 This is a schematic diagram of a network connection according to an exemplary embodiment of the present disclosure, such as... Figure 2As shown, the network access points include network access point 1 (network POP1) and network access point 2 (network POP2). The branch network includes branch network 1, branch network 2, ..., branch network N. Taking branch network 1 as an example, branch network 1 includes target access point controller (AC-3), target core switch (CS-3), N APs (AP-1, AP-2, ..., AP-N) and the corresponding switch (SW-1, SW-2, ..., SW-N) for each AP. Taking network POP1 as an example, network POP1 includes access point controller (AC-1) and access core switch (CS-1).

[0075] It should be noted that, Figure 2 The network connection diagram shown is for illustrative purposes only, and this disclosure does not limit the number of network access points and the number of branch network members.

[0076] In this step, for each branch network connected to at least one network access point, the OSPF (Open Shortest Path First) routing protocol between the core switch in the branch and the access point controller can be pre-configured to BFD (Bidirectional Forwarding Detection) linkage. The BFD protocol is used to determine whether the access point controller of the branch network is faulty.

[0077] Furthermore, if it is determined that the target access point controller of the target branch network is faulty, the target network access point with the highest EBGP (External Border Gateway Protocol) routing priority can be determined from at least one network access point, and the access point controller of the target network access point can be used as the access point controller to be switched.

[0078] S102. Based on the autonomous system number and the IP address, the access point communicating with the target access point controller is routed to the access point controller to be switched, so that the access point can transmit data through the access point controller to be switched.

[0079] It should be noted that BGP (Border Gateway Protocol) AnyCast technology can broadcast the same IP address range in different regions using one or more Autonomous System Numbers (ASNs). Furthermore, according to one of BGP's routing principles, the shorter ASN path will be the optimal path. Based on this, since the target branch office network and each network access point correspond to different ASNs, and the access point controller and the target access point controller share the same Internet Protocol (IP) address, BGP AnyCast technology can be used to automatically switch tunnel traffic between the access point and the target access point controller within the target branch office to the target access point controller via dynamic routing. This allows the access point to transmit data through the target access point controller.

[0080] In this step, after identifying the access point controller to be switched, the local routing table can be obtained, routes pointing to the target access point controller in the local routing table can be deleted, and routes pointing to the access point controller to be switched can be enabled. The local routing table can be created based on the autonomous system number and the IP address.

[0081] Furthermore, after routing the access point communicating with the target access point controller to the access point controller to be switched, the access point controller to be switched, or other devices in the target network access point to which the access point controller to be switched belongs, may also be faulty. Based on this, in one possible implementation, if it is determined that the target network access point to which the access point controller to be switched belongs is faulty, and the network access point includes multiple access points, the target access point controller to be switched is determined from the access point controllers of the network access points to be determined. Based on the autonomous system number and the IP address, the access point communicating with the access point controller to be switched is routed to the target access point controller to be switched, so that the access point can transmit data through the target access point controller to be switched. The network access point to be determined includes at least one network access point other than the target network access point.

[0082] Using the above method, if it is determined that the target access point controller of the target branch network is faulty, the access point controller in the network access point can be used to replace the target access point controller. In this way, there is no need to deploy a separate backup access point controller for each branch network, thereby saving hardware investment costs.

[0083] Figure 3 This is a flowchart illustrating another routing switching method according to an exemplary embodiment of the present disclosure, such as... Figure 3 As shown, the method may include:

[0084] S301. For each branch office network, establish EBGP neighbor relationships between the core switch of that branch office network and each network access point.

[0085] Each branch office network and each network access point corresponds to a different Autonomous System (AS) number. The access point controller and the target access point controller share the same Internet Protocol (IP) address. Each branch office network is connected to each network access point via two dedicated lines or bare fiber optic cables. Each network access point is configured with an independent Internet exit and a high-performance access point controller (AC) device. The network topology of each branch office network is similar, and each deploys a local access point controller (AC) device. Taking the target branch office network as an example, the target branch office network may include the target access point controller, the target core switch, multiple access points, and a switch corresponding to each access point. The network access point may include the access point controller and the core switch.

[0086] In this step, before establishing the EBGP neighbor relationship between the core switch of each branch office network and each network access point, a unique Autonomous System Number (ASN) can be assigned to each branch office network and each network access point. Figure 2 Taking the network shown as an example, the Autonomous System Number (ASN) corresponding to network POP1 can be AS65001, and the IP address range can be 10.1.0.0 / 16. The ASN number corresponding to network POP2 can be AS65002, and the IP address range can be 10.2.0.0 / 16. The ASN number corresponding to branch network 1 can be AS65003. The ASN number corresponding to branch network 2 can be AS65004. The ASN number corresponding to branch network N can be AS6500N, and the IP address range of the branch network can be 10.3.0.0 / 16-10.N.0.0 / 16.

[0087] Furthermore, for each branch office network, an EBGP neighbor relationship can be established between the branch office network and the core switch of each network access point using existing technologies. The EBGP routing protocol can be used to realize communication between the branch office network and each network access point, as well as communication between each branch office network.

[0088] S302. For each branch office network, establish OSPF neighbor relationships between the access point controller and the core switch in that branch office network.

[0089] In this step, for each branch office network, OSPF neighbor relationships can be established between the access point controller and the core switch in that branch office network using the OSPF dynamic routing protocol.

[0090] S303. For each network access point, establish the OSPF neighbor relationship between the access point controller and the core switch in that network access point.

[0091] In this step, for each network access point, OSPF neighbor relationships can be established between the access point controller and the core switch in that network access point using the OSPF dynamic routing protocol.

[0092] S304. For each branch office network, after establishing the OSPF neighbor relationship between the access point controller and the core switch of the branch office network, the target loopback address corresponding to the access point controller is sent to the core switch so that the core switch and the access point controller can transmit data through the target loopback address.

[0093] Specifically, for each access point controller in the branch network and each access point in the network access point, a loopback address can be enabled, and the same IP address can be configured for the loopback address. This IP address can be used to establish a CAPWAP tunnel between the access point controller and the access point. For example, this IP address can be 192.168.1.200.

[0094] In this step, for each branch office network, after establishing the OSPF neighbor relationship between the access point controller and the core switch of that branch office network, the loopback address of the access point controller of that branch office network can be used as the communication address between the core switch and the access point controller in that branch office network. The access point controller of that branch office network can advertise this loopback address to the core switch of that branch office network through OSPF. In this way, the core switch and the access point controller of that branch office network can transmit data through the target loopback address.

[0095] S305. For each network access point, after establishing the OSPF neighbor relationship between the access point controller and the core switch, the access loopback address corresponding to the access point controller is sent to the core switch so that the core switch and the access point controller can transmit data through the access loopback address.

[0096] The IP address corresponding to the inbound loopback address is the same as the IP address corresponding to the target loopback address.

[0097] In this step, for each network access point, after establishing the OSPF neighbor relationship between the access point controller and the core switch of that network access point, the loopback address of the access point controller can be used as the communication address between the core switch and the access point controller in that network access point. The access point controller can advertise the loopback address to the core switch of that network access point through OSPF. In this way, the core switch and the access point controller of that network access point can transmit data through the loopback address.

[0098] In addition, for each network access point, a default route is determined, and this default route is sent to the access point controller and the core switch of each branch network, so that the core switch of the branch network and the access point controller can access external network data through the default route. The default route can be 0.0.0.0 / 0.

[0099] For example, for each network ingress point, the default route can be obtained first. Then, the default route can be advertised to the core switch of each branch network via EBGP. This way, when a branch network accesses external network data, it can reach the network ingress point via the default route. Alternatively, the core switch of the network ingress point can advertise the default route to the ingress access point controller of the network ingress point via the OSPF dynamic routing protocol. This way, when the ingress access point controller of the network ingress point accesses external network data, it can reach the ingress core switch of the network ingress point via the default route.

[0100] Furthermore, for each branch office network, after establishing the OSPF neighbor relationship between the access point controller and the core switch of that branch office network, the core switch sends the default route to the access point controller so that the access point controller can access external network data through the default route.

[0101] For example, for each branch office network, after the core switch of the branch office network receives the default route sent by the incoming access point, it can advertise the default route to the access point controller of the branch office network through the OSPF dynamic routing protocol. In this way, when the access point controller of the branch office network accesses external network data, it can reach the incoming access point through the default route.

[0102] S306. Obtain the preset priority order corresponding to at least one network access point.

[0103] The preset priority order can be determined in advance based on the configuration information of at least one network access point. For example, if at least one network access point includes network POP1, network POP2, network POP3 and network POP4, then the preset priority order can be POP4, network POP2, network POP3 and network POP1.

[0104] S307. Set the EBGP route priority for each network inbound point according to the preset priority order.

[0105] In this step, for each branch office network, during the process of establishing the EBGP neighbor relationship between the core switch of that branch office network and each network ingress point, the level corresponding to each network ingress point can be determined first according to the preset priority order. Then, the EBGP route priority corresponding to each level can be determined through the preset priority association relationship. This preset priority association relationship can include the correspondence between different levels and EBGP route priorities. For example, the level can include level 1, level 2, level 3, and level 4. If the default value of the EBGP route priority is 100, then the EBGP route priority corresponding to level 1 can be 300, the EBGP route priority corresponding to level 2 can be 260, the EBGP route priority corresponding to level 3 can be 200, and the EBGP route priority corresponding to level 4 can be 150.

[0106] For example, if the preset priority order is POP4, network POP2, network POP3, and network POP1, then the level corresponding to network POP1 is level 4, the level corresponding to network POP2 is level 2, the level corresponding to network POP3 is level 3, and the level corresponding to network POP4 is level 1. Through this preset priority association, it can be determined that the EBGP route priority corresponding to network POP1 is 150, the EBGP route priority corresponding to network POP2 is 260, the EBGP route priority corresponding to network POP3 is 200, and the EBGP route priority corresponding to network POP4 is 300.

[0107] Furthermore, a preset management distance can be obtained, and the EBGP management distance corresponding to each network access point can be set to this preset management distance. This preset management distance is greater than the default management distance corresponding to the OSPF protocol. The preset management distance can be pre-set based on the default management distance. For example, if the default management distance corresponding to the OSPF protocol of each equipment manufacturer is less than 240, then the preset management distance can be set to 240.

[0108] After setting the EBGP management distance for each network access point to the preset management distance, since the EBGP management distance is greater than the OSPF protocol management distance, the OSPF routes in the branch network take priority, and the CAPWAP registration traffic of the AP-AC in the branch network is prioritized to the local access point controller.

[0109] It should be noted that the execution order of steps S301 to S307 above is only an example, and this disclosure does not limit the execution order of steps S301 to S307.

[0110] S308. If it is determined that the target access point controller of the target branch network is faulty, determine the target network ingress point with the highest EBGP routing priority from at least one network ingress point.

[0111] In this step, the operating status of the access point controller of each branch office can be detected using the BFD protocol. The BFD probe has a transmission interval of 200ms, a reception interval of 200ms, and a detection multiplier of 3. If the access point controller in the branch office network fails, the BFD protocol can complete the fault detection within 600ms, thereby enabling the access points of the branch office network to achieve rapid switching.

[0112] If at least one network inbound point is included, then that network inbound point is the target network inbound point with the highest EBGP routing priority; if at least one network inbound point includes multiple network inbound points, then the EBGP routing priority corresponding to each network inbound point can be determined, and the network inbound point with the highest EBGP routing priority among the multiple network inbound points is taken as the target network inbound point.

[0113] S309. Use the access point controller of the target network access point as the access point controller to be switched.

[0114] S310, Obtain the local routing table.

[0115] The local routing table can be created based on the Autonomous System Number and the IP address, and can be created during the network construction process using existing methods. For example, if at least one network access point includes network POP1, network POP2, network POP3, and network POP4, then for the aforementioned branch network 1, the local routing table can include routes generated by OSPF, EBGP routes pointing to network POP1, EBGP routes pointing to network POP2, EBGP routes pointing to network POP3, and EBGP routes pointing to network POP4.

[0116] S311. Delete the route pointing to the target access point controller in the local routing table, and enable the route pointing to the access point controller to be switched, so that the access point can transmit data through the access point controller to be switched.

[0117] In this step, with Figure 2 Taking the network shown as an example, if the target branch network is branch network 1, the EBGP route priority corresponding to POP1 of this network is 200, and the EBGP route priority corresponding to POP2 of this network is 100, then if it is determined that AC-3 of this branch network 1 is faulty, the route pointing to AC-3 in the local routing table (the route generated by OSPF) can be deleted, and the EBGP route pointing to POP1 of this network will take effect. In this way, the CAPWAP registration traffic of AP-AC3 in this branch network 1 can be switched to AC-1 of the remote network POP1, and the access point (AP) in this branch network 1 can transmit data through the access point controller (AC-1) to be switched.

[0118] S312. If it is determined that the target network access point to which the access point controller to be switched belongs is faulty, and the network access point includes multiple access points, the target access point controller to be switched shall be determined from the access point controllers of the network access points to be determined.

[0119] The network access point to be determined may include at least one network access point other than the target network access point.

[0120] In this step, during the communication between the access point of the target branch network and the access point controller to be switched, the target network access point to which the access point controller to be switched belongs may be faulty. In this case, the pending network access point can be obtained. Then, referring to the processing methods in steps S308 to S311, the target access point controller to be switched is determined from the access point controllers of the pending network access point. This will not be elaborated further here. Continuing with the example in step S311, if network POP1 is faulty, then the pending network access point only includes network POP2, and the access point controller of network POP2 is taken as the target access point controller to be switched.

[0121] S313. Based on the autonomous system number and the IP address, the access point communicating with the access point controller to be switched is routed to the target access point controller to be switched, so that the access point can transmit data through the target access point controller to be switched.

[0122] In this step, we will continue with the example in step S312. If the access point controller to be switched is AC-2 in network POP2, we can delete the EBGP route pointing to network POP1 in the local routing table and enable the EBGP route pointing to network POP2. In this way, the registration traffic of AP-AC in branch network 1 can be switched to AC-2 in remote network POP2. The access point (AP) in branch network 1 can transmit data through the target access point controller (AC-2) to be switched.

[0123] Using the above method, if the target access point controller of the target branch network is determined to be faulty, the access point controller at the network ingress point can be used to replace the target access point controller. This eliminates the need to deploy a separate backup access point controller for each branch network, thus saving hardware investment costs. Furthermore, this disclosure combines dynamic routing protocols and BFD detection mechanisms to achieve rapid switching of control plane traffic between the AP and AC through simple configuration, improving user experience while ensuring wireless network reliability.

[0124] Figure 4 This is a block diagram illustrating a routing switching device according to an exemplary embodiment of the present disclosure, such as... Figure 4 As shown, the device may include:

[0125] Access point controller determination module 401 is used to determine the access point controller to be switched from the access point controllers of at least one network access point when it is determined that the target access point controller of the target branch network is faulty; the target branch network is any one of a plurality of branch networks connected to at least one network access point, each branch network and each network access point corresponds to a different autonomous system number, and the access point controller and the target access controller have the same Internet Protocol IP address;

[0126] The routing switching module 402 is used to route an access point that communicates with the target access point controller to the access point controller to be switched, based on the autonomous system number and the IP address, so that the access point can transmit data through the access point controller to be switched.

[0127] Optionally, the access point controller determination module 401 is further configured to:

[0128] From at least one network access point, determine the target network access point with the highest External Border Gateway Protocol (EBGP) routing priority;

[0129] The access point controller of the target network access point is used as the access point controller to be switched.

[0130] Optionally, the routing switching module 402 is also used for:

[0131] Retrieve the local routing table, which was created based on the autonomous system number and the IP address;

[0132] Delete the route pointing to the target access point controller from the local routing table and enable the route pointing to the access point controller to be switched.

[0133] Optionally, Figure 5 This is a block diagram illustrating a second routing switching device according to an exemplary embodiment of the present disclosure, such as... Figure 5 As shown, the device also includes:

[0134] The first neighbor relationship establishment module 403 is used to establish EBGP neighbor relationships between the core switch of the branch network and each access point of the network for each branch network.

[0135] The second neighbor relationship establishment module 404 is used to establish an Open Shortest Path First (OSPF) neighbor relationship between the access point controller and the core switch in each branch network.

[0136] The third neighbor relationship establishment module 405 is used to establish OSPF neighbor relationships between the access point controller and the core switch of each network access point.

[0137] Optionally, Figure 6 This is a block diagram illustrating a third routing switching device according to an exemplary embodiment of the present disclosure, such as... Figure 6 As shown, the device also includes:

[0138] The first address sending module 406 is used to send the target loopback address corresponding to the access point controller to the core switch for each branch network after establishing the OSPF neighbor relationship between the access point controller of the branch network and the core switch, so that the core switch and the access point controller can transmit data through the target loopback address.

[0139] The second address sending module 407 is used to send the network loopback address corresponding to the network access point controller to the network core switch for each network access point after establishing the OSPF neighbor relationship between the network access point controller and the network core switch, so that the network core switch and the network access point controller can transmit data through the network loopback address, and the IP address corresponding to the network loopback address is the same as the IP address corresponding to the target loopback address.

[0140] Optionally, Figure 7 This is a block diagram illustrating a fourth routing switching device according to an exemplary embodiment of the present disclosure, such as... Figure 7 As shown, the device also includes:

[0141] The priority order acquisition module 408 is used to acquire at least one preset priority order corresponding to the network access point;

[0142] The priority setting module 409 is used to set the EBGP route priority corresponding to each network ingress point according to the preset priority order.

[0143] Optionally, the access point controller determination module is further configured to determine the target access point controller to be switched from the access point controllers of the pending network access points when it is determined that the target network access point to which the access point controller to be switched belongs is faulty and the network access point includes multiple network access points; the pending network access points include at least one network access point other than the target network access point among the network access points.

[0144] The routing switching module is also used to route the access point communicating with the access point controller to be switched to the target access point controller, so that the access point can transmit data through the target access point controller.

[0145] With the above-mentioned device, if it is determined that the target access point controller of the target branch network is faulty, the access point controller in the network access point can be used to replace the target access point controller. In this way, there is no need to deploy a separate backup access point controller for each branch network, thereby saving hardware investment costs.

[0146] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0147] Figure 8 This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment of the present disclosure. (Refer to...) Figure 8 The electronic device 800 includes a processor 822, which may be one or more, and a memory 832 for storing computer programs executable by the processor 822. The computer programs stored in the memory 832 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processor 822 may be configured to execute the computer program to perform the routing switching method described above.

[0148] Additionally, the electronic device 800 may also include a power supply component 826 and a communication component 850. The power supply component 826 can be configured to perform power management of the electronic device 800, and the communication component 850 can be configured to enable communication of the electronic device 800, such as wired or wireless communication. Furthermore, the electronic device 800 may also include an input / output (I / O) interface 858. The electronic device 800 can operate on an operating system, such as Windows Server, stored in memory 832. TM Mac OSX TM Unix TM Linux TM etc.

[0149] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the routing switching method described above. For example, the computer-readable storage medium may be the memory 832 including the program instructions described above, which may be executed by the processor 822 of the electronic device 800 to complete the routing switching method described above.

[0150] In another exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program executable by a programmable device, the computer program having a code portion for performing the above-described routing switching method when executed by the programmable device.

[0151] The preferred embodiments of this disclosure have been described in detail above with reference to the accompanying drawings. However, this disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this disclosure, various simple modifications can be made to the technical solutions of this disclosure, and these simple modifications all fall within the protection scope of this disclosure. It should also be noted that the various specific technical features described in the above embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, this disclosure will not further describe the various possible combinations.

[0152] Furthermore, various different embodiments of this disclosure can be combined in any way, as long as they do not violate the spirit of this disclosure, they should also be regarded as the content disclosed in this disclosure.

Claims

1. A routing switching method, characterized in that, The method includes: If it is determined that the target access point controller of the target branch network is faulty, the access point controller to be switched is determined from the access point controllers of at least one network access point; the target branch network is any one of a plurality of branch networks connected to at least one network access point, each branch network and each network access point corresponds to a different autonomous system number, and the access point controller and the target access point controller have the same Internet Protocol (IP) address. Based on the Autonomous System ID and the IP address, the access point communicating with the target access point controller is routed to the access point controller to be switched, so that the access point can transmit data through the access point controller to be switched.

2. The method according to claim 1, characterized in that, The step of determining the access point controller to be switched from the access point controllers of at least one network access point includes: From at least one of the network access points, determine the target network access point with the highest External Border Gateway Protocol (EBGP) routing priority; The access point controller of the target network access point is used as the access point controller to be switched.

3. The method according to claim 2, characterized in that, The step of routing the access point communicating with the target access point controller to the access point controller to be switched based on the autonomous system number and the IP address includes: Obtain the local routing table, which is created based on the autonomous system number and the IP address; Delete the route pointing to the target access point controller from the local routing table, and enable the route pointing to the access point controller to be switched.

4. The method according to claim 1, characterized in that, Before determining that the target access point controller of the target branch network is faulty, the method further includes: For each of the branch network, establish an EBGP neighbor relationship between the core switch of the branch network and each network access point; For each of the branch network, establish an Open Shortest Path First (OSPF) neighbor relationship between the access point controller and the core switch in the branch network; For each network access point, establish an OSPF neighbor relationship between the access point controller and the core switch in the network access point.

5. The method according to claim 4, characterized in that, The method further includes: For each branch network, after establishing the OSPF neighbor relationship between the access point controller of the branch network and the core switch, the target loopback address corresponding to the access point controller is sent to the core switch so that the core switch and the access point controller can transmit data through the target loopback address. For each network access point, after establishing the OSPF neighbor relationship between the access point controller and the core switch, the access loopback address corresponding to the access point controller is sent to the core switch so that the core switch and the access point controller can transmit data through the access loopback address. The IP address corresponding to the access loopback address is the same as the IP address corresponding to the target loopback address.

6. The method according to claim 4, characterized in that, The method further includes: Obtain a preset priority order corresponding to at least one of the network access points; According to the preset priority order, set the EBGP route priority corresponding to each network inbound point.

7. The method according to any one of claims 1-6, characterized in that, The method further includes: If it is determined that the target network access point to which the access point controller to be switched belongs is faulty, and there are multiple network access points, the target access point controller to be switched is determined from the network access point controllers of the network access points to be determined; the network access points to be determined include at least one network access point other than the target network access point among the network access points. Based on the Autonomous System ID and the IP address, the access point communicating with the access point controller to be switched is routed to the target access point controller to be switched, so that the access point can transmit data through the target access point controller to be switched.

8. A routing switching device, characterized in that, The device includes: The access point controller determination module is used to determine the access point controller to be switched from the access point controllers of at least one network access point when it is determined that the target access point controller of the target branch network is faulty; the target branch network is any one of a plurality of branch networks connected to at least one network access point, each branch network and each network access point corresponds to a different autonomous system number, and the access point controller and the target access point controller have the same Internet Protocol (IP) address. The routing switching module is used to route an access point communicating with the target access point controller to the access point controller to be switched, based on the autonomous system number and the IP address, so that the access point can transmit data through the access point controller to be switched.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method described in any one of claims 1-7.

10. An electronic device, characterized in that, include: A memory on which computer programs are stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1-7.